diff --git a/CHANGELOG.md b/CHANGELOG.md index 1a0b726f0f8..07664f92284 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed +## [6.5.0] - 2024-03-26 + +### Added + +- Weekly generated v1.0 models and request builders using Kiota + ## [6.4.0] - 2024-02-28 ### Added diff --git a/README.md b/README.md index 05bbc662f4a..ecb457882e7 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ repositories { dependencies { // Include the sdk as a dependency - implementation 'com.microsoft.graph:microsoft-graph:6.4.0' + implementation 'com.microsoft.graph:microsoft-graph:6.5.0' // This dependency is only needed if you are using a TokenCredential object for authentication implementation 'com.azure:azure-identity:1.11.0' } @@ -35,7 +35,7 @@ Add the dependency in `dependencies` in pom.xml com.microsoft.graph microsoft-graph - 6.4.0 + 6.5.0 @@ -119,3 +119,4 @@ Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the [MI + diff --git a/gradle.properties b/gradle.properties index 19a42308fa3..c6a0b9e2732 100644 --- a/gradle.properties +++ b/gradle.properties @@ -26,7 +26,7 @@ org.gradle.caching=true mavenGroupId = com.microsoft.graph mavenArtifactId = microsoft-graph mavenMajorVersion = 6 -mavenMinorVersion = 4 +mavenMinorVersion = 5 mavenPatchVersion = 0 mavenArtifactSuffix = @@ -124,5 +124,6 @@ mavenCentralPublishingEnabled=true + diff --git a/src/main/java/com/microsoft/graph/generated/admin/AdminRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/admin/AdminRequestBuilder.java index e8685acc68a..af485ffafb1 100644 --- a/src/main/java/com/microsoft/graph/generated/admin/AdminRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/admin/AdminRequestBuilder.java @@ -1,6 +1,7 @@ package com.microsoft.graph.admin; import com.microsoft.graph.admin.edge.EdgeRequestBuilder; +import com.microsoft.graph.admin.microsoft365apps.Microsoft365AppsRequestBuilder; import com.microsoft.graph.admin.people.PeopleRequestBuilder; import com.microsoft.graph.admin.serviceannouncement.ServiceAnnouncementRequestBuilder; import com.microsoft.graph.admin.sharepoint.SharepointRequestBuilder; @@ -32,6 +33,14 @@ public class AdminRequestBuilder extends BaseRequestBuilder { public EdgeRequestBuilder edge() { return new EdgeRequestBuilder(pathParameters, requestAdapter); } + /** + * Provides operations to manage the microsoft365Apps property of the microsoft.graph.admin entity. + * @return a {@link Microsoft365AppsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public Microsoft365AppsRequestBuilder microsoft365Apps() { + return new Microsoft365AppsRequestBuilder(pathParameters, requestAdapter); + } /** * Provides operations to manage the people property of the microsoft.graph.admin entity. * @return a {@link PeopleRequestBuilder} diff --git a/src/main/java/com/microsoft/graph/generated/admin/microsoft365apps/Microsoft365AppsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/admin/microsoft365apps/Microsoft365AppsRequestBuilder.java new file mode 100644 index 00000000000..b0cf2bd1bba --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/admin/microsoft365apps/Microsoft365AppsRequestBuilder.java @@ -0,0 +1,237 @@ +package com.microsoft.graph.admin.microsoft365apps; + +import com.microsoft.graph.admin.microsoft365apps.installationoptions.InstallationOptionsRequestBuilder; +import com.microsoft.graph.models.AdminMicrosoft365Apps; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the microsoft365Apps property of the microsoft.graph.admin entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class Microsoft365AppsRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to manage the installationOptions property of the microsoft.graph.adminMicrosoft365Apps entity. + * @return a {@link InstallationOptionsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public InstallationOptionsRequestBuilder installationOptions() { + return new InstallationOptionsRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link Microsoft365AppsRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public Microsoft365AppsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/admin/microsoft365Apps{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link Microsoft365AppsRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public Microsoft365AppsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/admin/microsoft365Apps{?%24expand,%24select}", rawUrl); + } + /** + * Delete navigation property microsoft365Apps for admin + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete() { + delete(null); + } + /** + * Delete navigation property microsoft365Apps for admin + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * A container for the Microsoft 365 apps admin functionality. + * @return a {@link AdminMicrosoft365Apps} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public AdminMicrosoft365Apps get() { + return get(null); + } + /** + * A container for the Microsoft 365 apps admin functionality. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link AdminMicrosoft365Apps} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public AdminMicrosoft365Apps get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, AdminMicrosoft365Apps::createFromDiscriminatorValue); + } + /** + * Update the navigation property microsoft365Apps in admin + * @param body The request body + * @return a {@link AdminMicrosoft365Apps} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public AdminMicrosoft365Apps patch(@jakarta.annotation.Nonnull final AdminMicrosoft365Apps body) { + return patch(body, null); + } + /** + * Update the navigation property microsoft365Apps in admin + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link AdminMicrosoft365Apps} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public AdminMicrosoft365Apps patch(@jakarta.annotation.Nonnull final AdminMicrosoft365Apps body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, AdminMicrosoft365Apps::createFromDiscriminatorValue); + } + /** + * Delete navigation property microsoft365Apps for admin + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation() { + return toDeleteRequestInformation(null); + } + /** + * Delete navigation property microsoft365Apps for admin + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, "{+baseurl}/admin/microsoft365Apps", pathParameters); + requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * A container for the Microsoft 365 apps admin functionality. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * A container for the Microsoft 365 apps admin functionality. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update the navigation property microsoft365Apps in admin + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final AdminMicrosoft365Apps body) { + return toPatchRequestInformation(body, null); + } + /** + * Update the navigation property microsoft365Apps in admin + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final AdminMicrosoft365Apps body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, "{+baseurl}/admin/microsoft365Apps", pathParameters); + requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link Microsoft365AppsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public Microsoft365AppsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new Microsoft365AppsRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class DeleteRequestConfiguration extends BaseRequestConfiguration { + } + /** + * A container for the Microsoft 365 apps admin functionality. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PatchRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/admin/microsoft365apps/installationoptions/InstallationOptionsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/admin/microsoft365apps/installationoptions/InstallationOptionsRequestBuilder.java new file mode 100644 index 00000000000..9e30632d251 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/admin/microsoft365apps/installationoptions/InstallationOptionsRequestBuilder.java @@ -0,0 +1,232 @@ +package com.microsoft.graph.admin.microsoft365apps.installationoptions; + +import com.microsoft.graph.models.M365AppsInstallationOptions; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the installationOptions property of the microsoft.graph.adminMicrosoft365Apps entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class InstallationOptionsRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link InstallationOptionsRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public InstallationOptionsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/admin/microsoft365Apps/installationOptions{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link InstallationOptionsRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public InstallationOptionsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/admin/microsoft365Apps/installationOptions{?%24expand,%24select}", rawUrl); + } + /** + * Delete navigation property installationOptions for admin + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete() { + delete(null); + } + /** + * Delete navigation property installationOptions for admin + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * Read the properties and relationships of an m365AppsInstallationOptions object. + * @return a {@link M365AppsInstallationOptions} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public M365AppsInstallationOptions get() { + return get(null); + } + /** + * Read the properties and relationships of an m365AppsInstallationOptions object. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link M365AppsInstallationOptions} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public M365AppsInstallationOptions get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, M365AppsInstallationOptions::createFromDiscriminatorValue); + } + /** + * Update the properties of an m365AppsInstallationOptions object. + * @param body The request body + * @return a {@link M365AppsInstallationOptions} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public M365AppsInstallationOptions patch(@jakarta.annotation.Nonnull final M365AppsInstallationOptions body) { + return patch(body, null); + } + /** + * Update the properties of an m365AppsInstallationOptions object. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link M365AppsInstallationOptions} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public M365AppsInstallationOptions patch(@jakarta.annotation.Nonnull final M365AppsInstallationOptions body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, M365AppsInstallationOptions::createFromDiscriminatorValue); + } + /** + * Delete navigation property installationOptions for admin + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation() { + return toDeleteRequestInformation(null); + } + /** + * Delete navigation property installationOptions for admin + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, "{+baseurl}/admin/microsoft365Apps/installationOptions", pathParameters); + requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Read the properties and relationships of an m365AppsInstallationOptions object. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Read the properties and relationships of an m365AppsInstallationOptions object. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update the properties of an m365AppsInstallationOptions object. + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final M365AppsInstallationOptions body) { + return toPatchRequestInformation(body, null); + } + /** + * Update the properties of an m365AppsInstallationOptions object. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final M365AppsInstallationOptions body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, "{+baseurl}/admin/microsoft365Apps/installationOptions", pathParameters); + requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link InstallationOptionsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public InstallationOptionsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new InstallationOptionsRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class DeleteRequestConfiguration extends BaseRequestConfiguration { + } + /** + * Read the properties and relationships of an m365AppsInstallationOptions object. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PatchRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/applications/item/synchronization/jobs/item/bulkupload/BulkUploadRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/applications/item/synchronization/jobs/item/bulkupload/BulkUploadRequestBuilder.java index 89f999e9f34..44742531d2a 100644 --- a/src/main/java/com/microsoft/graph/generated/applications/item/synchronization/jobs/item/bulkupload/BulkUploadRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/applications/item/synchronization/jobs/item/bulkupload/BulkUploadRequestBuilder.java @@ -64,7 +64,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Get bulkUpload from applications + * The bulk upload operation for the job. * @return a {@link BulkUpload} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -73,7 +73,7 @@ public BulkUpload get() { return get(null); } /** - * Get bulkUpload from applications + * The bulk upload operation for the job. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link BulkUpload} * @throws ODataError When receiving a 4XX or 5XX status code @@ -131,7 +131,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Get bulkUpload from applications + * The bulk upload operation for the job. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -139,7 +139,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Get bulkUpload from applications + * The bulk upload operation for the job. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -191,7 +191,7 @@ public BulkUploadRequestBuilder withUrl(@jakarta.annotation.Nonnull final String public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Get bulkUpload from applications + * The bulk upload operation for the job. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/applicationtemplates/item/instantiate/InstantiateRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/applicationtemplates/item/instantiate/InstantiateRequestBuilder.java index cab16fe078c..3ba8ebf90ae 100644 --- a/src/main/java/com/microsoft/graph/generated/applicationtemplates/item/instantiate/InstantiateRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/applicationtemplates/item/instantiate/InstantiateRequestBuilder.java @@ -36,7 +36,7 @@ public InstantiateRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl super(requestAdapter, "{+baseurl}/applicationTemplates/{applicationTemplate%2Did}/instantiate", rawUrl); } /** - * Add an instance of an application from the Microsoft Entra application gallery into your directory. You can also use this API to instantiate non-gallery apps. Use the following ID for the applicationTemplate object: 8adf8e6e-67b2-4cf2-a259-e3dc5476c621. + * Add an instance of an application from the Microsoft Entra application gallery into your directory. The application template with ID 8adf8e6e-67b2-4cf2-a259-e3dc5476c621 can be used to add a non-gallery app that you can configure different single-sign on (SSO) modes like SAML SSO and password-based SSO. * @param body The request body * @return a {@link ApplicationServicePrincipal} * @throws ODataError When receiving a 4XX or 5XX status code @@ -47,7 +47,7 @@ public ApplicationServicePrincipal post(@jakarta.annotation.Nonnull final Instan return post(body, null); } /** - * Add an instance of an application from the Microsoft Entra application gallery into your directory. You can also use this API to instantiate non-gallery apps. Use the following ID for the applicationTemplate object: 8adf8e6e-67b2-4cf2-a259-e3dc5476c621. + * Add an instance of an application from the Microsoft Entra application gallery into your directory. The application template with ID 8adf8e6e-67b2-4cf2-a259-e3dc5476c621 can be used to add a non-gallery app that you can configure different single-sign on (SSO) modes like SAML SSO and password-based SSO. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link ApplicationServicePrincipal} @@ -63,7 +63,7 @@ public ApplicationServicePrincipal post(@jakarta.annotation.Nonnull final Instan return this.requestAdapter.send(requestInfo, errorMapping, ApplicationServicePrincipal::createFromDiscriminatorValue); } /** - * Add an instance of an application from the Microsoft Entra application gallery into your directory. You can also use this API to instantiate non-gallery apps. Use the following ID for the applicationTemplate object: 8adf8e6e-67b2-4cf2-a259-e3dc5476c621. + * Add an instance of an application from the Microsoft Entra application gallery into your directory. The application template with ID 8adf8e6e-67b2-4cf2-a259-e3dc5476c621 can be used to add a non-gallery app that you can configure different single-sign on (SSO) modes like SAML SSO and password-based SSO. * @param body The request body * @return a {@link RequestInformation} */ @@ -72,7 +72,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Add an instance of an application from the Microsoft Entra application gallery into your directory. You can also use this API to instantiate non-gallery apps. Use the following ID for the applicationTemplate object: 8adf8e6e-67b2-4cf2-a259-e3dc5476c621. + * Add an instance of an application from the Microsoft Entra application gallery into your directory. The application template with ID 8adf8e6e-67b2-4cf2-a259-e3dc5476c621 can be used to add a non-gallery app that you can configure different single-sign on (SSO) modes like SAML SSO and password-based SSO. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/generated/chats/item/ChatItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/chats/item/ChatItemRequestBuilder.java index 1eeebe7e592..e3ad2028aa0 100644 --- a/src/main/java/com/microsoft/graph/generated/chats/item/ChatItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/chats/item/ChatItemRequestBuilder.java @@ -145,16 +145,18 @@ public ChatItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @ super(requestAdapter, "{+baseurl}/chats/{chat%2Did}{?%24expand,%24select}", rawUrl); } /** - * Delete entity from chats + * Soft-delete a chat. When invoked with delegated permissions, this operation only works for tenant admins and Teams service admins. * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here */ public void delete() { delete(null); } /** - * Delete entity from chats + * Soft-delete a chat. When invoked with delegated permissions, this operation only works for tenant admins and Teams service admins. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here */ public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); @@ -214,7 +216,7 @@ public Chat patch(@jakarta.annotation.Nonnull final Chat body, @jakarta.annotati return this.requestAdapter.send(requestInfo, errorMapping, Chat::createFromDiscriminatorValue); } /** - * Delete entity from chats + * Soft-delete a chat. When invoked with delegated permissions, this operation only works for tenant admins and Teams service admins. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -222,7 +224,7 @@ public RequestInformation toDeleteRequestInformation() { return toDeleteRequestInformation(null); } /** - * Delete entity from chats + * Soft-delete a chat. When invoked with delegated permissions, this operation only works for tenant admins and Teams service admins. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ diff --git a/src/main/java/com/microsoft/graph/generated/chats/item/lastmessagepreview/LastMessagePreviewRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/chats/item/lastmessagepreview/LastMessagePreviewRequestBuilder.java index c7ce885a61d..20a39a80531 100644 --- a/src/main/java/com/microsoft/graph/generated/chats/item/lastmessagepreview/LastMessagePreviewRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/chats/item/lastmessagepreview/LastMessagePreviewRequestBuilder.java @@ -55,7 +55,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Preview of the last message sent in the chat. Null if no messages have been sent in the chat. Currently, only the list chats operation supports this property. + * Preview of the last message sent in the chat. Null if no messages were sent in the chat. Currently, only the list chats operation supports this property. * @return a {@link ChatMessageInfo} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -64,7 +64,7 @@ public ChatMessageInfo get() { return get(null); } /** - * Preview of the last message sent in the chat. Null if no messages have been sent in the chat. Currently, only the list chats operation supports this property. + * Preview of the last message sent in the chat. Null if no messages were sent in the chat. Currently, only the list chats operation supports this property. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link ChatMessageInfo} * @throws ODataError When receiving a 4XX or 5XX status code @@ -122,7 +122,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Preview of the last message sent in the chat. Null if no messages have been sent in the chat. Currently, only the list chats operation supports this property. + * Preview of the last message sent in the chat. Null if no messages were sent in the chat. Currently, only the list chats operation supports this property. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -130,7 +130,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Preview of the last message sent in the chat. Null if no messages have been sent in the chat. Currently, only the list chats operation supports this property. + * Preview of the last message sent in the chat. Null if no messages were sent in the chat. Currently, only the list chats operation supports this property. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -182,7 +182,7 @@ public LastMessagePreviewRequestBuilder withUrl(@jakarta.annotation.Nonnull fina public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Preview of the last message sent in the chat. Null if no messages have been sent in the chat. Currently, only the list chats operation supports this property. + * Preview of the last message sent in the chat. Null if no messages were sent in the chat. Currently, only the list chats operation supports this property. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/chats/item/messages/MessagesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/chats/item/messages/MessagesRequestBuilder.java index ab1ad5329e3..830d10ea316 100644 --- a/src/main/java/com/microsoft/graph/generated/chats/item/messages/MessagesRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/chats/item/messages/MessagesRequestBuilder.java @@ -93,23 +93,23 @@ public ChatMessageCollectionResponse get(@jakarta.annotation.Nullable final java return this.requestAdapter.send(requestInfo, errorMapping, ChatMessageCollectionResponse::createFromDiscriminatorValue); } /** - * Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message. + * Send a new chatMessage in the specified channel or a chat. * @param body The request body * @return a {@link ChatMessage} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ChatMessage post(@jakarta.annotation.Nonnull final ChatMessage body) { return post(body, null); } /** - * Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message. + * Send a new chatMessage in the specified channel or a chat. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link ChatMessage} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ChatMessage post(@jakarta.annotation.Nonnull final ChatMessage body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -140,7 +140,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message. + * Send a new chatMessage in the specified channel or a chat. * @param body The request body * @return a {@link RequestInformation} */ @@ -149,7 +149,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message. + * Send a new chatMessage in the specified channel or a chat. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/generated/deviceappmanagement/DeviceAppManagementRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/deviceappmanagement/DeviceAppManagementRequestBuilder.java index e7de0ab4fdc..80f9d54c81e 100644 --- a/src/main/java/com/microsoft/graph/generated/deviceappmanagement/DeviceAppManagementRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/deviceappmanagement/DeviceAppManagementRequestBuilder.java @@ -175,7 +175,7 @@ public DeviceAppManagementRequestBuilder(@jakarta.annotation.Nonnull final Strin * Read properties and relationships of the deviceAppManagement object. * @return a {@link DeviceAppManagement} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public DeviceAppManagement get() { @@ -186,7 +186,7 @@ public DeviceAppManagement get() { * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link DeviceAppManagement} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public DeviceAppManagement get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { diff --git a/src/main/java/com/microsoft/graph/generated/deviceappmanagement/managedapppolicies/ManagedAppPoliciesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/deviceappmanagement/managedapppolicies/ManagedAppPoliciesRequestBuilder.java index 3ab8f6dd84a..387e26d691d 100644 --- a/src/main/java/com/microsoft/graph/generated/deviceappmanagement/managedapppolicies/ManagedAppPoliciesRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/deviceappmanagement/managedapppolicies/ManagedAppPoliciesRequestBuilder.java @@ -60,21 +60,21 @@ public ManagedAppPoliciesRequestBuilder(@jakarta.annotation.Nonnull final String super(requestAdapter, "{+baseurl}/deviceAppManagement/managedAppPolicies{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * List properties and relationships of the managedAppProtection objects. + * List properties and relationships of the managedAppPolicy objects. * @return a {@link ManagedAppPolicyCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ManagedAppPolicyCollectionResponse get() { return get(null); } /** - * List properties and relationships of the managedAppProtection objects. + * List properties and relationships of the managedAppPolicy objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link ManagedAppPolicyCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ManagedAppPolicyCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -109,7 +109,7 @@ public ManagedAppPolicy post(@jakarta.annotation.Nonnull final ManagedAppPolicy return this.requestAdapter.send(requestInfo, errorMapping, ManagedAppPolicy::createFromDiscriminatorValue); } /** - * List properties and relationships of the managedAppProtection objects. + * List properties and relationships of the managedAppPolicy objects. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -117,7 +117,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * List properties and relationships of the managedAppProtection objects. + * List properties and relationships of the managedAppPolicy objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -163,7 +163,7 @@ public ManagedAppPoliciesRequestBuilder withUrl(@jakarta.annotation.Nonnull fina return new ManagedAppPoliciesRequestBuilder(rawUrl, requestAdapter); } /** - * List properties and relationships of the managedAppProtection objects. + * List properties and relationships of the managedAppPolicy objects. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/deviceappmanagement/managedapppolicies/item/ManagedAppPolicyItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/deviceappmanagement/managedapppolicies/item/ManagedAppPolicyItemRequestBuilder.java index df04745e902..11ee51ebda2 100644 --- a/src/main/java/com/microsoft/graph/generated/deviceappmanagement/managedapppolicies/item/ManagedAppPolicyItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/deviceappmanagement/managedapppolicies/item/ManagedAppPolicyItemRequestBuilder.java @@ -64,21 +64,21 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Read properties and relationships of the managedAppProtection object. + * Read properties and relationships of the managedAppConfiguration object. * @return a {@link ManagedAppPolicy} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ManagedAppPolicy get() { return get(null); } /** - * Read properties and relationships of the managedAppProtection object. + * Read properties and relationships of the managedAppConfiguration object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link ManagedAppPolicy} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ManagedAppPolicy get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -133,7 +133,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Read properties and relationships of the managedAppProtection object. + * Read properties and relationships of the managedAppConfiguration object. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -141,7 +141,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Read properties and relationships of the managedAppProtection object. + * Read properties and relationships of the managedAppConfiguration object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -193,7 +193,7 @@ public ManagedAppPolicyItemRequestBuilder withUrl(@jakarta.annotation.Nonnull fi public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Read properties and relationships of the managedAppProtection object. + * Read properties and relationships of the managedAppConfiguration object. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/deviceappmanagement/managedappregistrations/item/ManagedAppRegistrationItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/deviceappmanagement/managedappregistrations/item/ManagedAppRegistrationItemRequestBuilder.java index ca53a977492..1dd87be2ca1 100644 --- a/src/main/java/com/microsoft/graph/generated/deviceappmanagement/managedappregistrations/item/ManagedAppRegistrationItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/deviceappmanagement/managedappregistrations/item/ManagedAppRegistrationItemRequestBuilder.java @@ -82,21 +82,21 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Read properties and relationships of the iosManagedAppRegistration object. + * Read properties and relationships of the androidManagedAppRegistration object. * @return a {@link ManagedAppRegistration} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ManagedAppRegistration get() { return get(null); } /** - * Read properties and relationships of the iosManagedAppRegistration object. + * Read properties and relationships of the androidManagedAppRegistration object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link ManagedAppRegistration} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ManagedAppRegistration get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -151,7 +151,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Read properties and relationships of the iosManagedAppRegistration object. + * Read properties and relationships of the androidManagedAppRegistration object. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -159,7 +159,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Read properties and relationships of the iosManagedAppRegistration object. + * Read properties and relationships of the androidManagedAppRegistration object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -211,7 +211,7 @@ public ManagedAppRegistrationItemRequestBuilder withUrl(@jakarta.annotation.Nonn public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Read properties and relationships of the iosManagedAppRegistration object. + * Read properties and relationships of the androidManagedAppRegistration object. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/deviceappmanagement/managedebooks/ManagedEBooksRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/deviceappmanagement/managedebooks/ManagedEBooksRequestBuilder.java index 6de9a090186..1feef19f160 100644 --- a/src/main/java/com/microsoft/graph/generated/deviceappmanagement/managedebooks/ManagedEBooksRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/deviceappmanagement/managedebooks/ManagedEBooksRequestBuilder.java @@ -60,21 +60,21 @@ public ManagedEBooksRequestBuilder(@jakarta.annotation.Nonnull final String rawU super(requestAdapter, "{+baseurl}/deviceAppManagement/managedEBooks{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * List properties and relationships of the iosVppEBook objects. + * List properties and relationships of the managedEBook objects. * @return a {@link ManagedEBookCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ManagedEBookCollectionResponse get() { return get(null); } /** - * List properties and relationships of the iosVppEBook objects. + * List properties and relationships of the managedEBook objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link ManagedEBookCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ManagedEBookCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -111,7 +111,7 @@ public ManagedEBook post(@jakarta.annotation.Nonnull final ManagedEBook body, @j return this.requestAdapter.send(requestInfo, errorMapping, ManagedEBook::createFromDiscriminatorValue); } /** - * List properties and relationships of the iosVppEBook objects. + * List properties and relationships of the managedEBook objects. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -119,7 +119,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * List properties and relationships of the iosVppEBook objects. + * List properties and relationships of the managedEBook objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -165,7 +165,7 @@ public ManagedEBooksRequestBuilder withUrl(@jakarta.annotation.Nonnull final Str return new ManagedEBooksRequestBuilder(rawUrl, requestAdapter); } /** - * List properties and relationships of the iosVppEBook objects. + * List properties and relationships of the managedEBook objects. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/deviceappmanagement/managedebooks/item/ManagedEBookItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/deviceappmanagement/managedebooks/item/ManagedEBookItemRequestBuilder.java index 3da4d09187c..00043b597dd 100644 --- a/src/main/java/com/microsoft/graph/generated/deviceappmanagement/managedebooks/item/ManagedEBookItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/deviceappmanagement/managedebooks/item/ManagedEBookItemRequestBuilder.java @@ -102,21 +102,21 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Read properties and relationships of the managedEBook object. + * Read properties and relationships of the iosVppEBook object. * @return a {@link ManagedEBook} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ManagedEBook get() { return get(null); } /** - * Read properties and relationships of the managedEBook object. + * Read properties and relationships of the iosVppEBook object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link ManagedEBook} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ManagedEBook get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -173,7 +173,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Read properties and relationships of the managedEBook object. + * Read properties and relationships of the iosVppEBook object. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -181,7 +181,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Read properties and relationships of the managedEBook object. + * Read properties and relationships of the iosVppEBook object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -233,7 +233,7 @@ public ManagedEBookItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Read properties and relationships of the managedEBook object. + * Read properties and relationships of the iosVppEBook object. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/deviceappmanagement/managedebooks/item/assignments/AssignmentsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/deviceappmanagement/managedebooks/item/assignments/AssignmentsRequestBuilder.java index d181f8cdc00..052bddc9f6d 100644 --- a/src/main/java/com/microsoft/graph/generated/deviceappmanagement/managedebooks/item/assignments/AssignmentsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/deviceappmanagement/managedebooks/item/assignments/AssignmentsRequestBuilder.java @@ -60,21 +60,21 @@ public AssignmentsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl super(requestAdapter, "{+baseurl}/deviceAppManagement/managedEBooks/{managedEBook%2Did}/assignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * List properties and relationships of the managedEBookAssignment objects. + * List properties and relationships of the iosVppEBookAssignment objects. * @return a {@link ManagedEBookAssignmentCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ManagedEBookAssignmentCollectionResponse get() { return get(null); } /** - * List properties and relationships of the managedEBookAssignment objects. + * List properties and relationships of the iosVppEBookAssignment objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link ManagedEBookAssignmentCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ManagedEBookAssignmentCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -84,23 +84,23 @@ public ManagedEBookAssignmentCollectionResponse get(@jakarta.annotation.Nullable return this.requestAdapter.send(requestInfo, errorMapping, ManagedEBookAssignmentCollectionResponse::createFromDiscriminatorValue); } /** - * Create a new managedEBookAssignment object. + * Create a new iosVppEBookAssignment object. * @param body The request body * @return a {@link ManagedEBookAssignment} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ManagedEBookAssignment post(@jakarta.annotation.Nonnull final ManagedEBookAssignment body) { return post(body, null); } /** - * Create a new managedEBookAssignment object. + * Create a new iosVppEBookAssignment object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link ManagedEBookAssignment} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ManagedEBookAssignment post(@jakarta.annotation.Nonnull final ManagedEBookAssignment body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -111,7 +111,7 @@ public ManagedEBookAssignment post(@jakarta.annotation.Nonnull final ManagedEBoo return this.requestAdapter.send(requestInfo, errorMapping, ManagedEBookAssignment::createFromDiscriminatorValue); } /** - * List properties and relationships of the managedEBookAssignment objects. + * List properties and relationships of the iosVppEBookAssignment objects. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -119,7 +119,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * List properties and relationships of the managedEBookAssignment objects. + * List properties and relationships of the iosVppEBookAssignment objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -131,7 +131,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Create a new managedEBookAssignment object. + * Create a new iosVppEBookAssignment object. * @param body The request body * @return a {@link RequestInformation} */ @@ -140,7 +140,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Create a new managedEBookAssignment object. + * Create a new iosVppEBookAssignment object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} @@ -165,7 +165,7 @@ public AssignmentsRequestBuilder withUrl(@jakarta.annotation.Nonnull final Strin return new AssignmentsRequestBuilder(rawUrl, requestAdapter); } /** - * List properties and relationships of the managedEBookAssignment objects. + * List properties and relationships of the iosVppEBookAssignment objects. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/deviceappmanagement/managedebooks/item/assignments/item/ManagedEBookAssignmentItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/deviceappmanagement/managedebooks/item/assignments/item/ManagedEBookAssignmentItemRequestBuilder.java index ae058e48187..3e5f7f8f1d6 100644 --- a/src/main/java/com/microsoft/graph/generated/deviceappmanagement/managedebooks/item/assignments/item/ManagedEBookAssignmentItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/deviceappmanagement/managedebooks/item/assignments/item/ManagedEBookAssignmentItemRequestBuilder.java @@ -37,18 +37,18 @@ public ManagedEBookAssignmentItemRequestBuilder(@jakarta.annotation.Nonnull fina super(requestAdapter, "{+baseurl}/deviceAppManagement/managedEBooks/{managedEBook%2Did}/assignments/{managedEBookAssignment%2Did}{?%24expand,%24select}", rawUrl); } /** - * Deletes a managedEBookAssignment. + * Deletes a iosVppEBookAssignment. * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ public void delete() { delete(null); } /** - * Deletes a managedEBookAssignment. + * Deletes a iosVppEBookAssignment. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); @@ -57,21 +57,21 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Read properties and relationships of the managedEBookAssignment object. + * Read properties and relationships of the iosVppEBookAssignment object. * @return a {@link ManagedEBookAssignment} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ManagedEBookAssignment get() { return get(null); } /** - * Read properties and relationships of the managedEBookAssignment object. + * Read properties and relationships of the iosVppEBookAssignment object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link ManagedEBookAssignment} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ManagedEBookAssignment get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -108,7 +108,7 @@ public ManagedEBookAssignment patch(@jakarta.annotation.Nonnull final ManagedEBo return this.requestAdapter.send(requestInfo, errorMapping, ManagedEBookAssignment::createFromDiscriminatorValue); } /** - * Deletes a managedEBookAssignment. + * Deletes a iosVppEBookAssignment. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -116,7 +116,7 @@ public RequestInformation toDeleteRequestInformation() { return toDeleteRequestInformation(null); } /** - * Deletes a managedEBookAssignment. + * Deletes a iosVppEBookAssignment. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -128,7 +128,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Read properties and relationships of the managedEBookAssignment object. + * Read properties and relationships of the iosVppEBookAssignment object. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -136,7 +136,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Read properties and relationships of the managedEBookAssignment object. + * Read properties and relationships of the iosVppEBookAssignment object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -188,7 +188,7 @@ public ManagedEBookAssignmentItemRequestBuilder withUrl(@jakarta.annotation.Nonn public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Read properties and relationships of the managedEBookAssignment object. + * Read properties and relationships of the iosVppEBookAssignment object. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/deviceappmanagement/mobileappconfigurations/MobileAppConfigurationsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/deviceappmanagement/mobileappconfigurations/MobileAppConfigurationsRequestBuilder.java index 3cc067de2c2..f9c0bd81a31 100644 --- a/src/main/java/com/microsoft/graph/generated/deviceappmanagement/mobileappconfigurations/MobileAppConfigurationsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/deviceappmanagement/mobileappconfigurations/MobileAppConfigurationsRequestBuilder.java @@ -60,21 +60,21 @@ public MobileAppConfigurationsRequestBuilder(@jakarta.annotation.Nonnull final S super(requestAdapter, "{+baseurl}/deviceAppManagement/mobileAppConfigurations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * List properties and relationships of the iosMobileAppConfiguration objects. + * List properties and relationships of the managedDeviceMobileAppConfiguration objects. * @return a {@link ManagedDeviceMobileAppConfigurationCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ManagedDeviceMobileAppConfigurationCollectionResponse get() { return get(null); } /** - * List properties and relationships of the iosMobileAppConfiguration objects. + * List properties and relationships of the managedDeviceMobileAppConfiguration objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link ManagedDeviceMobileAppConfigurationCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ManagedDeviceMobileAppConfigurationCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -111,7 +111,7 @@ public ManagedDeviceMobileAppConfiguration post(@jakarta.annotation.Nonnull fina return this.requestAdapter.send(requestInfo, errorMapping, ManagedDeviceMobileAppConfiguration::createFromDiscriminatorValue); } /** - * List properties and relationships of the iosMobileAppConfiguration objects. + * List properties and relationships of the managedDeviceMobileAppConfiguration objects. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -119,7 +119,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * List properties and relationships of the iosMobileAppConfiguration objects. + * List properties and relationships of the managedDeviceMobileAppConfiguration objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -165,7 +165,7 @@ public MobileAppConfigurationsRequestBuilder withUrl(@jakarta.annotation.Nonnull return new MobileAppConfigurationsRequestBuilder(rawUrl, requestAdapter); } /** - * List properties and relationships of the iosMobileAppConfiguration objects. + * List properties and relationships of the managedDeviceMobileAppConfiguration objects. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/deviceappmanagement/mobileapps/MobileAppsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/deviceappmanagement/mobileapps/MobileAppsRequestBuilder.java index fad87b95190..d7b2dc7c379 100644 --- a/src/main/java/com/microsoft/graph/generated/deviceappmanagement/mobileapps/MobileAppsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/deviceappmanagement/mobileapps/MobileAppsRequestBuilder.java @@ -204,21 +204,21 @@ public MobileAppsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, super(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * List properties and relationships of the microsoftStoreForBusinessApp objects. + * List properties and relationships of the androidLobApp objects. * @return a {@link MobileAppCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public MobileAppCollectionResponse get() { return get(null); } /** - * List properties and relationships of the microsoftStoreForBusinessApp objects. + * List properties and relationships of the androidLobApp objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link MobileAppCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public MobileAppCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -228,23 +228,23 @@ public MobileAppCollectionResponse get(@jakarta.annotation.Nullable final java.u return this.requestAdapter.send(requestInfo, errorMapping, MobileAppCollectionResponse::createFromDiscriminatorValue); } /** - * Create a new managedIOSLobApp object. + * Create a new macOSLobApp object. * @param body The request body * @return a {@link MobileApp} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public MobileApp post(@jakarta.annotation.Nonnull final MobileApp body) { return post(body, null); } /** - * Create a new managedIOSLobApp object. + * Create a new macOSLobApp object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link MobileApp} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public MobileApp post(@jakarta.annotation.Nonnull final MobileApp body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -255,7 +255,7 @@ public MobileApp post(@jakarta.annotation.Nonnull final MobileApp body, @jakarta return this.requestAdapter.send(requestInfo, errorMapping, MobileApp::createFromDiscriminatorValue); } /** - * List properties and relationships of the microsoftStoreForBusinessApp objects. + * List properties and relationships of the androidLobApp objects. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -263,7 +263,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * List properties and relationships of the microsoftStoreForBusinessApp objects. + * List properties and relationships of the androidLobApp objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -275,7 +275,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Create a new managedIOSLobApp object. + * Create a new macOSLobApp object. * @param body The request body * @return a {@link RequestInformation} */ @@ -284,7 +284,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Create a new managedIOSLobApp object. + * Create a new macOSLobApp object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} @@ -309,7 +309,7 @@ public MobileAppsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String return new MobileAppsRequestBuilder(rawUrl, requestAdapter); } /** - * List properties and relationships of the microsoftStoreForBusinessApp objects. + * List properties and relationships of the androidLobApp objects. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/deviceappmanagement/mobileapps/item/MobileAppItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/deviceappmanagement/mobileapps/item/MobileAppItemRequestBuilder.java index 84e758f73a6..5d423b3d68a 100644 --- a/src/main/java/com/microsoft/graph/generated/deviceappmanagement/mobileapps/item/MobileAppItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/deviceappmanagement/mobileapps/item/MobileAppItemRequestBuilder.java @@ -208,18 +208,18 @@ public MobileAppItemRequestBuilder(@jakarta.annotation.Nonnull final String rawU super(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}{?%24expand,%24select}", rawUrl); } /** - * Deletes a iosStoreApp. + * Deletes a iosiPadOSWebClip. * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ public void delete() { delete(null); } /** - * Deletes a iosStoreApp. + * Deletes a iosiPadOSWebClip. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); @@ -228,21 +228,21 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Read properties and relationships of the managedAndroidStoreApp object. + * Read properties and relationships of the mobileLobApp object. * @return a {@link MobileApp} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public MobileApp get() { return get(null); } /** - * Read properties and relationships of the managedAndroidStoreApp object. + * Read properties and relationships of the mobileLobApp object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link MobileApp} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public MobileApp get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -279,7 +279,7 @@ public MobileApp patch(@jakarta.annotation.Nonnull final MobileApp body, @jakart return this.requestAdapter.send(requestInfo, errorMapping, MobileApp::createFromDiscriminatorValue); } /** - * Deletes a iosStoreApp. + * Deletes a iosiPadOSWebClip. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -287,7 +287,7 @@ public RequestInformation toDeleteRequestInformation() { return toDeleteRequestInformation(null); } /** - * Deletes a iosStoreApp. + * Deletes a iosiPadOSWebClip. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -299,7 +299,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Read properties and relationships of the managedAndroidStoreApp object. + * Read properties and relationships of the mobileLobApp object. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -307,7 +307,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Read properties and relationships of the managedAndroidStoreApp object. + * Read properties and relationships of the mobileLobApp object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -359,7 +359,7 @@ public MobileAppItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final Str public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Read properties and relationships of the managedAndroidStoreApp object. + * Read properties and relationships of the mobileLobApp object. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/devicemanagement/DeviceManagementRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/devicemanagement/DeviceManagementRequestBuilder.java index b77a811a765..a86b0e88016 100644 --- a/src/main/java/com/microsoft/graph/generated/devicemanagement/DeviceManagementRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/devicemanagement/DeviceManagementRequestBuilder.java @@ -573,7 +573,7 @@ public DeviceManagementRequestBuilder(@jakarta.annotation.Nonnull final String r * Read properties and relationships of the deviceManagement object. * @return a {@link DeviceManagement} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public DeviceManagement get() { @@ -584,7 +584,7 @@ public DeviceManagement get() { * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link DeviceManagement} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public DeviceManagement get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -608,7 +608,7 @@ public GetEffectivePermissionsWithScopeRequestBuilder getEffectivePermissionsWit * @param body The request body * @return a {@link DeviceManagement} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public DeviceManagement patch(@jakarta.annotation.Nonnull final DeviceManagement body) { @@ -620,7 +620,7 @@ public DeviceManagement patch(@jakarta.annotation.Nonnull final DeviceManagement * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link DeviceManagement} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public DeviceManagement patch(@jakarta.annotation.Nonnull final DeviceManagement body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { diff --git a/src/main/java/com/microsoft/graph/generated/devicemanagement/devicecompliancepolicies/DeviceCompliancePoliciesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/devicemanagement/devicecompliancepolicies/DeviceCompliancePoliciesRequestBuilder.java index 403dce708f8..c3fc11e7c81 100644 --- a/src/main/java/com/microsoft/graph/generated/devicemanagement/devicecompliancepolicies/DeviceCompliancePoliciesRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/devicemanagement/devicecompliancepolicies/DeviceCompliancePoliciesRequestBuilder.java @@ -60,21 +60,21 @@ public DeviceCompliancePoliciesRequestBuilder(@jakarta.annotation.Nonnull final super(requestAdapter, "{+baseurl}/deviceManagement/deviceCompliancePolicies{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * List properties and relationships of the androidCompliancePolicy objects. + * List properties and relationships of the deviceCompliancePolicy objects. * @return a {@link DeviceCompliancePolicyCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public DeviceCompliancePolicyCollectionResponse get() { return get(null); } /** - * List properties and relationships of the androidCompliancePolicy objects. + * List properties and relationships of the deviceCompliancePolicy objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link DeviceCompliancePolicyCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public DeviceCompliancePolicyCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -84,23 +84,23 @@ public DeviceCompliancePolicyCollectionResponse get(@jakarta.annotation.Nullable return this.requestAdapter.send(requestInfo, errorMapping, DeviceCompliancePolicyCollectionResponse::createFromDiscriminatorValue); } /** - * Create a new iosCompliancePolicy object. + * Create a new androidCompliancePolicy object. * @param body The request body * @return a {@link DeviceCompliancePolicy} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public DeviceCompliancePolicy post(@jakarta.annotation.Nonnull final DeviceCompliancePolicy body) { return post(body, null); } /** - * Create a new iosCompliancePolicy object. + * Create a new androidCompliancePolicy object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link DeviceCompliancePolicy} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public DeviceCompliancePolicy post(@jakarta.annotation.Nonnull final DeviceCompliancePolicy body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -111,7 +111,7 @@ public DeviceCompliancePolicy post(@jakarta.annotation.Nonnull final DeviceCompl return this.requestAdapter.send(requestInfo, errorMapping, DeviceCompliancePolicy::createFromDiscriminatorValue); } /** - * List properties and relationships of the androidCompliancePolicy objects. + * List properties and relationships of the deviceCompliancePolicy objects. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -119,7 +119,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * List properties and relationships of the androidCompliancePolicy objects. + * List properties and relationships of the deviceCompliancePolicy objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -131,7 +131,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Create a new iosCompliancePolicy object. + * Create a new androidCompliancePolicy object. * @param body The request body * @return a {@link RequestInformation} */ @@ -140,7 +140,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Create a new iosCompliancePolicy object. + * Create a new androidCompliancePolicy object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} @@ -165,7 +165,7 @@ public DeviceCompliancePoliciesRequestBuilder withUrl(@jakarta.annotation.Nonnul return new DeviceCompliancePoliciesRequestBuilder(rawUrl, requestAdapter); } /** - * List properties and relationships of the androidCompliancePolicy objects. + * List properties and relationships of the deviceCompliancePolicy objects. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/devicemanagement/devicecompliancepolicies/item/DeviceCompliancePolicyItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/devicemanagement/devicecompliancepolicies/item/DeviceCompliancePolicyItemRequestBuilder.java index 3bd534fadef..4af6c4cd2c3 100644 --- a/src/main/java/com/microsoft/graph/generated/devicemanagement/devicecompliancepolicies/item/DeviceCompliancePolicyItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/devicemanagement/devicecompliancepolicies/item/DeviceCompliancePolicyItemRequestBuilder.java @@ -118,18 +118,18 @@ public DeviceCompliancePolicyItemRequestBuilder(@jakarta.annotation.Nonnull fina super(requestAdapter, "{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}{?%24expand,%24select}", rawUrl); } /** - * Deletes a androidWorkProfileCompliancePolicy. + * Deletes a androidCompliancePolicy. * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ public void delete() { delete(null); } /** - * Deletes a androidWorkProfileCompliancePolicy. + * Deletes a androidCompliancePolicy. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); @@ -138,21 +138,21 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Read properties and relationships of the iosCompliancePolicy object. + * Read properties and relationships of the windows10CompliancePolicy object. * @return a {@link DeviceCompliancePolicy} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public DeviceCompliancePolicy get() { return get(null); } /** - * Read properties and relationships of the iosCompliancePolicy object. + * Read properties and relationships of the windows10CompliancePolicy object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link DeviceCompliancePolicy} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public DeviceCompliancePolicy get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -162,23 +162,23 @@ public DeviceCompliancePolicy get(@jakarta.annotation.Nullable final java.util.f return this.requestAdapter.send(requestInfo, errorMapping, DeviceCompliancePolicy::createFromDiscriminatorValue); } /** - * Update the properties of a androidWorkProfileCompliancePolicy object. + * Update the properties of a windows10CompliancePolicy object. * @param body The request body * @return a {@link DeviceCompliancePolicy} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public DeviceCompliancePolicy patch(@jakarta.annotation.Nonnull final DeviceCompliancePolicy body) { return patch(body, null); } /** - * Update the properties of a androidWorkProfileCompliancePolicy object. + * Update the properties of a windows10CompliancePolicy object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link DeviceCompliancePolicy} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public DeviceCompliancePolicy patch(@jakarta.annotation.Nonnull final DeviceCompliancePolicy body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -189,7 +189,7 @@ public DeviceCompliancePolicy patch(@jakarta.annotation.Nonnull final DeviceComp return this.requestAdapter.send(requestInfo, errorMapping, DeviceCompliancePolicy::createFromDiscriminatorValue); } /** - * Deletes a androidWorkProfileCompliancePolicy. + * Deletes a androidCompliancePolicy. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -197,7 +197,7 @@ public RequestInformation toDeleteRequestInformation() { return toDeleteRequestInformation(null); } /** - * Deletes a androidWorkProfileCompliancePolicy. + * Deletes a androidCompliancePolicy. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -209,7 +209,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Read properties and relationships of the iosCompliancePolicy object. + * Read properties and relationships of the windows10CompliancePolicy object. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -217,7 +217,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Read properties and relationships of the iosCompliancePolicy object. + * Read properties and relationships of the windows10CompliancePolicy object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -229,7 +229,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Update the properties of a androidWorkProfileCompliancePolicy object. + * Update the properties of a windows10CompliancePolicy object. * @param body The request body * @return a {@link RequestInformation} */ @@ -238,7 +238,7 @@ public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull return toPatchRequestInformation(body, null); } /** - * Update the properties of a androidWorkProfileCompliancePolicy object. + * Update the properties of a windows10CompliancePolicy object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} @@ -269,7 +269,7 @@ public DeviceCompliancePolicyItemRequestBuilder withUrl(@jakarta.annotation.Nonn public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Read properties and relationships of the iosCompliancePolicy object. + * Read properties and relationships of the windows10CompliancePolicy object. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/devicemanagement/deviceconfigurations/DeviceConfigurationsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/devicemanagement/deviceconfigurations/DeviceConfigurationsRequestBuilder.java index 7fcb05f9d56..b8ca495bd52 100644 --- a/src/main/java/com/microsoft/graph/generated/devicemanagement/deviceconfigurations/DeviceConfigurationsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/devicemanagement/deviceconfigurations/DeviceConfigurationsRequestBuilder.java @@ -60,21 +60,21 @@ public DeviceConfigurationsRequestBuilder(@jakarta.annotation.Nonnull final Stri super(requestAdapter, "{+baseurl}/deviceManagement/deviceConfigurations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * List properties and relationships of the windows10TeamGeneralConfiguration objects. + * List properties and relationships of the androidCustomConfiguration objects. * @return a {@link DeviceConfigurationCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public DeviceConfigurationCollectionResponse get() { return get(null); } /** - * List properties and relationships of the windows10TeamGeneralConfiguration objects. + * List properties and relationships of the androidCustomConfiguration objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link DeviceConfigurationCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public DeviceConfigurationCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -84,23 +84,23 @@ public DeviceConfigurationCollectionResponse get(@jakarta.annotation.Nullable fi return this.requestAdapter.send(requestInfo, errorMapping, DeviceConfigurationCollectionResponse::createFromDiscriminatorValue); } /** - * Create a new androidWorkProfileCustomConfiguration object. + * Create a new editionUpgradeConfiguration object. * @param body The request body * @return a {@link DeviceConfiguration} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public DeviceConfiguration post(@jakarta.annotation.Nonnull final DeviceConfiguration body) { return post(body, null); } /** - * Create a new androidWorkProfileCustomConfiguration object. + * Create a new editionUpgradeConfiguration object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link DeviceConfiguration} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public DeviceConfiguration post(@jakarta.annotation.Nonnull final DeviceConfiguration body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -111,7 +111,7 @@ public DeviceConfiguration post(@jakarta.annotation.Nonnull final DeviceConfigur return this.requestAdapter.send(requestInfo, errorMapping, DeviceConfiguration::createFromDiscriminatorValue); } /** - * List properties and relationships of the windows10TeamGeneralConfiguration objects. + * List properties and relationships of the androidCustomConfiguration objects. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -119,7 +119,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * List properties and relationships of the windows10TeamGeneralConfiguration objects. + * List properties and relationships of the androidCustomConfiguration objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -131,7 +131,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Create a new androidWorkProfileCustomConfiguration object. + * Create a new editionUpgradeConfiguration object. * @param body The request body * @return a {@link RequestInformation} */ @@ -140,7 +140,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Create a new androidWorkProfileCustomConfiguration object. + * Create a new editionUpgradeConfiguration object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} @@ -165,7 +165,7 @@ public DeviceConfigurationsRequestBuilder withUrl(@jakarta.annotation.Nonnull fi return new DeviceConfigurationsRequestBuilder(rawUrl, requestAdapter); } /** - * List properties and relationships of the windows10TeamGeneralConfiguration objects. + * List properties and relationships of the androidCustomConfiguration objects. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/devicemanagement/deviceconfigurations/item/DeviceConfigurationItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/devicemanagement/deviceconfigurations/item/DeviceConfigurationItemRequestBuilder.java index 2b8f6184cd2..8f29bc0eeca 100644 --- a/src/main/java/com/microsoft/graph/generated/devicemanagement/deviceconfigurations/item/DeviceConfigurationItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/devicemanagement/deviceconfigurations/item/DeviceConfigurationItemRequestBuilder.java @@ -101,18 +101,18 @@ public DeviceConfigurationItemRequestBuilder(@jakarta.annotation.Nonnull final S super(requestAdapter, "{+baseurl}/deviceManagement/deviceConfigurations/{deviceConfiguration%2Did}{?%24expand,%24select}", rawUrl); } /** - * Deletes a windowsPhone81GeneralConfiguration. + * Deletes a iosGeneralDeviceConfiguration. * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ public void delete() { delete(null); } /** - * Deletes a windowsPhone81GeneralConfiguration. + * Deletes a iosGeneralDeviceConfiguration. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); @@ -121,21 +121,21 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Read properties and relationships of the windowsUpdateForBusinessConfiguration object. + * Read properties and relationships of the deviceConfiguration object. * @return a {@link DeviceConfiguration} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public DeviceConfiguration get() { return get(null); } /** - * Read properties and relationships of the windowsUpdateForBusinessConfiguration object. + * Read properties and relationships of the deviceConfiguration object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link DeviceConfiguration} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public DeviceConfiguration get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -155,23 +155,23 @@ public GetOmaSettingPlainTextValueWithSecretReferenceValueIdRequestBuilder getOm return new GetOmaSettingPlainTextValueWithSecretReferenceValueIdRequestBuilder(pathParameters, requestAdapter, secretReferenceValueId); } /** - * Update the properties of a iosGeneralDeviceConfiguration object. + * Update the properties of a windows81GeneralConfiguration object. * @param body The request body * @return a {@link DeviceConfiguration} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public DeviceConfiguration patch(@jakarta.annotation.Nonnull final DeviceConfiguration body) { return patch(body, null); } /** - * Update the properties of a iosGeneralDeviceConfiguration object. + * Update the properties of a windows81GeneralConfiguration object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link DeviceConfiguration} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public DeviceConfiguration patch(@jakarta.annotation.Nonnull final DeviceConfiguration body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -182,7 +182,7 @@ public DeviceConfiguration patch(@jakarta.annotation.Nonnull final DeviceConfigu return this.requestAdapter.send(requestInfo, errorMapping, DeviceConfiguration::createFromDiscriminatorValue); } /** - * Deletes a windowsPhone81GeneralConfiguration. + * Deletes a iosGeneralDeviceConfiguration. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -190,7 +190,7 @@ public RequestInformation toDeleteRequestInformation() { return toDeleteRequestInformation(null); } /** - * Deletes a windowsPhone81GeneralConfiguration. + * Deletes a iosGeneralDeviceConfiguration. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -202,7 +202,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Read properties and relationships of the windowsUpdateForBusinessConfiguration object. + * Read properties and relationships of the deviceConfiguration object. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -210,7 +210,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Read properties and relationships of the windowsUpdateForBusinessConfiguration object. + * Read properties and relationships of the deviceConfiguration object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -222,7 +222,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Update the properties of a iosGeneralDeviceConfiguration object. + * Update the properties of a windows81GeneralConfiguration object. * @param body The request body * @return a {@link RequestInformation} */ @@ -231,7 +231,7 @@ public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull return toPatchRequestInformation(body, null); } /** - * Update the properties of a iosGeneralDeviceConfiguration object. + * Update the properties of a windows81GeneralConfiguration object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} @@ -262,7 +262,7 @@ public DeviceConfigurationItemRequestBuilder withUrl(@jakarta.annotation.Nonnull public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Read properties and relationships of the windowsUpdateForBusinessConfiguration object. + * Read properties and relationships of the deviceConfiguration object. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/devicemanagement/deviceenrollmentconfigurations/DeviceEnrollmentConfigurationsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/devicemanagement/deviceenrollmentconfigurations/DeviceEnrollmentConfigurationsRequestBuilder.java index 5b4a878d862..83ecd118232 100644 --- a/src/main/java/com/microsoft/graph/generated/devicemanagement/deviceenrollmentconfigurations/DeviceEnrollmentConfigurationsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/devicemanagement/deviceenrollmentconfigurations/DeviceEnrollmentConfigurationsRequestBuilder.java @@ -60,21 +60,21 @@ public DeviceEnrollmentConfigurationsRequestBuilder(@jakarta.annotation.Nonnull super(requestAdapter, "{+baseurl}/deviceManagement/deviceEnrollmentConfigurations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * List properties and relationships of the deviceEnrollmentConfiguration objects. + * List properties and relationships of the deviceEnrollmentWindowsHelloForBusinessConfiguration objects. * @return a {@link DeviceEnrollmentConfigurationCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public DeviceEnrollmentConfigurationCollectionResponse get() { return get(null); } /** - * List properties and relationships of the deviceEnrollmentConfiguration objects. + * List properties and relationships of the deviceEnrollmentWindowsHelloForBusinessConfiguration objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link DeviceEnrollmentConfigurationCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public DeviceEnrollmentConfigurationCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -111,7 +111,7 @@ public DeviceEnrollmentConfiguration post(@jakarta.annotation.Nonnull final Devi return this.requestAdapter.send(requestInfo, errorMapping, DeviceEnrollmentConfiguration::createFromDiscriminatorValue); } /** - * List properties and relationships of the deviceEnrollmentConfiguration objects. + * List properties and relationships of the deviceEnrollmentWindowsHelloForBusinessConfiguration objects. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -119,7 +119,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * List properties and relationships of the deviceEnrollmentConfiguration objects. + * List properties and relationships of the deviceEnrollmentWindowsHelloForBusinessConfiguration objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -165,7 +165,7 @@ public DeviceEnrollmentConfigurationsRequestBuilder withUrl(@jakarta.annotation. return new DeviceEnrollmentConfigurationsRequestBuilder(rawUrl, requestAdapter); } /** - * List properties and relationships of the deviceEnrollmentConfiguration objects. + * List properties and relationships of the deviceEnrollmentWindowsHelloForBusinessConfiguration objects. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/devicemanagement/deviceenrollmentconfigurations/item/DeviceEnrollmentConfigurationItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/devicemanagement/deviceenrollmentconfigurations/item/DeviceEnrollmentConfigurationItemRequestBuilder.java index d6d73ebe436..c2646000d1a 100644 --- a/src/main/java/com/microsoft/graph/generated/devicemanagement/deviceenrollmentconfigurations/item/DeviceEnrollmentConfigurationItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/devicemanagement/deviceenrollmentconfigurations/item/DeviceEnrollmentConfigurationItemRequestBuilder.java @@ -64,18 +64,18 @@ public DeviceEnrollmentConfigurationItemRequestBuilder(@jakarta.annotation.Nonnu super(requestAdapter, "{+baseurl}/deviceManagement/deviceEnrollmentConfigurations/{deviceEnrollmentConfiguration%2Did}{?%24expand,%24select}", rawUrl); } /** - * Deletes a deviceEnrollmentLimitConfiguration. + * Deletes a deviceEnrollmentWindowsHelloForBusinessConfiguration. * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ public void delete() { delete(null); } /** - * Deletes a deviceEnrollmentLimitConfiguration. + * Deletes a deviceEnrollmentWindowsHelloForBusinessConfiguration. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); @@ -84,21 +84,21 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Read properties and relationships of the deviceEnrollmentConfiguration object. + * Read properties and relationships of the deviceEnrollmentPlatformRestrictionsConfiguration object. * @return a {@link DeviceEnrollmentConfiguration} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public DeviceEnrollmentConfiguration get() { return get(null); } /** - * Read properties and relationships of the deviceEnrollmentConfiguration object. + * Read properties and relationships of the deviceEnrollmentPlatformRestrictionsConfiguration object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link DeviceEnrollmentConfiguration} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public DeviceEnrollmentConfiguration get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -135,7 +135,7 @@ public DeviceEnrollmentConfiguration patch(@jakarta.annotation.Nonnull final Dev return this.requestAdapter.send(requestInfo, errorMapping, DeviceEnrollmentConfiguration::createFromDiscriminatorValue); } /** - * Deletes a deviceEnrollmentLimitConfiguration. + * Deletes a deviceEnrollmentWindowsHelloForBusinessConfiguration. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -143,7 +143,7 @@ public RequestInformation toDeleteRequestInformation() { return toDeleteRequestInformation(null); } /** - * Deletes a deviceEnrollmentLimitConfiguration. + * Deletes a deviceEnrollmentWindowsHelloForBusinessConfiguration. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -155,7 +155,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Read properties and relationships of the deviceEnrollmentConfiguration object. + * Read properties and relationships of the deviceEnrollmentPlatformRestrictionsConfiguration object. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -163,7 +163,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Read properties and relationships of the deviceEnrollmentConfiguration object. + * Read properties and relationships of the deviceEnrollmentPlatformRestrictionsConfiguration object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -215,7 +215,7 @@ public DeviceEnrollmentConfigurationItemRequestBuilder withUrl(@jakarta.annotati public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Read properties and relationships of the deviceEnrollmentConfiguration object. + * Read properties and relationships of the deviceEnrollmentPlatformRestrictionsConfiguration object. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/devicemanagement/roledefinitions/RoleDefinitionsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/devicemanagement/roledefinitions/RoleDefinitionsRequestBuilder.java index 60b43bbbe65..e5c4885e811 100644 --- a/src/main/java/com/microsoft/graph/generated/devicemanagement/roledefinitions/RoleDefinitionsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/devicemanagement/roledefinitions/RoleDefinitionsRequestBuilder.java @@ -60,21 +60,21 @@ public RoleDefinitionsRequestBuilder(@jakarta.annotation.Nonnull final String ra super(requestAdapter, "{+baseurl}/deviceManagement/roleDefinitions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * List properties and relationships of the deviceAndAppManagementRoleDefinition objects. + * List properties and relationships of the roleDefinition objects. * @return a {@link RoleDefinitionCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public RoleDefinitionCollectionResponse get() { return get(null); } /** - * List properties and relationships of the deviceAndAppManagementRoleDefinition objects. + * List properties and relationships of the roleDefinition objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RoleDefinitionCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public RoleDefinitionCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -111,7 +111,7 @@ public RoleDefinition post(@jakarta.annotation.Nonnull final RoleDefinition body return this.requestAdapter.send(requestInfo, errorMapping, RoleDefinition::createFromDiscriminatorValue); } /** - * List properties and relationships of the deviceAndAppManagementRoleDefinition objects. + * List properties and relationships of the roleDefinition objects. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -119,7 +119,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * List properties and relationships of the deviceAndAppManagementRoleDefinition objects. + * List properties and relationships of the roleDefinition objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -165,7 +165,7 @@ public RoleDefinitionsRequestBuilder withUrl(@jakarta.annotation.Nonnull final S return new RoleDefinitionsRequestBuilder(rawUrl, requestAdapter); } /** - * List properties and relationships of the deviceAndAppManagementRoleDefinition objects. + * List properties and relationships of the roleDefinition objects. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/VirtualEndpointRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/VirtualEndpointRequestBuilder.java index 290a53f2a84..37474015a9f 100644 --- a/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/VirtualEndpointRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/VirtualEndpointRequestBuilder.java @@ -1,5 +1,12 @@ package com.microsoft.graph.devicemanagement.virtualendpoint; +import com.microsoft.graph.devicemanagement.virtualendpoint.auditevents.AuditEventsRequestBuilder; +import com.microsoft.graph.devicemanagement.virtualendpoint.cloudpcs.CloudPCsRequestBuilder; +import com.microsoft.graph.devicemanagement.virtualendpoint.deviceimages.DeviceImagesRequestBuilder; +import com.microsoft.graph.devicemanagement.virtualendpoint.galleryimages.GalleryImagesRequestBuilder; +import com.microsoft.graph.devicemanagement.virtualendpoint.onpremisesconnections.OnPremisesConnectionsRequestBuilder; +import com.microsoft.graph.devicemanagement.virtualendpoint.provisioningpolicies.ProvisioningPoliciesRequestBuilder; +import com.microsoft.graph.devicemanagement.virtualendpoint.usersettings.UserSettingsRequestBuilder; import com.microsoft.graph.models.odataerrors.ODataError; import com.microsoft.graph.models.VirtualEndpoint; import com.microsoft.kiota.BaseRequestBuilder; @@ -20,6 +27,62 @@ */ @jakarta.annotation.Generated("com.microsoft.kiota") public class VirtualEndpointRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to manage the auditEvents property of the microsoft.graph.virtualEndpoint entity. + * @return a {@link AuditEventsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public AuditEventsRequestBuilder auditEvents() { + return new AuditEventsRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to manage the cloudPCs property of the microsoft.graph.virtualEndpoint entity. + * @return a {@link CloudPCsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CloudPCsRequestBuilder cloudPCs() { + return new CloudPCsRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to manage the deviceImages property of the microsoft.graph.virtualEndpoint entity. + * @return a {@link DeviceImagesRequestBuilder} + */ + @jakarta.annotation.Nonnull + public DeviceImagesRequestBuilder deviceImages() { + return new DeviceImagesRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to manage the galleryImages property of the microsoft.graph.virtualEndpoint entity. + * @return a {@link GalleryImagesRequestBuilder} + */ + @jakarta.annotation.Nonnull + public GalleryImagesRequestBuilder galleryImages() { + return new GalleryImagesRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to manage the onPremisesConnections property of the microsoft.graph.virtualEndpoint entity. + * @return a {@link OnPremisesConnectionsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public OnPremisesConnectionsRequestBuilder onPremisesConnections() { + return new OnPremisesConnectionsRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to manage the provisioningPolicies property of the microsoft.graph.virtualEndpoint entity. + * @return a {@link ProvisioningPoliciesRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ProvisioningPoliciesRequestBuilder provisioningPolicies() { + return new ProvisioningPoliciesRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to manage the userSettings property of the microsoft.graph.virtualEndpoint entity. + * @return a {@link UserSettingsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public UserSettingsRequestBuilder userSettings() { + return new UserSettingsRequestBuilder(pathParameters, requestAdapter); + } /** * Instantiates a new {@link VirtualEndpointRequestBuilder} and sets the default values. * @param pathParameters Path parameters for the request @@ -55,7 +118,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Get virtualEndpoint from deviceManagement + * Virtual endpoint * @return a {@link VirtualEndpoint} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -64,7 +127,7 @@ public VirtualEndpoint get() { return get(null); } /** - * Get virtualEndpoint from deviceManagement + * Virtual endpoint * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link VirtualEndpoint} * @throws ODataError When receiving a 4XX or 5XX status code @@ -122,7 +185,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Get virtualEndpoint from deviceManagement + * Virtual endpoint * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -130,7 +193,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Get virtualEndpoint from deviceManagement + * Virtual endpoint * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -182,7 +245,7 @@ public VirtualEndpointRequestBuilder withUrl(@jakarta.annotation.Nonnull final S public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Get virtualEndpoint from deviceManagement + * Virtual endpoint */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/auditevents/AuditEventsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/auditevents/AuditEventsRequestBuilder.java new file mode 100644 index 00000000000..c6dabf59bf1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/auditevents/AuditEventsRequestBuilder.java @@ -0,0 +1,254 @@ +package com.microsoft.graph.devicemanagement.virtualendpoint.auditevents; + +import com.microsoft.graph.devicemanagement.virtualendpoint.auditevents.count.CountRequestBuilder; +import com.microsoft.graph.devicemanagement.virtualendpoint.auditevents.getauditactivitytypes.GetAuditActivityTypesRequestBuilder; +import com.microsoft.graph.devicemanagement.virtualendpoint.auditevents.item.CloudPcAuditEventItemRequestBuilder; +import com.microsoft.graph.models.CloudPcAuditEvent; +import com.microsoft.graph.models.CloudPcAuditEventCollectionResponse; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the auditEvents property of the microsoft.graph.virtualEndpoint entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class AuditEventsRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to count the resources in the collection. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder count() { + return new CountRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to call the getAuditActivityTypes method. + * @return a {@link GetAuditActivityTypesRequestBuilder} + */ + @jakarta.annotation.Nonnull + public GetAuditActivityTypesRequestBuilder getAuditActivityTypes() { + return new GetAuditActivityTypesRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to manage the auditEvents property of the microsoft.graph.virtualEndpoint entity. + * @param cloudPcAuditEventId The unique identifier of cloudPcAuditEvent + * @return a {@link CloudPcAuditEventItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CloudPcAuditEventItemRequestBuilder byCloudPcAuditEventId(@jakarta.annotation.Nonnull final String cloudPcAuditEventId) { + Objects.requireNonNull(cloudPcAuditEventId); + final HashMap urlTplParams = new HashMap(this.pathParameters); + urlTplParams.put("cloudPcAuditEvent%2Did", cloudPcAuditEventId); + return new CloudPcAuditEventItemRequestBuilder(urlTplParams, requestAdapter); + } + /** + * Instantiates a new {@link AuditEventsRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public AuditEventsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/auditEvents{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link AuditEventsRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public AuditEventsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/auditEvents{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * List all the cloudPcAuditEvent objects for the tenant. + * @return a {@link CloudPcAuditEventCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public CloudPcAuditEventCollectionResponse get() { + return get(null); + } + /** + * List all the cloudPcAuditEvent objects for the tenant. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link CloudPcAuditEventCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public CloudPcAuditEventCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, CloudPcAuditEventCollectionResponse::createFromDiscriminatorValue); + } + /** + * Create new navigation property to auditEvents for deviceManagement + * @param body The request body + * @return a {@link CloudPcAuditEvent} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public CloudPcAuditEvent post(@jakarta.annotation.Nonnull final CloudPcAuditEvent body) { + return post(body, null); + } + /** + * Create new navigation property to auditEvents for deviceManagement + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link CloudPcAuditEvent} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public CloudPcAuditEvent post(@jakarta.annotation.Nonnull final CloudPcAuditEvent body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, CloudPcAuditEvent::createFromDiscriminatorValue); + } + /** + * List all the cloudPcAuditEvent objects for the tenant. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * List all the cloudPcAuditEvent objects for the tenant. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Create new navigation property to auditEvents for deviceManagement + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CloudPcAuditEvent body) { + return toPostRequestInformation(body, null); + } + /** + * Create new navigation property to auditEvents for deviceManagement + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CloudPcAuditEvent body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, "{+baseurl}/deviceManagement/virtualEndpoint/auditEvents", pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link AuditEventsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public AuditEventsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new AuditEventsRequestBuilder(rawUrl, requestAdapter); + } + /** + * List all the cloudPcAuditEvent objects for the tenant. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Include count of items + */ + @jakarta.annotation.Nullable + public Boolean count; + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Order items by property values + */ + @jakarta.annotation.Nullable + public String[] orderby; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Skip the first n items + */ + @jakarta.annotation.Nullable + public Integer skip; + /** + * Show only the first n items + */ + @jakarta.annotation.Nullable + public Integer top; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24count", count); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + allQueryParams.put("%24skip", skip); + allQueryParams.put("%24top", top); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24orderby", orderby); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/auditevents/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/auditevents/count/CountRequestBuilder.java new file mode 100644 index 00000000000..e144a769888 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/auditevents/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +package com.microsoft.graph.devicemanagement.virtualendpoint.auditevents.count; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to count the resources in the collection. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CountRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/auditEvents/$count{?%24filter,%24search}", pathParameters); + } + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/auditEvents/$count{?%24filter,%24search}", rawUrl); + } + /** + * Get the number of the resource + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get() { + return get(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); + } + /** + * Get the number of the resource + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new CountRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get the number of the resource + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/auditevents/getauditactivitytypes/GetAuditActivityTypesGetResponse.java b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/auditevents/getauditactivitytypes/GetAuditActivityTypesGetResponse.java new file mode 100644 index 00000000000..e5360490542 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/auditevents/getauditactivitytypes/GetAuditActivityTypesGetResponse.java @@ -0,0 +1,62 @@ +package com.microsoft.graph.devicemanagement.virtualendpoint.auditevents.getauditactivitytypes; + +import com.microsoft.graph.models.BaseCollectionPaginationCountResponse; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class GetAuditActivityTypesGetResponse extends BaseCollectionPaginationCountResponse implements Parsable { + /** + * Instantiates a new {@link GetAuditActivityTypesGetResponse} and sets the default values. + */ + public GetAuditActivityTypesGetResponse() { + super(); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link GetAuditActivityTypesGetResponse} + */ + @jakarta.annotation.Nonnull + public static GetAuditActivityTypesGetResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new GetAuditActivityTypesGetResponse(); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("value", (n) -> { this.setValue(n.getCollectionOfPrimitiveValues(String.class)); }); + return deserializerMap; + } + /** + * Gets the value property value. The value property + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getValue() { + return this.backingStore.get("value"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + super.serialize(writer); + writer.writeCollectionOfPrimitiveValues("value", this.getValue()); + } + /** + * Sets the value property value. The value property + * @param value Value to set for the value property. + */ + public void setValue(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("value", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/auditevents/getauditactivitytypes/GetAuditActivityTypesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/auditevents/getauditactivitytypes/GetAuditActivityTypesRequestBuilder.java new file mode 100644 index 00000000000..dbb70f5c096 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/auditevents/getauditactivitytypes/GetAuditActivityTypesRequestBuilder.java @@ -0,0 +1,146 @@ +package com.microsoft.graph.devicemanagement.virtualendpoint.auditevents.getauditactivitytypes; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to call the getAuditActivityTypes method. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class GetAuditActivityTypesRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link GetAuditActivityTypesRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public GetAuditActivityTypesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/auditEvents/getAuditActivityTypes(){?%24count,%24filter,%24search,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link GetAuditActivityTypesRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public GetAuditActivityTypesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/auditEvents/getAuditActivityTypes(){?%24count,%24filter,%24search,%24skip,%24top}", rawUrl); + } + /** + * Invoke function getAuditActivityTypes + * @return a {@link GetAuditActivityTypesGetResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public GetAuditActivityTypesGetResponse get() { + return get(null); + } + /** + * Invoke function getAuditActivityTypes + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link GetAuditActivityTypesGetResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public GetAuditActivityTypesGetResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, GetAuditActivityTypesGetResponse::createFromDiscriminatorValue); + } + /** + * Invoke function getAuditActivityTypes + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Invoke function getAuditActivityTypes + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link GetAuditActivityTypesRequestBuilder} + */ + @jakarta.annotation.Nonnull + public GetAuditActivityTypesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new GetAuditActivityTypesRequestBuilder(rawUrl, requestAdapter); + } + /** + * Invoke function getAuditActivityTypes + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Include count of items + */ + @jakarta.annotation.Nullable + public Boolean count; + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Skip the first n items + */ + @jakarta.annotation.Nullable + public Integer skip; + /** + * Show only the first n items + */ + @jakarta.annotation.Nullable + public Integer top; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24count", count); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + allQueryParams.put("%24skip", skip); + allQueryParams.put("%24top", top); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/auditevents/item/CloudPcAuditEventItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/auditevents/item/CloudPcAuditEventItemRequestBuilder.java new file mode 100644 index 00000000000..2df5fae8554 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/auditevents/item/CloudPcAuditEventItemRequestBuilder.java @@ -0,0 +1,230 @@ +package com.microsoft.graph.devicemanagement.virtualendpoint.auditevents.item; + +import com.microsoft.graph.models.CloudPcAuditEvent; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the auditEvents property of the microsoft.graph.virtualEndpoint entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CloudPcAuditEventItemRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link CloudPcAuditEventItemRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CloudPcAuditEventItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/auditEvents/{cloudPcAuditEvent%2Did}{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link CloudPcAuditEventItemRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CloudPcAuditEventItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/auditEvents/{cloudPcAuditEvent%2Did}{?%24expand,%24select}", rawUrl); + } + /** + * Delete navigation property auditEvents for deviceManagement + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete() { + delete(null); + } + /** + * Delete navigation property auditEvents for deviceManagement + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * Read the properties and relationships of a cloudPcAuditEvent object. + * @return a {@link CloudPcAuditEvent} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public CloudPcAuditEvent get() { + return get(null); + } + /** + * Read the properties and relationships of a cloudPcAuditEvent object. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link CloudPcAuditEvent} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public CloudPcAuditEvent get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, CloudPcAuditEvent::createFromDiscriminatorValue); + } + /** + * Update the navigation property auditEvents in deviceManagement + * @param body The request body + * @return a {@link CloudPcAuditEvent} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public CloudPcAuditEvent patch(@jakarta.annotation.Nonnull final CloudPcAuditEvent body) { + return patch(body, null); + } + /** + * Update the navigation property auditEvents in deviceManagement + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link CloudPcAuditEvent} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public CloudPcAuditEvent patch(@jakarta.annotation.Nonnull final CloudPcAuditEvent body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, CloudPcAuditEvent::createFromDiscriminatorValue); + } + /** + * Delete navigation property auditEvents for deviceManagement + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation() { + return toDeleteRequestInformation(null); + } + /** + * Delete navigation property auditEvents for deviceManagement + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, "{+baseurl}/deviceManagement/virtualEndpoint/auditEvents/{cloudPcAuditEvent%2Did}", pathParameters); + requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Read the properties and relationships of a cloudPcAuditEvent object. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Read the properties and relationships of a cloudPcAuditEvent object. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update the navigation property auditEvents in deviceManagement + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final CloudPcAuditEvent body) { + return toPatchRequestInformation(body, null); + } + /** + * Update the navigation property auditEvents in deviceManagement + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final CloudPcAuditEvent body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, "{+baseurl}/deviceManagement/virtualEndpoint/auditEvents/{cloudPcAuditEvent%2Did}", pathParameters); + requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link CloudPcAuditEventItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CloudPcAuditEventItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new CloudPcAuditEventItemRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class DeleteRequestConfiguration extends BaseRequestConfiguration { + } + /** + * Read the properties and relationships of a cloudPcAuditEvent object. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PatchRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/cloudpcs/CloudPCsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/cloudpcs/CloudPCsRequestBuilder.java new file mode 100644 index 00000000000..866a42ef3e1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/cloudpcs/CloudPCsRequestBuilder.java @@ -0,0 +1,245 @@ +package com.microsoft.graph.devicemanagement.virtualendpoint.cloudpcs; + +import com.microsoft.graph.devicemanagement.virtualendpoint.cloudpcs.count.CountRequestBuilder; +import com.microsoft.graph.devicemanagement.virtualendpoint.cloudpcs.item.CloudPCItemRequestBuilder; +import com.microsoft.graph.models.CloudPC; +import com.microsoft.graph.models.CloudPCCollectionResponse; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the cloudPCs property of the microsoft.graph.virtualEndpoint entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CloudPCsRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to count the resources in the collection. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder count() { + return new CountRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to manage the cloudPCs property of the microsoft.graph.virtualEndpoint entity. + * @param cloudPCId The unique identifier of cloudPC + * @return a {@link CloudPCItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CloudPCItemRequestBuilder byCloudPCId(@jakarta.annotation.Nonnull final String cloudPCId) { + Objects.requireNonNull(cloudPCId); + final HashMap urlTplParams = new HashMap(this.pathParameters); + urlTplParams.put("cloudPC%2Did", cloudPCId); + return new CloudPCItemRequestBuilder(urlTplParams, requestAdapter); + } + /** + * Instantiates a new {@link CloudPCsRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CloudPCsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/cloudPCs{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link CloudPCsRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CloudPCsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/cloudPCs{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * List the cloudPC devices in a tenant. + * @return a {@link CloudPCCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public CloudPCCollectionResponse get() { + return get(null); + } + /** + * List the cloudPC devices in a tenant. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link CloudPCCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public CloudPCCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, CloudPCCollectionResponse::createFromDiscriminatorValue); + } + /** + * Create new navigation property to cloudPCs for deviceManagement + * @param body The request body + * @return a {@link CloudPC} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public CloudPC post(@jakarta.annotation.Nonnull final CloudPC body) { + return post(body, null); + } + /** + * Create new navigation property to cloudPCs for deviceManagement + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link CloudPC} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public CloudPC post(@jakarta.annotation.Nonnull final CloudPC body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, CloudPC::createFromDiscriminatorValue); + } + /** + * List the cloudPC devices in a tenant. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * List the cloudPC devices in a tenant. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Create new navigation property to cloudPCs for deviceManagement + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CloudPC body) { + return toPostRequestInformation(body, null); + } + /** + * Create new navigation property to cloudPCs for deviceManagement + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CloudPC body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, "{+baseurl}/deviceManagement/virtualEndpoint/cloudPCs", pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link CloudPCsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CloudPCsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new CloudPCsRequestBuilder(rawUrl, requestAdapter); + } + /** + * List the cloudPC devices in a tenant. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Include count of items + */ + @jakarta.annotation.Nullable + public Boolean count; + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Order items by property values + */ + @jakarta.annotation.Nullable + public String[] orderby; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Skip the first n items + */ + @jakarta.annotation.Nullable + public Integer skip; + /** + * Show only the first n items + */ + @jakarta.annotation.Nullable + public Integer top; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24count", count); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + allQueryParams.put("%24skip", skip); + allQueryParams.put("%24top", top); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24orderby", orderby); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/cloudpcs/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/cloudpcs/count/CountRequestBuilder.java new file mode 100644 index 00000000000..99c37d22a58 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/cloudpcs/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +package com.microsoft.graph.devicemanagement.virtualendpoint.cloudpcs.count; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to count the resources in the collection. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CountRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/cloudPCs/$count{?%24filter,%24search}", pathParameters); + } + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/cloudPCs/$count{?%24filter,%24search}", rawUrl); + } + /** + * Get the number of the resource + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get() { + return get(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); + } + /** + * Get the number of the resource + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new CountRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get the number of the resource + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/cloudpcs/item/CloudPCItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/cloudpcs/item/CloudPCItemRequestBuilder.java new file mode 100644 index 00000000000..771e2e9636a --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/cloudpcs/item/CloudPCItemRequestBuilder.java @@ -0,0 +1,275 @@ +package com.microsoft.graph.devicemanagement.virtualendpoint.cloudpcs.item; + +import com.microsoft.graph.devicemanagement.virtualendpoint.cloudpcs.item.endgraceperiod.EndGracePeriodRequestBuilder; +import com.microsoft.graph.devicemanagement.virtualendpoint.cloudpcs.item.reboot.RebootRequestBuilder; +import com.microsoft.graph.devicemanagement.virtualendpoint.cloudpcs.item.rename.RenameRequestBuilder; +import com.microsoft.graph.devicemanagement.virtualendpoint.cloudpcs.item.restore.RestoreRequestBuilder; +import com.microsoft.graph.devicemanagement.virtualendpoint.cloudpcs.item.troubleshoot.TroubleshootRequestBuilder; +import com.microsoft.graph.models.CloudPC; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the cloudPCs property of the microsoft.graph.virtualEndpoint entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CloudPCItemRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to call the endGracePeriod method. + * @return a {@link EndGracePeriodRequestBuilder} + */ + @jakarta.annotation.Nonnull + public EndGracePeriodRequestBuilder endGracePeriod() { + return new EndGracePeriodRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to call the reboot method. + * @return a {@link RebootRequestBuilder} + */ + @jakarta.annotation.Nonnull + public RebootRequestBuilder reboot() { + return new RebootRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to call the rename method. + * @return a {@link RenameRequestBuilder} + */ + @jakarta.annotation.Nonnull + public RenameRequestBuilder rename() { + return new RenameRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to call the restore method. + * @return a {@link RestoreRequestBuilder} + */ + @jakarta.annotation.Nonnull + public RestoreRequestBuilder restore() { + return new RestoreRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to call the troubleshoot method. + * @return a {@link TroubleshootRequestBuilder} + */ + @jakarta.annotation.Nonnull + public TroubleshootRequestBuilder troubleshoot() { + return new TroubleshootRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link CloudPCItemRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CloudPCItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/cloudPCs/{cloudPC%2Did}{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link CloudPCItemRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CloudPCItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/cloudPCs/{cloudPC%2Did}{?%24expand,%24select}", rawUrl); + } + /** + * Delete navigation property cloudPCs for deviceManagement + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete() { + delete(null); + } + /** + * Delete navigation property cloudPCs for deviceManagement + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * Read the properties and relationships of a specific cloudPC object. + * @return a {@link CloudPC} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public CloudPC get() { + return get(null); + } + /** + * Read the properties and relationships of a specific cloudPC object. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link CloudPC} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public CloudPC get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, CloudPC::createFromDiscriminatorValue); + } + /** + * Update the navigation property cloudPCs in deviceManagement + * @param body The request body + * @return a {@link CloudPC} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public CloudPC patch(@jakarta.annotation.Nonnull final CloudPC body) { + return patch(body, null); + } + /** + * Update the navigation property cloudPCs in deviceManagement + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link CloudPC} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public CloudPC patch(@jakarta.annotation.Nonnull final CloudPC body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, CloudPC::createFromDiscriminatorValue); + } + /** + * Delete navigation property cloudPCs for deviceManagement + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation() { + return toDeleteRequestInformation(null); + } + /** + * Delete navigation property cloudPCs for deviceManagement + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, "{+baseurl}/deviceManagement/virtualEndpoint/cloudPCs/{cloudPC%2Did}", pathParameters); + requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Read the properties and relationships of a specific cloudPC object. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Read the properties and relationships of a specific cloudPC object. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update the navigation property cloudPCs in deviceManagement + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final CloudPC body) { + return toPatchRequestInformation(body, null); + } + /** + * Update the navigation property cloudPCs in deviceManagement + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final CloudPC body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, "{+baseurl}/deviceManagement/virtualEndpoint/cloudPCs/{cloudPC%2Did}", pathParameters); + requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link CloudPCItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CloudPCItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new CloudPCItemRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class DeleteRequestConfiguration extends BaseRequestConfiguration { + } + /** + * Read the properties and relationships of a specific cloudPC object. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PatchRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/cloudpcs/item/endgraceperiod/EndGracePeriodRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/cloudpcs/item/endgraceperiod/EndGracePeriodRequestBuilder.java new file mode 100644 index 00000000000..f7574e14954 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/cloudpcs/item/endgraceperiod/EndGracePeriodRequestBuilder.java @@ -0,0 +1,93 @@ +package com.microsoft.graph.devicemanagement.virtualendpoint.cloudpcs.item.endgraceperiod; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to call the endGracePeriod method. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class EndGracePeriodRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link EndGracePeriodRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public EndGracePeriodRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/cloudPCs/{cloudPC%2Did}/endGracePeriod", pathParameters); + } + /** + * Instantiates a new {@link EndGracePeriodRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public EndGracePeriodRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/cloudPCs/{cloudPC%2Did}/endGracePeriod", rawUrl); + } + /** + * End the grace period for a specific cloudPC object. The grace period is triggered when the Cloud PC license is removed or the provisioning policy is unassigned. It allows users to access Cloud PCs for up to seven days before deprovisioning occurs. Ending the grace period immediately deprovisions the Cloud PC without waiting the seven days. + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + public void post() { + post(null); + } + /** + * End the grace period for a specific cloudPC object. The grace period is triggered when the Cloud PC license is removed or the provisioning policy is unassigned. It allows users to access Cloud PCs for up to seven days before deprovisioning occurs. Ending the grace period immediately deprovisions the Cloud PC without waiting the seven days. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + public void post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * End the grace period for a specific cloudPC object. The grace period is triggered when the Cloud PC license is removed or the provisioning policy is unassigned. It allows users to access Cloud PCs for up to seven days before deprovisioning occurs. Ending the grace period immediately deprovisions the Cloud PC without waiting the seven days. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation() { + return toPostRequestInformation(null); + } + /** + * End the grace period for a specific cloudPC object. The grace period is triggered when the Cloud PC license is removed or the provisioning policy is unassigned. It allows users to access Cloud PCs for up to seven days before deprovisioning occurs. Ending the grace period immediately deprovisions the Cloud PC without waiting the seven days. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link EndGracePeriodRequestBuilder} + */ + @jakarta.annotation.Nonnull + public EndGracePeriodRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new EndGracePeriodRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/cloudpcs/item/reboot/RebootRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/cloudpcs/item/reboot/RebootRequestBuilder.java new file mode 100644 index 00000000000..a48f3e9ab43 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/cloudpcs/item/reboot/RebootRequestBuilder.java @@ -0,0 +1,93 @@ +package com.microsoft.graph.devicemanagement.virtualendpoint.cloudpcs.item.reboot; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to call the reboot method. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class RebootRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link RebootRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public RebootRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/cloudPCs/{cloudPC%2Did}/reboot", pathParameters); + } + /** + * Instantiates a new {@link RebootRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public RebootRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/cloudPCs/{cloudPC%2Did}/reboot", rawUrl); + } + /** + * Reboot a specific cloudPC object. + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + public void post() { + post(null); + } + /** + * Reboot a specific cloudPC object. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + public void post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * Reboot a specific cloudPC object. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation() { + return toPostRequestInformation(null); + } + /** + * Reboot a specific cloudPC object. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link RebootRequestBuilder} + */ + @jakarta.annotation.Nonnull + public RebootRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new RebootRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/cloudpcs/item/rename/RenamePostRequestBody.java b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/cloudpcs/item/rename/RenamePostRequestBody.java new file mode 100644 index 00000000000..8de952f2cd9 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/cloudpcs/item/rename/RenamePostRequestBody.java @@ -0,0 +1,107 @@ +package com.microsoft.graph.devicemanagement.virtualendpoint.cloudpcs.item.rename; + +import com.microsoft.kiota.serialization.AdditionalDataHolder; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import com.microsoft.kiota.store.BackedModel; +import com.microsoft.kiota.store.BackingStore; +import com.microsoft.kiota.store.BackingStoreFactorySingleton; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class RenamePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link RenamePostRequestBody} and sets the default values. + */ + public RenamePostRequestBody() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link RenamePostRequestBody} + */ + @jakarta.annotation.Nonnull + public static RenamePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new RenamePostRequestBody(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * Gets the displayName property value. The displayName property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getDisplayName() { + return this.backingStore.get("displayName"); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(1); + deserializerMap.put("displayName", (n) -> { this.setDisplayName(n.getStringValue()); }); + return deserializerMap; + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + writer.writeStringValue("displayName", this.getDisplayName()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { + this.backingStore.set("additionalData", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @param value Value to set for the backingStore property. + */ + public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { + Objects.requireNonNull(value); + this.backingStore = value; + } + /** + * Sets the displayName property value. The displayName property + * @param value Value to set for the displayName property. + */ + public void setDisplayName(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("displayName", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/cloudpcs/item/rename/RenameRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/cloudpcs/item/rename/RenameRequestBuilder.java new file mode 100644 index 00000000000..4f72db160cf --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/cloudpcs/item/rename/RenameRequestBuilder.java @@ -0,0 +1,100 @@ +package com.microsoft.graph.devicemanagement.virtualendpoint.cloudpcs.item.rename; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to call the rename method. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class RenameRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link RenameRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public RenameRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/cloudPCs/{cloudPC%2Did}/rename", pathParameters); + } + /** + * Instantiates a new {@link RenameRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public RenameRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/cloudPCs/{cloudPC%2Did}/rename", rawUrl); + } + /** + * Rename a specific cloudPC object. Use this API to update the displayName of a Cloud PC entity. + * @param body The request body + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + public void post(@jakarta.annotation.Nonnull final RenamePostRequestBody body) { + post(body, null); + } + /** + * Rename a specific cloudPC object. Use this API to update the displayName of a Cloud PC entity. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + public void post(@jakarta.annotation.Nonnull final RenamePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * Rename a specific cloudPC object. Use this API to update the displayName of a Cloud PC entity. + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final RenamePostRequestBody body) { + return toPostRequestInformation(body, null); + } + /** + * Rename a specific cloudPC object. Use this API to update the displayName of a Cloud PC entity. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final RenamePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link RenameRequestBuilder} + */ + @jakarta.annotation.Nonnull + public RenameRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new RenameRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/cloudpcs/item/restore/RestorePostRequestBody.java b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/cloudpcs/item/restore/RestorePostRequestBody.java new file mode 100644 index 00000000000..a6efd6a2630 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/cloudpcs/item/restore/RestorePostRequestBody.java @@ -0,0 +1,107 @@ +package com.microsoft.graph.devicemanagement.virtualendpoint.cloudpcs.item.restore; + +import com.microsoft.kiota.serialization.AdditionalDataHolder; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import com.microsoft.kiota.store.BackedModel; +import com.microsoft.kiota.store.BackingStore; +import com.microsoft.kiota.store.BackingStoreFactorySingleton; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class RestorePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link RestorePostRequestBody} and sets the default values. + */ + public RestorePostRequestBody() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link RestorePostRequestBody} + */ + @jakarta.annotation.Nonnull + public static RestorePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new RestorePostRequestBody(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * Gets the cloudPcSnapshotId property value. The cloudPcSnapshotId property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getCloudPcSnapshotId() { + return this.backingStore.get("cloudPcSnapshotId"); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(1); + deserializerMap.put("cloudPcSnapshotId", (n) -> { this.setCloudPcSnapshotId(n.getStringValue()); }); + return deserializerMap; + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + writer.writeStringValue("cloudPcSnapshotId", this.getCloudPcSnapshotId()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { + this.backingStore.set("additionalData", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @param value Value to set for the backingStore property. + */ + public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { + Objects.requireNonNull(value); + this.backingStore = value; + } + /** + * Sets the cloudPcSnapshotId property value. The cloudPcSnapshotId property + * @param value Value to set for the cloudPcSnapshotId property. + */ + public void setCloudPcSnapshotId(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("cloudPcSnapshotId", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/cloudpcs/item/restore/RestoreRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/cloudpcs/item/restore/RestoreRequestBuilder.java new file mode 100644 index 00000000000..c00c3eb1f78 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/cloudpcs/item/restore/RestoreRequestBuilder.java @@ -0,0 +1,100 @@ +package com.microsoft.graph.devicemanagement.virtualendpoint.cloudpcs.item.restore; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to call the restore method. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class RestoreRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link RestoreRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public RestoreRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/cloudPCs/{cloudPC%2Did}/restore", pathParameters); + } + /** + * Instantiates a new {@link RestoreRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public RestoreRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/cloudPCs/{cloudPC%2Did}/restore", rawUrl); + } + /** + * Restore a specific cloudPC object to a previous state from a snapshot. Use this API to trigger a remote action that restores a Cloud PC device to a previous state. + * @param body The request body + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + public void post(@jakarta.annotation.Nonnull final RestorePostRequestBody body) { + post(body, null); + } + /** + * Restore a specific cloudPC object to a previous state from a snapshot. Use this API to trigger a remote action that restores a Cloud PC device to a previous state. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + public void post(@jakarta.annotation.Nonnull final RestorePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * Restore a specific cloudPC object to a previous state from a snapshot. Use this API to trigger a remote action that restores a Cloud PC device to a previous state. + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final RestorePostRequestBody body) { + return toPostRequestInformation(body, null); + } + /** + * Restore a specific cloudPC object to a previous state from a snapshot. Use this API to trigger a remote action that restores a Cloud PC device to a previous state. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final RestorePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link RestoreRequestBuilder} + */ + @jakarta.annotation.Nonnull + public RestoreRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new RestoreRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/cloudpcs/item/troubleshoot/TroubleshootRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/cloudpcs/item/troubleshoot/TroubleshootRequestBuilder.java new file mode 100644 index 00000000000..698505d2102 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/cloudpcs/item/troubleshoot/TroubleshootRequestBuilder.java @@ -0,0 +1,93 @@ +package com.microsoft.graph.devicemanagement.virtualendpoint.cloudpcs.item.troubleshoot; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to call the troubleshoot method. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class TroubleshootRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link TroubleshootRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public TroubleshootRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/cloudPCs/{cloudPC%2Did}/troubleshoot", pathParameters); + } + /** + * Instantiates a new {@link TroubleshootRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public TroubleshootRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/cloudPCs/{cloudPC%2Did}/troubleshoot", rawUrl); + } + /** + * Troubleshoot a specific cloudPC object. Use this API to check the health status of the Cloud PC and the session host. + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + public void post() { + post(null); + } + /** + * Troubleshoot a specific cloudPC object. Use this API to check the health status of the Cloud PC and the session host. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + public void post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * Troubleshoot a specific cloudPC object. Use this API to check the health status of the Cloud PC and the session host. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation() { + return toPostRequestInformation(null); + } + /** + * Troubleshoot a specific cloudPC object. Use this API to check the health status of the Cloud PC and the session host. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link TroubleshootRequestBuilder} + */ + @jakarta.annotation.Nonnull + public TroubleshootRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new TroubleshootRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/deviceimages/DeviceImagesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/deviceimages/DeviceImagesRequestBuilder.java new file mode 100644 index 00000000000..d0e65260ff7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/deviceimages/DeviceImagesRequestBuilder.java @@ -0,0 +1,256 @@ +package com.microsoft.graph.devicemanagement.virtualendpoint.deviceimages; + +import com.microsoft.graph.devicemanagement.virtualendpoint.deviceimages.count.CountRequestBuilder; +import com.microsoft.graph.devicemanagement.virtualendpoint.deviceimages.getsourceimages.GetSourceImagesRequestBuilder; +import com.microsoft.graph.devicemanagement.virtualendpoint.deviceimages.item.CloudPcDeviceImageItemRequestBuilder; +import com.microsoft.graph.models.CloudPcDeviceImage; +import com.microsoft.graph.models.CloudPcDeviceImageCollectionResponse; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the deviceImages property of the microsoft.graph.virtualEndpoint entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class DeviceImagesRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to count the resources in the collection. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder count() { + return new CountRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to call the getSourceImages method. + * @return a {@link GetSourceImagesRequestBuilder} + */ + @jakarta.annotation.Nonnull + public GetSourceImagesRequestBuilder getSourceImages() { + return new GetSourceImagesRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to manage the deviceImages property of the microsoft.graph.virtualEndpoint entity. + * @param cloudPcDeviceImageId The unique identifier of cloudPcDeviceImage + * @return a {@link CloudPcDeviceImageItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CloudPcDeviceImageItemRequestBuilder byCloudPcDeviceImageId(@jakarta.annotation.Nonnull final String cloudPcDeviceImageId) { + Objects.requireNonNull(cloudPcDeviceImageId); + final HashMap urlTplParams = new HashMap(this.pathParameters); + urlTplParams.put("cloudPcDeviceImage%2Did", cloudPcDeviceImageId); + return new CloudPcDeviceImageItemRequestBuilder(urlTplParams, requestAdapter); + } + /** + * Instantiates a new {@link DeviceImagesRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public DeviceImagesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/deviceImages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link DeviceImagesRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public DeviceImagesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/deviceImages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * List the properties and relationships of cloudPcDeviceImage objects (operating system images) uploaded to Cloud PC. + * @return a {@link CloudPcDeviceImageCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public CloudPcDeviceImageCollectionResponse get() { + return get(null); + } + /** + * List the properties and relationships of cloudPcDeviceImage objects (operating system images) uploaded to Cloud PC. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link CloudPcDeviceImageCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public CloudPcDeviceImageCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, CloudPcDeviceImageCollectionResponse::createFromDiscriminatorValue); + } + /** + * Create a new cloudPcDeviceImage object. Upload a custom OS image that you can later provision on Cloud PCs. + * @param body The request body + * @return a {@link CloudPcDeviceImage} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public CloudPcDeviceImage post(@jakarta.annotation.Nonnull final CloudPcDeviceImage body) { + return post(body, null); + } + /** + * Create a new cloudPcDeviceImage object. Upload a custom OS image that you can later provision on Cloud PCs. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link CloudPcDeviceImage} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public CloudPcDeviceImage post(@jakarta.annotation.Nonnull final CloudPcDeviceImage body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, CloudPcDeviceImage::createFromDiscriminatorValue); + } + /** + * List the properties and relationships of cloudPcDeviceImage objects (operating system images) uploaded to Cloud PC. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * List the properties and relationships of cloudPcDeviceImage objects (operating system images) uploaded to Cloud PC. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Create a new cloudPcDeviceImage object. Upload a custom OS image that you can later provision on Cloud PCs. + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CloudPcDeviceImage body) { + return toPostRequestInformation(body, null); + } + /** + * Create a new cloudPcDeviceImage object. Upload a custom OS image that you can later provision on Cloud PCs. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CloudPcDeviceImage body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, "{+baseurl}/deviceManagement/virtualEndpoint/deviceImages", pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link DeviceImagesRequestBuilder} + */ + @jakarta.annotation.Nonnull + public DeviceImagesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new DeviceImagesRequestBuilder(rawUrl, requestAdapter); + } + /** + * List the properties and relationships of cloudPcDeviceImage objects (operating system images) uploaded to Cloud PC. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Include count of items + */ + @jakarta.annotation.Nullable + public Boolean count; + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Order items by property values + */ + @jakarta.annotation.Nullable + public String[] orderby; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Skip the first n items + */ + @jakarta.annotation.Nullable + public Integer skip; + /** + * Show only the first n items + */ + @jakarta.annotation.Nullable + public Integer top; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24count", count); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + allQueryParams.put("%24skip", skip); + allQueryParams.put("%24top", top); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24orderby", orderby); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/deviceimages/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/deviceimages/count/CountRequestBuilder.java new file mode 100644 index 00000000000..b7ae55d367b --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/deviceimages/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +package com.microsoft.graph.devicemanagement.virtualendpoint.deviceimages.count; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to count the resources in the collection. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CountRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/deviceImages/$count{?%24filter,%24search}", pathParameters); + } + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/deviceImages/$count{?%24filter,%24search}", rawUrl); + } + /** + * Get the number of the resource + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get() { + return get(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); + } + /** + * Get the number of the resource + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new CountRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get the number of the resource + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/deviceimages/getsourceimages/GetSourceImagesGetResponse.java b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/deviceimages/getsourceimages/GetSourceImagesGetResponse.java new file mode 100644 index 00000000000..a1abab0c72b --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/deviceimages/getsourceimages/GetSourceImagesGetResponse.java @@ -0,0 +1,63 @@ +package com.microsoft.graph.devicemanagement.virtualendpoint.deviceimages.getsourceimages; + +import com.microsoft.graph.models.BaseCollectionPaginationCountResponse; +import com.microsoft.graph.models.CloudPcSourceDeviceImage; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class GetSourceImagesGetResponse extends BaseCollectionPaginationCountResponse implements Parsable { + /** + * Instantiates a new {@link GetSourceImagesGetResponse} and sets the default values. + */ + public GetSourceImagesGetResponse() { + super(); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link GetSourceImagesGetResponse} + */ + @jakarta.annotation.Nonnull + public static GetSourceImagesGetResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new GetSourceImagesGetResponse(); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("value", (n) -> { this.setValue(n.getCollectionOfObjectValues(CloudPcSourceDeviceImage::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the value property value. The value property + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getValue() { + return this.backingStore.get("value"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + super.serialize(writer); + writer.writeCollectionOfObjectValues("value", this.getValue()); + } + /** + * Sets the value property value. The value property + * @param value Value to set for the value property. + */ + public void setValue(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("value", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/deviceimages/getsourceimages/GetSourceImagesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/deviceimages/getsourceimages/GetSourceImagesRequestBuilder.java new file mode 100644 index 00000000000..a7158a5bde5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/deviceimages/getsourceimages/GetSourceImagesRequestBuilder.java @@ -0,0 +1,146 @@ +package com.microsoft.graph.devicemanagement.virtualendpoint.deviceimages.getsourceimages; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to call the getSourceImages method. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class GetSourceImagesRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link GetSourceImagesRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public GetSourceImagesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/deviceImages/getSourceImages(){?%24count,%24filter,%24search,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link GetSourceImagesRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public GetSourceImagesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/deviceImages/getSourceImages(){?%24count,%24filter,%24search,%24skip,%24top}", rawUrl); + } + /** + * Invoke function getSourceImages + * @return a {@link GetSourceImagesGetResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public GetSourceImagesGetResponse get() { + return get(null); + } + /** + * Invoke function getSourceImages + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link GetSourceImagesGetResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public GetSourceImagesGetResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, GetSourceImagesGetResponse::createFromDiscriminatorValue); + } + /** + * Invoke function getSourceImages + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Invoke function getSourceImages + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link GetSourceImagesRequestBuilder} + */ + @jakarta.annotation.Nonnull + public GetSourceImagesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new GetSourceImagesRequestBuilder(rawUrl, requestAdapter); + } + /** + * Invoke function getSourceImages + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Include count of items + */ + @jakarta.annotation.Nullable + public Boolean count; + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Skip the first n items + */ + @jakarta.annotation.Nullable + public Integer skip; + /** + * Show only the first n items + */ + @jakarta.annotation.Nullable + public Integer top; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24count", count); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + allQueryParams.put("%24skip", skip); + allQueryParams.put("%24top", top); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/deviceimages/item/CloudPcDeviceImageItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/deviceimages/item/CloudPcDeviceImageItemRequestBuilder.java new file mode 100644 index 00000000000..922bb0371de --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/deviceimages/item/CloudPcDeviceImageItemRequestBuilder.java @@ -0,0 +1,232 @@ +package com.microsoft.graph.devicemanagement.virtualendpoint.deviceimages.item; + +import com.microsoft.graph.models.CloudPcDeviceImage; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the deviceImages property of the microsoft.graph.virtualEndpoint entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CloudPcDeviceImageItemRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link CloudPcDeviceImageItemRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CloudPcDeviceImageItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/deviceImages/{cloudPcDeviceImage%2Did}{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link CloudPcDeviceImageItemRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CloudPcDeviceImageItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/deviceImages/{cloudPcDeviceImage%2Did}{?%24expand,%24select}", rawUrl); + } + /** + * Delete a cloudPcDeviceImage object. + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + public void delete() { + delete(null); + } + /** + * Delete a cloudPcDeviceImage object. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * Read the properties and relationships of a specific cloudPcDeviceImage object. + * @return a {@link CloudPcDeviceImage} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public CloudPcDeviceImage get() { + return get(null); + } + /** + * Read the properties and relationships of a specific cloudPcDeviceImage object. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link CloudPcDeviceImage} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public CloudPcDeviceImage get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, CloudPcDeviceImage::createFromDiscriminatorValue); + } + /** + * Update the navigation property deviceImages in deviceManagement + * @param body The request body + * @return a {@link CloudPcDeviceImage} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public CloudPcDeviceImage patch(@jakarta.annotation.Nonnull final CloudPcDeviceImage body) { + return patch(body, null); + } + /** + * Update the navigation property deviceImages in deviceManagement + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link CloudPcDeviceImage} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public CloudPcDeviceImage patch(@jakarta.annotation.Nonnull final CloudPcDeviceImage body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, CloudPcDeviceImage::createFromDiscriminatorValue); + } + /** + * Delete a cloudPcDeviceImage object. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation() { + return toDeleteRequestInformation(null); + } + /** + * Delete a cloudPcDeviceImage object. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, "{+baseurl}/deviceManagement/virtualEndpoint/deviceImages/{cloudPcDeviceImage%2Did}", pathParameters); + requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Read the properties and relationships of a specific cloudPcDeviceImage object. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Read the properties and relationships of a specific cloudPcDeviceImage object. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update the navigation property deviceImages in deviceManagement + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final CloudPcDeviceImage body) { + return toPatchRequestInformation(body, null); + } + /** + * Update the navigation property deviceImages in deviceManagement + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final CloudPcDeviceImage body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, "{+baseurl}/deviceManagement/virtualEndpoint/deviceImages/{cloudPcDeviceImage%2Did}", pathParameters); + requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link CloudPcDeviceImageItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CloudPcDeviceImageItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new CloudPcDeviceImageItemRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class DeleteRequestConfiguration extends BaseRequestConfiguration { + } + /** + * Read the properties and relationships of a specific cloudPcDeviceImage object. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PatchRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/galleryimages/GalleryImagesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/galleryimages/GalleryImagesRequestBuilder.java new file mode 100644 index 00000000000..0b9995d4200 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/galleryimages/GalleryImagesRequestBuilder.java @@ -0,0 +1,245 @@ +package com.microsoft.graph.devicemanagement.virtualendpoint.galleryimages; + +import com.microsoft.graph.devicemanagement.virtualendpoint.galleryimages.count.CountRequestBuilder; +import com.microsoft.graph.devicemanagement.virtualendpoint.galleryimages.item.CloudPcGalleryImageItemRequestBuilder; +import com.microsoft.graph.models.CloudPcGalleryImage; +import com.microsoft.graph.models.CloudPcGalleryImageCollectionResponse; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the galleryImages property of the microsoft.graph.virtualEndpoint entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class GalleryImagesRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to count the resources in the collection. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder count() { + return new CountRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to manage the galleryImages property of the microsoft.graph.virtualEndpoint entity. + * @param cloudPcGalleryImageId The unique identifier of cloudPcGalleryImage + * @return a {@link CloudPcGalleryImageItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CloudPcGalleryImageItemRequestBuilder byCloudPcGalleryImageId(@jakarta.annotation.Nonnull final String cloudPcGalleryImageId) { + Objects.requireNonNull(cloudPcGalleryImageId); + final HashMap urlTplParams = new HashMap(this.pathParameters); + urlTplParams.put("cloudPcGalleryImage%2Did", cloudPcGalleryImageId); + return new CloudPcGalleryImageItemRequestBuilder(urlTplParams, requestAdapter); + } + /** + * Instantiates a new {@link GalleryImagesRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public GalleryImagesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/galleryImages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link GalleryImagesRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public GalleryImagesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/galleryImages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * List the properties and relationships of cloudPcGalleryImage objects. + * @return a {@link CloudPcGalleryImageCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public CloudPcGalleryImageCollectionResponse get() { + return get(null); + } + /** + * List the properties and relationships of cloudPcGalleryImage objects. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link CloudPcGalleryImageCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public CloudPcGalleryImageCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, CloudPcGalleryImageCollectionResponse::createFromDiscriminatorValue); + } + /** + * Create new navigation property to galleryImages for deviceManagement + * @param body The request body + * @return a {@link CloudPcGalleryImage} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public CloudPcGalleryImage post(@jakarta.annotation.Nonnull final CloudPcGalleryImage body) { + return post(body, null); + } + /** + * Create new navigation property to galleryImages for deviceManagement + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link CloudPcGalleryImage} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public CloudPcGalleryImage post(@jakarta.annotation.Nonnull final CloudPcGalleryImage body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, CloudPcGalleryImage::createFromDiscriminatorValue); + } + /** + * List the properties and relationships of cloudPcGalleryImage objects. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * List the properties and relationships of cloudPcGalleryImage objects. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Create new navigation property to galleryImages for deviceManagement + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CloudPcGalleryImage body) { + return toPostRequestInformation(body, null); + } + /** + * Create new navigation property to galleryImages for deviceManagement + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CloudPcGalleryImage body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, "{+baseurl}/deviceManagement/virtualEndpoint/galleryImages", pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link GalleryImagesRequestBuilder} + */ + @jakarta.annotation.Nonnull + public GalleryImagesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new GalleryImagesRequestBuilder(rawUrl, requestAdapter); + } + /** + * List the properties and relationships of cloudPcGalleryImage objects. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Include count of items + */ + @jakarta.annotation.Nullable + public Boolean count; + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Order items by property values + */ + @jakarta.annotation.Nullable + public String[] orderby; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Skip the first n items + */ + @jakarta.annotation.Nullable + public Integer skip; + /** + * Show only the first n items + */ + @jakarta.annotation.Nullable + public Integer top; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24count", count); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + allQueryParams.put("%24skip", skip); + allQueryParams.put("%24top", top); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24orderby", orderby); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/galleryimages/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/galleryimages/count/CountRequestBuilder.java new file mode 100644 index 00000000000..eae76207158 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/galleryimages/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +package com.microsoft.graph.devicemanagement.virtualendpoint.galleryimages.count; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to count the resources in the collection. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CountRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/galleryImages/$count{?%24filter,%24search}", pathParameters); + } + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/galleryImages/$count{?%24filter,%24search}", rawUrl); + } + /** + * Get the number of the resource + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get() { + return get(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); + } + /** + * Get the number of the resource + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new CountRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get the number of the resource + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/galleryimages/item/CloudPcGalleryImageItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/galleryimages/item/CloudPcGalleryImageItemRequestBuilder.java new file mode 100644 index 00000000000..18d025dc761 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/galleryimages/item/CloudPcGalleryImageItemRequestBuilder.java @@ -0,0 +1,230 @@ +package com.microsoft.graph.devicemanagement.virtualendpoint.galleryimages.item; + +import com.microsoft.graph.models.CloudPcGalleryImage; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the galleryImages property of the microsoft.graph.virtualEndpoint entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CloudPcGalleryImageItemRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link CloudPcGalleryImageItemRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CloudPcGalleryImageItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/galleryImages/{cloudPcGalleryImage%2Did}{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link CloudPcGalleryImageItemRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CloudPcGalleryImageItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/galleryImages/{cloudPcGalleryImage%2Did}{?%24expand,%24select}", rawUrl); + } + /** + * Delete navigation property galleryImages for deviceManagement + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete() { + delete(null); + } + /** + * Delete navigation property galleryImages for deviceManagement + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * Read the properties and relationships of a specific cloudPcGalleryImage object. + * @return a {@link CloudPcGalleryImage} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public CloudPcGalleryImage get() { + return get(null); + } + /** + * Read the properties and relationships of a specific cloudPcGalleryImage object. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link CloudPcGalleryImage} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public CloudPcGalleryImage get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, CloudPcGalleryImage::createFromDiscriminatorValue); + } + /** + * Update the navigation property galleryImages in deviceManagement + * @param body The request body + * @return a {@link CloudPcGalleryImage} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public CloudPcGalleryImage patch(@jakarta.annotation.Nonnull final CloudPcGalleryImage body) { + return patch(body, null); + } + /** + * Update the navigation property galleryImages in deviceManagement + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link CloudPcGalleryImage} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public CloudPcGalleryImage patch(@jakarta.annotation.Nonnull final CloudPcGalleryImage body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, CloudPcGalleryImage::createFromDiscriminatorValue); + } + /** + * Delete navigation property galleryImages for deviceManagement + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation() { + return toDeleteRequestInformation(null); + } + /** + * Delete navigation property galleryImages for deviceManagement + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, "{+baseurl}/deviceManagement/virtualEndpoint/galleryImages/{cloudPcGalleryImage%2Did}", pathParameters); + requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Read the properties and relationships of a specific cloudPcGalleryImage object. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Read the properties and relationships of a specific cloudPcGalleryImage object. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update the navigation property galleryImages in deviceManagement + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final CloudPcGalleryImage body) { + return toPatchRequestInformation(body, null); + } + /** + * Update the navigation property galleryImages in deviceManagement + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final CloudPcGalleryImage body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, "{+baseurl}/deviceManagement/virtualEndpoint/galleryImages/{cloudPcGalleryImage%2Did}", pathParameters); + requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link CloudPcGalleryImageItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CloudPcGalleryImageItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new CloudPcGalleryImageItemRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class DeleteRequestConfiguration extends BaseRequestConfiguration { + } + /** + * Read the properties and relationships of a specific cloudPcGalleryImage object. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PatchRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/onpremisesconnections/OnPremisesConnectionsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/onpremisesconnections/OnPremisesConnectionsRequestBuilder.java new file mode 100644 index 00000000000..52838704d28 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/onpremisesconnections/OnPremisesConnectionsRequestBuilder.java @@ -0,0 +1,247 @@ +package com.microsoft.graph.devicemanagement.virtualendpoint.onpremisesconnections; + +import com.microsoft.graph.devicemanagement.virtualendpoint.onpremisesconnections.count.CountRequestBuilder; +import com.microsoft.graph.devicemanagement.virtualendpoint.onpremisesconnections.item.CloudPcOnPremisesConnectionItemRequestBuilder; +import com.microsoft.graph.models.CloudPcOnPremisesConnection; +import com.microsoft.graph.models.CloudPcOnPremisesConnectionCollectionResponse; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the onPremisesConnections property of the microsoft.graph.virtualEndpoint entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class OnPremisesConnectionsRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to count the resources in the collection. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder count() { + return new CountRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to manage the onPremisesConnections property of the microsoft.graph.virtualEndpoint entity. + * @param cloudPcOnPremisesConnectionId The unique identifier of cloudPcOnPremisesConnection + * @return a {@link CloudPcOnPremisesConnectionItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CloudPcOnPremisesConnectionItemRequestBuilder byCloudPcOnPremisesConnectionId(@jakarta.annotation.Nonnull final String cloudPcOnPremisesConnectionId) { + Objects.requireNonNull(cloudPcOnPremisesConnectionId); + final HashMap urlTplParams = new HashMap(this.pathParameters); + urlTplParams.put("cloudPcOnPremisesConnection%2Did", cloudPcOnPremisesConnectionId); + return new CloudPcOnPremisesConnectionItemRequestBuilder(urlTplParams, requestAdapter); + } + /** + * Instantiates a new {@link OnPremisesConnectionsRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public OnPremisesConnectionsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/onPremisesConnections{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link OnPremisesConnectionsRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public OnPremisesConnectionsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/onPremisesConnections{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * List properties and relationships of the cloudPcOnPremisesConnection objects. + * @return a {@link CloudPcOnPremisesConnectionCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public CloudPcOnPremisesConnectionCollectionResponse get() { + return get(null); + } + /** + * List properties and relationships of the cloudPcOnPremisesConnection objects. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link CloudPcOnPremisesConnectionCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public CloudPcOnPremisesConnectionCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, CloudPcOnPremisesConnectionCollectionResponse::createFromDiscriminatorValue); + } + /** + * Create a new cloudPcOnPremisesConnection object for provisioning Cloud PCs. + * @param body The request body + * @return a {@link CloudPcOnPremisesConnection} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public CloudPcOnPremisesConnection post(@jakarta.annotation.Nonnull final CloudPcOnPremisesConnection body) { + return post(body, null); + } + /** + * Create a new cloudPcOnPremisesConnection object for provisioning Cloud PCs. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link CloudPcOnPremisesConnection} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public CloudPcOnPremisesConnection post(@jakarta.annotation.Nonnull final CloudPcOnPremisesConnection body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, CloudPcOnPremisesConnection::createFromDiscriminatorValue); + } + /** + * List properties and relationships of the cloudPcOnPremisesConnection objects. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * List properties and relationships of the cloudPcOnPremisesConnection objects. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Create a new cloudPcOnPremisesConnection object for provisioning Cloud PCs. + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CloudPcOnPremisesConnection body) { + return toPostRequestInformation(body, null); + } + /** + * Create a new cloudPcOnPremisesConnection object for provisioning Cloud PCs. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CloudPcOnPremisesConnection body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, "{+baseurl}/deviceManagement/virtualEndpoint/onPremisesConnections", pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link OnPremisesConnectionsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public OnPremisesConnectionsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new OnPremisesConnectionsRequestBuilder(rawUrl, requestAdapter); + } + /** + * List properties and relationships of the cloudPcOnPremisesConnection objects. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Include count of items + */ + @jakarta.annotation.Nullable + public Boolean count; + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Order items by property values + */ + @jakarta.annotation.Nullable + public String[] orderby; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Skip the first n items + */ + @jakarta.annotation.Nullable + public Integer skip; + /** + * Show only the first n items + */ + @jakarta.annotation.Nullable + public Integer top; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24count", count); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + allQueryParams.put("%24skip", skip); + allQueryParams.put("%24top", top); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24orderby", orderby); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/onpremisesconnections/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/onpremisesconnections/count/CountRequestBuilder.java new file mode 100644 index 00000000000..1bdd78bca69 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/onpremisesconnections/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +package com.microsoft.graph.devicemanagement.virtualendpoint.onpremisesconnections.count; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to count the resources in the collection. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CountRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/onPremisesConnections/$count{?%24filter,%24search}", pathParameters); + } + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/onPremisesConnections/$count{?%24filter,%24search}", rawUrl); + } + /** + * Get the number of the resource + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get() { + return get(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); + } + /** + * Get the number of the resource + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new CountRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get the number of the resource + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/onpremisesconnections/item/CloudPcOnPremisesConnectionItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/onpremisesconnections/item/CloudPcOnPremisesConnectionItemRequestBuilder.java new file mode 100644 index 00000000000..904a0d61736 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/onpremisesconnections/item/CloudPcOnPremisesConnectionItemRequestBuilder.java @@ -0,0 +1,243 @@ +package com.microsoft.graph.devicemanagement.virtualendpoint.onpremisesconnections.item; + +import com.microsoft.graph.devicemanagement.virtualendpoint.onpremisesconnections.item.runhealthchecks.RunHealthChecksRequestBuilder; +import com.microsoft.graph.models.CloudPcOnPremisesConnection; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the onPremisesConnections property of the microsoft.graph.virtualEndpoint entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CloudPcOnPremisesConnectionItemRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to call the runHealthChecks method. + * @return a {@link RunHealthChecksRequestBuilder} + */ + @jakarta.annotation.Nonnull + public RunHealthChecksRequestBuilder runHealthChecks() { + return new RunHealthChecksRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link CloudPcOnPremisesConnectionItemRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CloudPcOnPremisesConnectionItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/onPremisesConnections/{cloudPcOnPremisesConnection%2Did}{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link CloudPcOnPremisesConnectionItemRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CloudPcOnPremisesConnectionItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/onPremisesConnections/{cloudPcOnPremisesConnection%2Did}{?%24expand,%24select}", rawUrl); + } + /** + * Delete a specific cloudPcOnPremisesConnection object. When you delete an Azure network connection, permissions to the service are removed from the specified Azure resources. You cannot delete an Azure network connection when it's in use, as indicated by the inUse property. + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + public void delete() { + delete(null); + } + /** + * Delete a specific cloudPcOnPremisesConnection object. When you delete an Azure network connection, permissions to the service are removed from the specified Azure resources. You cannot delete an Azure network connection when it's in use, as indicated by the inUse property. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * Read the properties and relationships of the cloudPcOnPremisesConnection object. + * @return a {@link CloudPcOnPremisesConnection} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public CloudPcOnPremisesConnection get() { + return get(null); + } + /** + * Read the properties and relationships of the cloudPcOnPremisesConnection object. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link CloudPcOnPremisesConnection} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public CloudPcOnPremisesConnection get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, CloudPcOnPremisesConnection::createFromDiscriminatorValue); + } + /** + * Update the properties of a cloudPcOnPremisesConnection object. + * @param body The request body + * @return a {@link CloudPcOnPremisesConnection} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public CloudPcOnPremisesConnection patch(@jakarta.annotation.Nonnull final CloudPcOnPremisesConnection body) { + return patch(body, null); + } + /** + * Update the properties of a cloudPcOnPremisesConnection object. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link CloudPcOnPremisesConnection} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public CloudPcOnPremisesConnection patch(@jakarta.annotation.Nonnull final CloudPcOnPremisesConnection body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, CloudPcOnPremisesConnection::createFromDiscriminatorValue); + } + /** + * Delete a specific cloudPcOnPremisesConnection object. When you delete an Azure network connection, permissions to the service are removed from the specified Azure resources. You cannot delete an Azure network connection when it's in use, as indicated by the inUse property. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation() { + return toDeleteRequestInformation(null); + } + /** + * Delete a specific cloudPcOnPremisesConnection object. When you delete an Azure network connection, permissions to the service are removed from the specified Azure resources. You cannot delete an Azure network connection when it's in use, as indicated by the inUse property. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, "{+baseurl}/deviceManagement/virtualEndpoint/onPremisesConnections/{cloudPcOnPremisesConnection%2Did}", pathParameters); + requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Read the properties and relationships of the cloudPcOnPremisesConnection object. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Read the properties and relationships of the cloudPcOnPremisesConnection object. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update the properties of a cloudPcOnPremisesConnection object. + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final CloudPcOnPremisesConnection body) { + return toPatchRequestInformation(body, null); + } + /** + * Update the properties of a cloudPcOnPremisesConnection object. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final CloudPcOnPremisesConnection body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, "{+baseurl}/deviceManagement/virtualEndpoint/onPremisesConnections/{cloudPcOnPremisesConnection%2Did}", pathParameters); + requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link CloudPcOnPremisesConnectionItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CloudPcOnPremisesConnectionItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new CloudPcOnPremisesConnectionItemRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class DeleteRequestConfiguration extends BaseRequestConfiguration { + } + /** + * Read the properties and relationships of the cloudPcOnPremisesConnection object. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PatchRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/onpremisesconnections/item/runhealthchecks/RunHealthChecksRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/onpremisesconnections/item/runhealthchecks/RunHealthChecksRequestBuilder.java new file mode 100644 index 00000000000..ac715382733 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/onpremisesconnections/item/runhealthchecks/RunHealthChecksRequestBuilder.java @@ -0,0 +1,93 @@ +package com.microsoft.graph.devicemanagement.virtualendpoint.onpremisesconnections.item.runhealthchecks; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to call the runHealthChecks method. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class RunHealthChecksRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link RunHealthChecksRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public RunHealthChecksRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/onPremisesConnections/{cloudPcOnPremisesConnection%2Did}/runHealthChecks", pathParameters); + } + /** + * Instantiates a new {@link RunHealthChecksRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public RunHealthChecksRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/onPremisesConnections/{cloudPcOnPremisesConnection%2Did}/runHealthChecks", rawUrl); + } + /** + * Run health checks on the cloudPcOnPremisesConnection object. It triggers a new health check for the cloudPcOnPremisesConnection (../resources/cloudpconpremisesconnection.md) object and changes the healthCheckStatus and [healthCheckStatusDetail properties when check finished. + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + public void post() { + post(null); + } + /** + * Run health checks on the cloudPcOnPremisesConnection object. It triggers a new health check for the cloudPcOnPremisesConnection (../resources/cloudpconpremisesconnection.md) object and changes the healthCheckStatus and [healthCheckStatusDetail properties when check finished. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + public void post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * Run health checks on the cloudPcOnPremisesConnection object. It triggers a new health check for the cloudPcOnPremisesConnection (../resources/cloudpconpremisesconnection.md) object and changes the healthCheckStatus and [healthCheckStatusDetail properties when check finished. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation() { + return toPostRequestInformation(null); + } + /** + * Run health checks on the cloudPcOnPremisesConnection object. It triggers a new health check for the cloudPcOnPremisesConnection (../resources/cloudpconpremisesconnection.md) object and changes the healthCheckStatus and [healthCheckStatusDetail properties when check finished. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link RunHealthChecksRequestBuilder} + */ + @jakarta.annotation.Nonnull + public RunHealthChecksRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new RunHealthChecksRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/provisioningpolicies/ProvisioningPoliciesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/provisioningpolicies/ProvisioningPoliciesRequestBuilder.java new file mode 100644 index 00000000000..cb2f5a1638e --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/provisioningpolicies/ProvisioningPoliciesRequestBuilder.java @@ -0,0 +1,247 @@ +package com.microsoft.graph.devicemanagement.virtualendpoint.provisioningpolicies; + +import com.microsoft.graph.devicemanagement.virtualendpoint.provisioningpolicies.count.CountRequestBuilder; +import com.microsoft.graph.devicemanagement.virtualendpoint.provisioningpolicies.item.CloudPcProvisioningPolicyItemRequestBuilder; +import com.microsoft.graph.models.CloudPcProvisioningPolicy; +import com.microsoft.graph.models.CloudPcProvisioningPolicyCollectionResponse; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the provisioningPolicies property of the microsoft.graph.virtualEndpoint entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class ProvisioningPoliciesRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to count the resources in the collection. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder count() { + return new CountRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to manage the provisioningPolicies property of the microsoft.graph.virtualEndpoint entity. + * @param cloudPcProvisioningPolicyId The unique identifier of cloudPcProvisioningPolicy + * @return a {@link CloudPcProvisioningPolicyItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CloudPcProvisioningPolicyItemRequestBuilder byCloudPcProvisioningPolicyId(@jakarta.annotation.Nonnull final String cloudPcProvisioningPolicyId) { + Objects.requireNonNull(cloudPcProvisioningPolicyId); + final HashMap urlTplParams = new HashMap(this.pathParameters); + urlTplParams.put("cloudPcProvisioningPolicy%2Did", cloudPcProvisioningPolicyId); + return new CloudPcProvisioningPolicyItemRequestBuilder(urlTplParams, requestAdapter); + } + /** + * Instantiates a new {@link ProvisioningPoliciesRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public ProvisioningPoliciesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link ProvisioningPoliciesRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public ProvisioningPoliciesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * List properties and relationships of the cloudPcProvisioningPolicy objects. + * @return a {@link CloudPcProvisioningPolicyCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public CloudPcProvisioningPolicyCollectionResponse get() { + return get(null); + } + /** + * List properties and relationships of the cloudPcProvisioningPolicy objects. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link CloudPcProvisioningPolicyCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public CloudPcProvisioningPolicyCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, CloudPcProvisioningPolicyCollectionResponse::createFromDiscriminatorValue); + } + /** + * Create a new cloudPcProvisioningPolicy object. + * @param body The request body + * @return a {@link CloudPcProvisioningPolicy} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public CloudPcProvisioningPolicy post(@jakarta.annotation.Nonnull final CloudPcProvisioningPolicy body) { + return post(body, null); + } + /** + * Create a new cloudPcProvisioningPolicy object. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link CloudPcProvisioningPolicy} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public CloudPcProvisioningPolicy post(@jakarta.annotation.Nonnull final CloudPcProvisioningPolicy body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, CloudPcProvisioningPolicy::createFromDiscriminatorValue); + } + /** + * List properties and relationships of the cloudPcProvisioningPolicy objects. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * List properties and relationships of the cloudPcProvisioningPolicy objects. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Create a new cloudPcProvisioningPolicy object. + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CloudPcProvisioningPolicy body) { + return toPostRequestInformation(body, null); + } + /** + * Create a new cloudPcProvisioningPolicy object. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CloudPcProvisioningPolicy body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, "{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies", pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link ProvisioningPoliciesRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ProvisioningPoliciesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new ProvisioningPoliciesRequestBuilder(rawUrl, requestAdapter); + } + /** + * List properties and relationships of the cloudPcProvisioningPolicy objects. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Include count of items + */ + @jakarta.annotation.Nullable + public Boolean count; + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Order items by property values + */ + @jakarta.annotation.Nullable + public String[] orderby; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Skip the first n items + */ + @jakarta.annotation.Nullable + public Integer skip; + /** + * Show only the first n items + */ + @jakarta.annotation.Nullable + public Integer top; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24count", count); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + allQueryParams.put("%24skip", skip); + allQueryParams.put("%24top", top); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24orderby", orderby); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/provisioningpolicies/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/provisioningpolicies/count/CountRequestBuilder.java new file mode 100644 index 00000000000..e4022860562 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/provisioningpolicies/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +package com.microsoft.graph.devicemanagement.virtualendpoint.provisioningpolicies.count; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to count the resources in the collection. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CountRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/$count{?%24filter,%24search}", pathParameters); + } + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/$count{?%24filter,%24search}", rawUrl); + } + /** + * Get the number of the resource + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get() { + return get(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); + } + /** + * Get the number of the resource + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new CountRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get the number of the resource + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/provisioningpolicies/item/CloudPcProvisioningPolicyItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/provisioningpolicies/item/CloudPcProvisioningPolicyItemRequestBuilder.java new file mode 100644 index 00000000000..d38be261f85 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/provisioningpolicies/item/CloudPcProvisioningPolicyItemRequestBuilder.java @@ -0,0 +1,252 @@ +package com.microsoft.graph.devicemanagement.virtualendpoint.provisioningpolicies.item; + +import com.microsoft.graph.devicemanagement.virtualendpoint.provisioningpolicies.item.assign.AssignRequestBuilder; +import com.microsoft.graph.devicemanagement.virtualendpoint.provisioningpolicies.item.assignments.AssignmentsRequestBuilder; +import com.microsoft.graph.models.CloudPcProvisioningPolicy; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the provisioningPolicies property of the microsoft.graph.virtualEndpoint entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CloudPcProvisioningPolicyItemRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to call the assign method. + * @return a {@link AssignRequestBuilder} + */ + @jakarta.annotation.Nonnull + public AssignRequestBuilder assign() { + return new AssignRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to manage the assignments property of the microsoft.graph.cloudPcProvisioningPolicy entity. + * @return a {@link AssignmentsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public AssignmentsRequestBuilder assignments() { + return new AssignmentsRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link CloudPcProvisioningPolicyItemRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CloudPcProvisioningPolicyItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link CloudPcProvisioningPolicyItemRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CloudPcProvisioningPolicyItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}{?%24expand,%24select}", rawUrl); + } + /** + * Delete a cloudPcProvisioningPolicy object. You cant delete a policy thats in use. + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + public void delete() { + delete(null); + } + /** + * Delete a cloudPcProvisioningPolicy object. You cant delete a policy thats in use. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * Read the properties and relationships of a cloudPcProvisioningPolicy object. + * @return a {@link CloudPcProvisioningPolicy} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public CloudPcProvisioningPolicy get() { + return get(null); + } + /** + * Read the properties and relationships of a cloudPcProvisioningPolicy object. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link CloudPcProvisioningPolicy} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public CloudPcProvisioningPolicy get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, CloudPcProvisioningPolicy::createFromDiscriminatorValue); + } + /** + * Update the properties of a cloudPcProvisioningPolicy object. + * @param body The request body + * @return a {@link CloudPcProvisioningPolicy} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public CloudPcProvisioningPolicy patch(@jakarta.annotation.Nonnull final CloudPcProvisioningPolicy body) { + return patch(body, null); + } + /** + * Update the properties of a cloudPcProvisioningPolicy object. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link CloudPcProvisioningPolicy} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public CloudPcProvisioningPolicy patch(@jakarta.annotation.Nonnull final CloudPcProvisioningPolicy body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, CloudPcProvisioningPolicy::createFromDiscriminatorValue); + } + /** + * Delete a cloudPcProvisioningPolicy object. You cant delete a policy thats in use. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation() { + return toDeleteRequestInformation(null); + } + /** + * Delete a cloudPcProvisioningPolicy object. You cant delete a policy thats in use. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, "{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}", pathParameters); + requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Read the properties and relationships of a cloudPcProvisioningPolicy object. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Read the properties and relationships of a cloudPcProvisioningPolicy object. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update the properties of a cloudPcProvisioningPolicy object. + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final CloudPcProvisioningPolicy body) { + return toPatchRequestInformation(body, null); + } + /** + * Update the properties of a cloudPcProvisioningPolicy object. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final CloudPcProvisioningPolicy body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, "{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}", pathParameters); + requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link CloudPcProvisioningPolicyItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CloudPcProvisioningPolicyItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new CloudPcProvisioningPolicyItemRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class DeleteRequestConfiguration extends BaseRequestConfiguration { + } + /** + * Read the properties and relationships of a cloudPcProvisioningPolicy object. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PatchRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/provisioningpolicies/item/assign/AssignPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/provisioningpolicies/item/assign/AssignPostRequestBody.java new file mode 100644 index 00000000000..fa153f2e330 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/provisioningpolicies/item/assign/AssignPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.devicemanagement.virtualendpoint.provisioningpolicies.item.assign; + +import com.microsoft.graph.models.CloudPcProvisioningPolicyAssignment; +import com.microsoft.kiota.serialization.AdditionalDataHolder; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import com.microsoft.kiota.store.BackedModel; +import com.microsoft.kiota.store.BackingStore; +import com.microsoft.kiota.store.BackingStoreFactorySingleton; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class AssignPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link AssignPostRequestBody} and sets the default values. + */ + public AssignPostRequestBody() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link AssignPostRequestBody} + */ + @jakarta.annotation.Nonnull + public static AssignPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new AssignPostRequestBody(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the assignments property value. The assignments property + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getAssignments() { + return this.backingStore.get("assignments"); + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(1); + deserializerMap.put("assignments", (n) -> { this.setAssignments(n.getCollectionOfObjectValues(CloudPcProvisioningPolicyAssignment::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + writer.writeCollectionOfObjectValues("assignments", this.getAssignments()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { + this.backingStore.set("additionalData", value); + } + /** + * Sets the assignments property value. The assignments property + * @param value Value to set for the assignments property. + */ + public void setAssignments(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("assignments", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @param value Value to set for the backingStore property. + */ + public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { + Objects.requireNonNull(value); + this.backingStore = value; + } +} diff --git a/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/provisioningpolicies/item/assign/AssignRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/provisioningpolicies/item/assign/AssignRequestBuilder.java new file mode 100644 index 00000000000..72d8a10a128 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/provisioningpolicies/item/assign/AssignRequestBuilder.java @@ -0,0 +1,100 @@ +package com.microsoft.graph.devicemanagement.virtualendpoint.provisioningpolicies.item.assign; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to call the assign method. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class AssignRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link AssignRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public AssignRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}/assign", pathParameters); + } + /** + * Instantiates a new {@link AssignRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public AssignRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}/assign", rawUrl); + } + /** + * Assign a cloudPcProvisioningPolicy to user groups. + * @param body The request body + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + public void post(@jakarta.annotation.Nonnull final AssignPostRequestBody body) { + post(body, null); + } + /** + * Assign a cloudPcProvisioningPolicy to user groups. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + public void post(@jakarta.annotation.Nonnull final AssignPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * Assign a cloudPcProvisioningPolicy to user groups. + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AssignPostRequestBody body) { + return toPostRequestInformation(body, null); + } + /** + * Assign a cloudPcProvisioningPolicy to user groups. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AssignPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link AssignRequestBuilder} + */ + @jakarta.annotation.Nonnull + public AssignRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new AssignRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/provisioningpolicies/item/assignments/AssignmentsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/provisioningpolicies/item/assignments/AssignmentsRequestBuilder.java new file mode 100644 index 00000000000..dffec14d496 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/provisioningpolicies/item/assignments/AssignmentsRequestBuilder.java @@ -0,0 +1,243 @@ +package com.microsoft.graph.devicemanagement.virtualendpoint.provisioningpolicies.item.assignments; + +import com.microsoft.graph.devicemanagement.virtualendpoint.provisioningpolicies.item.assignments.count.CountRequestBuilder; +import com.microsoft.graph.devicemanagement.virtualendpoint.provisioningpolicies.item.assignments.item.CloudPcProvisioningPolicyAssignmentItemRequestBuilder; +import com.microsoft.graph.models.CloudPcProvisioningPolicyAssignment; +import com.microsoft.graph.models.CloudPcProvisioningPolicyAssignmentCollectionResponse; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the assignments property of the microsoft.graph.cloudPcProvisioningPolicy entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class AssignmentsRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to count the resources in the collection. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder count() { + return new CountRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to manage the assignments property of the microsoft.graph.cloudPcProvisioningPolicy entity. + * @param cloudPcProvisioningPolicyAssignmentId The unique identifier of cloudPcProvisioningPolicyAssignment + * @return a {@link CloudPcProvisioningPolicyAssignmentItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CloudPcProvisioningPolicyAssignmentItemRequestBuilder byCloudPcProvisioningPolicyAssignmentId(@jakarta.annotation.Nonnull final String cloudPcProvisioningPolicyAssignmentId) { + Objects.requireNonNull(cloudPcProvisioningPolicyAssignmentId); + final HashMap urlTplParams = new HashMap(this.pathParameters); + urlTplParams.put("cloudPcProvisioningPolicyAssignment%2Did", cloudPcProvisioningPolicyAssignmentId); + return new CloudPcProvisioningPolicyAssignmentItemRequestBuilder(urlTplParams, requestAdapter); + } + /** + * Instantiates a new {@link AssignmentsRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public AssignmentsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}/assignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link AssignmentsRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public AssignmentsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}/assignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * A defined collection of provisioning policy assignments. Represents the set of Microsoft 365 groups and security groups in Microsoft Entra ID that have provisioning policy assigned. Returned only on $expand. For an example about how to get the assignments relationship, see Get cloudPcProvisioningPolicy. + * @return a {@link CloudPcProvisioningPolicyAssignmentCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public CloudPcProvisioningPolicyAssignmentCollectionResponse get() { + return get(null); + } + /** + * A defined collection of provisioning policy assignments. Represents the set of Microsoft 365 groups and security groups in Microsoft Entra ID that have provisioning policy assigned. Returned only on $expand. For an example about how to get the assignments relationship, see Get cloudPcProvisioningPolicy. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link CloudPcProvisioningPolicyAssignmentCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public CloudPcProvisioningPolicyAssignmentCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, CloudPcProvisioningPolicyAssignmentCollectionResponse::createFromDiscriminatorValue); + } + /** + * Create new navigation property to assignments for deviceManagement + * @param body The request body + * @return a {@link CloudPcProvisioningPolicyAssignment} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public CloudPcProvisioningPolicyAssignment post(@jakarta.annotation.Nonnull final CloudPcProvisioningPolicyAssignment body) { + return post(body, null); + } + /** + * Create new navigation property to assignments for deviceManagement + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link CloudPcProvisioningPolicyAssignment} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public CloudPcProvisioningPolicyAssignment post(@jakarta.annotation.Nonnull final CloudPcProvisioningPolicyAssignment body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, CloudPcProvisioningPolicyAssignment::createFromDiscriminatorValue); + } + /** + * A defined collection of provisioning policy assignments. Represents the set of Microsoft 365 groups and security groups in Microsoft Entra ID that have provisioning policy assigned. Returned only on $expand. For an example about how to get the assignments relationship, see Get cloudPcProvisioningPolicy. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * A defined collection of provisioning policy assignments. Represents the set of Microsoft 365 groups and security groups in Microsoft Entra ID that have provisioning policy assigned. Returned only on $expand. For an example about how to get the assignments relationship, see Get cloudPcProvisioningPolicy. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Create new navigation property to assignments for deviceManagement + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CloudPcProvisioningPolicyAssignment body) { + return toPostRequestInformation(body, null); + } + /** + * Create new navigation property to assignments for deviceManagement + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CloudPcProvisioningPolicyAssignment body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, "{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}/assignments", pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link AssignmentsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public AssignmentsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new AssignmentsRequestBuilder(rawUrl, requestAdapter); + } + /** + * A defined collection of provisioning policy assignments. Represents the set of Microsoft 365 groups and security groups in Microsoft Entra ID that have provisioning policy assigned. Returned only on $expand. For an example about how to get the assignments relationship, see Get cloudPcProvisioningPolicy. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Include count of items + */ + @jakarta.annotation.Nullable + public Boolean count; + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Order items by property values + */ + @jakarta.annotation.Nullable + public String[] orderby; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Skip the first n items + */ + @jakarta.annotation.Nullable + public Integer skip; + /** + * Show only the first n items + */ + @jakarta.annotation.Nullable + public Integer top; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24count", count); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + allQueryParams.put("%24skip", skip); + allQueryParams.put("%24top", top); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24orderby", orderby); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/provisioningpolicies/item/assignments/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/provisioningpolicies/item/assignments/count/CountRequestBuilder.java new file mode 100644 index 00000000000..0e53c2060db --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/provisioningpolicies/item/assignments/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +package com.microsoft.graph.devicemanagement.virtualendpoint.provisioningpolicies.item.assignments.count; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to count the resources in the collection. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CountRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}/assignments/$count{?%24filter,%24search}", pathParameters); + } + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}/assignments/$count{?%24filter,%24search}", rawUrl); + } + /** + * Get the number of the resource + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get() { + return get(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); + } + /** + * Get the number of the resource + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new CountRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get the number of the resource + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/provisioningpolicies/item/assignments/item/CloudPcProvisioningPolicyAssignmentItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/provisioningpolicies/item/assignments/item/CloudPcProvisioningPolicyAssignmentItemRequestBuilder.java new file mode 100644 index 00000000000..288b46eeabb --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/provisioningpolicies/item/assignments/item/CloudPcProvisioningPolicyAssignmentItemRequestBuilder.java @@ -0,0 +1,237 @@ +package com.microsoft.graph.devicemanagement.virtualendpoint.provisioningpolicies.item.assignments.item; + +import com.microsoft.graph.devicemanagement.virtualendpoint.provisioningpolicies.item.assignments.item.assignedusers.AssignedUsersRequestBuilder; +import com.microsoft.graph.models.CloudPcProvisioningPolicyAssignment; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the assignments property of the microsoft.graph.cloudPcProvisioningPolicy entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CloudPcProvisioningPolicyAssignmentItemRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to manage the assignedUsers property of the microsoft.graph.cloudPcProvisioningPolicyAssignment entity. + * @return a {@link AssignedUsersRequestBuilder} + */ + @jakarta.annotation.Nonnull + public AssignedUsersRequestBuilder assignedUsers() { + return new AssignedUsersRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link CloudPcProvisioningPolicyAssignmentItemRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CloudPcProvisioningPolicyAssignmentItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}/assignments/{cloudPcProvisioningPolicyAssignment%2Did}{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link CloudPcProvisioningPolicyAssignmentItemRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CloudPcProvisioningPolicyAssignmentItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}/assignments/{cloudPcProvisioningPolicyAssignment%2Did}{?%24expand,%24select}", rawUrl); + } + /** + * Delete navigation property assignments for deviceManagement + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete() { + delete(null); + } + /** + * Delete navigation property assignments for deviceManagement + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * A defined collection of provisioning policy assignments. Represents the set of Microsoft 365 groups and security groups in Microsoft Entra ID that have provisioning policy assigned. Returned only on $expand. For an example about how to get the assignments relationship, see Get cloudPcProvisioningPolicy. + * @return a {@link CloudPcProvisioningPolicyAssignment} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public CloudPcProvisioningPolicyAssignment get() { + return get(null); + } + /** + * A defined collection of provisioning policy assignments. Represents the set of Microsoft 365 groups and security groups in Microsoft Entra ID that have provisioning policy assigned. Returned only on $expand. For an example about how to get the assignments relationship, see Get cloudPcProvisioningPolicy. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link CloudPcProvisioningPolicyAssignment} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public CloudPcProvisioningPolicyAssignment get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, CloudPcProvisioningPolicyAssignment::createFromDiscriminatorValue); + } + /** + * Update the navigation property assignments in deviceManagement + * @param body The request body + * @return a {@link CloudPcProvisioningPolicyAssignment} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public CloudPcProvisioningPolicyAssignment patch(@jakarta.annotation.Nonnull final CloudPcProvisioningPolicyAssignment body) { + return patch(body, null); + } + /** + * Update the navigation property assignments in deviceManagement + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link CloudPcProvisioningPolicyAssignment} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public CloudPcProvisioningPolicyAssignment patch(@jakarta.annotation.Nonnull final CloudPcProvisioningPolicyAssignment body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, CloudPcProvisioningPolicyAssignment::createFromDiscriminatorValue); + } + /** + * Delete navigation property assignments for deviceManagement + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation() { + return toDeleteRequestInformation(null); + } + /** + * Delete navigation property assignments for deviceManagement + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, "{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}/assignments/{cloudPcProvisioningPolicyAssignment%2Did}", pathParameters); + requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * A defined collection of provisioning policy assignments. Represents the set of Microsoft 365 groups and security groups in Microsoft Entra ID that have provisioning policy assigned. Returned only on $expand. For an example about how to get the assignments relationship, see Get cloudPcProvisioningPolicy. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * A defined collection of provisioning policy assignments. Represents the set of Microsoft 365 groups and security groups in Microsoft Entra ID that have provisioning policy assigned. Returned only on $expand. For an example about how to get the assignments relationship, see Get cloudPcProvisioningPolicy. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update the navigation property assignments in deviceManagement + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final CloudPcProvisioningPolicyAssignment body) { + return toPatchRequestInformation(body, null); + } + /** + * Update the navigation property assignments in deviceManagement + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final CloudPcProvisioningPolicyAssignment body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, "{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}/assignments/{cloudPcProvisioningPolicyAssignment%2Did}", pathParameters); + requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link CloudPcProvisioningPolicyAssignmentItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CloudPcProvisioningPolicyAssignmentItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new CloudPcProvisioningPolicyAssignmentItemRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class DeleteRequestConfiguration extends BaseRequestConfiguration { + } + /** + * A defined collection of provisioning policy assignments. Represents the set of Microsoft 365 groups and security groups in Microsoft Entra ID that have provisioning policy assigned. Returned only on $expand. For an example about how to get the assignments relationship, see Get cloudPcProvisioningPolicy. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PatchRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/provisioningpolicies/item/assignments/item/assignedusers/AssignedUsersRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/provisioningpolicies/item/assignments/item/assignedusers/AssignedUsersRequestBuilder.java new file mode 100644 index 00000000000..86eb09d93a2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/provisioningpolicies/item/assignments/item/assignedusers/AssignedUsersRequestBuilder.java @@ -0,0 +1,187 @@ +package com.microsoft.graph.devicemanagement.virtualendpoint.provisioningpolicies.item.assignments.item.assignedusers; + +import com.microsoft.graph.devicemanagement.virtualendpoint.provisioningpolicies.item.assignments.item.assignedusers.count.CountRequestBuilder; +import com.microsoft.graph.devicemanagement.virtualendpoint.provisioningpolicies.item.assignments.item.assignedusers.item.UserItemRequestBuilder; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.UserCollectionResponse; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the assignedUsers property of the microsoft.graph.cloudPcProvisioningPolicyAssignment entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class AssignedUsersRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to count the resources in the collection. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder count() { + return new CountRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to manage the assignedUsers property of the microsoft.graph.cloudPcProvisioningPolicyAssignment entity. + * @param userId The unique identifier of user + * @return a {@link UserItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public UserItemRequestBuilder byUserId(@jakarta.annotation.Nonnull final String userId) { + Objects.requireNonNull(userId); + final HashMap urlTplParams = new HashMap(this.pathParameters); + urlTplParams.put("user%2Did", userId); + return new UserItemRequestBuilder(urlTplParams, requestAdapter); + } + /** + * Instantiates a new {@link AssignedUsersRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public AssignedUsersRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}/assignments/{cloudPcProvisioningPolicyAssignment%2Did}/assignedUsers{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link AssignedUsersRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public AssignedUsersRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}/assignments/{cloudPcProvisioningPolicyAssignment%2Did}/assignedUsers{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * The assignment targeted users for the provisioning policy. This list of users is computed based on assignments, licenses, group memberships, and policies. Read-only. Supports$expand. + * @return a {@link UserCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public UserCollectionResponse get() { + return get(null); + } + /** + * The assignment targeted users for the provisioning policy. This list of users is computed based on assignments, licenses, group memberships, and policies. Read-only. Supports$expand. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link UserCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public UserCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, UserCollectionResponse::createFromDiscriminatorValue); + } + /** + * The assignment targeted users for the provisioning policy. This list of users is computed based on assignments, licenses, group memberships, and policies. Read-only. Supports$expand. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * The assignment targeted users for the provisioning policy. This list of users is computed based on assignments, licenses, group memberships, and policies. Read-only. Supports$expand. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link AssignedUsersRequestBuilder} + */ + @jakarta.annotation.Nonnull + public AssignedUsersRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new AssignedUsersRequestBuilder(rawUrl, requestAdapter); + } + /** + * The assignment targeted users for the provisioning policy. This list of users is computed based on assignments, licenses, group memberships, and policies. Read-only. Supports$expand. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Include count of items + */ + @jakarta.annotation.Nullable + public Boolean count; + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Order items by property values + */ + @jakarta.annotation.Nullable + public String[] orderby; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Skip the first n items + */ + @jakarta.annotation.Nullable + public Integer skip; + /** + * Show only the first n items + */ + @jakarta.annotation.Nullable + public Integer top; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24count", count); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + allQueryParams.put("%24skip", skip); + allQueryParams.put("%24top", top); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24orderby", orderby); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/provisioningpolicies/item/assignments/item/assignedusers/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/provisioningpolicies/item/assignments/item/assignedusers/count/CountRequestBuilder.java new file mode 100644 index 00000000000..73a9178961b --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/provisioningpolicies/item/assignments/item/assignedusers/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +package com.microsoft.graph.devicemanagement.virtualendpoint.provisioningpolicies.item.assignments.item.assignedusers.count; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to count the resources in the collection. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CountRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}/assignments/{cloudPcProvisioningPolicyAssignment%2Did}/assignedUsers/$count{?%24filter,%24search}", pathParameters); + } + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}/assignments/{cloudPcProvisioningPolicyAssignment%2Did}/assignedUsers/$count{?%24filter,%24search}", rawUrl); + } + /** + * Get the number of the resource + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get() { + return get(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); + } + /** + * Get the number of the resource + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new CountRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get the number of the resource + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/provisioningpolicies/item/assignments/item/assignedusers/item/UserItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/provisioningpolicies/item/assignments/item/assignedusers/item/UserItemRequestBuilder.java new file mode 100644 index 00000000000..1231a0fc7c9 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/provisioningpolicies/item/assignments/item/assignedusers/item/UserItemRequestBuilder.java @@ -0,0 +1,147 @@ +package com.microsoft.graph.devicemanagement.virtualendpoint.provisioningpolicies.item.assignments.item.assignedusers.item; + +import com.microsoft.graph.devicemanagement.virtualendpoint.provisioningpolicies.item.assignments.item.assignedusers.item.mailboxsettings.MailboxSettingsRequestBuilder; +import com.microsoft.graph.devicemanagement.virtualendpoint.provisioningpolicies.item.assignments.item.assignedusers.item.serviceprovisioningerrors.ServiceProvisioningErrorsRequestBuilder; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.User; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the assignedUsers property of the microsoft.graph.cloudPcProvisioningPolicyAssignment entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class UserItemRequestBuilder extends BaseRequestBuilder { + /** + * The mailboxSettings property + * @return a {@link MailboxSettingsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public MailboxSettingsRequestBuilder mailboxSettings() { + return new MailboxSettingsRequestBuilder(pathParameters, requestAdapter); + } + /** + * The serviceProvisioningErrors property + * @return a {@link ServiceProvisioningErrorsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ServiceProvisioningErrorsRequestBuilder serviceProvisioningErrors() { + return new ServiceProvisioningErrorsRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link UserItemRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public UserItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}/assignments/{cloudPcProvisioningPolicyAssignment%2Did}/assignedUsers/{user%2Did}{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link UserItemRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public UserItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}/assignments/{cloudPcProvisioningPolicyAssignment%2Did}/assignedUsers/{user%2Did}{?%24expand,%24select}", rawUrl); + } + /** + * The assignment targeted users for the provisioning policy. This list of users is computed based on assignments, licenses, group memberships, and policies. Read-only. Supports$expand. + * @return a {@link User} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public User get() { + return get(null); + } + /** + * The assignment targeted users for the provisioning policy. This list of users is computed based on assignments, licenses, group memberships, and policies. Read-only. Supports$expand. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link User} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public User get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, User::createFromDiscriminatorValue); + } + /** + * The assignment targeted users for the provisioning policy. This list of users is computed based on assignments, licenses, group memberships, and policies. Read-only. Supports$expand. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * The assignment targeted users for the provisioning policy. This list of users is computed based on assignments, licenses, group memberships, and policies. Read-only. Supports$expand. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link UserItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public UserItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new UserItemRequestBuilder(rawUrl, requestAdapter); + } + /** + * The assignment targeted users for the provisioning policy. This list of users is computed based on assignments, licenses, group memberships, and policies. Read-only. Supports$expand. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/provisioningpolicies/item/assignments/item/assignedusers/item/mailboxsettings/MailboxSettingsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/provisioningpolicies/item/assignments/item/assignedusers/item/mailboxsettings/MailboxSettingsRequestBuilder.java new file mode 100644 index 00000000000..a45258ba219 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/provisioningpolicies/item/assignments/item/assignedusers/item/mailboxsettings/MailboxSettingsRequestBuilder.java @@ -0,0 +1,184 @@ +package com.microsoft.graph.devicemanagement.virtualendpoint.provisioningpolicies.item.assignments.item.assignedusers.item.mailboxsettings; + +import com.microsoft.graph.models.MailboxSettings; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Builds and executes requests for operations under /deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy-id}/assignments/{cloudPcProvisioningPolicyAssignment-id}/assignedUsers/{user-id}/mailboxSettings + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class MailboxSettingsRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link MailboxSettingsRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public MailboxSettingsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}/assignments/{cloudPcProvisioningPolicyAssignment%2Did}/assignedUsers/{user%2Did}/mailboxSettings{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link MailboxSettingsRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public MailboxSettingsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}/assignments/{cloudPcProvisioningPolicyAssignment%2Did}/assignedUsers/{user%2Did}/mailboxSettings{?%24expand,%24select}", rawUrl); + } + /** + * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. + * @return a {@link MailboxSettings} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public MailboxSettings get() { + return get(null); + } + /** + * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link MailboxSettings} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public MailboxSettings get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, MailboxSettings::createFromDiscriminatorValue); + } + /** + * Update property mailboxSettings value. + * @param body The request body + * @return a {@link MailboxSettings} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public MailboxSettings patch(@jakarta.annotation.Nonnull final MailboxSettings body) { + return patch(body, null); + } + /** + * Update property mailboxSettings value. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link MailboxSettings} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public MailboxSettings patch(@jakarta.annotation.Nonnull final MailboxSettings body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, MailboxSettings::createFromDiscriminatorValue); + } + /** + * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update property mailboxSettings value. + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final MailboxSettings body) { + return toPatchRequestInformation(body, null); + } + /** + * Update property mailboxSettings value. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final MailboxSettings body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, "{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}/assignments/{cloudPcProvisioningPolicyAssignment%2Did}/assignedUsers/{user%2Did}/mailboxSettings", pathParameters); + requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link MailboxSettingsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public MailboxSettingsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new MailboxSettingsRequestBuilder(rawUrl, requestAdapter); + } + /** + * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PatchRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/provisioningpolicies/item/assignments/item/assignedusers/item/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/provisioningpolicies/item/assignments/item/assignedusers/item/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java new file mode 100644 index 00000000000..6d59a9a0991 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/provisioningpolicies/item/assignments/item/assignedusers/item/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java @@ -0,0 +1,174 @@ +package com.microsoft.graph.devicemanagement.virtualendpoint.provisioningpolicies.item.assignments.item.assignedusers.item.serviceprovisioningerrors; + +import com.microsoft.graph.devicemanagement.virtualendpoint.provisioningpolicies.item.assignments.item.assignedusers.item.serviceprovisioningerrors.count.CountRequestBuilder; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.ServiceProvisioningErrorCollectionResponse; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Builds and executes requests for operations under /deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy-id}/assignments/{cloudPcProvisioningPolicyAssignment-id}/assignedUsers/{user-id}/serviceProvisioningErrors + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class ServiceProvisioningErrorsRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to count the resources in the collection. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder count() { + return new CountRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link ServiceProvisioningErrorsRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public ServiceProvisioningErrorsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}/assignments/{cloudPcProvisioningPolicyAssignment%2Did}/assignedUsers/{user%2Did}/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link ServiceProvisioningErrorsRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public ServiceProvisioningErrorsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}/assignments/{cloudPcProvisioningPolicyAssignment%2Did}/assignedUsers/{user%2Did}/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + * @return a {@link ServiceProvisioningErrorCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public ServiceProvisioningErrorCollectionResponse get() { + return get(null); + } + /** + * Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link ServiceProvisioningErrorCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public ServiceProvisioningErrorCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, ServiceProvisioningErrorCollectionResponse::createFromDiscriminatorValue); + } + /** + * Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link ServiceProvisioningErrorsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ServiceProvisioningErrorsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, requestAdapter); + } + /** + * Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Include count of items + */ + @jakarta.annotation.Nullable + public Boolean count; + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Order items by property values + */ + @jakarta.annotation.Nullable + public String[] orderby; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Skip the first n items + */ + @jakarta.annotation.Nullable + public Integer skip; + /** + * Show only the first n items + */ + @jakarta.annotation.Nullable + public Integer top; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24count", count); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + allQueryParams.put("%24skip", skip); + allQueryParams.put("%24top", top); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24orderby", orderby); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/provisioningpolicies/item/assignments/item/assignedusers/item/serviceprovisioningerrors/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/provisioningpolicies/item/assignments/item/assignedusers/item/serviceprovisioningerrors/count/CountRequestBuilder.java new file mode 100644 index 00000000000..66fb9686740 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/provisioningpolicies/item/assignments/item/assignedusers/item/serviceprovisioningerrors/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +package com.microsoft.graph.devicemanagement.virtualendpoint.provisioningpolicies.item.assignments.item.assignedusers.item.serviceprovisioningerrors.count; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to count the resources in the collection. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CountRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}/assignments/{cloudPcProvisioningPolicyAssignment%2Did}/assignedUsers/{user%2Did}/serviceProvisioningErrors/$count{?%24filter,%24search}", pathParameters); + } + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}/assignments/{cloudPcProvisioningPolicyAssignment%2Did}/assignedUsers/{user%2Did}/serviceProvisioningErrors/$count{?%24filter,%24search}", rawUrl); + } + /** + * Get the number of the resource + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get() { + return get(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); + } + /** + * Get the number of the resource + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new CountRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get the number of the resource + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/usersettings/UserSettingsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/usersettings/UserSettingsRequestBuilder.java new file mode 100644 index 00000000000..8d7af8b9c69 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/usersettings/UserSettingsRequestBuilder.java @@ -0,0 +1,247 @@ +package com.microsoft.graph.devicemanagement.virtualendpoint.usersettings; + +import com.microsoft.graph.devicemanagement.virtualendpoint.usersettings.count.CountRequestBuilder; +import com.microsoft.graph.devicemanagement.virtualendpoint.usersettings.item.CloudPcUserSettingItemRequestBuilder; +import com.microsoft.graph.models.CloudPcUserSetting; +import com.microsoft.graph.models.CloudPcUserSettingCollectionResponse; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the userSettings property of the microsoft.graph.virtualEndpoint entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class UserSettingsRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to count the resources in the collection. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder count() { + return new CountRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to manage the userSettings property of the microsoft.graph.virtualEndpoint entity. + * @param cloudPcUserSettingId The unique identifier of cloudPcUserSetting + * @return a {@link CloudPcUserSettingItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CloudPcUserSettingItemRequestBuilder byCloudPcUserSettingId(@jakarta.annotation.Nonnull final String cloudPcUserSettingId) { + Objects.requireNonNull(cloudPcUserSettingId); + final HashMap urlTplParams = new HashMap(this.pathParameters); + urlTplParams.put("cloudPcUserSetting%2Did", cloudPcUserSettingId); + return new CloudPcUserSettingItemRequestBuilder(urlTplParams, requestAdapter); + } + /** + * Instantiates a new {@link UserSettingsRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public UserSettingsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/userSettings{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link UserSettingsRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public UserSettingsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/userSettings{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * Get a list of cloudPcUserSetting objects and their properties. + * @return a {@link CloudPcUserSettingCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public CloudPcUserSettingCollectionResponse get() { + return get(null); + } + /** + * Get a list of cloudPcUserSetting objects and their properties. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link CloudPcUserSettingCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public CloudPcUserSettingCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, CloudPcUserSettingCollectionResponse::createFromDiscriminatorValue); + } + /** + * Create a new cloudPcUserSetting object. + * @param body The request body + * @return a {@link CloudPcUserSetting} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public CloudPcUserSetting post(@jakarta.annotation.Nonnull final CloudPcUserSetting body) { + return post(body, null); + } + /** + * Create a new cloudPcUserSetting object. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link CloudPcUserSetting} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public CloudPcUserSetting post(@jakarta.annotation.Nonnull final CloudPcUserSetting body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, CloudPcUserSetting::createFromDiscriminatorValue); + } + /** + * Get a list of cloudPcUserSetting objects and their properties. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get a list of cloudPcUserSetting objects and their properties. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Create a new cloudPcUserSetting object. + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CloudPcUserSetting body) { + return toPostRequestInformation(body, null); + } + /** + * Create a new cloudPcUserSetting object. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CloudPcUserSetting body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, "{+baseurl}/deviceManagement/virtualEndpoint/userSettings", pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link UserSettingsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public UserSettingsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new UserSettingsRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get a list of cloudPcUserSetting objects and their properties. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Include count of items + */ + @jakarta.annotation.Nullable + public Boolean count; + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Order items by property values + */ + @jakarta.annotation.Nullable + public String[] orderby; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Skip the first n items + */ + @jakarta.annotation.Nullable + public Integer skip; + /** + * Show only the first n items + */ + @jakarta.annotation.Nullable + public Integer top; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24count", count); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + allQueryParams.put("%24skip", skip); + allQueryParams.put("%24top", top); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24orderby", orderby); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/usersettings/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/usersettings/count/CountRequestBuilder.java new file mode 100644 index 00000000000..80cd59d6073 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/usersettings/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +package com.microsoft.graph.devicemanagement.virtualendpoint.usersettings.count; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to count the resources in the collection. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CountRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/userSettings/$count{?%24filter,%24search}", pathParameters); + } + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/userSettings/$count{?%24filter,%24search}", rawUrl); + } + /** + * Get the number of the resource + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get() { + return get(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); + } + /** + * Get the number of the resource + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new CountRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get the number of the resource + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/usersettings/item/CloudPcUserSettingItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/usersettings/item/CloudPcUserSettingItemRequestBuilder.java new file mode 100644 index 00000000000..a5c6c8e1a39 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/usersettings/item/CloudPcUserSettingItemRequestBuilder.java @@ -0,0 +1,252 @@ +package com.microsoft.graph.devicemanagement.virtualendpoint.usersettings.item; + +import com.microsoft.graph.devicemanagement.virtualendpoint.usersettings.item.assign.AssignRequestBuilder; +import com.microsoft.graph.devicemanagement.virtualendpoint.usersettings.item.assignments.AssignmentsRequestBuilder; +import com.microsoft.graph.models.CloudPcUserSetting; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the userSettings property of the microsoft.graph.virtualEndpoint entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CloudPcUserSettingItemRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to call the assign method. + * @return a {@link AssignRequestBuilder} + */ + @jakarta.annotation.Nonnull + public AssignRequestBuilder assign() { + return new AssignRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to manage the assignments property of the microsoft.graph.cloudPcUserSetting entity. + * @return a {@link AssignmentsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public AssignmentsRequestBuilder assignments() { + return new AssignmentsRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link CloudPcUserSettingItemRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CloudPcUserSettingItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/userSettings/{cloudPcUserSetting%2Did}{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link CloudPcUserSettingItemRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CloudPcUserSettingItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/userSettings/{cloudPcUserSetting%2Did}{?%24expand,%24select}", rawUrl); + } + /** + * Delete a cloudPcUserSetting object. + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + public void delete() { + delete(null); + } + /** + * Delete a cloudPcUserSetting object. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * Read the properties and relationships of a cloudPcUserSetting object. + * @return a {@link CloudPcUserSetting} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public CloudPcUserSetting get() { + return get(null); + } + /** + * Read the properties and relationships of a cloudPcUserSetting object. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link CloudPcUserSetting} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public CloudPcUserSetting get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, CloudPcUserSetting::createFromDiscriminatorValue); + } + /** + * Update the properties of a cloudPcUserSetting object. + * @param body The request body + * @return a {@link CloudPcUserSetting} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public CloudPcUserSetting patch(@jakarta.annotation.Nonnull final CloudPcUserSetting body) { + return patch(body, null); + } + /** + * Update the properties of a cloudPcUserSetting object. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link CloudPcUserSetting} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public CloudPcUserSetting patch(@jakarta.annotation.Nonnull final CloudPcUserSetting body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, CloudPcUserSetting::createFromDiscriminatorValue); + } + /** + * Delete a cloudPcUserSetting object. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation() { + return toDeleteRequestInformation(null); + } + /** + * Delete a cloudPcUserSetting object. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, "{+baseurl}/deviceManagement/virtualEndpoint/userSettings/{cloudPcUserSetting%2Did}", pathParameters); + requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Read the properties and relationships of a cloudPcUserSetting object. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Read the properties and relationships of a cloudPcUserSetting object. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update the properties of a cloudPcUserSetting object. + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final CloudPcUserSetting body) { + return toPatchRequestInformation(body, null); + } + /** + * Update the properties of a cloudPcUserSetting object. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final CloudPcUserSetting body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, "{+baseurl}/deviceManagement/virtualEndpoint/userSettings/{cloudPcUserSetting%2Did}", pathParameters); + requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link CloudPcUserSettingItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CloudPcUserSettingItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new CloudPcUserSettingItemRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class DeleteRequestConfiguration extends BaseRequestConfiguration { + } + /** + * Read the properties and relationships of a cloudPcUserSetting object. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PatchRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/usersettings/item/assign/AssignPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/usersettings/item/assign/AssignPostRequestBody.java new file mode 100644 index 00000000000..9cc44336ae0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/usersettings/item/assign/AssignPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.devicemanagement.virtualendpoint.usersettings.item.assign; + +import com.microsoft.graph.models.CloudPcUserSettingAssignment; +import com.microsoft.kiota.serialization.AdditionalDataHolder; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import com.microsoft.kiota.store.BackedModel; +import com.microsoft.kiota.store.BackingStore; +import com.microsoft.kiota.store.BackingStoreFactorySingleton; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class AssignPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link AssignPostRequestBody} and sets the default values. + */ + public AssignPostRequestBody() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link AssignPostRequestBody} + */ + @jakarta.annotation.Nonnull + public static AssignPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new AssignPostRequestBody(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the assignments property value. The assignments property + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getAssignments() { + return this.backingStore.get("assignments"); + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(1); + deserializerMap.put("assignments", (n) -> { this.setAssignments(n.getCollectionOfObjectValues(CloudPcUserSettingAssignment::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + writer.writeCollectionOfObjectValues("assignments", this.getAssignments()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { + this.backingStore.set("additionalData", value); + } + /** + * Sets the assignments property value. The assignments property + * @param value Value to set for the assignments property. + */ + public void setAssignments(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("assignments", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @param value Value to set for the backingStore property. + */ + public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { + Objects.requireNonNull(value); + this.backingStore = value; + } +} diff --git a/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/usersettings/item/assign/AssignRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/usersettings/item/assign/AssignRequestBuilder.java new file mode 100644 index 00000000000..b344e0aaba1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/usersettings/item/assign/AssignRequestBuilder.java @@ -0,0 +1,100 @@ +package com.microsoft.graph.devicemanagement.virtualendpoint.usersettings.item.assign; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to call the assign method. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class AssignRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link AssignRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public AssignRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/userSettings/{cloudPcUserSetting%2Did}/assign", pathParameters); + } + /** + * Instantiates a new {@link AssignRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public AssignRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/userSettings/{cloudPcUserSetting%2Did}/assign", rawUrl); + } + /** + * Assign a cloudPcUserSetting to user groups. + * @param body The request body + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + public void post(@jakarta.annotation.Nonnull final AssignPostRequestBody body) { + post(body, null); + } + /** + * Assign a cloudPcUserSetting to user groups. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + public void post(@jakarta.annotation.Nonnull final AssignPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * Assign a cloudPcUserSetting to user groups. + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AssignPostRequestBody body) { + return toPostRequestInformation(body, null); + } + /** + * Assign a cloudPcUserSetting to user groups. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AssignPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link AssignRequestBuilder} + */ + @jakarta.annotation.Nonnull + public AssignRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new AssignRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/usersettings/item/assignments/AssignmentsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/usersettings/item/assignments/AssignmentsRequestBuilder.java new file mode 100644 index 00000000000..0f783d6004e --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/usersettings/item/assignments/AssignmentsRequestBuilder.java @@ -0,0 +1,243 @@ +package com.microsoft.graph.devicemanagement.virtualendpoint.usersettings.item.assignments; + +import com.microsoft.graph.devicemanagement.virtualendpoint.usersettings.item.assignments.count.CountRequestBuilder; +import com.microsoft.graph.devicemanagement.virtualendpoint.usersettings.item.assignments.item.CloudPcUserSettingAssignmentItemRequestBuilder; +import com.microsoft.graph.models.CloudPcUserSettingAssignment; +import com.microsoft.graph.models.CloudPcUserSettingAssignmentCollectionResponse; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the assignments property of the microsoft.graph.cloudPcUserSetting entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class AssignmentsRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to count the resources in the collection. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder count() { + return new CountRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to manage the assignments property of the microsoft.graph.cloudPcUserSetting entity. + * @param cloudPcUserSettingAssignmentId The unique identifier of cloudPcUserSettingAssignment + * @return a {@link CloudPcUserSettingAssignmentItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CloudPcUserSettingAssignmentItemRequestBuilder byCloudPcUserSettingAssignmentId(@jakarta.annotation.Nonnull final String cloudPcUserSettingAssignmentId) { + Objects.requireNonNull(cloudPcUserSettingAssignmentId); + final HashMap urlTplParams = new HashMap(this.pathParameters); + urlTplParams.put("cloudPcUserSettingAssignment%2Did", cloudPcUserSettingAssignmentId); + return new CloudPcUserSettingAssignmentItemRequestBuilder(urlTplParams, requestAdapter); + } + /** + * Instantiates a new {@link AssignmentsRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public AssignmentsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/userSettings/{cloudPcUserSetting%2Did}/assignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link AssignmentsRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public AssignmentsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/userSettings/{cloudPcUserSetting%2Did}/assignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * Represents the set of Microsoft 365 groups and security groups in Microsoft Entra ID that have cloudPCUserSetting assigned. Returned only on $expand. For an example, see Get cloudPcUserSetting. + * @return a {@link CloudPcUserSettingAssignmentCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public CloudPcUserSettingAssignmentCollectionResponse get() { + return get(null); + } + /** + * Represents the set of Microsoft 365 groups and security groups in Microsoft Entra ID that have cloudPCUserSetting assigned. Returned only on $expand. For an example, see Get cloudPcUserSetting. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link CloudPcUserSettingAssignmentCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public CloudPcUserSettingAssignmentCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, CloudPcUserSettingAssignmentCollectionResponse::createFromDiscriminatorValue); + } + /** + * Create new navigation property to assignments for deviceManagement + * @param body The request body + * @return a {@link CloudPcUserSettingAssignment} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public CloudPcUserSettingAssignment post(@jakarta.annotation.Nonnull final CloudPcUserSettingAssignment body) { + return post(body, null); + } + /** + * Create new navigation property to assignments for deviceManagement + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link CloudPcUserSettingAssignment} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public CloudPcUserSettingAssignment post(@jakarta.annotation.Nonnull final CloudPcUserSettingAssignment body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, CloudPcUserSettingAssignment::createFromDiscriminatorValue); + } + /** + * Represents the set of Microsoft 365 groups and security groups in Microsoft Entra ID that have cloudPCUserSetting assigned. Returned only on $expand. For an example, see Get cloudPcUserSetting. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Represents the set of Microsoft 365 groups and security groups in Microsoft Entra ID that have cloudPCUserSetting assigned. Returned only on $expand. For an example, see Get cloudPcUserSetting. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Create new navigation property to assignments for deviceManagement + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CloudPcUserSettingAssignment body) { + return toPostRequestInformation(body, null); + } + /** + * Create new navigation property to assignments for deviceManagement + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CloudPcUserSettingAssignment body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, "{+baseurl}/deviceManagement/virtualEndpoint/userSettings/{cloudPcUserSetting%2Did}/assignments", pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link AssignmentsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public AssignmentsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new AssignmentsRequestBuilder(rawUrl, requestAdapter); + } + /** + * Represents the set of Microsoft 365 groups and security groups in Microsoft Entra ID that have cloudPCUserSetting assigned. Returned only on $expand. For an example, see Get cloudPcUserSetting. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Include count of items + */ + @jakarta.annotation.Nullable + public Boolean count; + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Order items by property values + */ + @jakarta.annotation.Nullable + public String[] orderby; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Skip the first n items + */ + @jakarta.annotation.Nullable + public Integer skip; + /** + * Show only the first n items + */ + @jakarta.annotation.Nullable + public Integer top; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24count", count); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + allQueryParams.put("%24skip", skip); + allQueryParams.put("%24top", top); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24orderby", orderby); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/usersettings/item/assignments/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/usersettings/item/assignments/count/CountRequestBuilder.java new file mode 100644 index 00000000000..5c2c3cca013 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/usersettings/item/assignments/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +package com.microsoft.graph.devicemanagement.virtualendpoint.usersettings.item.assignments.count; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to count the resources in the collection. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CountRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/userSettings/{cloudPcUserSetting%2Did}/assignments/$count{?%24filter,%24search}", pathParameters); + } + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/userSettings/{cloudPcUserSetting%2Did}/assignments/$count{?%24filter,%24search}", rawUrl); + } + /** + * Get the number of the resource + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get() { + return get(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); + } + /** + * Get the number of the resource + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new CountRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get the number of the resource + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/usersettings/item/assignments/item/CloudPcUserSettingAssignmentItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/usersettings/item/assignments/item/CloudPcUserSettingAssignmentItemRequestBuilder.java new file mode 100644 index 00000000000..769df615978 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/devicemanagement/virtualendpoint/usersettings/item/assignments/item/CloudPcUserSettingAssignmentItemRequestBuilder.java @@ -0,0 +1,228 @@ +package com.microsoft.graph.devicemanagement.virtualendpoint.usersettings.item.assignments.item; + +import com.microsoft.graph.models.CloudPcUserSettingAssignment; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the assignments property of the microsoft.graph.cloudPcUserSetting entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CloudPcUserSettingAssignmentItemRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link CloudPcUserSettingAssignmentItemRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CloudPcUserSettingAssignmentItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/userSettings/{cloudPcUserSetting%2Did}/assignments/{cloudPcUserSettingAssignment%2Did}{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link CloudPcUserSettingAssignmentItemRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CloudPcUserSettingAssignmentItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/userSettings/{cloudPcUserSetting%2Did}/assignments/{cloudPcUserSettingAssignment%2Did}{?%24expand,%24select}", rawUrl); + } + /** + * Delete navigation property assignments for deviceManagement + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete() { + delete(null); + } + /** + * Delete navigation property assignments for deviceManagement + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * Represents the set of Microsoft 365 groups and security groups in Microsoft Entra ID that have cloudPCUserSetting assigned. Returned only on $expand. For an example, see Get cloudPcUserSetting. + * @return a {@link CloudPcUserSettingAssignment} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public CloudPcUserSettingAssignment get() { + return get(null); + } + /** + * Represents the set of Microsoft 365 groups and security groups in Microsoft Entra ID that have cloudPCUserSetting assigned. Returned only on $expand. For an example, see Get cloudPcUserSetting. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link CloudPcUserSettingAssignment} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public CloudPcUserSettingAssignment get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, CloudPcUserSettingAssignment::createFromDiscriminatorValue); + } + /** + * Update the navigation property assignments in deviceManagement + * @param body The request body + * @return a {@link CloudPcUserSettingAssignment} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public CloudPcUserSettingAssignment patch(@jakarta.annotation.Nonnull final CloudPcUserSettingAssignment body) { + return patch(body, null); + } + /** + * Update the navigation property assignments in deviceManagement + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link CloudPcUserSettingAssignment} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public CloudPcUserSettingAssignment patch(@jakarta.annotation.Nonnull final CloudPcUserSettingAssignment body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, CloudPcUserSettingAssignment::createFromDiscriminatorValue); + } + /** + * Delete navigation property assignments for deviceManagement + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation() { + return toDeleteRequestInformation(null); + } + /** + * Delete navigation property assignments for deviceManagement + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, "{+baseurl}/deviceManagement/virtualEndpoint/userSettings/{cloudPcUserSetting%2Did}/assignments/{cloudPcUserSettingAssignment%2Did}", pathParameters); + requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Represents the set of Microsoft 365 groups and security groups in Microsoft Entra ID that have cloudPCUserSetting assigned. Returned only on $expand. For an example, see Get cloudPcUserSetting. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Represents the set of Microsoft 365 groups and security groups in Microsoft Entra ID that have cloudPCUserSetting assigned. Returned only on $expand. For an example, see Get cloudPcUserSetting. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update the navigation property assignments in deviceManagement + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final CloudPcUserSettingAssignment body) { + return toPatchRequestInformation(body, null); + } + /** + * Update the navigation property assignments in deviceManagement + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final CloudPcUserSettingAssignment body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, "{+baseurl}/deviceManagement/virtualEndpoint/userSettings/{cloudPcUserSetting%2Did}/assignments/{cloudPcUserSettingAssignment%2Did}", pathParameters); + requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link CloudPcUserSettingAssignmentItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CloudPcUserSettingAssignmentItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new CloudPcUserSettingAssignmentItemRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class DeleteRequestConfiguration extends BaseRequestConfiguration { + } + /** + * Represents the set of Microsoft 365 groups and security groups in Microsoft Entra ID that have cloudPCUserSetting assigned. Returned only on $expand. For an example, see Get cloudPcUserSetting. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PatchRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/names/NamesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/names/NamesRequestBuilder.java index eb174298763..887ef225ef5 100644 --- a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/names/NamesRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/names/NamesRequestBuilder.java @@ -81,7 +81,7 @@ public NamesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jak * Retrieve a list of nameditem objects. * @return a {@link WorkbookNamedItemCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public WorkbookNamedItemCollectionResponse get() { @@ -92,7 +92,7 @@ public WorkbookNamedItemCollectionResponse get() { * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookNamedItemCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public WorkbookNamedItemCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { diff --git a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/names/item/range/RangeRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/names/item/range/RangeRequestBuilder.java index a95b0ba345c..ee60b086714 100644 --- a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/names/item/range/RangeRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/names/item/range/RangeRequestBuilder.java @@ -36,21 +36,21 @@ public RangeRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jak super(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()", rawUrl); } /** - * Retrieve the properties and relationships of range object. + * Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. * @return a {@link WorkbookRange} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public WorkbookRange get() { return get(null); } /** - * Retrieve the properties and relationships of range object. + * Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookRange} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public WorkbookRange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -60,7 +60,7 @@ public WorkbookRange get(@jakarta.annotation.Nullable final java.util.function.C return this.requestAdapter.send(requestInfo, errorMapping, WorkbookRange::createFromDiscriminatorValue); } /** - * Retrieve the properties and relationships of range object. + * Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -68,7 +68,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Retrieve the properties and relationships of range object. + * Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ diff --git a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/tables/add/AddRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/tables/add/AddRequestBuilder.java index 25580bb3f11..bcf6f11d17b 100644 --- a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/tables/add/AddRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/tables/add/AddRequestBuilder.java @@ -36,23 +36,23 @@ public AddRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakar super(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/add", rawUrl); } /** - * Use this API to create a new Table. + * Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is generated. * @param body The request body * @return a {@link WorkbookTable} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public WorkbookTable post(@jakarta.annotation.Nonnull final AddPostRequestBody body) { return post(body, null); } /** - * Use this API to create a new Table. + * Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is generated. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookTable} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public WorkbookTable post(@jakarta.annotation.Nonnull final AddPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -63,7 +63,7 @@ public WorkbookTable post(@jakarta.annotation.Nonnull final AddPostRequestBody b return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTable::createFromDiscriminatorValue); } /** - * Use this API to create a new Table. + * Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is generated. * @param body The request body * @return a {@link RequestInformation} */ @@ -72,7 +72,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Use this API to create a new Table. + * Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is generated. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/tables/item/rows/RowsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/tables/item/rows/RowsRequestBuilder.java index bd0c11a6690..5a192bc510a 100644 --- a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/tables/item/rows/RowsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/tables/item/rows/RowsRequestBuilder.java @@ -73,7 +73,7 @@ public RowsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jaka * Retrieve a list of tablerow objects. * @return a {@link WorkbookTableRowCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public WorkbookTableRowCollectionResponse get() { @@ -84,7 +84,7 @@ public WorkbookTableRowCollectionResponse get() { * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookTableRowCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public WorkbookTableRowCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { diff --git a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/tables/itematwithindex/rows/RowsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/tables/itematwithindex/rows/RowsRequestBuilder.java index 98e876c2541..aefd9ad45d3 100644 --- a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/tables/itematwithindex/rows/RowsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/tables/itematwithindex/rows/RowsRequestBuilder.java @@ -41,7 +41,7 @@ public RowsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jaka * Retrieve a list of tablerow objects. * @return a {@link WorkbookTableRowCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public WorkbookTableRowCollectionResponse get() { @@ -52,7 +52,7 @@ public WorkbookTableRowCollectionResponse get() { * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookTableRowCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public WorkbookTableRowCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { diff --git a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/WorksheetsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/WorksheetsRequestBuilder.java index 1ce11a61e3c..9b2c4f350a2 100644 --- a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/WorksheetsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/WorksheetsRequestBuilder.java @@ -72,7 +72,7 @@ public WorksheetsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, * Retrieve a list of worksheet objects. * @return a {@link WorkbookWorksheetCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public WorkbookWorksheetCollectionResponse get() { @@ -83,7 +83,7 @@ public WorkbookWorksheetCollectionResponse get() { * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookWorksheetCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public WorkbookWorksheetCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { diff --git a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/add/AddRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/add/AddRequestBuilder.java index 45b9c3e8b1c..c2430eefe42 100644 --- a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/add/AddRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/add/AddRequestBuilder.java @@ -36,7 +36,7 @@ public AddRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakar super(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/add", rawUrl); } /** - * Adds a new worksheet to the workbook. The worksheet is added at the end of existing worksheets. If you wish to activate the newly added worksheet, call .activate() on it. + * Add a new worksheet to the workbook. The worksheet is added at the end of existing worksheets. If you want to activate the newly added worksheet, call .activate() on it. * @param body The request body * @return a {@link WorkbookWorksheet} * @throws ODataError When receiving a 4XX or 5XX status code @@ -47,7 +47,7 @@ public WorkbookWorksheet post(@jakarta.annotation.Nonnull final AddPostRequestBo return post(body, null); } /** - * Adds a new worksheet to the workbook. The worksheet is added at the end of existing worksheets. If you wish to activate the newly added worksheet, call .activate() on it. + * Add a new worksheet to the workbook. The worksheet is added at the end of existing worksheets. If you want to activate the newly added worksheet, call .activate() on it. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookWorksheet} @@ -63,7 +63,7 @@ public WorkbookWorksheet post(@jakarta.annotation.Nonnull final AddPostRequestBo return this.requestAdapter.send(requestInfo, errorMapping, WorkbookWorksheet::createFromDiscriminatorValue); } /** - * Adds a new worksheet to the workbook. The worksheet is added at the end of existing worksheets. If you wish to activate the newly added worksheet, call .activate() on it. + * Add a new worksheet to the workbook. The worksheet is added at the end of existing worksheets. If you want to activate the newly added worksheet, call .activate() on it. * @param body The request body * @return a {@link RequestInformation} */ @@ -72,7 +72,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Adds a new worksheet to the workbook. The worksheet is added at the end of existing worksheets. If you wish to activate the newly added worksheet, call .activate() on it. + * Add a new worksheet to the workbook. The worksheet is added at the end of existing worksheets. If you want to activate the newly added worksheet, call .activate() on it. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/charts/ChartsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/charts/ChartsRequestBuilder.java index 41b449bcf0a..d10201e313c 100644 --- a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/charts/ChartsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/charts/ChartsRequestBuilder.java @@ -74,7 +74,7 @@ public ChartsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @ja * Retrieve a list of chart objects. * @return a {@link WorkbookChartCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public WorkbookChartCollectionResponse get() { @@ -85,7 +85,7 @@ public WorkbookChartCollectionResponse get() { * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookChartCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public WorkbookChartCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { diff --git a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/PointsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/PointsRequestBuilder.java index e9eeac0d1f7..485d201b958 100644 --- a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/PointsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/PointsRequestBuilder.java @@ -61,21 +61,21 @@ public PointsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @ja super(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/points{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * Retrieve a list of chartpoints objects. + * Retrieve a list of chartpoint objects. * @return a {@link WorkbookChartPointCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public WorkbookChartPointCollectionResponse get() { return get(null); } /** - * Retrieve a list of chartpoints objects. + * Retrieve a list of chartpoint objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookChartPointCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public WorkbookChartPointCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -122,7 +122,7 @@ public WorkbookChartPoint post(@jakarta.annotation.Nonnull final WorkbookChartPo return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartPoint::createFromDiscriminatorValue); } /** - * Retrieve a list of chartpoints objects. + * Retrieve a list of chartpoint objects. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -130,7 +130,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Retrieve a list of chartpoints objects. + * Retrieve a list of chartpoint objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -176,7 +176,7 @@ public PointsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String raw return new PointsRequestBuilder(rawUrl, requestAdapter); } /** - * Retrieve a list of chartpoints objects. + * Retrieve a list of chartpoint objects. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/charts/item/series/itematwithindex/points/PointsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/charts/item/series/itematwithindex/points/PointsRequestBuilder.java index 3d8209fe41c..48a398aa4d5 100644 --- a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/charts/item/series/itematwithindex/points/PointsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/charts/item/series/itematwithindex/points/PointsRequestBuilder.java @@ -38,21 +38,21 @@ public PointsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @ja super(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/itemAt(index={index})/points{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * Retrieve a list of chartpoints objects. + * Retrieve a list of chartpoint objects. * @return a {@link WorkbookChartPointCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public WorkbookChartPointCollectionResponse get() { return get(null); } /** - * Retrieve a list of chartpoints objects. + * Retrieve a list of chartpoint objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookChartPointCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public WorkbookChartPointCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -89,7 +89,7 @@ public WorkbookChartPoint post(@jakarta.annotation.Nonnull final WorkbookChartPo return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartPoint::createFromDiscriminatorValue); } /** - * Retrieve a list of chartpoints objects. + * Retrieve a list of chartpoint objects. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -97,7 +97,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Retrieve a list of chartpoints objects. + * Retrieve a list of chartpoint objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -143,7 +143,7 @@ public PointsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String raw return new PointsRequestBuilder(rawUrl, requestAdapter); } /** - * Retrieve a list of chartpoints objects. + * Retrieve a list of chartpoint objects. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/names/item/range/RangeRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/names/item/range/RangeRequestBuilder.java index a863911f6b1..fd85e506fb0 100644 --- a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/names/item/range/RangeRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/names/item/range/RangeRequestBuilder.java @@ -36,21 +36,21 @@ public RangeRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jak super(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()", rawUrl); } /** - * Retrieve the properties and relationships of range object. + * Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. * @return a {@link WorkbookRange} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public WorkbookRange get() { return get(null); } /** - * Retrieve the properties and relationships of range object. + * Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookRange} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public WorkbookRange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -60,7 +60,7 @@ public WorkbookRange get(@jakarta.annotation.Nullable final java.util.function.C return this.requestAdapter.send(requestInfo, errorMapping, WorkbookRange::createFromDiscriminatorValue); } /** - * Retrieve the properties and relationships of range object. + * Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -68,7 +68,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Retrieve the properties and relationships of range object. + * Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ diff --git a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/tables/add/AddRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/tables/add/AddRequestBuilder.java index a487e3decfd..635c39d3b34 100644 --- a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/tables/add/AddRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/tables/add/AddRequestBuilder.java @@ -36,23 +36,23 @@ public AddRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakar super(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/add", rawUrl); } /** - * Use this API to create a new Table. + * Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is generated. * @param body The request body * @return a {@link WorkbookTable} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public WorkbookTable post(@jakarta.annotation.Nonnull final AddPostRequestBody body) { return post(body, null); } /** - * Use this API to create a new Table. + * Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is generated. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookTable} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public WorkbookTable post(@jakarta.annotation.Nonnull final AddPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -63,7 +63,7 @@ public WorkbookTable post(@jakarta.annotation.Nonnull final AddPostRequestBody b return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTable::createFromDiscriminatorValue); } /** - * Use this API to create a new Table. + * Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is generated. * @param body The request body * @return a {@link RequestInformation} */ @@ -72,7 +72,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Use this API to create a new Table. + * Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is generated. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/tables/item/rows/RowsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/tables/item/rows/RowsRequestBuilder.java index 4f7c29309e9..346bfa94c9d 100644 --- a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/tables/item/rows/RowsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/tables/item/rows/RowsRequestBuilder.java @@ -73,7 +73,7 @@ public RowsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jaka * Retrieve a list of tablerow objects. * @return a {@link WorkbookTableRowCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public WorkbookTableRowCollectionResponse get() { @@ -84,7 +84,7 @@ public WorkbookTableRowCollectionResponse get() { * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookTableRowCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public WorkbookTableRowCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { diff --git a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/tables/itematwithindex/rows/RowsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/tables/itematwithindex/rows/RowsRequestBuilder.java index e462cf61c33..bb12ade50e2 100644 --- a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/tables/itematwithindex/rows/RowsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/tables/itematwithindex/rows/RowsRequestBuilder.java @@ -41,7 +41,7 @@ public RowsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jaka * Retrieve a list of tablerow objects. * @return a {@link WorkbookTableRowCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public WorkbookTableRowCollectionResponse get() { @@ -52,7 +52,7 @@ public WorkbookTableRowCollectionResponse get() { * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookTableRowCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public WorkbookTableRowCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/conversations/ConversationsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/conversations/ConversationsRequestBuilder.java index a11bb6f1ae6..a367bc6ea62 100644 --- a/src/main/java/com/microsoft/graph/generated/groups/item/conversations/ConversationsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/groups/item/conversations/ConversationsRequestBuilder.java @@ -84,23 +84,23 @@ public ConversationCollectionResponse get(@jakarta.annotation.Nullable final jav return this.requestAdapter.send(requestInfo, errorMapping, ConversationCollectionResponse::createFromDiscriminatorValue); } /** - * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + * Use reply thread or reply post to further post to that conversation. * @param body The request body * @return a {@link Conversation} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public Conversation post(@jakarta.annotation.Nonnull final Conversation body) { return post(body, null); } /** - * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + * Use reply thread or reply post to further post to that conversation. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link Conversation} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public Conversation post(@jakarta.annotation.Nonnull final Conversation body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -131,7 +131,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + * Use reply thread or reply post to further post to that conversation. * @param body The request body * @return a {@link RequestInformation} */ @@ -140,7 +140,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + * Use reply thread or reply post to further post to that conversation. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/conversations/item/threads/item/posts/PostsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/conversations/item/threads/item/posts/PostsRequestBuilder.java index 44f0c725829..165d5b22f3c 100644 --- a/src/main/java/com/microsoft/graph/generated/groups/item/conversations/item/threads/item/posts/PostsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/groups/item/conversations/item/threads/item/posts/PostsRequestBuilder.java @@ -59,21 +59,21 @@ public PostsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jak super(requestAdapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts{?%24count,%24expand,%24filter,%24orderby,%24select,%24skip,%24top}", rawUrl); } /** - * Get the posts of the specified thread. You can specify both the parent conversation and the thread, or,you can specify the thread without referencing the parent conversation. + * Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the post resource supports extensions, you can also use the GET operation to get custom properties and extension data in a post instance. * @return a {@link PostCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public PostCollectionResponse get() { return get(null); } /** - * Get the posts of the specified thread. You can specify both the parent conversation and the thread, or,you can specify the thread without referencing the parent conversation. + * Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the post resource supports extensions, you can also use the GET operation to get custom properties and extension data in a post instance. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link PostCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public PostCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -83,7 +83,7 @@ public PostCollectionResponse get(@jakarta.annotation.Nullable final java.util.f return this.requestAdapter.send(requestInfo, errorMapping, PostCollectionResponse::createFromDiscriminatorValue); } /** - * Get the posts of the specified thread. You can specify both the parent conversation and the thread, or,you can specify the thread without referencing the parent conversation. + * Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the post resource supports extensions, you can also use the GET operation to get custom properties and extension data in a post instance. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -91,7 +91,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Get the posts of the specified thread. You can specify both the parent conversation and the thread, or,you can specify the thread without referencing the parent conversation. + * Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the post resource supports extensions, you can also use the GET operation to get custom properties and extension data in a post instance. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -113,7 +113,7 @@ public PostsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawU return new PostsRequestBuilder(rawUrl, requestAdapter); } /** - * Get the posts of the specified thread. You can specify both the parent conversation and the thread, or,you can specify the thread without referencing the parent conversation. + * Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the post resource supports extensions, you can also use the GET operation to get custom properties and extension data in a post instance. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/conversations/item/threads/item/reply/ReplyRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/conversations/item/threads/item/reply/ReplyRequestBuilder.java index 9902355a599..b20eacba228 100644 --- a/src/main/java/com/microsoft/graph/generated/groups/item/conversations/item/threads/item/reply/ReplyRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/groups/item/conversations/item/threads/item/reply/ReplyRequestBuilder.java @@ -35,20 +35,20 @@ public ReplyRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jak super(requestAdapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/reply", rawUrl); } /** - * Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. + * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. * @param body The request body * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ public void post(@jakarta.annotation.Nonnull final ReplyPostRequestBody body) { post(body, null); } /** - * Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. + * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ public void post(@jakarta.annotation.Nonnull final ReplyPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { Objects.requireNonNull(body); @@ -58,7 +58,7 @@ public void post(@jakarta.annotation.Nonnull final ReplyPostRequestBody body, @j this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. + * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. * @param body The request body * @return a {@link RequestInformation} */ @@ -67,7 +67,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. + * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/photo/PhotoRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/photo/PhotoRequestBuilder.java index a277d84a429..662b7e47a8e 100644 --- a/src/main/java/com/microsoft/graph/generated/groups/item/photo/PhotoRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/groups/item/photo/PhotoRequestBuilder.java @@ -45,6 +45,24 @@ public PhotoRequestBuilder(@jakarta.annotation.Nonnull final HashMap requestConfiguration) { + final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } /** * The group's profile photo * @return a {@link ProfilePhoto} @@ -92,6 +110,26 @@ public ProfilePhoto patch(@jakarta.annotation.Nonnull final ProfilePhoto body, @ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); return this.requestAdapter.send(requestInfo, errorMapping, ProfilePhoto::createFromDiscriminatorValue); } + /** + * Delete navigation property photo for groups + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation() { + return toDeleteRequestInformation(null); + } + /** + * Delete navigation property photo for groups + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, "{+baseurl}/groups/{group%2Did}/photo", pathParameters); + requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } /** * The group's profile photo * @return a {@link RequestInformation} @@ -146,6 +184,12 @@ public PhotoRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawU Objects.requireNonNull(rawUrl); return new PhotoRequestBuilder(rawUrl, requestAdapter); } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class DeleteRequestConfiguration extends BaseRequestConfiguration { + } /** * The group's profile photo */ diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/SiteItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/SiteItemRequestBuilder.java index 9910f8a5c02..2b12588cd87 100644 --- a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/SiteItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/SiteItemRequestBuilder.java @@ -16,6 +16,7 @@ import com.microsoft.graph.groups.item.sites.item.lists.ListsRequestBuilder; import com.microsoft.graph.groups.item.sites.item.onenote.OnenoteRequestBuilder; import com.microsoft.graph.groups.item.sites.item.operations.OperationsRequestBuilder; +import com.microsoft.graph.groups.item.sites.item.pages.PagesRequestBuilder; import com.microsoft.graph.groups.item.sites.item.permissions.PermissionsRequestBuilder; import com.microsoft.graph.groups.item.sites.item.sites.SitesRequestBuilder; import com.microsoft.graph.groups.item.sites.item.termstore.TermStoreRequestBuilder; @@ -144,6 +145,14 @@ public OnenoteRequestBuilder onenote() { public OperationsRequestBuilder operations() { return new OperationsRequestBuilder(pathParameters, requestAdapter); } + /** + * Provides operations to manage the pages property of the microsoft.graph.site entity. + * @return a {@link PagesRequestBuilder} + */ + @jakarta.annotation.Nonnull + public PagesRequestBuilder pages() { + return new PagesRequestBuilder(pathParameters, requestAdapter); + } /** * Provides operations to manage the permissions property of the microsoft.graph.site entity. * @return a {@link PermissionsRequestBuilder} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/analytics/AnalyticsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/analytics/AnalyticsRequestBuilder.java index 808fac1d3dd..9374fc606dc 100644 --- a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/analytics/AnalyticsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/analytics/AnalyticsRequestBuilder.java @@ -82,7 +82,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Analytics about the view activities that took place in this site. + * Analytics about the view activities that took place on this site. * @return a {@link ItemAnalytics} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -91,7 +91,7 @@ public ItemAnalytics get() { return get(null); } /** - * Analytics about the view activities that took place in this site. + * Analytics about the view activities that took place on this site. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link ItemAnalytics} * @throws ODataError When receiving a 4XX or 5XX status code @@ -149,7 +149,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Analytics about the view activities that took place in this site. + * Analytics about the view activities that took place on this site. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -157,7 +157,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Analytics about the view activities that took place in this site. + * Analytics about the view activities that took place on this site. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -209,7 +209,7 @@ public AnalyticsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Analytics about the view activities that took place in this site. + * Analytics about the view activities that took place on this site. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/GetByPathWithPathRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/GetByPathWithPathRequestBuilder.java index 854490906bc..5c74a8eb5ad 100644 --- a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/GetByPathWithPathRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/GetByPathWithPathRequestBuilder.java @@ -16,6 +16,7 @@ import com.microsoft.graph.groups.item.sites.item.getbypathwithpath.lists.ListsRequestBuilder; import com.microsoft.graph.groups.item.sites.item.getbypathwithpath.onenote.OnenoteRequestBuilder; import com.microsoft.graph.groups.item.sites.item.getbypathwithpath.operations.OperationsRequestBuilder; +import com.microsoft.graph.groups.item.sites.item.getbypathwithpath.pages.PagesRequestBuilder; import com.microsoft.graph.groups.item.sites.item.getbypathwithpath.permissions.PermissionsRequestBuilder; import com.microsoft.graph.groups.item.sites.item.getbypathwithpath.sites.SitesRequestBuilder; import com.microsoft.graph.groups.item.sites.item.getbypathwithpath.termstore.TermStoreRequestBuilder; @@ -143,6 +144,14 @@ public OnenoteRequestBuilder onenote() { public OperationsRequestBuilder operations() { return new OperationsRequestBuilder(pathParameters, requestAdapter); } + /** + * Provides operations to manage the pages property of the microsoft.graph.site entity. + * @return a {@link PagesRequestBuilder} + */ + @jakarta.annotation.Nonnull + public PagesRequestBuilder pages() { + return new PagesRequestBuilder(pathParameters, requestAdapter); + } /** * Provides operations to manage the permissions property of the microsoft.graph.site entity. * @return a {@link PermissionsRequestBuilder} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/analytics/AnalyticsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/analytics/AnalyticsRequestBuilder.java index 6e1a49b2b13..c183da4f299 100644 --- a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/analytics/AnalyticsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/analytics/AnalyticsRequestBuilder.java @@ -55,7 +55,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Analytics about the view activities that took place in this site. + * Analytics about the view activities that took place on this site. * @return a {@link ItemAnalytics} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -64,7 +64,7 @@ public ItemAnalytics get() { return get(null); } /** - * Analytics about the view activities that took place in this site. + * Analytics about the view activities that took place on this site. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link ItemAnalytics} * @throws ODataError When receiving a 4XX or 5XX status code @@ -122,7 +122,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Analytics about the view activities that took place in this site. + * Analytics about the view activities that took place on this site. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -130,7 +130,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Analytics about the view activities that took place in this site. + * Analytics about the view activities that took place on this site. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -182,7 +182,7 @@ public AnalyticsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Analytics about the view activities that took place in this site. + * Analytics about the view activities that took place on this site. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/GetByPathWithPath1RequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/GetByPathWithPath1RequestBuilder.java index 5e66ff9a763..d6948b6d17f 100644 --- a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/GetByPathWithPath1RequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/GetByPathWithPath1RequestBuilder.java @@ -12,6 +12,7 @@ import com.microsoft.graph.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.lists.ListsRequestBuilder; import com.microsoft.graph.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.onenote.OnenoteRequestBuilder; import com.microsoft.graph.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.operations.OperationsRequestBuilder; +import com.microsoft.graph.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.pages.PagesRequestBuilder; import com.microsoft.graph.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.permissions.PermissionsRequestBuilder; import com.microsoft.graph.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.sites.SitesRequestBuilder; import com.microsoft.graph.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.termstore.TermStoreRequestBuilder; @@ -131,6 +132,14 @@ public OnenoteRequestBuilder onenote() { public OperationsRequestBuilder operations() { return new OperationsRequestBuilder(pathParameters, requestAdapter); } + /** + * Provides operations to manage the pages property of the microsoft.graph.site entity. + * @return a {@link PagesRequestBuilder} + */ + @jakarta.annotation.Nonnull + public PagesRequestBuilder pages() { + return new PagesRequestBuilder(pathParameters, requestAdapter); + } /** * Provides operations to manage the permissions property of the microsoft.graph.site entity. * @return a {@link PermissionsRequestBuilder} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/analytics/AnalyticsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/analytics/AnalyticsRequestBuilder.java index bed58259709..eeebe490ae3 100644 --- a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/analytics/AnalyticsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/analytics/AnalyticsRequestBuilder.java @@ -55,7 +55,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Analytics about the view activities that took place in this site. + * Analytics about the view activities that took place on this site. * @return a {@link ItemAnalytics} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -64,7 +64,7 @@ public ItemAnalytics get() { return get(null); } /** - * Analytics about the view activities that took place in this site. + * Analytics about the view activities that took place on this site. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link ItemAnalytics} * @throws ODataError When receiving a 4XX or 5XX status code @@ -122,7 +122,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Analytics about the view activities that took place in this site. + * Analytics about the view activities that took place on this site. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -130,7 +130,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Analytics about the view activities that took place in this site. + * Analytics about the view activities that took place on this site. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -182,7 +182,7 @@ public AnalyticsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Analytics about the view activities that took place in this site. + * Analytics about the view activities that took place on this site. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/pages/PagesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/pages/PagesRequestBuilder.java new file mode 100644 index 00000000000..b51c1d42578 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/pages/PagesRequestBuilder.java @@ -0,0 +1,221 @@ +package com.microsoft.graph.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.pages; + +import com.microsoft.graph.models.BaseSitePage; +import com.microsoft.graph.models.BaseSitePageCollectionResponse; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the pages property of the microsoft.graph.site entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class PagesRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link PagesRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public PagesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/pages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link PagesRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public PagesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/pages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * Get pages from groups + * @return a {@link BaseSitePageCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public BaseSitePageCollectionResponse get() { + return get(null); + } + /** + * Get pages from groups + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link BaseSitePageCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public BaseSitePageCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, BaseSitePageCollectionResponse::createFromDiscriminatorValue); + } + /** + * Create new navigation property to pages for groups + * @param body The request body + * @return a {@link BaseSitePage} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public BaseSitePage post(@jakarta.annotation.Nonnull final BaseSitePage body) { + return post(body, null); + } + /** + * Create new navigation property to pages for groups + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link BaseSitePage} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public BaseSitePage post(@jakarta.annotation.Nonnull final BaseSitePage body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, BaseSitePage::createFromDiscriminatorValue); + } + /** + * Get pages from groups + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get pages from groups + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Create new navigation property to pages for groups + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final BaseSitePage body) { + return toPostRequestInformation(body, null); + } + /** + * Create new navigation property to pages for groups + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final BaseSitePage body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/pages", pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link PagesRequestBuilder} + */ + @jakarta.annotation.Nonnull + public PagesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new PagesRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get pages from groups + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Include count of items + */ + @jakarta.annotation.Nullable + public Boolean count; + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Order items by property values + */ + @jakarta.annotation.Nullable + public String[] orderby; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Skip the first n items + */ + @jakarta.annotation.Nullable + public Integer skip; + /** + * Show only the first n items + */ + @jakarta.annotation.Nullable + public Integer top; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24count", count); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + allQueryParams.put("%24skip", skip); + allQueryParams.put("%24top", top); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24orderby", orderby); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/pages/PagesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/pages/PagesRequestBuilder.java new file mode 100644 index 00000000000..0dd8a55d521 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/pages/PagesRequestBuilder.java @@ -0,0 +1,221 @@ +package com.microsoft.graph.groups.item.sites.item.getbypathwithpath.pages; + +import com.microsoft.graph.models.BaseSitePage; +import com.microsoft.graph.models.BaseSitePageCollectionResponse; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the pages property of the microsoft.graph.site entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class PagesRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link PagesRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public PagesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/pages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link PagesRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public PagesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/pages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * Get pages from groups + * @return a {@link BaseSitePageCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public BaseSitePageCollectionResponse get() { + return get(null); + } + /** + * Get pages from groups + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link BaseSitePageCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public BaseSitePageCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, BaseSitePageCollectionResponse::createFromDiscriminatorValue); + } + /** + * Create new navigation property to pages for groups + * @param body The request body + * @return a {@link BaseSitePage} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public BaseSitePage post(@jakarta.annotation.Nonnull final BaseSitePage body) { + return post(body, null); + } + /** + * Create new navigation property to pages for groups + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link BaseSitePage} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public BaseSitePage post(@jakarta.annotation.Nonnull final BaseSitePage body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, BaseSitePage::createFromDiscriminatorValue); + } + /** + * Get pages from groups + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get pages from groups + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Create new navigation property to pages for groups + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final BaseSitePage body) { + return toPostRequestInformation(body, null); + } + /** + * Create new navigation property to pages for groups + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final BaseSitePage body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/pages", pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link PagesRequestBuilder} + */ + @jakarta.annotation.Nonnull + public PagesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new PagesRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get pages from groups + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Include count of items + */ + @jakarta.annotation.Nullable + public Boolean count; + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Order items by property values + */ + @jakarta.annotation.Nullable + public String[] orderby; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Skip the first n items + */ + @jakarta.annotation.Nullable + public Integer skip; + /** + * Show only the first n items + */ + @jakarta.annotation.Nullable + public Integer top; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24count", count); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + allQueryParams.put("%24skip", skip); + allQueryParams.put("%24top", top); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24orderby", orderby); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/PagesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/PagesRequestBuilder.java new file mode 100644 index 00000000000..24a70d41739 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/PagesRequestBuilder.java @@ -0,0 +1,252 @@ +package com.microsoft.graph.groups.item.sites.item.pages; + +import com.microsoft.graph.groups.item.sites.item.pages.count.CountRequestBuilder; +import com.microsoft.graph.groups.item.sites.item.pages.graphsitepage.GraphSitePageRequestBuilder; +import com.microsoft.graph.groups.item.sites.item.pages.item.BaseSitePageItemRequestBuilder; +import com.microsoft.graph.models.BaseSitePage; +import com.microsoft.graph.models.BaseSitePageCollectionResponse; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the pages property of the microsoft.graph.site entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class PagesRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to count the resources in the collection. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder count() { + return new CountRequestBuilder(pathParameters, requestAdapter); + } + /** + * Casts the previous resource to sitePage. + * @return a {@link GraphSitePageRequestBuilder} + */ + @jakarta.annotation.Nonnull + public GraphSitePageRequestBuilder graphSitePage() { + return new GraphSitePageRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to manage the pages property of the microsoft.graph.site entity. + * @param baseSitePageId The unique identifier of baseSitePage + * @return a {@link BaseSitePageItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public BaseSitePageItemRequestBuilder byBaseSitePageId(@jakarta.annotation.Nonnull final String baseSitePageId) { + Objects.requireNonNull(baseSitePageId); + final HashMap urlTplParams = new HashMap(this.pathParameters); + urlTplParams.put("baseSitePage%2Did", baseSitePageId); + return new BaseSitePageItemRequestBuilder(urlTplParams, requestAdapter); + } + /** + * Instantiates a new {@link PagesRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public PagesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link PagesRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public PagesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * Get pages from groups + * @return a {@link BaseSitePageCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public BaseSitePageCollectionResponse get() { + return get(null); + } + /** + * Get pages from groups + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link BaseSitePageCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public BaseSitePageCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, BaseSitePageCollectionResponse::createFromDiscriminatorValue); + } + /** + * Create new navigation property to pages for groups + * @param body The request body + * @return a {@link BaseSitePage} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public BaseSitePage post(@jakarta.annotation.Nonnull final BaseSitePage body) { + return post(body, null); + } + /** + * Create new navigation property to pages for groups + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link BaseSitePage} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public BaseSitePage post(@jakarta.annotation.Nonnull final BaseSitePage body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, BaseSitePage::createFromDiscriminatorValue); + } + /** + * Get pages from groups + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get pages from groups + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Create new navigation property to pages for groups + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final BaseSitePage body) { + return toPostRequestInformation(body, null); + } + /** + * Create new navigation property to pages for groups + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final BaseSitePage body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages", pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link PagesRequestBuilder} + */ + @jakarta.annotation.Nonnull + public PagesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new PagesRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get pages from groups + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Include count of items + */ + @jakarta.annotation.Nullable + public Boolean count; + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Order items by property values + */ + @jakarta.annotation.Nullable + public String[] orderby; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Skip the first n items + */ + @jakarta.annotation.Nullable + public Integer skip; + /** + * Show only the first n items + */ + @jakarta.annotation.Nullable + public Integer top; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24count", count); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + allQueryParams.put("%24skip", skip); + allQueryParams.put("%24top", top); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24orderby", orderby); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/count/CountRequestBuilder.java new file mode 100644 index 00000000000..c561e0bdd76 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +package com.microsoft.graph.groups.item.sites.item.pages.count; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to count the resources in the collection. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CountRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/$count{?%24filter,%24search}", pathParameters); + } + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/$count{?%24filter,%24search}", rawUrl); + } + /** + * Get the number of the resource + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get() { + return get(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); + } + /** + * Get the number of the resource + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new CountRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get the number of the resource + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/graphsitepage/GraphSitePageRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/graphsitepage/GraphSitePageRequestBuilder.java new file mode 100644 index 00000000000..09ad30f84ad --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/graphsitepage/GraphSitePageRequestBuilder.java @@ -0,0 +1,174 @@ +package com.microsoft.graph.groups.item.sites.item.pages.graphsitepage; + +import com.microsoft.graph.groups.item.sites.item.pages.graphsitepage.count.CountRequestBuilder; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.SitePageCollectionResponse; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Casts the previous resource to sitePage. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class GraphSitePageRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to count the resources in the collection. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder count() { + return new CountRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link GraphSitePageRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public GraphSitePageRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/graph.sitePage{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link GraphSitePageRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public GraphSitePageRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/graph.sitePage{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * Get the items of type microsoft.graph.sitePage in the microsoft.graph.baseSitePage collection + * @return a {@link SitePageCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public SitePageCollectionResponse get() { + return get(null); + } + /** + * Get the items of type microsoft.graph.sitePage in the microsoft.graph.baseSitePage collection + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link SitePageCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public SitePageCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, SitePageCollectionResponse::createFromDiscriminatorValue); + } + /** + * Get the items of type microsoft.graph.sitePage in the microsoft.graph.baseSitePage collection + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get the items of type microsoft.graph.sitePage in the microsoft.graph.baseSitePage collection + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link GraphSitePageRequestBuilder} + */ + @jakarta.annotation.Nonnull + public GraphSitePageRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new GraphSitePageRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get the items of type microsoft.graph.sitePage in the microsoft.graph.baseSitePage collection + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Include count of items + */ + @jakarta.annotation.Nullable + public Boolean count; + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Order items by property values + */ + @jakarta.annotation.Nullable + public String[] orderby; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Skip the first n items + */ + @jakarta.annotation.Nullable + public Integer skip; + /** + * Show only the first n items + */ + @jakarta.annotation.Nullable + public Integer top; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24count", count); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + allQueryParams.put("%24skip", skip); + allQueryParams.put("%24top", top); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24orderby", orderby); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/graphsitepage/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/graphsitepage/count/CountRequestBuilder.java new file mode 100644 index 00000000000..ce87ffde117 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/graphsitepage/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +package com.microsoft.graph.groups.item.sites.item.pages.graphsitepage.count; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to count the resources in the collection. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CountRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/graph.sitePage/$count{?%24filter,%24search}", pathParameters); + } + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/graph.sitePage/$count{?%24filter,%24search}", rawUrl); + } + /** + * Get the number of the resource + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get() { + return get(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); + } + /** + * Get the number of the resource + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new CountRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get the number of the resource + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/BaseSitePageItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/BaseSitePageItemRequestBuilder.java new file mode 100644 index 00000000000..d62387d9c77 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/BaseSitePageItemRequestBuilder.java @@ -0,0 +1,255 @@ +package com.microsoft.graph.groups.item.sites.item.pages.item; + +import com.microsoft.graph.groups.item.sites.item.pages.item.createdbyuser.CreatedByUserRequestBuilder; +import com.microsoft.graph.groups.item.sites.item.pages.item.graphsitepage.GraphSitePageRequestBuilder; +import com.microsoft.graph.groups.item.sites.item.pages.item.lastmodifiedbyuser.LastModifiedByUserRequestBuilder; +import com.microsoft.graph.models.BaseSitePage; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the pages property of the microsoft.graph.site entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class BaseSitePageItemRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity. + * @return a {@link CreatedByUserRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CreatedByUserRequestBuilder createdByUser() { + return new CreatedByUserRequestBuilder(pathParameters, requestAdapter); + } + /** + * Casts the previous resource to sitePage. + * @return a {@link GraphSitePageRequestBuilder} + */ + @jakarta.annotation.Nonnull + public GraphSitePageRequestBuilder graphSitePage() { + return new GraphSitePageRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to manage the lastModifiedByUser property of the microsoft.graph.baseItem entity. + * @return a {@link LastModifiedByUserRequestBuilder} + */ + @jakarta.annotation.Nonnull + public LastModifiedByUserRequestBuilder lastModifiedByUser() { + return new LastModifiedByUserRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link BaseSitePageItemRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public BaseSitePageItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link BaseSitePageItemRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public BaseSitePageItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}{?%24expand,%24select}", rawUrl); + } + /** + * Delete navigation property pages for groups + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete() { + delete(null); + } + /** + * Delete navigation property pages for groups + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * Get pages from groups + * @return a {@link BaseSitePage} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public BaseSitePage get() { + return get(null); + } + /** + * Get pages from groups + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link BaseSitePage} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public BaseSitePage get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, BaseSitePage::createFromDiscriminatorValue); + } + /** + * Update the navigation property pages in groups + * @param body The request body + * @return a {@link BaseSitePage} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public BaseSitePage patch(@jakarta.annotation.Nonnull final BaseSitePage body) { + return patch(body, null); + } + /** + * Update the navigation property pages in groups + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link BaseSitePage} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public BaseSitePage patch(@jakarta.annotation.Nonnull final BaseSitePage body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, BaseSitePage::createFromDiscriminatorValue); + } + /** + * Delete navigation property pages for groups + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation() { + return toDeleteRequestInformation(null); + } + /** + * Delete navigation property pages for groups + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}", pathParameters); + requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Get pages from groups + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get pages from groups + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update the navigation property pages in groups + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final BaseSitePage body) { + return toPatchRequestInformation(body, null); + } + /** + * Update the navigation property pages in groups + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final BaseSitePage body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}", pathParameters); + requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link BaseSitePageItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public BaseSitePageItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new BaseSitePageItemRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class DeleteRequestConfiguration extends BaseRequestConfiguration { + } + /** + * Get pages from groups + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PatchRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/createdbyuser/CreatedByUserRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/createdbyuser/CreatedByUserRequestBuilder.java new file mode 100644 index 00000000000..6592dc21eed --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/createdbyuser/CreatedByUserRequestBuilder.java @@ -0,0 +1,147 @@ +package com.microsoft.graph.groups.item.sites.item.pages.item.createdbyuser; + +import com.microsoft.graph.groups.item.sites.item.pages.item.createdbyuser.mailboxsettings.MailboxSettingsRequestBuilder; +import com.microsoft.graph.groups.item.sites.item.pages.item.createdbyuser.serviceprovisioningerrors.ServiceProvisioningErrorsRequestBuilder; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.User; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CreatedByUserRequestBuilder extends BaseRequestBuilder { + /** + * The mailboxSettings property + * @return a {@link MailboxSettingsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public MailboxSettingsRequestBuilder mailboxSettings() { + return new MailboxSettingsRequestBuilder(pathParameters, requestAdapter); + } + /** + * The serviceProvisioningErrors property + * @return a {@link ServiceProvisioningErrorsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ServiceProvisioningErrorsRequestBuilder serviceProvisioningErrors() { + return new ServiceProvisioningErrorsRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link CreatedByUserRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CreatedByUserRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/createdByUser{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link CreatedByUserRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CreatedByUserRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/createdByUser{?%24expand,%24select}", rawUrl); + } + /** + * Identity of the user who created the item. Read-only. + * @return a {@link User} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public User get() { + return get(null); + } + /** + * Identity of the user who created the item. Read-only. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link User} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public User get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, User::createFromDiscriminatorValue); + } + /** + * Identity of the user who created the item. Read-only. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Identity of the user who created the item. Read-only. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link CreatedByUserRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CreatedByUserRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new CreatedByUserRequestBuilder(rawUrl, requestAdapter); + } + /** + * Identity of the user who created the item. Read-only. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/createdbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/createdbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java new file mode 100644 index 00000000000..41f58543336 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/createdbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java @@ -0,0 +1,184 @@ +package com.microsoft.graph.groups.item.sites.item.pages.item.createdbyuser.mailboxsettings; + +import com.microsoft.graph.models.MailboxSettings; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Builds and executes requests for operations under /groups/{group-id}/sites/{site-id}/pages/{baseSitePage-id}/createdByUser/mailboxSettings + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class MailboxSettingsRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link MailboxSettingsRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public MailboxSettingsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/createdByUser/mailboxSettings{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link MailboxSettingsRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public MailboxSettingsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/createdByUser/mailboxSettings{?%24expand,%24select}", rawUrl); + } + /** + * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. + * @return a {@link MailboxSettings} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public MailboxSettings get() { + return get(null); + } + /** + * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link MailboxSettings} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public MailboxSettings get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, MailboxSettings::createFromDiscriminatorValue); + } + /** + * Update property mailboxSettings value. + * @param body The request body + * @return a {@link MailboxSettings} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public MailboxSettings patch(@jakarta.annotation.Nonnull final MailboxSettings body) { + return patch(body, null); + } + /** + * Update property mailboxSettings value. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link MailboxSettings} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public MailboxSettings patch(@jakarta.annotation.Nonnull final MailboxSettings body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, MailboxSettings::createFromDiscriminatorValue); + } + /** + * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update property mailboxSettings value. + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final MailboxSettings body) { + return toPatchRequestInformation(body, null); + } + /** + * Update property mailboxSettings value. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final MailboxSettings body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/createdByUser/mailboxSettings", pathParameters); + requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link MailboxSettingsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public MailboxSettingsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new MailboxSettingsRequestBuilder(rawUrl, requestAdapter); + } + /** + * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PatchRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/createdbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/createdbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java new file mode 100644 index 00000000000..469369fcd20 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/createdbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java @@ -0,0 +1,174 @@ +package com.microsoft.graph.groups.item.sites.item.pages.item.createdbyuser.serviceprovisioningerrors; + +import com.microsoft.graph.groups.item.sites.item.pages.item.createdbyuser.serviceprovisioningerrors.count.CountRequestBuilder; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.ServiceProvisioningErrorCollectionResponse; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Builds and executes requests for operations under /groups/{group-id}/sites/{site-id}/pages/{baseSitePage-id}/createdByUser/serviceProvisioningErrors + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class ServiceProvisioningErrorsRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to count the resources in the collection. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder count() { + return new CountRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link ServiceProvisioningErrorsRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public ServiceProvisioningErrorsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/createdByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link ServiceProvisioningErrorsRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public ServiceProvisioningErrorsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/createdByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + * @return a {@link ServiceProvisioningErrorCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public ServiceProvisioningErrorCollectionResponse get() { + return get(null); + } + /** + * Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link ServiceProvisioningErrorCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public ServiceProvisioningErrorCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, ServiceProvisioningErrorCollectionResponse::createFromDiscriminatorValue); + } + /** + * Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link ServiceProvisioningErrorsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ServiceProvisioningErrorsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, requestAdapter); + } + /** + * Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Include count of items + */ + @jakarta.annotation.Nullable + public Boolean count; + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Order items by property values + */ + @jakarta.annotation.Nullable + public String[] orderby; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Skip the first n items + */ + @jakarta.annotation.Nullable + public Integer skip; + /** + * Show only the first n items + */ + @jakarta.annotation.Nullable + public Integer top; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24count", count); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + allQueryParams.put("%24skip", skip); + allQueryParams.put("%24top", top); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24orderby", orderby); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/createdbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/createdbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java new file mode 100644 index 00000000000..d1dd8b998b6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/createdbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +package com.microsoft.graph.groups.item.sites.item.pages.item.createdbyuser.serviceprovisioningerrors.count; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to count the resources in the collection. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CountRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/createdByUser/serviceProvisioningErrors/$count{?%24filter,%24search}", pathParameters); + } + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/createdByUser/serviceProvisioningErrors/$count{?%24filter,%24search}", rawUrl); + } + /** + * Get the number of the resource + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get() { + return get(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); + } + /** + * Get the number of the resource + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new CountRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get the number of the resource + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/GraphSitePageRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/GraphSitePageRequestBuilder.java new file mode 100644 index 00000000000..24eca2ea1d5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/GraphSitePageRequestBuilder.java @@ -0,0 +1,165 @@ +package com.microsoft.graph.groups.item.sites.item.pages.item.graphsitepage; + +import com.microsoft.graph.groups.item.sites.item.pages.item.graphsitepage.canvaslayout.CanvasLayoutRequestBuilder; +import com.microsoft.graph.groups.item.sites.item.pages.item.graphsitepage.createdbyuser.CreatedByUserRequestBuilder; +import com.microsoft.graph.groups.item.sites.item.pages.item.graphsitepage.lastmodifiedbyuser.LastModifiedByUserRequestBuilder; +import com.microsoft.graph.groups.item.sites.item.pages.item.graphsitepage.webparts.WebPartsRequestBuilder; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.SitePage; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Casts the previous resource to sitePage. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class GraphSitePageRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to manage the canvasLayout property of the microsoft.graph.sitePage entity. + * @return a {@link CanvasLayoutRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CanvasLayoutRequestBuilder canvasLayout() { + return new CanvasLayoutRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity. + * @return a {@link CreatedByUserRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CreatedByUserRequestBuilder createdByUser() { + return new CreatedByUserRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to manage the lastModifiedByUser property of the microsoft.graph.baseItem entity. + * @return a {@link LastModifiedByUserRequestBuilder} + */ + @jakarta.annotation.Nonnull + public LastModifiedByUserRequestBuilder lastModifiedByUser() { + return new LastModifiedByUserRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to manage the webParts property of the microsoft.graph.sitePage entity. + * @return a {@link WebPartsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public WebPartsRequestBuilder webParts() { + return new WebPartsRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link GraphSitePageRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public GraphSitePageRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link GraphSitePageRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public GraphSitePageRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage{?%24expand,%24select}", rawUrl); + } + /** + * Get the item of type microsoft.graph.baseSitePage as microsoft.graph.sitePage + * @return a {@link SitePage} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public SitePage get() { + return get(null); + } + /** + * Get the item of type microsoft.graph.baseSitePage as microsoft.graph.sitePage + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link SitePage} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public SitePage get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, SitePage::createFromDiscriminatorValue); + } + /** + * Get the item of type microsoft.graph.baseSitePage as microsoft.graph.sitePage + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get the item of type microsoft.graph.baseSitePage as microsoft.graph.sitePage + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link GraphSitePageRequestBuilder} + */ + @jakarta.annotation.Nonnull + public GraphSitePageRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new GraphSitePageRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get the item of type microsoft.graph.baseSitePage as microsoft.graph.sitePage + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/canvaslayout/CanvasLayoutRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/canvaslayout/CanvasLayoutRequestBuilder.java new file mode 100644 index 00000000000..67f608b4faa --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/canvaslayout/CanvasLayoutRequestBuilder.java @@ -0,0 +1,246 @@ +package com.microsoft.graph.groups.item.sites.item.pages.item.graphsitepage.canvaslayout; + +import com.microsoft.graph.groups.item.sites.item.pages.item.graphsitepage.canvaslayout.horizontalsections.HorizontalSectionsRequestBuilder; +import com.microsoft.graph.groups.item.sites.item.pages.item.graphsitepage.canvaslayout.verticalsection.VerticalSectionRequestBuilder; +import com.microsoft.graph.models.CanvasLayout; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the canvasLayout property of the microsoft.graph.sitePage entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CanvasLayoutRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to manage the horizontalSections property of the microsoft.graph.canvasLayout entity. + * @return a {@link HorizontalSectionsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public HorizontalSectionsRequestBuilder horizontalSections() { + return new HorizontalSectionsRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to manage the verticalSection property of the microsoft.graph.canvasLayout entity. + * @return a {@link VerticalSectionRequestBuilder} + */ + @jakarta.annotation.Nonnull + public VerticalSectionRequestBuilder verticalSection() { + return new VerticalSectionRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link CanvasLayoutRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CanvasLayoutRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link CanvasLayoutRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CanvasLayoutRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout{?%24expand,%24select}", rawUrl); + } + /** + * Delete navigation property canvasLayout for groups + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete() { + delete(null); + } + /** + * Delete navigation property canvasLayout for groups + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * Get canvasLayout from groups + * @return a {@link CanvasLayout} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public CanvasLayout get() { + return get(null); + } + /** + * Get canvasLayout from groups + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link CanvasLayout} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public CanvasLayout get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, CanvasLayout::createFromDiscriminatorValue); + } + /** + * Update the navigation property canvasLayout in groups + * @param body The request body + * @return a {@link CanvasLayout} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public CanvasLayout patch(@jakarta.annotation.Nonnull final CanvasLayout body) { + return patch(body, null); + } + /** + * Update the navigation property canvasLayout in groups + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link CanvasLayout} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public CanvasLayout patch(@jakarta.annotation.Nonnull final CanvasLayout body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, CanvasLayout::createFromDiscriminatorValue); + } + /** + * Delete navigation property canvasLayout for groups + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation() { + return toDeleteRequestInformation(null); + } + /** + * Delete navigation property canvasLayout for groups + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout", pathParameters); + requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Get canvasLayout from groups + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get canvasLayout from groups + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update the navigation property canvasLayout in groups + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final CanvasLayout body) { + return toPatchRequestInformation(body, null); + } + /** + * Update the navigation property canvasLayout in groups + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final CanvasLayout body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout", pathParameters); + requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link CanvasLayoutRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CanvasLayoutRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new CanvasLayoutRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class DeleteRequestConfiguration extends BaseRequestConfiguration { + } + /** + * Get canvasLayout from groups + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PatchRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/canvaslayout/horizontalsections/HorizontalSectionsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/canvaslayout/horizontalsections/HorizontalSectionsRequestBuilder.java new file mode 100644 index 00000000000..9d57d8ebec4 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/canvaslayout/horizontalsections/HorizontalSectionsRequestBuilder.java @@ -0,0 +1,243 @@ +package com.microsoft.graph.groups.item.sites.item.pages.item.graphsitepage.canvaslayout.horizontalsections; + +import com.microsoft.graph.groups.item.sites.item.pages.item.graphsitepage.canvaslayout.horizontalsections.count.CountRequestBuilder; +import com.microsoft.graph.groups.item.sites.item.pages.item.graphsitepage.canvaslayout.horizontalsections.item.HorizontalSectionItemRequestBuilder; +import com.microsoft.graph.models.HorizontalSection; +import com.microsoft.graph.models.HorizontalSectionCollectionResponse; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the horizontalSections property of the microsoft.graph.canvasLayout entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class HorizontalSectionsRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to count the resources in the collection. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder count() { + return new CountRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to manage the horizontalSections property of the microsoft.graph.canvasLayout entity. + * @param horizontalSectionId The unique identifier of horizontalSection + * @return a {@link HorizontalSectionItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public HorizontalSectionItemRequestBuilder byHorizontalSectionId(@jakarta.annotation.Nonnull final String horizontalSectionId) { + Objects.requireNonNull(horizontalSectionId); + final HashMap urlTplParams = new HashMap(this.pathParameters); + urlTplParams.put("horizontalSection%2Did", horizontalSectionId); + return new HorizontalSectionItemRequestBuilder(urlTplParams, requestAdapter); + } + /** + * Instantiates a new {@link HorizontalSectionsRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public HorizontalSectionsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link HorizontalSectionsRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public HorizontalSectionsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * Get horizontalSections from groups + * @return a {@link HorizontalSectionCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public HorizontalSectionCollectionResponse get() { + return get(null); + } + /** + * Get horizontalSections from groups + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link HorizontalSectionCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public HorizontalSectionCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, HorizontalSectionCollectionResponse::createFromDiscriminatorValue); + } + /** + * Create new navigation property to horizontalSections for groups + * @param body The request body + * @return a {@link HorizontalSection} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public HorizontalSection post(@jakarta.annotation.Nonnull final HorizontalSection body) { + return post(body, null); + } + /** + * Create new navigation property to horizontalSections for groups + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link HorizontalSection} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public HorizontalSection post(@jakarta.annotation.Nonnull final HorizontalSection body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, HorizontalSection::createFromDiscriminatorValue); + } + /** + * Get horizontalSections from groups + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get horizontalSections from groups + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Create new navigation property to horizontalSections for groups + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final HorizontalSection body) { + return toPostRequestInformation(body, null); + } + /** + * Create new navigation property to horizontalSections for groups + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final HorizontalSection body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections", pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link HorizontalSectionsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public HorizontalSectionsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new HorizontalSectionsRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get horizontalSections from groups + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Include count of items + */ + @jakarta.annotation.Nullable + public Boolean count; + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Order items by property values + */ + @jakarta.annotation.Nullable + public String[] orderby; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Skip the first n items + */ + @jakarta.annotation.Nullable + public Integer skip; + /** + * Show only the first n items + */ + @jakarta.annotation.Nullable + public Integer top; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24count", count); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + allQueryParams.put("%24skip", skip); + allQueryParams.put("%24top", top); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24orderby", orderby); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/canvaslayout/horizontalsections/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/canvaslayout/horizontalsections/count/CountRequestBuilder.java new file mode 100644 index 00000000000..43c9a019c93 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/canvaslayout/horizontalsections/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +package com.microsoft.graph.groups.item.sites.item.pages.item.graphsitepage.canvaslayout.horizontalsections.count; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to count the resources in the collection. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CountRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/$count{?%24filter,%24search}", pathParameters); + } + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/$count{?%24filter,%24search}", rawUrl); + } + /** + * Get the number of the resource + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get() { + return get(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); + } + /** + * Get the number of the resource + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new CountRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get the number of the resource + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/canvaslayout/horizontalsections/item/HorizontalSectionItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/canvaslayout/horizontalsections/item/HorizontalSectionItemRequestBuilder.java new file mode 100644 index 00000000000..e8b74377156 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/canvaslayout/horizontalsections/item/HorizontalSectionItemRequestBuilder.java @@ -0,0 +1,237 @@ +package com.microsoft.graph.groups.item.sites.item.pages.item.graphsitepage.canvaslayout.horizontalsections.item; + +import com.microsoft.graph.groups.item.sites.item.pages.item.graphsitepage.canvaslayout.horizontalsections.item.columns.ColumnsRequestBuilder; +import com.microsoft.graph.models.HorizontalSection; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the horizontalSections property of the microsoft.graph.canvasLayout entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class HorizontalSectionItemRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to manage the columns property of the microsoft.graph.horizontalSection entity. + * @return a {@link ColumnsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ColumnsRequestBuilder columns() { + return new ColumnsRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link HorizontalSectionItemRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public HorizontalSectionItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/{horizontalSection%2Did}{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link HorizontalSectionItemRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public HorizontalSectionItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/{horizontalSection%2Did}{?%24expand,%24select}", rawUrl); + } + /** + * Delete navigation property horizontalSections for groups + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete() { + delete(null); + } + /** + * Delete navigation property horizontalSections for groups + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * Get horizontalSections from groups + * @return a {@link HorizontalSection} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public HorizontalSection get() { + return get(null); + } + /** + * Get horizontalSections from groups + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link HorizontalSection} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public HorizontalSection get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, HorizontalSection::createFromDiscriminatorValue); + } + /** + * Update the navigation property horizontalSections in groups + * @param body The request body + * @return a {@link HorizontalSection} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public HorizontalSection patch(@jakarta.annotation.Nonnull final HorizontalSection body) { + return patch(body, null); + } + /** + * Update the navigation property horizontalSections in groups + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link HorizontalSection} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public HorizontalSection patch(@jakarta.annotation.Nonnull final HorizontalSection body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, HorizontalSection::createFromDiscriminatorValue); + } + /** + * Delete navigation property horizontalSections for groups + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation() { + return toDeleteRequestInformation(null); + } + /** + * Delete navigation property horizontalSections for groups + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/{horizontalSection%2Did}", pathParameters); + requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Get horizontalSections from groups + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get horizontalSections from groups + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update the navigation property horizontalSections in groups + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final HorizontalSection body) { + return toPatchRequestInformation(body, null); + } + /** + * Update the navigation property horizontalSections in groups + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final HorizontalSection body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/{horizontalSection%2Did}", pathParameters); + requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link HorizontalSectionItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public HorizontalSectionItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new HorizontalSectionItemRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class DeleteRequestConfiguration extends BaseRequestConfiguration { + } + /** + * Get horizontalSections from groups + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PatchRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/canvaslayout/horizontalsections/item/columns/ColumnsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/canvaslayout/horizontalsections/item/columns/ColumnsRequestBuilder.java new file mode 100644 index 00000000000..e23672c4a15 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/canvaslayout/horizontalsections/item/columns/ColumnsRequestBuilder.java @@ -0,0 +1,243 @@ +package com.microsoft.graph.groups.item.sites.item.pages.item.graphsitepage.canvaslayout.horizontalsections.item.columns; + +import com.microsoft.graph.groups.item.sites.item.pages.item.graphsitepage.canvaslayout.horizontalsections.item.columns.count.CountRequestBuilder; +import com.microsoft.graph.groups.item.sites.item.pages.item.graphsitepage.canvaslayout.horizontalsections.item.columns.item.HorizontalSectionColumnItemRequestBuilder; +import com.microsoft.graph.models.HorizontalSectionColumn; +import com.microsoft.graph.models.HorizontalSectionColumnCollectionResponse; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the columns property of the microsoft.graph.horizontalSection entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class ColumnsRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to count the resources in the collection. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder count() { + return new CountRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to manage the columns property of the microsoft.graph.horizontalSection entity. + * @param horizontalSectionColumnId The unique identifier of horizontalSectionColumn + * @return a {@link HorizontalSectionColumnItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public HorizontalSectionColumnItemRequestBuilder byHorizontalSectionColumnId(@jakarta.annotation.Nonnull final String horizontalSectionColumnId) { + Objects.requireNonNull(horizontalSectionColumnId); + final HashMap urlTplParams = new HashMap(this.pathParameters); + urlTplParams.put("horizontalSectionColumn%2Did", horizontalSectionColumnId); + return new HorizontalSectionColumnItemRequestBuilder(urlTplParams, requestAdapter); + } + /** + * Instantiates a new {@link ColumnsRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public ColumnsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/{horizontalSection%2Did}/columns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link ColumnsRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public ColumnsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/{horizontalSection%2Did}/columns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * Get columns from groups + * @return a {@link HorizontalSectionColumnCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public HorizontalSectionColumnCollectionResponse get() { + return get(null); + } + /** + * Get columns from groups + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link HorizontalSectionColumnCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public HorizontalSectionColumnCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, HorizontalSectionColumnCollectionResponse::createFromDiscriminatorValue); + } + /** + * Create new navigation property to columns for groups + * @param body The request body + * @return a {@link HorizontalSectionColumn} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public HorizontalSectionColumn post(@jakarta.annotation.Nonnull final HorizontalSectionColumn body) { + return post(body, null); + } + /** + * Create new navigation property to columns for groups + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link HorizontalSectionColumn} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public HorizontalSectionColumn post(@jakarta.annotation.Nonnull final HorizontalSectionColumn body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, HorizontalSectionColumn::createFromDiscriminatorValue); + } + /** + * Get columns from groups + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get columns from groups + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Create new navigation property to columns for groups + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final HorizontalSectionColumn body) { + return toPostRequestInformation(body, null); + } + /** + * Create new navigation property to columns for groups + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final HorizontalSectionColumn body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/{horizontalSection%2Did}/columns", pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link ColumnsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ColumnsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new ColumnsRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get columns from groups + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Include count of items + */ + @jakarta.annotation.Nullable + public Boolean count; + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Order items by property values + */ + @jakarta.annotation.Nullable + public String[] orderby; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Skip the first n items + */ + @jakarta.annotation.Nullable + public Integer skip; + /** + * Show only the first n items + */ + @jakarta.annotation.Nullable + public Integer top; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24count", count); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + allQueryParams.put("%24skip", skip); + allQueryParams.put("%24top", top); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24orderby", orderby); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/canvaslayout/horizontalsections/item/columns/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/canvaslayout/horizontalsections/item/columns/count/CountRequestBuilder.java new file mode 100644 index 00000000000..a0b4f765772 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/canvaslayout/horizontalsections/item/columns/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +package com.microsoft.graph.groups.item.sites.item.pages.item.graphsitepage.canvaslayout.horizontalsections.item.columns.count; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to count the resources in the collection. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CountRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/{horizontalSection%2Did}/columns/$count{?%24filter,%24search}", pathParameters); + } + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/{horizontalSection%2Did}/columns/$count{?%24filter,%24search}", rawUrl); + } + /** + * Get the number of the resource + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get() { + return get(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); + } + /** + * Get the number of the resource + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new CountRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get the number of the resource + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/canvaslayout/horizontalsections/item/columns/item/HorizontalSectionColumnItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/canvaslayout/horizontalsections/item/columns/item/HorizontalSectionColumnItemRequestBuilder.java new file mode 100644 index 00000000000..29a1ae789d0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/canvaslayout/horizontalsections/item/columns/item/HorizontalSectionColumnItemRequestBuilder.java @@ -0,0 +1,237 @@ +package com.microsoft.graph.groups.item.sites.item.pages.item.graphsitepage.canvaslayout.horizontalsections.item.columns.item; + +import com.microsoft.graph.groups.item.sites.item.pages.item.graphsitepage.canvaslayout.horizontalsections.item.columns.item.webparts.WebpartsRequestBuilder; +import com.microsoft.graph.models.HorizontalSectionColumn; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the columns property of the microsoft.graph.horizontalSection entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class HorizontalSectionColumnItemRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to manage the webparts property of the microsoft.graph.horizontalSectionColumn entity. + * @return a {@link WebpartsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public WebpartsRequestBuilder webparts() { + return new WebpartsRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link HorizontalSectionColumnItemRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public HorizontalSectionColumnItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/{horizontalSection%2Did}/columns/{horizontalSectionColumn%2Did}{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link HorizontalSectionColumnItemRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public HorizontalSectionColumnItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/{horizontalSection%2Did}/columns/{horizontalSectionColumn%2Did}{?%24expand,%24select}", rawUrl); + } + /** + * Delete navigation property columns for groups + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete() { + delete(null); + } + /** + * Delete navigation property columns for groups + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * Get columns from groups + * @return a {@link HorizontalSectionColumn} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public HorizontalSectionColumn get() { + return get(null); + } + /** + * Get columns from groups + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link HorizontalSectionColumn} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public HorizontalSectionColumn get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, HorizontalSectionColumn::createFromDiscriminatorValue); + } + /** + * Update the navigation property columns in groups + * @param body The request body + * @return a {@link HorizontalSectionColumn} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public HorizontalSectionColumn patch(@jakarta.annotation.Nonnull final HorizontalSectionColumn body) { + return patch(body, null); + } + /** + * Update the navigation property columns in groups + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link HorizontalSectionColumn} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public HorizontalSectionColumn patch(@jakarta.annotation.Nonnull final HorizontalSectionColumn body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, HorizontalSectionColumn::createFromDiscriminatorValue); + } + /** + * Delete navigation property columns for groups + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation() { + return toDeleteRequestInformation(null); + } + /** + * Delete navigation property columns for groups + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/{horizontalSection%2Did}/columns/{horizontalSectionColumn%2Did}", pathParameters); + requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Get columns from groups + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get columns from groups + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update the navigation property columns in groups + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final HorizontalSectionColumn body) { + return toPatchRequestInformation(body, null); + } + /** + * Update the navigation property columns in groups + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final HorizontalSectionColumn body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/{horizontalSection%2Did}/columns/{horizontalSectionColumn%2Did}", pathParameters); + requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link HorizontalSectionColumnItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public HorizontalSectionColumnItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new HorizontalSectionColumnItemRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class DeleteRequestConfiguration extends BaseRequestConfiguration { + } + /** + * Get columns from groups + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PatchRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/canvaslayout/horizontalsections/item/columns/item/webparts/WebpartsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/canvaslayout/horizontalsections/item/columns/item/webparts/WebpartsRequestBuilder.java new file mode 100644 index 00000000000..c2189a289d7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/canvaslayout/horizontalsections/item/columns/item/webparts/WebpartsRequestBuilder.java @@ -0,0 +1,243 @@ +package com.microsoft.graph.groups.item.sites.item.pages.item.graphsitepage.canvaslayout.horizontalsections.item.columns.item.webparts; + +import com.microsoft.graph.groups.item.sites.item.pages.item.graphsitepage.canvaslayout.horizontalsections.item.columns.item.webparts.count.CountRequestBuilder; +import com.microsoft.graph.groups.item.sites.item.pages.item.graphsitepage.canvaslayout.horizontalsections.item.columns.item.webparts.item.WebPartItemRequestBuilder; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.WebPart; +import com.microsoft.graph.models.WebPartCollectionResponse; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the webparts property of the microsoft.graph.horizontalSectionColumn entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class WebpartsRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to count the resources in the collection. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder count() { + return new CountRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to manage the webparts property of the microsoft.graph.horizontalSectionColumn entity. + * @param webPartId The unique identifier of webPart + * @return a {@link WebPartItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public WebPartItemRequestBuilder byWebPartId(@jakarta.annotation.Nonnull final String webPartId) { + Objects.requireNonNull(webPartId); + final HashMap urlTplParams = new HashMap(this.pathParameters); + urlTplParams.put("webPart%2Did", webPartId); + return new WebPartItemRequestBuilder(urlTplParams, requestAdapter); + } + /** + * Instantiates a new {@link WebpartsRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public WebpartsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/{horizontalSection%2Did}/columns/{horizontalSectionColumn%2Did}/webparts{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link WebpartsRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public WebpartsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/{horizontalSection%2Did}/columns/{horizontalSectionColumn%2Did}/webparts{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * Get webparts from groups + * @return a {@link WebPartCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public WebPartCollectionResponse get() { + return get(null); + } + /** + * Get webparts from groups + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link WebPartCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public WebPartCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, WebPartCollectionResponse::createFromDiscriminatorValue); + } + /** + * Create new navigation property to webparts for groups + * @param body The request body + * @return a {@link WebPart} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public WebPart post(@jakarta.annotation.Nonnull final WebPart body) { + return post(body, null); + } + /** + * Create new navigation property to webparts for groups + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link WebPart} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public WebPart post(@jakarta.annotation.Nonnull final WebPart body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, WebPart::createFromDiscriminatorValue); + } + /** + * Get webparts from groups + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get webparts from groups + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Create new navigation property to webparts for groups + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WebPart body) { + return toPostRequestInformation(body, null); + } + /** + * Create new navigation property to webparts for groups + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WebPart body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/{horizontalSection%2Did}/columns/{horizontalSectionColumn%2Did}/webparts", pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link WebpartsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public WebpartsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new WebpartsRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get webparts from groups + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Include count of items + */ + @jakarta.annotation.Nullable + public Boolean count; + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Order items by property values + */ + @jakarta.annotation.Nullable + public String[] orderby; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Skip the first n items + */ + @jakarta.annotation.Nullable + public Integer skip; + /** + * Show only the first n items + */ + @jakarta.annotation.Nullable + public Integer top; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24count", count); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + allQueryParams.put("%24skip", skip); + allQueryParams.put("%24top", top); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24orderby", orderby); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/canvaslayout/horizontalsections/item/columns/item/webparts/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/canvaslayout/horizontalsections/item/columns/item/webparts/count/CountRequestBuilder.java new file mode 100644 index 00000000000..7842ca8c5fe --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/canvaslayout/horizontalsections/item/columns/item/webparts/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +package com.microsoft.graph.groups.item.sites.item.pages.item.graphsitepage.canvaslayout.horizontalsections.item.columns.item.webparts.count; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to count the resources in the collection. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CountRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/{horizontalSection%2Did}/columns/{horizontalSectionColumn%2Did}/webparts/$count{?%24filter,%24search}", pathParameters); + } + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/{horizontalSection%2Did}/columns/{horizontalSectionColumn%2Did}/webparts/$count{?%24filter,%24search}", rawUrl); + } + /** + * Get the number of the resource + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get() { + return get(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); + } + /** + * Get the number of the resource + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new CountRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get the number of the resource + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/canvaslayout/horizontalsections/item/columns/item/webparts/item/WebPartItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/canvaslayout/horizontalsections/item/columns/item/webparts/item/WebPartItemRequestBuilder.java new file mode 100644 index 00000000000..b742bcfd5e9 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/canvaslayout/horizontalsections/item/columns/item/webparts/item/WebPartItemRequestBuilder.java @@ -0,0 +1,237 @@ +package com.microsoft.graph.groups.item.sites.item.pages.item.graphsitepage.canvaslayout.horizontalsections.item.columns.item.webparts.item; + +import com.microsoft.graph.groups.item.sites.item.pages.item.graphsitepage.canvaslayout.horizontalsections.item.columns.item.webparts.item.getpositionofwebpart.GetPositionOfWebPartRequestBuilder; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.WebPart; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the webparts property of the microsoft.graph.horizontalSectionColumn entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class WebPartItemRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to call the getPositionOfWebPart method. + * @return a {@link GetPositionOfWebPartRequestBuilder} + */ + @jakarta.annotation.Nonnull + public GetPositionOfWebPartRequestBuilder getPositionOfWebPart() { + return new GetPositionOfWebPartRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link WebPartItemRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public WebPartItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/{horizontalSection%2Did}/columns/{horizontalSectionColumn%2Did}/webparts/{webPart%2Did}{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link WebPartItemRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public WebPartItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/{horizontalSection%2Did}/columns/{horizontalSectionColumn%2Did}/webparts/{webPart%2Did}{?%24expand,%24select}", rawUrl); + } + /** + * Delete navigation property webparts for groups + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete() { + delete(null); + } + /** + * Delete navigation property webparts for groups + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * Get webparts from groups + * @return a {@link WebPart} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public WebPart get() { + return get(null); + } + /** + * Get webparts from groups + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link WebPart} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public WebPart get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, WebPart::createFromDiscriminatorValue); + } + /** + * Update the navigation property webparts in groups + * @param body The request body + * @return a {@link WebPart} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public WebPart patch(@jakarta.annotation.Nonnull final WebPart body) { + return patch(body, null); + } + /** + * Update the navigation property webparts in groups + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link WebPart} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public WebPart patch(@jakarta.annotation.Nonnull final WebPart body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, WebPart::createFromDiscriminatorValue); + } + /** + * Delete navigation property webparts for groups + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation() { + return toDeleteRequestInformation(null); + } + /** + * Delete navigation property webparts for groups + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/{horizontalSection%2Did}/columns/{horizontalSectionColumn%2Did}/webparts/{webPart%2Did}", pathParameters); + requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Get webparts from groups + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get webparts from groups + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update the navigation property webparts in groups + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WebPart body) { + return toPatchRequestInformation(body, null); + } + /** + * Update the navigation property webparts in groups + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WebPart body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/{horizontalSection%2Did}/columns/{horizontalSectionColumn%2Did}/webparts/{webPart%2Did}", pathParameters); + requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link WebPartItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public WebPartItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new WebPartItemRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class DeleteRequestConfiguration extends BaseRequestConfiguration { + } + /** + * Get webparts from groups + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PatchRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/canvaslayout/horizontalsections/item/columns/item/webparts/item/getpositionofwebpart/GetPositionOfWebPartRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/canvaslayout/horizontalsections/item/columns/item/webparts/item/getpositionofwebpart/GetPositionOfWebPartRequestBuilder.java new file mode 100644 index 00000000000..84bc097aadb --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/canvaslayout/horizontalsections/item/columns/item/webparts/item/getpositionofwebpart/GetPositionOfWebPartRequestBuilder.java @@ -0,0 +1,96 @@ +package com.microsoft.graph.groups.item.sites.item.pages.item.graphsitepage.canvaslayout.horizontalsections.item.columns.item.webparts.item.getpositionofwebpart; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.WebPartPosition; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to call the getPositionOfWebPart method. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class GetPositionOfWebPartRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link GetPositionOfWebPartRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public GetPositionOfWebPartRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/{horizontalSection%2Did}/columns/{horizontalSectionColumn%2Did}/webparts/{webPart%2Did}/getPositionOfWebPart", pathParameters); + } + /** + * Instantiates a new {@link GetPositionOfWebPartRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public GetPositionOfWebPartRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/{horizontalSection%2Did}/columns/{horizontalSectionColumn%2Did}/webparts/{webPart%2Did}/getPositionOfWebPart", rawUrl); + } + /** + * Invoke action getPositionOfWebPart + * @return a {@link WebPartPosition} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public WebPartPosition post() { + return post(null); + } + /** + * Invoke action getPositionOfWebPart + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link WebPartPosition} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public WebPartPosition post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, WebPartPosition::createFromDiscriminatorValue); + } + /** + * Invoke action getPositionOfWebPart + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation() { + return toPostRequestInformation(null); + } + /** + * Invoke action getPositionOfWebPart + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link GetPositionOfWebPartRequestBuilder} + */ + @jakarta.annotation.Nonnull + public GetPositionOfWebPartRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new GetPositionOfWebPartRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/canvaslayout/verticalsection/VerticalSectionRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/canvaslayout/verticalsection/VerticalSectionRequestBuilder.java new file mode 100644 index 00000000000..c7b4274d62f --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/canvaslayout/verticalsection/VerticalSectionRequestBuilder.java @@ -0,0 +1,237 @@ +package com.microsoft.graph.groups.item.sites.item.pages.item.graphsitepage.canvaslayout.verticalsection; + +import com.microsoft.graph.groups.item.sites.item.pages.item.graphsitepage.canvaslayout.verticalsection.webparts.WebpartsRequestBuilder; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.VerticalSection; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the verticalSection property of the microsoft.graph.canvasLayout entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class VerticalSectionRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to manage the webparts property of the microsoft.graph.verticalSection entity. + * @return a {@link WebpartsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public WebpartsRequestBuilder webparts() { + return new WebpartsRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link VerticalSectionRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public VerticalSectionRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/verticalSection{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link VerticalSectionRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public VerticalSectionRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/verticalSection{?%24expand,%24select}", rawUrl); + } + /** + * Delete navigation property verticalSection for groups + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete() { + delete(null); + } + /** + * Delete navigation property verticalSection for groups + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * Get verticalSection from groups + * @return a {@link VerticalSection} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public VerticalSection get() { + return get(null); + } + /** + * Get verticalSection from groups + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link VerticalSection} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public VerticalSection get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, VerticalSection::createFromDiscriminatorValue); + } + /** + * Update the navigation property verticalSection in groups + * @param body The request body + * @return a {@link VerticalSection} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public VerticalSection patch(@jakarta.annotation.Nonnull final VerticalSection body) { + return patch(body, null); + } + /** + * Update the navigation property verticalSection in groups + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link VerticalSection} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public VerticalSection patch(@jakarta.annotation.Nonnull final VerticalSection body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, VerticalSection::createFromDiscriminatorValue); + } + /** + * Delete navigation property verticalSection for groups + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation() { + return toDeleteRequestInformation(null); + } + /** + * Delete navigation property verticalSection for groups + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/verticalSection", pathParameters); + requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Get verticalSection from groups + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get verticalSection from groups + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update the navigation property verticalSection in groups + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final VerticalSection body) { + return toPatchRequestInformation(body, null); + } + /** + * Update the navigation property verticalSection in groups + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final VerticalSection body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/verticalSection", pathParameters); + requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link VerticalSectionRequestBuilder} + */ + @jakarta.annotation.Nonnull + public VerticalSectionRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new VerticalSectionRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class DeleteRequestConfiguration extends BaseRequestConfiguration { + } + /** + * Get verticalSection from groups + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PatchRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/canvaslayout/verticalsection/webparts/WebpartsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/canvaslayout/verticalsection/webparts/WebpartsRequestBuilder.java new file mode 100644 index 00000000000..ed6a8d9a0b9 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/canvaslayout/verticalsection/webparts/WebpartsRequestBuilder.java @@ -0,0 +1,243 @@ +package com.microsoft.graph.groups.item.sites.item.pages.item.graphsitepage.canvaslayout.verticalsection.webparts; + +import com.microsoft.graph.groups.item.sites.item.pages.item.graphsitepage.canvaslayout.verticalsection.webparts.count.CountRequestBuilder; +import com.microsoft.graph.groups.item.sites.item.pages.item.graphsitepage.canvaslayout.verticalsection.webparts.item.WebPartItemRequestBuilder; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.WebPart; +import com.microsoft.graph.models.WebPartCollectionResponse; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the webparts property of the microsoft.graph.verticalSection entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class WebpartsRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to count the resources in the collection. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder count() { + return new CountRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to manage the webparts property of the microsoft.graph.verticalSection entity. + * @param webPartId The unique identifier of webPart + * @return a {@link WebPartItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public WebPartItemRequestBuilder byWebPartId(@jakarta.annotation.Nonnull final String webPartId) { + Objects.requireNonNull(webPartId); + final HashMap urlTplParams = new HashMap(this.pathParameters); + urlTplParams.put("webPart%2Did", webPartId); + return new WebPartItemRequestBuilder(urlTplParams, requestAdapter); + } + /** + * Instantiates a new {@link WebpartsRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public WebpartsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/verticalSection/webparts{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link WebpartsRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public WebpartsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/verticalSection/webparts{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * Get webparts from groups + * @return a {@link WebPartCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public WebPartCollectionResponse get() { + return get(null); + } + /** + * Get webparts from groups + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link WebPartCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public WebPartCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, WebPartCollectionResponse::createFromDiscriminatorValue); + } + /** + * Create new navigation property to webparts for groups + * @param body The request body + * @return a {@link WebPart} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public WebPart post(@jakarta.annotation.Nonnull final WebPart body) { + return post(body, null); + } + /** + * Create new navigation property to webparts for groups + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link WebPart} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public WebPart post(@jakarta.annotation.Nonnull final WebPart body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, WebPart::createFromDiscriminatorValue); + } + /** + * Get webparts from groups + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get webparts from groups + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Create new navigation property to webparts for groups + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WebPart body) { + return toPostRequestInformation(body, null); + } + /** + * Create new navigation property to webparts for groups + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WebPart body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/verticalSection/webparts", pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link WebpartsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public WebpartsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new WebpartsRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get webparts from groups + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Include count of items + */ + @jakarta.annotation.Nullable + public Boolean count; + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Order items by property values + */ + @jakarta.annotation.Nullable + public String[] orderby; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Skip the first n items + */ + @jakarta.annotation.Nullable + public Integer skip; + /** + * Show only the first n items + */ + @jakarta.annotation.Nullable + public Integer top; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24count", count); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + allQueryParams.put("%24skip", skip); + allQueryParams.put("%24top", top); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24orderby", orderby); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/canvaslayout/verticalsection/webparts/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/canvaslayout/verticalsection/webparts/count/CountRequestBuilder.java new file mode 100644 index 00000000000..46e3acbe7e6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/canvaslayout/verticalsection/webparts/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +package com.microsoft.graph.groups.item.sites.item.pages.item.graphsitepage.canvaslayout.verticalsection.webparts.count; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to count the resources in the collection. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CountRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/verticalSection/webparts/$count{?%24filter,%24search}", pathParameters); + } + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/verticalSection/webparts/$count{?%24filter,%24search}", rawUrl); + } + /** + * Get the number of the resource + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get() { + return get(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); + } + /** + * Get the number of the resource + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new CountRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get the number of the resource + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/canvaslayout/verticalsection/webparts/item/WebPartItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/canvaslayout/verticalsection/webparts/item/WebPartItemRequestBuilder.java new file mode 100644 index 00000000000..199777e9deb --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/canvaslayout/verticalsection/webparts/item/WebPartItemRequestBuilder.java @@ -0,0 +1,237 @@ +package com.microsoft.graph.groups.item.sites.item.pages.item.graphsitepage.canvaslayout.verticalsection.webparts.item; + +import com.microsoft.graph.groups.item.sites.item.pages.item.graphsitepage.canvaslayout.verticalsection.webparts.item.getpositionofwebpart.GetPositionOfWebPartRequestBuilder; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.WebPart; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the webparts property of the microsoft.graph.verticalSection entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class WebPartItemRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to call the getPositionOfWebPart method. + * @return a {@link GetPositionOfWebPartRequestBuilder} + */ + @jakarta.annotation.Nonnull + public GetPositionOfWebPartRequestBuilder getPositionOfWebPart() { + return new GetPositionOfWebPartRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link WebPartItemRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public WebPartItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/verticalSection/webparts/{webPart%2Did}{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link WebPartItemRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public WebPartItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/verticalSection/webparts/{webPart%2Did}{?%24expand,%24select}", rawUrl); + } + /** + * Delete navigation property webparts for groups + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete() { + delete(null); + } + /** + * Delete navigation property webparts for groups + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * Get webparts from groups + * @return a {@link WebPart} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public WebPart get() { + return get(null); + } + /** + * Get webparts from groups + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link WebPart} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public WebPart get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, WebPart::createFromDiscriminatorValue); + } + /** + * Update the navigation property webparts in groups + * @param body The request body + * @return a {@link WebPart} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public WebPart patch(@jakarta.annotation.Nonnull final WebPart body) { + return patch(body, null); + } + /** + * Update the navigation property webparts in groups + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link WebPart} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public WebPart patch(@jakarta.annotation.Nonnull final WebPart body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, WebPart::createFromDiscriminatorValue); + } + /** + * Delete navigation property webparts for groups + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation() { + return toDeleteRequestInformation(null); + } + /** + * Delete navigation property webparts for groups + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/verticalSection/webparts/{webPart%2Did}", pathParameters); + requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Get webparts from groups + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get webparts from groups + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update the navigation property webparts in groups + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WebPart body) { + return toPatchRequestInformation(body, null); + } + /** + * Update the navigation property webparts in groups + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WebPart body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/verticalSection/webparts/{webPart%2Did}", pathParameters); + requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link WebPartItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public WebPartItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new WebPartItemRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class DeleteRequestConfiguration extends BaseRequestConfiguration { + } + /** + * Get webparts from groups + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PatchRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/canvaslayout/verticalsection/webparts/item/getpositionofwebpart/GetPositionOfWebPartRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/canvaslayout/verticalsection/webparts/item/getpositionofwebpart/GetPositionOfWebPartRequestBuilder.java new file mode 100644 index 00000000000..58d7270e6fd --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/canvaslayout/verticalsection/webparts/item/getpositionofwebpart/GetPositionOfWebPartRequestBuilder.java @@ -0,0 +1,96 @@ +package com.microsoft.graph.groups.item.sites.item.pages.item.graphsitepage.canvaslayout.verticalsection.webparts.item.getpositionofwebpart; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.WebPartPosition; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to call the getPositionOfWebPart method. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class GetPositionOfWebPartRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link GetPositionOfWebPartRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public GetPositionOfWebPartRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/verticalSection/webparts/{webPart%2Did}/getPositionOfWebPart", pathParameters); + } + /** + * Instantiates a new {@link GetPositionOfWebPartRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public GetPositionOfWebPartRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/verticalSection/webparts/{webPart%2Did}/getPositionOfWebPart", rawUrl); + } + /** + * Invoke action getPositionOfWebPart + * @return a {@link WebPartPosition} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public WebPartPosition post() { + return post(null); + } + /** + * Invoke action getPositionOfWebPart + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link WebPartPosition} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public WebPartPosition post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, WebPartPosition::createFromDiscriminatorValue); + } + /** + * Invoke action getPositionOfWebPart + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation() { + return toPostRequestInformation(null); + } + /** + * Invoke action getPositionOfWebPart + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link GetPositionOfWebPartRequestBuilder} + */ + @jakarta.annotation.Nonnull + public GetPositionOfWebPartRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new GetPositionOfWebPartRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/createdbyuser/CreatedByUserRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/createdbyuser/CreatedByUserRequestBuilder.java new file mode 100644 index 00000000000..a1818c16a5c --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/createdbyuser/CreatedByUserRequestBuilder.java @@ -0,0 +1,147 @@ +package com.microsoft.graph.groups.item.sites.item.pages.item.graphsitepage.createdbyuser; + +import com.microsoft.graph.groups.item.sites.item.pages.item.graphsitepage.createdbyuser.mailboxsettings.MailboxSettingsRequestBuilder; +import com.microsoft.graph.groups.item.sites.item.pages.item.graphsitepage.createdbyuser.serviceprovisioningerrors.ServiceProvisioningErrorsRequestBuilder; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.User; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CreatedByUserRequestBuilder extends BaseRequestBuilder { + /** + * The mailboxSettings property + * @return a {@link MailboxSettingsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public MailboxSettingsRequestBuilder mailboxSettings() { + return new MailboxSettingsRequestBuilder(pathParameters, requestAdapter); + } + /** + * The serviceProvisioningErrors property + * @return a {@link ServiceProvisioningErrorsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ServiceProvisioningErrorsRequestBuilder serviceProvisioningErrors() { + return new ServiceProvisioningErrorsRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link CreatedByUserRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CreatedByUserRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/createdByUser{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link CreatedByUserRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CreatedByUserRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/createdByUser{?%24expand,%24select}", rawUrl); + } + /** + * Identity of the user who created the item. Read-only. + * @return a {@link User} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public User get() { + return get(null); + } + /** + * Identity of the user who created the item. Read-only. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link User} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public User get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, User::createFromDiscriminatorValue); + } + /** + * Identity of the user who created the item. Read-only. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Identity of the user who created the item. Read-only. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link CreatedByUserRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CreatedByUserRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new CreatedByUserRequestBuilder(rawUrl, requestAdapter); + } + /** + * Identity of the user who created the item. Read-only. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/createdbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/createdbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java new file mode 100644 index 00000000000..584361fc940 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/createdbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java @@ -0,0 +1,184 @@ +package com.microsoft.graph.groups.item.sites.item.pages.item.graphsitepage.createdbyuser.mailboxsettings; + +import com.microsoft.graph.models.MailboxSettings; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Builds and executes requests for operations under /groups/{group-id}/sites/{site-id}/pages/{baseSitePage-id}/graph.sitePage/createdByUser/mailboxSettings + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class MailboxSettingsRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link MailboxSettingsRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public MailboxSettingsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/createdByUser/mailboxSettings{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link MailboxSettingsRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public MailboxSettingsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/createdByUser/mailboxSettings{?%24expand,%24select}", rawUrl); + } + /** + * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. + * @return a {@link MailboxSettings} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public MailboxSettings get() { + return get(null); + } + /** + * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link MailboxSettings} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public MailboxSettings get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, MailboxSettings::createFromDiscriminatorValue); + } + /** + * Update property mailboxSettings value. + * @param body The request body + * @return a {@link MailboxSettings} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public MailboxSettings patch(@jakarta.annotation.Nonnull final MailboxSettings body) { + return patch(body, null); + } + /** + * Update property mailboxSettings value. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link MailboxSettings} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public MailboxSettings patch(@jakarta.annotation.Nonnull final MailboxSettings body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, MailboxSettings::createFromDiscriminatorValue); + } + /** + * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update property mailboxSettings value. + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final MailboxSettings body) { + return toPatchRequestInformation(body, null); + } + /** + * Update property mailboxSettings value. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final MailboxSettings body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/createdByUser/mailboxSettings", pathParameters); + requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link MailboxSettingsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public MailboxSettingsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new MailboxSettingsRequestBuilder(rawUrl, requestAdapter); + } + /** + * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PatchRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/createdbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/createdbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java new file mode 100644 index 00000000000..d205ca90713 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/createdbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java @@ -0,0 +1,174 @@ +package com.microsoft.graph.groups.item.sites.item.pages.item.graphsitepage.createdbyuser.serviceprovisioningerrors; + +import com.microsoft.graph.groups.item.sites.item.pages.item.graphsitepage.createdbyuser.serviceprovisioningerrors.count.CountRequestBuilder; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.ServiceProvisioningErrorCollectionResponse; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Builds and executes requests for operations under /groups/{group-id}/sites/{site-id}/pages/{baseSitePage-id}/graph.sitePage/createdByUser/serviceProvisioningErrors + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class ServiceProvisioningErrorsRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to count the resources in the collection. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder count() { + return new CountRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link ServiceProvisioningErrorsRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public ServiceProvisioningErrorsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/createdByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link ServiceProvisioningErrorsRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public ServiceProvisioningErrorsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/createdByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + * @return a {@link ServiceProvisioningErrorCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public ServiceProvisioningErrorCollectionResponse get() { + return get(null); + } + /** + * Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link ServiceProvisioningErrorCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public ServiceProvisioningErrorCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, ServiceProvisioningErrorCollectionResponse::createFromDiscriminatorValue); + } + /** + * Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link ServiceProvisioningErrorsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ServiceProvisioningErrorsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, requestAdapter); + } + /** + * Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Include count of items + */ + @jakarta.annotation.Nullable + public Boolean count; + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Order items by property values + */ + @jakarta.annotation.Nullable + public String[] orderby; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Skip the first n items + */ + @jakarta.annotation.Nullable + public Integer skip; + /** + * Show only the first n items + */ + @jakarta.annotation.Nullable + public Integer top; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24count", count); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + allQueryParams.put("%24skip", skip); + allQueryParams.put("%24top", top); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24orderby", orderby); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/createdbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/createdbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java new file mode 100644 index 00000000000..30a1effb3f2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/createdbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +package com.microsoft.graph.groups.item.sites.item.pages.item.graphsitepage.createdbyuser.serviceprovisioningerrors.count; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to count the resources in the collection. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CountRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/createdByUser/serviceProvisioningErrors/$count{?%24filter,%24search}", pathParameters); + } + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/createdByUser/serviceProvisioningErrors/$count{?%24filter,%24search}", rawUrl); + } + /** + * Get the number of the resource + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get() { + return get(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); + } + /** + * Get the number of the resource + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new CountRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get the number of the resource + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/lastmodifiedbyuser/LastModifiedByUserRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/lastmodifiedbyuser/LastModifiedByUserRequestBuilder.java new file mode 100644 index 00000000000..035d23cae10 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/lastmodifiedbyuser/LastModifiedByUserRequestBuilder.java @@ -0,0 +1,147 @@ +package com.microsoft.graph.groups.item.sites.item.pages.item.graphsitepage.lastmodifiedbyuser; + +import com.microsoft.graph.groups.item.sites.item.pages.item.graphsitepage.lastmodifiedbyuser.mailboxsettings.MailboxSettingsRequestBuilder; +import com.microsoft.graph.groups.item.sites.item.pages.item.graphsitepage.lastmodifiedbyuser.serviceprovisioningerrors.ServiceProvisioningErrorsRequestBuilder; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.User; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the lastModifiedByUser property of the microsoft.graph.baseItem entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class LastModifiedByUserRequestBuilder extends BaseRequestBuilder { + /** + * The mailboxSettings property + * @return a {@link MailboxSettingsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public MailboxSettingsRequestBuilder mailboxSettings() { + return new MailboxSettingsRequestBuilder(pathParameters, requestAdapter); + } + /** + * The serviceProvisioningErrors property + * @return a {@link ServiceProvisioningErrorsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ServiceProvisioningErrorsRequestBuilder serviceProvisioningErrors() { + return new ServiceProvisioningErrorsRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link LastModifiedByUserRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public LastModifiedByUserRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/lastModifiedByUser{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link LastModifiedByUserRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public LastModifiedByUserRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/lastModifiedByUser{?%24expand,%24select}", rawUrl); + } + /** + * Identity of the user who last modified the item. Read-only. + * @return a {@link User} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public User get() { + return get(null); + } + /** + * Identity of the user who last modified the item. Read-only. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link User} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public User get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, User::createFromDiscriminatorValue); + } + /** + * Identity of the user who last modified the item. Read-only. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Identity of the user who last modified the item. Read-only. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link LastModifiedByUserRequestBuilder} + */ + @jakarta.annotation.Nonnull + public LastModifiedByUserRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new LastModifiedByUserRequestBuilder(rawUrl, requestAdapter); + } + /** + * Identity of the user who last modified the item. Read-only. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/lastmodifiedbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/lastmodifiedbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java new file mode 100644 index 00000000000..6618270d94e --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/lastmodifiedbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java @@ -0,0 +1,184 @@ +package com.microsoft.graph.groups.item.sites.item.pages.item.graphsitepage.lastmodifiedbyuser.mailboxsettings; + +import com.microsoft.graph.models.MailboxSettings; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Builds and executes requests for operations under /groups/{group-id}/sites/{site-id}/pages/{baseSitePage-id}/graph.sitePage/lastModifiedByUser/mailboxSettings + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class MailboxSettingsRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link MailboxSettingsRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public MailboxSettingsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/lastModifiedByUser/mailboxSettings{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link MailboxSettingsRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public MailboxSettingsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/lastModifiedByUser/mailboxSettings{?%24expand,%24select}", rawUrl); + } + /** + * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. + * @return a {@link MailboxSettings} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public MailboxSettings get() { + return get(null); + } + /** + * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link MailboxSettings} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public MailboxSettings get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, MailboxSettings::createFromDiscriminatorValue); + } + /** + * Update property mailboxSettings value. + * @param body The request body + * @return a {@link MailboxSettings} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public MailboxSettings patch(@jakarta.annotation.Nonnull final MailboxSettings body) { + return patch(body, null); + } + /** + * Update property mailboxSettings value. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link MailboxSettings} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public MailboxSettings patch(@jakarta.annotation.Nonnull final MailboxSettings body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, MailboxSettings::createFromDiscriminatorValue); + } + /** + * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update property mailboxSettings value. + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final MailboxSettings body) { + return toPatchRequestInformation(body, null); + } + /** + * Update property mailboxSettings value. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final MailboxSettings body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/lastModifiedByUser/mailboxSettings", pathParameters); + requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link MailboxSettingsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public MailboxSettingsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new MailboxSettingsRequestBuilder(rawUrl, requestAdapter); + } + /** + * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PatchRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/lastmodifiedbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/lastmodifiedbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java new file mode 100644 index 00000000000..99f7b8ea458 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/lastmodifiedbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java @@ -0,0 +1,174 @@ +package com.microsoft.graph.groups.item.sites.item.pages.item.graphsitepage.lastmodifiedbyuser.serviceprovisioningerrors; + +import com.microsoft.graph.groups.item.sites.item.pages.item.graphsitepage.lastmodifiedbyuser.serviceprovisioningerrors.count.CountRequestBuilder; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.ServiceProvisioningErrorCollectionResponse; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Builds and executes requests for operations under /groups/{group-id}/sites/{site-id}/pages/{baseSitePage-id}/graph.sitePage/lastModifiedByUser/serviceProvisioningErrors + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class ServiceProvisioningErrorsRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to count the resources in the collection. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder count() { + return new CountRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link ServiceProvisioningErrorsRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public ServiceProvisioningErrorsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/lastModifiedByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link ServiceProvisioningErrorsRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public ServiceProvisioningErrorsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/lastModifiedByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + * @return a {@link ServiceProvisioningErrorCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public ServiceProvisioningErrorCollectionResponse get() { + return get(null); + } + /** + * Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link ServiceProvisioningErrorCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public ServiceProvisioningErrorCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, ServiceProvisioningErrorCollectionResponse::createFromDiscriminatorValue); + } + /** + * Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link ServiceProvisioningErrorsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ServiceProvisioningErrorsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, requestAdapter); + } + /** + * Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Include count of items + */ + @jakarta.annotation.Nullable + public Boolean count; + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Order items by property values + */ + @jakarta.annotation.Nullable + public String[] orderby; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Skip the first n items + */ + @jakarta.annotation.Nullable + public Integer skip; + /** + * Show only the first n items + */ + @jakarta.annotation.Nullable + public Integer top; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24count", count); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + allQueryParams.put("%24skip", skip); + allQueryParams.put("%24top", top); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24orderby", orderby); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/lastmodifiedbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/lastmodifiedbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java new file mode 100644 index 00000000000..efa3a60d57c --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/lastmodifiedbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +package com.microsoft.graph.groups.item.sites.item.pages.item.graphsitepage.lastmodifiedbyuser.serviceprovisioningerrors.count; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to count the resources in the collection. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CountRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/lastModifiedByUser/serviceProvisioningErrors/$count{?%24filter,%24search}", pathParameters); + } + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/lastModifiedByUser/serviceProvisioningErrors/$count{?%24filter,%24search}", rawUrl); + } + /** + * Get the number of the resource + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get() { + return get(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); + } + /** + * Get the number of the resource + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new CountRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get the number of the resource + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/webparts/WebPartsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/webparts/WebPartsRequestBuilder.java new file mode 100644 index 00000000000..d89cfc1cbee --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/webparts/WebPartsRequestBuilder.java @@ -0,0 +1,243 @@ +package com.microsoft.graph.groups.item.sites.item.pages.item.graphsitepage.webparts; + +import com.microsoft.graph.groups.item.sites.item.pages.item.graphsitepage.webparts.count.CountRequestBuilder; +import com.microsoft.graph.groups.item.sites.item.pages.item.graphsitepage.webparts.item.WebPartItemRequestBuilder; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.WebPart; +import com.microsoft.graph.models.WebPartCollectionResponse; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the webParts property of the microsoft.graph.sitePage entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class WebPartsRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to count the resources in the collection. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder count() { + return new CountRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to manage the webParts property of the microsoft.graph.sitePage entity. + * @param webPartId The unique identifier of webPart + * @return a {@link WebPartItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public WebPartItemRequestBuilder byWebPartId(@jakarta.annotation.Nonnull final String webPartId) { + Objects.requireNonNull(webPartId); + final HashMap urlTplParams = new HashMap(this.pathParameters); + urlTplParams.put("webPart%2Did", webPartId); + return new WebPartItemRequestBuilder(urlTplParams, requestAdapter); + } + /** + * Instantiates a new {@link WebPartsRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public WebPartsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/webParts{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link WebPartsRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public WebPartsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/webParts{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * Get webParts from groups + * @return a {@link WebPartCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public WebPartCollectionResponse get() { + return get(null); + } + /** + * Get webParts from groups + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link WebPartCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public WebPartCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, WebPartCollectionResponse::createFromDiscriminatorValue); + } + /** + * Create new navigation property to webParts for groups + * @param body The request body + * @return a {@link WebPart} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public WebPart post(@jakarta.annotation.Nonnull final WebPart body) { + return post(body, null); + } + /** + * Create new navigation property to webParts for groups + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link WebPart} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public WebPart post(@jakarta.annotation.Nonnull final WebPart body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, WebPart::createFromDiscriminatorValue); + } + /** + * Get webParts from groups + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get webParts from groups + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Create new navigation property to webParts for groups + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WebPart body) { + return toPostRequestInformation(body, null); + } + /** + * Create new navigation property to webParts for groups + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WebPart body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/webParts", pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link WebPartsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public WebPartsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new WebPartsRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get webParts from groups + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Include count of items + */ + @jakarta.annotation.Nullable + public Boolean count; + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Order items by property values + */ + @jakarta.annotation.Nullable + public String[] orderby; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Skip the first n items + */ + @jakarta.annotation.Nullable + public Integer skip; + /** + * Show only the first n items + */ + @jakarta.annotation.Nullable + public Integer top; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24count", count); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + allQueryParams.put("%24skip", skip); + allQueryParams.put("%24top", top); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24orderby", orderby); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/webparts/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/webparts/count/CountRequestBuilder.java new file mode 100644 index 00000000000..eded34b6eeb --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/webparts/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +package com.microsoft.graph.groups.item.sites.item.pages.item.graphsitepage.webparts.count; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to count the resources in the collection. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CountRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/webParts/$count{?%24filter,%24search}", pathParameters); + } + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/webParts/$count{?%24filter,%24search}", rawUrl); + } + /** + * Get the number of the resource + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get() { + return get(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); + } + /** + * Get the number of the resource + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new CountRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get the number of the resource + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/webparts/item/WebPartItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/webparts/item/WebPartItemRequestBuilder.java new file mode 100644 index 00000000000..c0f2dac2533 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/webparts/item/WebPartItemRequestBuilder.java @@ -0,0 +1,237 @@ +package com.microsoft.graph.groups.item.sites.item.pages.item.graphsitepage.webparts.item; + +import com.microsoft.graph.groups.item.sites.item.pages.item.graphsitepage.webparts.item.getpositionofwebpart.GetPositionOfWebPartRequestBuilder; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.WebPart; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the webParts property of the microsoft.graph.sitePage entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class WebPartItemRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to call the getPositionOfWebPart method. + * @return a {@link GetPositionOfWebPartRequestBuilder} + */ + @jakarta.annotation.Nonnull + public GetPositionOfWebPartRequestBuilder getPositionOfWebPart() { + return new GetPositionOfWebPartRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link WebPartItemRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public WebPartItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/webParts/{webPart%2Did}{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link WebPartItemRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public WebPartItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/webParts/{webPart%2Did}{?%24expand,%24select}", rawUrl); + } + /** + * Delete navigation property webParts for groups + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete() { + delete(null); + } + /** + * Delete navigation property webParts for groups + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * Get webParts from groups + * @return a {@link WebPart} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public WebPart get() { + return get(null); + } + /** + * Get webParts from groups + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link WebPart} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public WebPart get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, WebPart::createFromDiscriminatorValue); + } + /** + * Update the navigation property webParts in groups + * @param body The request body + * @return a {@link WebPart} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public WebPart patch(@jakarta.annotation.Nonnull final WebPart body) { + return patch(body, null); + } + /** + * Update the navigation property webParts in groups + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link WebPart} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public WebPart patch(@jakarta.annotation.Nonnull final WebPart body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, WebPart::createFromDiscriminatorValue); + } + /** + * Delete navigation property webParts for groups + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation() { + return toDeleteRequestInformation(null); + } + /** + * Delete navigation property webParts for groups + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/webParts/{webPart%2Did}", pathParameters); + requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Get webParts from groups + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get webParts from groups + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update the navigation property webParts in groups + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WebPart body) { + return toPatchRequestInformation(body, null); + } + /** + * Update the navigation property webParts in groups + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WebPart body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/webParts/{webPart%2Did}", pathParameters); + requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link WebPartItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public WebPartItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new WebPartItemRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class DeleteRequestConfiguration extends BaseRequestConfiguration { + } + /** + * Get webParts from groups + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PatchRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/webparts/item/getpositionofwebpart/GetPositionOfWebPartRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/webparts/item/getpositionofwebpart/GetPositionOfWebPartRequestBuilder.java new file mode 100644 index 00000000000..020e3b25f72 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/graphsitepage/webparts/item/getpositionofwebpart/GetPositionOfWebPartRequestBuilder.java @@ -0,0 +1,96 @@ +package com.microsoft.graph.groups.item.sites.item.pages.item.graphsitepage.webparts.item.getpositionofwebpart; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.WebPartPosition; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to call the getPositionOfWebPart method. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class GetPositionOfWebPartRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link GetPositionOfWebPartRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public GetPositionOfWebPartRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/webParts/{webPart%2Did}/getPositionOfWebPart", pathParameters); + } + /** + * Instantiates a new {@link GetPositionOfWebPartRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public GetPositionOfWebPartRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/webParts/{webPart%2Did}/getPositionOfWebPart", rawUrl); + } + /** + * Invoke action getPositionOfWebPart + * @return a {@link WebPartPosition} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public WebPartPosition post() { + return post(null); + } + /** + * Invoke action getPositionOfWebPart + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link WebPartPosition} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public WebPartPosition post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, WebPartPosition::createFromDiscriminatorValue); + } + /** + * Invoke action getPositionOfWebPart + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation() { + return toPostRequestInformation(null); + } + /** + * Invoke action getPositionOfWebPart + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link GetPositionOfWebPartRequestBuilder} + */ + @jakarta.annotation.Nonnull + public GetPositionOfWebPartRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new GetPositionOfWebPartRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/lastmodifiedbyuser/LastModifiedByUserRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/lastmodifiedbyuser/LastModifiedByUserRequestBuilder.java new file mode 100644 index 00000000000..e238fc3a371 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/lastmodifiedbyuser/LastModifiedByUserRequestBuilder.java @@ -0,0 +1,147 @@ +package com.microsoft.graph.groups.item.sites.item.pages.item.lastmodifiedbyuser; + +import com.microsoft.graph.groups.item.sites.item.pages.item.lastmodifiedbyuser.mailboxsettings.MailboxSettingsRequestBuilder; +import com.microsoft.graph.groups.item.sites.item.pages.item.lastmodifiedbyuser.serviceprovisioningerrors.ServiceProvisioningErrorsRequestBuilder; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.User; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the lastModifiedByUser property of the microsoft.graph.baseItem entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class LastModifiedByUserRequestBuilder extends BaseRequestBuilder { + /** + * The mailboxSettings property + * @return a {@link MailboxSettingsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public MailboxSettingsRequestBuilder mailboxSettings() { + return new MailboxSettingsRequestBuilder(pathParameters, requestAdapter); + } + /** + * The serviceProvisioningErrors property + * @return a {@link ServiceProvisioningErrorsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ServiceProvisioningErrorsRequestBuilder serviceProvisioningErrors() { + return new ServiceProvisioningErrorsRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link LastModifiedByUserRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public LastModifiedByUserRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/lastModifiedByUser{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link LastModifiedByUserRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public LastModifiedByUserRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/lastModifiedByUser{?%24expand,%24select}", rawUrl); + } + /** + * Identity of the user who last modified the item. Read-only. + * @return a {@link User} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public User get() { + return get(null); + } + /** + * Identity of the user who last modified the item. Read-only. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link User} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public User get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, User::createFromDiscriminatorValue); + } + /** + * Identity of the user who last modified the item. Read-only. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Identity of the user who last modified the item. Read-only. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link LastModifiedByUserRequestBuilder} + */ + @jakarta.annotation.Nonnull + public LastModifiedByUserRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new LastModifiedByUserRequestBuilder(rawUrl, requestAdapter); + } + /** + * Identity of the user who last modified the item. Read-only. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/lastmodifiedbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/lastmodifiedbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java new file mode 100644 index 00000000000..da8c4a4639c --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/lastmodifiedbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java @@ -0,0 +1,184 @@ +package com.microsoft.graph.groups.item.sites.item.pages.item.lastmodifiedbyuser.mailboxsettings; + +import com.microsoft.graph.models.MailboxSettings; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Builds and executes requests for operations under /groups/{group-id}/sites/{site-id}/pages/{baseSitePage-id}/lastModifiedByUser/mailboxSettings + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class MailboxSettingsRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link MailboxSettingsRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public MailboxSettingsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/lastModifiedByUser/mailboxSettings{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link MailboxSettingsRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public MailboxSettingsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/lastModifiedByUser/mailboxSettings{?%24expand,%24select}", rawUrl); + } + /** + * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. + * @return a {@link MailboxSettings} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public MailboxSettings get() { + return get(null); + } + /** + * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link MailboxSettings} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public MailboxSettings get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, MailboxSettings::createFromDiscriminatorValue); + } + /** + * Update property mailboxSettings value. + * @param body The request body + * @return a {@link MailboxSettings} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public MailboxSettings patch(@jakarta.annotation.Nonnull final MailboxSettings body) { + return patch(body, null); + } + /** + * Update property mailboxSettings value. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link MailboxSettings} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public MailboxSettings patch(@jakarta.annotation.Nonnull final MailboxSettings body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, MailboxSettings::createFromDiscriminatorValue); + } + /** + * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update property mailboxSettings value. + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final MailboxSettings body) { + return toPatchRequestInformation(body, null); + } + /** + * Update property mailboxSettings value. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final MailboxSettings body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/lastModifiedByUser/mailboxSettings", pathParameters); + requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link MailboxSettingsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public MailboxSettingsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new MailboxSettingsRequestBuilder(rawUrl, requestAdapter); + } + /** + * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PatchRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/lastmodifiedbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/lastmodifiedbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java new file mode 100644 index 00000000000..5229c7a3bb0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/lastmodifiedbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java @@ -0,0 +1,174 @@ +package com.microsoft.graph.groups.item.sites.item.pages.item.lastmodifiedbyuser.serviceprovisioningerrors; + +import com.microsoft.graph.groups.item.sites.item.pages.item.lastmodifiedbyuser.serviceprovisioningerrors.count.CountRequestBuilder; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.ServiceProvisioningErrorCollectionResponse; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Builds and executes requests for operations under /groups/{group-id}/sites/{site-id}/pages/{baseSitePage-id}/lastModifiedByUser/serviceProvisioningErrors + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class ServiceProvisioningErrorsRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to count the resources in the collection. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder count() { + return new CountRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link ServiceProvisioningErrorsRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public ServiceProvisioningErrorsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/lastModifiedByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link ServiceProvisioningErrorsRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public ServiceProvisioningErrorsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/lastModifiedByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + * @return a {@link ServiceProvisioningErrorCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public ServiceProvisioningErrorCollectionResponse get() { + return get(null); + } + /** + * Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link ServiceProvisioningErrorCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public ServiceProvisioningErrorCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, ServiceProvisioningErrorCollectionResponse::createFromDiscriminatorValue); + } + /** + * Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link ServiceProvisioningErrorsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ServiceProvisioningErrorsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, requestAdapter); + } + /** + * Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Include count of items + */ + @jakarta.annotation.Nullable + public Boolean count; + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Order items by property values + */ + @jakarta.annotation.Nullable + public String[] orderby; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Skip the first n items + */ + @jakarta.annotation.Nullable + public Integer skip; + /** + * Show only the first n items + */ + @jakarta.annotation.Nullable + public Integer top; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24count", count); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + allQueryParams.put("%24skip", skip); + allQueryParams.put("%24top", top); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24orderby", orderby); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/lastmodifiedbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/lastmodifiedbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java new file mode 100644 index 00000000000..3427b8a10af --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/pages/item/lastmodifiedbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +package com.microsoft.graph.groups.item.sites.item.pages.item.lastmodifiedbyuser.serviceprovisioningerrors.count; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to count the resources in the collection. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CountRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/lastModifiedByUser/serviceProvisioningErrors/$count{?%24filter,%24search}", pathParameters); + } + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/lastModifiedByUser/serviceProvisioningErrors/$count{?%24filter,%24search}", rawUrl); + } + /** + * Get the number of the resource + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get() { + return get(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); + } + /** + * Get the number of the resource + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new CountRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get the number of the resource + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/team/archive/ArchiveRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/team/archive/ArchiveRequestBuilder.java index 1ffe18c01e1..1f47618f2ad 100644 --- a/src/main/java/com/microsoft/graph/generated/groups/item/team/archive/ArchiveRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/groups/item/team/archive/ArchiveRequestBuilder.java @@ -35,7 +35,7 @@ public ArchiveRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @j super(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/archive", rawUrl); } /** - * Archive the specified team. When a team is archived, users can no longer send or like messages on any channel in the team, edit the team's name, description, or other settings, or in general make most changes to the team.Membership changes to the team continue to be allowed. Archiving is an async operation. A team is archived once the async operation completes successfully, which may occur subsequent to a response from this API. To archive a team, the team and group must have an owner. To restore a team from its archived state, use the API to unarchive. + * Archive the specified team. When a team is archived, users can no longer make most changes to the team. For example, users can no longer: send or like messages on any channel in the team; edit the team's name or description; nor edit other settings. However, membership changes to the team are still allowed. Archiving is an async operation. A team is archived once the async operation completes successfully, which might occur subsequent to a response from this API. To archive a team, the team and group must have an owner. To restore a team from its archived state, use the API to unarchive. * @param body The request body * @throws ODataError When receiving a 4XX or 5XX status code * @see Find more info here @@ -44,7 +44,7 @@ public void post(@jakarta.annotation.Nonnull final ArchivePostRequestBody body) post(body, null); } /** - * Archive the specified team. When a team is archived, users can no longer send or like messages on any channel in the team, edit the team's name, description, or other settings, or in general make most changes to the team.Membership changes to the team continue to be allowed. Archiving is an async operation. A team is archived once the async operation completes successfully, which may occur subsequent to a response from this API. To archive a team, the team and group must have an owner. To restore a team from its archived state, use the API to unarchive. + * Archive the specified team. When a team is archived, users can no longer make most changes to the team. For example, users can no longer: send or like messages on any channel in the team; edit the team's name or description; nor edit other settings. However, membership changes to the team are still allowed. Archiving is an async operation. A team is archived once the async operation completes successfully, which might occur subsequent to a response from this API. To archive a team, the team and group must have an owner. To restore a team from its archived state, use the API to unarchive. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @throws ODataError When receiving a 4XX or 5XX status code @@ -58,7 +58,7 @@ public void post(@jakarta.annotation.Nonnull final ArchivePostRequestBody body, this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Archive the specified team. When a team is archived, users can no longer send or like messages on any channel in the team, edit the team's name, description, or other settings, or in general make most changes to the team.Membership changes to the team continue to be allowed. Archiving is an async operation. A team is archived once the async operation completes successfully, which may occur subsequent to a response from this API. To archive a team, the team and group must have an owner. To restore a team from its archived state, use the API to unarchive. + * Archive the specified team. When a team is archived, users can no longer make most changes to the team. For example, users can no longer: send or like messages on any channel in the team; edit the team's name or description; nor edit other settings. However, membership changes to the team are still allowed. Archiving is an async operation. A team is archived once the async operation completes successfully, which might occur subsequent to a response from this API. To archive a team, the team and group must have an owner. To restore a team from its archived state, use the API to unarchive. * @param body The request body * @return a {@link RequestInformation} */ @@ -67,7 +67,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Archive the specified team. When a team is archived, users can no longer send or like messages on any channel in the team, edit the team's name, description, or other settings, or in general make most changes to the team.Membership changes to the team continue to be allowed. Archiving is an async operation. A team is archived once the async operation completes successfully, which may occur subsequent to a response from this API. To archive a team, the team and group must have an owner. To restore a team from its archived state, use the API to unarchive. + * Archive the specified team. When a team is archived, users can no longer make most changes to the team. For example, users can no longer: send or like messages on any channel in the team; edit the team's name or description; nor edit other settings. However, membership changes to the team are still allowed. Archiving is an async operation. A team is archived once the async operation completes successfully, which might occur subsequent to a response from this API. To archive a team, the team and group must have an owner. To restore a team from its archived state, use the API to unarchive. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/team/channels/item/members/MembersRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/team/channels/item/members/MembersRequestBuilder.java index a5513c985d7..a510d62fd72 100644 --- a/src/main/java/com/microsoft/graph/generated/groups/item/team/channels/item/members/MembersRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/groups/item/team/channels/item/members/MembersRequestBuilder.java @@ -93,23 +93,23 @@ public ConversationMemberCollectionResponse get(@jakarta.annotation.Nullable fin return this.requestAdapter.send(requestInfo, errorMapping, ConversationMemberCollectionResponse::createFromDiscriminatorValue); } /** - * Add a conversationMember to a channel. + * Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared. * @param body The request body * @return a {@link ConversationMember} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ConversationMember post(@jakarta.annotation.Nonnull final ConversationMember body) { return post(body, null); } /** - * Add a conversationMember to a channel. + * Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link ConversationMember} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ConversationMember post(@jakarta.annotation.Nonnull final ConversationMember body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -140,7 +140,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Add a conversationMember to a channel. + * Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared. * @param body The request body * @return a {@link RequestInformation} */ @@ -149,7 +149,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Add a conversationMember to a channel. + * Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/team/channels/item/messages/MessagesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/team/channels/item/messages/MessagesRequestBuilder.java index 695e0a8cd0d..fb700e3f75a 100644 --- a/src/main/java/com/microsoft/graph/generated/groups/item/team/channels/item/messages/MessagesRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/groups/item/team/channels/item/messages/MessagesRequestBuilder.java @@ -93,23 +93,23 @@ public ChatMessageCollectionResponse get(@jakarta.annotation.Nullable final java return this.requestAdapter.send(requestInfo, errorMapping, ChatMessageCollectionResponse::createFromDiscriminatorValue); } /** - * Send a new chatMessage in the specified channel. + * Send a new chatMessage in the specified channel or a chat. * @param body The request body * @return a {@link ChatMessage} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ChatMessage post(@jakarta.annotation.Nonnull final ChatMessage body) { return post(body, null); } /** - * Send a new chatMessage in the specified channel. + * Send a new chatMessage in the specified channel or a chat. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link ChatMessage} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ChatMessage post(@jakarta.annotation.Nonnull final ChatMessage body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -140,7 +140,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Send a new chatMessage in the specified channel. + * Send a new chatMessage in the specified channel or a chat. * @param body The request body * @return a {@link RequestInformation} */ @@ -149,7 +149,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Send a new chatMessage in the specified channel. + * Send a new chatMessage in the specified channel or a chat. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/team/channels/item/tabs/item/TeamsTabItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/team/channels/item/tabs/item/TeamsTabItemRequestBuilder.java index 94d9f93c200..fd1a6fdf1f9 100644 --- a/src/main/java/com/microsoft/graph/generated/groups/item/team/channels/item/tabs/item/TeamsTabItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/groups/item/team/channels/item/tabs/item/TeamsTabItemRequestBuilder.java @@ -90,7 +90,7 @@ public TeamsTab get(@jakarta.annotation.Nullable final java.util.function.Consum return this.requestAdapter.send(requestInfo, errorMapping, TeamsTab::createFromDiscriminatorValue); } /** - * Update the properties of the specified tab.This can be used to configure the content of the tab. + * Update the properties of the specified tab.This API can be used to configure the content of the tab. * @param body The request body * @return a {@link TeamsTab} * @throws ODataError When receiving a 4XX or 5XX status code @@ -101,7 +101,7 @@ public TeamsTab patch(@jakarta.annotation.Nonnull final TeamsTab body) { return patch(body, null); } /** - * Update the properties of the specified tab.This can be used to configure the content of the tab. + * Update the properties of the specified tab.This API can be used to configure the content of the tab. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link TeamsTab} @@ -157,7 +157,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Update the properties of the specified tab.This can be used to configure the content of the tab. + * Update the properties of the specified tab.This API can be used to configure the content of the tab. * @param body The request body * @return a {@link RequestInformation} */ @@ -166,7 +166,7 @@ public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull return toPatchRequestInformation(body, null); } /** - * Update the properties of the specified tab.This can be used to configure the content of the tab. + * Update the properties of the specified tab.This API can be used to configure the content of the tab. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/team/primarychannel/members/MembersRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/team/primarychannel/members/MembersRequestBuilder.java index f2b4c66fd2f..97fd5611a34 100644 --- a/src/main/java/com/microsoft/graph/generated/groups/item/team/primarychannel/members/MembersRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/groups/item/team/primarychannel/members/MembersRequestBuilder.java @@ -93,23 +93,23 @@ public ConversationMemberCollectionResponse get(@jakarta.annotation.Nullable fin return this.requestAdapter.send(requestInfo, errorMapping, ConversationMemberCollectionResponse::createFromDiscriminatorValue); } /** - * Add a conversationMember to a channel. + * Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared. * @param body The request body * @return a {@link ConversationMember} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ConversationMember post(@jakarta.annotation.Nonnull final ConversationMember body) { return post(body, null); } /** - * Add a conversationMember to a channel. + * Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link ConversationMember} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ConversationMember post(@jakarta.annotation.Nonnull final ConversationMember body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -140,7 +140,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Add a conversationMember to a channel. + * Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared. * @param body The request body * @return a {@link RequestInformation} */ @@ -149,7 +149,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Add a conversationMember to a channel. + * Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/team/primarychannel/messages/MessagesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/team/primarychannel/messages/MessagesRequestBuilder.java index c772200968b..01ba6996e09 100644 --- a/src/main/java/com/microsoft/graph/generated/groups/item/team/primarychannel/messages/MessagesRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/groups/item/team/primarychannel/messages/MessagesRequestBuilder.java @@ -93,23 +93,23 @@ public ChatMessageCollectionResponse get(@jakarta.annotation.Nullable final java return this.requestAdapter.send(requestInfo, errorMapping, ChatMessageCollectionResponse::createFromDiscriminatorValue); } /** - * Send a new chatMessage in the specified channel. + * Send a new chatMessage in the specified channel or a chat. * @param body The request body * @return a {@link ChatMessage} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ChatMessage post(@jakarta.annotation.Nonnull final ChatMessage body) { return post(body, null); } /** - * Send a new chatMessage in the specified channel. + * Send a new chatMessage in the specified channel or a chat. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link ChatMessage} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ChatMessage post(@jakarta.annotation.Nonnull final ChatMessage body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -140,7 +140,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Send a new chatMessage in the specified channel. + * Send a new chatMessage in the specified channel or a chat. * @param body The request body * @return a {@link RequestInformation} */ @@ -149,7 +149,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Send a new chatMessage in the specified channel. + * Send a new chatMessage in the specified channel or a chat. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/team/primarychannel/tabs/item/TeamsTabItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/team/primarychannel/tabs/item/TeamsTabItemRequestBuilder.java index 44c7a4fe6b7..a906d78d6ca 100644 --- a/src/main/java/com/microsoft/graph/generated/groups/item/team/primarychannel/tabs/item/TeamsTabItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/groups/item/team/primarychannel/tabs/item/TeamsTabItemRequestBuilder.java @@ -90,7 +90,7 @@ public TeamsTab get(@jakarta.annotation.Nullable final java.util.function.Consum return this.requestAdapter.send(requestInfo, errorMapping, TeamsTab::createFromDiscriminatorValue); } /** - * Update the properties of the specified tab.This can be used to configure the content of the tab. + * Update the properties of the specified tab.This API can be used to configure the content of the tab. * @param body The request body * @return a {@link TeamsTab} * @throws ODataError When receiving a 4XX or 5XX status code @@ -101,7 +101,7 @@ public TeamsTab patch(@jakarta.annotation.Nonnull final TeamsTab body) { return patch(body, null); } /** - * Update the properties of the specified tab.This can be used to configure the content of the tab. + * Update the properties of the specified tab.This API can be used to configure the content of the tab. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link TeamsTab} @@ -157,7 +157,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Update the properties of the specified tab.This can be used to configure the content of the tab. + * Update the properties of the specified tab.This API can be used to configure the content of the tab. * @param body The request body * @return a {@link RequestInformation} */ @@ -166,7 +166,7 @@ public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull return toPatchRequestInformation(body, null); } /** - * Update the properties of the specified tab.This can be used to configure the content of the tab. + * Update the properties of the specified tab.This API can be used to configure the content of the tab. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/team/unarchive/UnarchiveRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/team/unarchive/UnarchiveRequestBuilder.java index 68141bcbc8b..e5287f3718b 100644 --- a/src/main/java/com/microsoft/graph/generated/groups/item/team/unarchive/UnarchiveRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/groups/item/team/unarchive/UnarchiveRequestBuilder.java @@ -35,7 +35,7 @@ public UnarchiveRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, super(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/unarchive", rawUrl); } /** - * Restore an archived team. This restores users' ability to send messages and edit the team, abiding by tenant and team settings. A Team is archived using the archive API. Unarchiving is an async operation. A team is unarchived once the async operation completes successfully, which may occur subsequent to a response from this API. + * Restore an archived team. This API restores users' ability to send messages and edit the team, abiding by tenant and team settings. A Team is archived using the archive API. Unarchiving is an async operation. A team is unarchived once the async operation completes successfully, which might occur subsequent to a response from this API. * @throws ODataError When receiving a 4XX or 5XX status code * @see Find more info here */ @@ -43,7 +43,7 @@ public void post() { post(null); } /** - * Restore an archived team. This restores users' ability to send messages and edit the team, abiding by tenant and team settings. A Team is archived using the archive API. Unarchiving is an async operation. A team is unarchived once the async operation completes successfully, which may occur subsequent to a response from this API. + * Restore an archived team. This API restores users' ability to send messages and edit the team, abiding by tenant and team settings. A Team is archived using the archive API. Unarchiving is an async operation. A team is unarchived once the async operation completes successfully, which might occur subsequent to a response from this API. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @throws ODataError When receiving a 4XX or 5XX status code * @see Find more info here @@ -55,7 +55,7 @@ public void post(@jakarta.annotation.Nullable final java.util.function.Consumer< this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Restore an archived team. This restores users' ability to send messages and edit the team, abiding by tenant and team settings. A Team is archived using the archive API. Unarchiving is an async operation. A team is unarchived once the async operation completes successfully, which may occur subsequent to a response from this API. + * Restore an archived team. This API restores users' ability to send messages and edit the team, abiding by tenant and team settings. A Team is archived using the archive API. Unarchiving is an async operation. A team is unarchived once the async operation completes successfully, which might occur subsequent to a response from this API. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -63,7 +63,7 @@ public RequestInformation toPostRequestInformation() { return toPostRequestInformation(null); } /** - * Restore an archived team. This restores users' ability to send messages and edit the team, abiding by tenant and team settings. A Team is archived using the archive API. Unarchiving is an async operation. A team is unarchived once the async operation completes successfully, which may occur subsequent to a response from this API. + * Restore an archived team. This API restores users' ability to send messages and edit the team, abiding by tenant and team settings. A Team is archived using the archive API. Unarchiving is an async operation. A team is unarchived once the async operation completes successfully, which might occur subsequent to a response from this API. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/threads/item/posts/PostsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/threads/item/posts/PostsRequestBuilder.java index b83a84f77ac..b8f479420c4 100644 --- a/src/main/java/com/microsoft/graph/generated/groups/item/threads/item/posts/PostsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/groups/item/threads/item/posts/PostsRequestBuilder.java @@ -59,21 +59,21 @@ public PostsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jak super(requestAdapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts{?%24count,%24expand,%24filter,%24orderby,%24select,%24skip,%24top}", rawUrl); } /** - * Get the posts of the specified thread. You can specify both the parent conversation and the thread, or,you can specify the thread without referencing the parent conversation. + * Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the post resource supports extensions, you can also use the GET operation to get custom properties and extension data in a post instance. * @return a {@link PostCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public PostCollectionResponse get() { return get(null); } /** - * Get the posts of the specified thread. You can specify both the parent conversation and the thread, or,you can specify the thread without referencing the parent conversation. + * Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the post resource supports extensions, you can also use the GET operation to get custom properties and extension data in a post instance. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link PostCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public PostCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -83,7 +83,7 @@ public PostCollectionResponse get(@jakarta.annotation.Nullable final java.util.f return this.requestAdapter.send(requestInfo, errorMapping, PostCollectionResponse::createFromDiscriminatorValue); } /** - * Get the posts of the specified thread. You can specify both the parent conversation and the thread, or,you can specify the thread without referencing the parent conversation. + * Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the post resource supports extensions, you can also use the GET operation to get custom properties and extension data in a post instance. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -91,7 +91,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Get the posts of the specified thread. You can specify both the parent conversation and the thread, or,you can specify the thread without referencing the parent conversation. + * Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the post resource supports extensions, you can also use the GET operation to get custom properties and extension data in a post instance. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -113,7 +113,7 @@ public PostsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawU return new PostsRequestBuilder(rawUrl, requestAdapter); } /** - * Get the posts of the specified thread. You can specify both the parent conversation and the thread, or,you can specify the thread without referencing the parent conversation. + * Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the post resource supports extensions, you can also use the GET operation to get custom properties and extension data in a post instance. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/threads/item/reply/ReplyRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/threads/item/reply/ReplyRequestBuilder.java index 950e00bfa49..f11d366df32 100644 --- a/src/main/java/com/microsoft/graph/generated/groups/item/threads/item/reply/ReplyRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/groups/item/threads/item/reply/ReplyRequestBuilder.java @@ -35,20 +35,20 @@ public ReplyRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jak super(requestAdapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/reply", rawUrl); } /** - * Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. + * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. * @param body The request body * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ public void post(@jakarta.annotation.Nonnull final ReplyPostRequestBody body) { post(body, null); } /** - * Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. + * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ public void post(@jakarta.annotation.Nonnull final ReplyPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { Objects.requireNonNull(body); @@ -58,7 +58,7 @@ public void post(@jakarta.annotation.Nonnull final ReplyPostRequestBody body, @j this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. + * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. * @param body The request body * @return a {@link RequestInformation} */ @@ -67,7 +67,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. + * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/generated/identity/IdentityRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/identity/IdentityRequestBuilder.java index a809376b0de..e08b1d45d90 100644 --- a/src/main/java/com/microsoft/graph/generated/identity/IdentityRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/identity/IdentityRequestBuilder.java @@ -42,7 +42,7 @@ public B2xUserFlowsRequestBuilder b2xUserFlows() { return new B2xUserFlowsRequestBuilder(pathParameters, requestAdapter); } /** - * Provides operations to manage the conditionalAccess property of the microsoft.graph.identityContainer entity. + * The conditionalAccess property * @return a {@link ConditionalAccessRequestBuilder} */ @jakarta.annotation.Nonnull diff --git a/src/main/java/com/microsoft/graph/generated/identity/conditionalaccess/ConditionalAccessRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/identity/conditionalaccess/ConditionalAccessRequestBuilder.java index 1862a473928..394f3c1bbd3 100644 --- a/src/main/java/com/microsoft/graph/generated/identity/conditionalaccess/ConditionalAccessRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/identity/conditionalaccess/ConditionalAccessRequestBuilder.java @@ -5,23 +5,12 @@ import com.microsoft.graph.identity.conditionalaccess.namedlocations.NamedLocationsRequestBuilder; import com.microsoft.graph.identity.conditionalaccess.policies.PoliciesRequestBuilder; import com.microsoft.graph.identity.conditionalaccess.templates.TemplatesRequestBuilder; -import com.microsoft.graph.models.ConditionalAccessRoot; -import com.microsoft.graph.models.odataerrors.ODataError; import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; import java.util.HashMap; -import java.util.Map; import java.util.Objects; /** - * Provides operations to manage the conditionalAccess property of the microsoft.graph.identityContainer entity. + * Builds and executes requests for operations under /identity/conditionalAccess */ @jakarta.annotation.Generated("com.microsoft.kiota") public class ConditionalAccessRequestBuilder extends BaseRequestBuilder { @@ -71,7 +60,7 @@ public TemplatesRequestBuilder templates() { * @param requestAdapter The request adapter to use to execute the requests. */ public ConditionalAccessRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/identity/conditionalAccess{?%24expand,%24select}", pathParameters); + super(requestAdapter, "{+baseurl}/identity/conditionalAccess", pathParameters); } /** * Instantiates a new {@link ConditionalAccessRequestBuilder} and sets the default values. @@ -79,195 +68,6 @@ public ConditionalAccessRequestBuilder(@jakarta.annotation.Nonnull final HashMap * @param requestAdapter The request adapter to use to execute the requests. */ public ConditionalAccessRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/identity/conditionalAccess{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property conditionalAccess for identity - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property conditionalAccess for identity - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * the entry point for the Conditional Access (CA) object model. - * @return a {@link ConditionalAccessRoot} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ConditionalAccessRoot get() { - return get(null); - } - /** - * the entry point for the Conditional Access (CA) object model. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ConditionalAccessRoot} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ConditionalAccessRoot get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ConditionalAccessRoot::createFromDiscriminatorValue); - } - /** - * Update the navigation property conditionalAccess in identity - * @param body The request body - * @return a {@link ConditionalAccessRoot} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ConditionalAccessRoot patch(@jakarta.annotation.Nonnull final ConditionalAccessRoot body) { - return patch(body, null); - } - /** - * Update the navigation property conditionalAccess in identity - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ConditionalAccessRoot} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ConditionalAccessRoot patch(@jakarta.annotation.Nonnull final ConditionalAccessRoot body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ConditionalAccessRoot::createFromDiscriminatorValue); - } - /** - * Delete navigation property conditionalAccess for identity - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property conditionalAccess for identity - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, "{+baseurl}/identity/conditionalAccess", pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * the entry point for the Conditional Access (CA) object model. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * the entry point for the Conditional Access (CA) object model. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Update the navigation property conditionalAccess in identity - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final ConditionalAccessRoot body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property conditionalAccess in identity - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final ConditionalAccessRoot body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, "{+baseurl}/identity/conditionalAccess", pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link ConditionalAccessRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ConditionalAccessRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ConditionalAccessRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * the entry point for the Conditional Access (CA) object model. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - allQueryParams.put("%24select", select); - return allQueryParams; - } - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - /** - * Request query parameters - */ - @jakarta.annotation.Nullable - public GetQueryParameters queryParameters = new GetQueryParameters(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { + super(requestAdapter, "{+baseurl}/identity/conditionalAccess", rawUrl); } } diff --git a/src/main/java/com/microsoft/graph/generated/identity/conditionalaccess/namedlocations/item/NamedLocationItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/identity/conditionalaccess/namedlocations/item/NamedLocationItemRequestBuilder.java index 1a3e30d06ad..6d140cd0b63 100644 --- a/src/main/java/com/microsoft/graph/generated/identity/conditionalaccess/namedlocations/item/NamedLocationItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/identity/conditionalaccess/namedlocations/item/NamedLocationItemRequestBuilder.java @@ -37,18 +37,18 @@ public NamedLocationItemRequestBuilder(@jakarta.annotation.Nonnull final String super(requestAdapter, "{+baseurl}/identity/conditionalAccess/namedLocations/{namedLocation%2Did}{?%24expand,%24select}", rawUrl); } /** - * Delete an ipNamedLocation object. + * Delete a countryNamedLocation object. * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ public void delete() { delete(null); } /** - * Delete an ipNamedLocation object. + * Delete a countryNamedLocation object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); @@ -57,21 +57,21 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Retrieve the properties and relationships of an ipNamedLocation object. + * Retrieve the properties and relationships of a namedLocation object. * @return a {@link NamedLocation} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public NamedLocation get() { return get(null); } /** - * Retrieve the properties and relationships of an ipNamedLocation object. + * Retrieve the properties and relationships of a namedLocation object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link NamedLocation} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public NamedLocation get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -81,23 +81,23 @@ public NamedLocation get(@jakarta.annotation.Nullable final java.util.function.C return this.requestAdapter.send(requestInfo, errorMapping, NamedLocation::createFromDiscriminatorValue); } /** - * Update the properties of a countryNamedLocation object. + * Update the properties of an ipNamedLocation object. * @param body The request body * @return a {@link NamedLocation} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public NamedLocation patch(@jakarta.annotation.Nonnull final NamedLocation body) { return patch(body, null); } /** - * Update the properties of a countryNamedLocation object. + * Update the properties of an ipNamedLocation object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link NamedLocation} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public NamedLocation patch(@jakarta.annotation.Nonnull final NamedLocation body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -108,7 +108,7 @@ public NamedLocation patch(@jakarta.annotation.Nonnull final NamedLocation body, return this.requestAdapter.send(requestInfo, errorMapping, NamedLocation::createFromDiscriminatorValue); } /** - * Delete an ipNamedLocation object. + * Delete a countryNamedLocation object. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -116,7 +116,7 @@ public RequestInformation toDeleteRequestInformation() { return toDeleteRequestInformation(null); } /** - * Delete an ipNamedLocation object. + * Delete a countryNamedLocation object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -128,7 +128,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Retrieve the properties and relationships of an ipNamedLocation object. + * Retrieve the properties and relationships of a namedLocation object. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -136,7 +136,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Retrieve the properties and relationships of an ipNamedLocation object. + * Retrieve the properties and relationships of a namedLocation object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -148,7 +148,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Update the properties of a countryNamedLocation object. + * Update the properties of an ipNamedLocation object. * @param body The request body * @return a {@link RequestInformation} */ @@ -157,7 +157,7 @@ public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull return toPatchRequestInformation(body, null); } /** - * Update the properties of a countryNamedLocation object. + * Update the properties of an ipNamedLocation object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} @@ -188,7 +188,7 @@ public NamedLocationItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Retrieve the properties and relationships of an ipNamedLocation object. + * Retrieve the properties and relationships of a namedLocation object. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/identitygovernance/entitlementmanagement/catalogs/item/customworkflowextensions/item/CustomCalloutExtensionItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/identitygovernance/entitlementmanagement/catalogs/item/customworkflowextensions/item/CustomCalloutExtensionItemRequestBuilder.java index 95686e091c4..7a43649c7ae 100644 --- a/src/main/java/com/microsoft/graph/generated/identitygovernance/entitlementmanagement/catalogs/item/customworkflowextensions/item/CustomCalloutExtensionItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/identitygovernance/entitlementmanagement/catalogs/item/customworkflowextensions/item/CustomCalloutExtensionItemRequestBuilder.java @@ -37,18 +37,18 @@ public CustomCalloutExtensionItemRequestBuilder(@jakarta.annotation.Nonnull fina super(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/customWorkflowExtensions/{customCalloutExtension%2Did}{?%24expand,%24select}", rawUrl); } /** - * Delete an accessPackageAssignmentWorkflowExtension object. The custom workflow extension must first be removed from any associated policies before it can be deleted. Follow these steps to remove the custom workflow extension from any associated policies: + * Delete an accessPackageAssignmentRequestWorkflowExtension object. The custom workflow extension must first be removed from any associated policies before it can be deleted. Follow these steps to remove the custom workflow extension from any associated policies: * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ public void delete() { delete(null); } /** - * Delete an accessPackageAssignmentWorkflowExtension object. The custom workflow extension must first be removed from any associated policies before it can be deleted. Follow these steps to remove the custom workflow extension from any associated policies: + * Delete an accessPackageAssignmentRequestWorkflowExtension object. The custom workflow extension must first be removed from any associated policies before it can be deleted. Follow these steps to remove the custom workflow extension from any associated policies: * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); @@ -57,21 +57,21 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. + * Read the properties and relationships of an accessPackageAssignmentRequestWorkflowExtension object. * @return a {@link CustomCalloutExtension} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public CustomCalloutExtension get() { return get(null); } /** - * Read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. + * Read the properties and relationships of an accessPackageAssignmentRequestWorkflowExtension object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link CustomCalloutExtension} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public CustomCalloutExtension get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -108,7 +108,7 @@ public CustomCalloutExtension patch(@jakarta.annotation.Nonnull final CustomCall return this.requestAdapter.send(requestInfo, errorMapping, CustomCalloutExtension::createFromDiscriminatorValue); } /** - * Delete an accessPackageAssignmentWorkflowExtension object. The custom workflow extension must first be removed from any associated policies before it can be deleted. Follow these steps to remove the custom workflow extension from any associated policies: + * Delete an accessPackageAssignmentRequestWorkflowExtension object. The custom workflow extension must first be removed from any associated policies before it can be deleted. Follow these steps to remove the custom workflow extension from any associated policies: * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -116,7 +116,7 @@ public RequestInformation toDeleteRequestInformation() { return toDeleteRequestInformation(null); } /** - * Delete an accessPackageAssignmentWorkflowExtension object. The custom workflow extension must first be removed from any associated policies before it can be deleted. Follow these steps to remove the custom workflow extension from any associated policies: + * Delete an accessPackageAssignmentRequestWorkflowExtension object. The custom workflow extension must first be removed from any associated policies before it can be deleted. Follow these steps to remove the custom workflow extension from any associated policies: * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -128,7 +128,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. + * Read the properties and relationships of an accessPackageAssignmentRequestWorkflowExtension object. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -136,7 +136,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. + * Read the properties and relationships of an accessPackageAssignmentRequestWorkflowExtension object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -188,7 +188,7 @@ public CustomCalloutExtensionItemRequestBuilder withUrl(@jakarta.annotation.Nonn public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. + * Read the properties and relationships of an accessPackageAssignmentRequestWorkflowExtension object. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/identitygovernance/entitlementmanagement/resourcerequests/item/catalog/customworkflowextensions/item/CustomCalloutExtensionItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/identitygovernance/entitlementmanagement/resourcerequests/item/catalog/customworkflowextensions/item/CustomCalloutExtensionItemRequestBuilder.java index b17de14c770..5554c394f06 100644 --- a/src/main/java/com/microsoft/graph/generated/identitygovernance/entitlementmanagement/resourcerequests/item/catalog/customworkflowextensions/item/CustomCalloutExtensionItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/identitygovernance/entitlementmanagement/resourcerequests/item/catalog/customworkflowextensions/item/CustomCalloutExtensionItemRequestBuilder.java @@ -37,18 +37,18 @@ public CustomCalloutExtensionItemRequestBuilder(@jakarta.annotation.Nonnull fina super(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/customWorkflowExtensions/{customCalloutExtension%2Did}{?%24expand,%24select}", rawUrl); } /** - * Delete an accessPackageAssignmentWorkflowExtension object. The custom workflow extension must first be removed from any associated policies before it can be deleted. Follow these steps to remove the custom workflow extension from any associated policies: + * Delete an accessPackageAssignmentRequestWorkflowExtension object. The custom workflow extension must first be removed from any associated policies before it can be deleted. Follow these steps to remove the custom workflow extension from any associated policies: * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ public void delete() { delete(null); } /** - * Delete an accessPackageAssignmentWorkflowExtension object. The custom workflow extension must first be removed from any associated policies before it can be deleted. Follow these steps to remove the custom workflow extension from any associated policies: + * Delete an accessPackageAssignmentRequestWorkflowExtension object. The custom workflow extension must first be removed from any associated policies before it can be deleted. Follow these steps to remove the custom workflow extension from any associated policies: * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); @@ -57,21 +57,21 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. + * Read the properties and relationships of an accessPackageAssignmentRequestWorkflowExtension object. * @return a {@link CustomCalloutExtension} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public CustomCalloutExtension get() { return get(null); } /** - * Read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. + * Read the properties and relationships of an accessPackageAssignmentRequestWorkflowExtension object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link CustomCalloutExtension} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public CustomCalloutExtension get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -108,7 +108,7 @@ public CustomCalloutExtension patch(@jakarta.annotation.Nonnull final CustomCall return this.requestAdapter.send(requestInfo, errorMapping, CustomCalloutExtension::createFromDiscriminatorValue); } /** - * Delete an accessPackageAssignmentWorkflowExtension object. The custom workflow extension must first be removed from any associated policies before it can be deleted. Follow these steps to remove the custom workflow extension from any associated policies: + * Delete an accessPackageAssignmentRequestWorkflowExtension object. The custom workflow extension must first be removed from any associated policies before it can be deleted. Follow these steps to remove the custom workflow extension from any associated policies: * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -116,7 +116,7 @@ public RequestInformation toDeleteRequestInformation() { return toDeleteRequestInformation(null); } /** - * Delete an accessPackageAssignmentWorkflowExtension object. The custom workflow extension must first be removed from any associated policies before it can be deleted. Follow these steps to remove the custom workflow extension from any associated policies: + * Delete an accessPackageAssignmentRequestWorkflowExtension object. The custom workflow extension must first be removed from any associated policies before it can be deleted. Follow these steps to remove the custom workflow extension from any associated policies: * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -128,7 +128,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. + * Read the properties and relationships of an accessPackageAssignmentRequestWorkflowExtension object. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -136,7 +136,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. + * Read the properties and relationships of an accessPackageAssignmentRequestWorkflowExtension object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -188,7 +188,7 @@ public CustomCalloutExtensionItemRequestBuilder withUrl(@jakarta.annotation.Nonn public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. + * Read the properties and relationships of an accessPackageAssignmentRequestWorkflowExtension object. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/identitygovernance/privilegedaccess/group/assignmentschedulerequests/item/group/GroupRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/identitygovernance/privilegedaccess/group/assignmentschedulerequests/item/group/GroupRequestBuilder.java index 867ced6662b..d1a4bc965da 100644 --- a/src/main/java/com/microsoft/graph/generated/identitygovernance/privilegedaccess/group/assignmentschedulerequests/item/group/GroupRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/identitygovernance/privilegedaccess/group/assignmentschedulerequests/item/group/GroupRequestBuilder.java @@ -46,7 +46,7 @@ public GroupRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jak super(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/{privilegedAccessGroupAssignmentScheduleRequest%2Did}/group{?%24expand,%24select}", rawUrl); } /** - * References the group that is the scope of the membership or ownership assignment request through PIM for groups. Supports $expand. + * References the group that is the scope of the membership or ownership assignment request through PIM for groups. Supports $expand and $select nested in $expand for select properties like id, displayName, and mail. * @return a {@link Group} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -55,7 +55,7 @@ public Group get() { return get(null); } /** - * References the group that is the scope of the membership or ownership assignment request through PIM for groups. Supports $expand. + * References the group that is the scope of the membership or ownership assignment request through PIM for groups. Supports $expand and $select nested in $expand for select properties like id, displayName, and mail. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link Group} * @throws ODataError When receiving a 4XX or 5XX status code @@ -68,7 +68,7 @@ public Group get(@jakarta.annotation.Nullable final java.util.function.Consumer< return this.requestAdapter.send(requestInfo, errorMapping, Group::createFromDiscriminatorValue); } /** - * References the group that is the scope of the membership or ownership assignment request through PIM for groups. Supports $expand. + * References the group that is the scope of the membership or ownership assignment request through PIM for groups. Supports $expand and $select nested in $expand for select properties like id, displayName, and mail. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -76,7 +76,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * References the group that is the scope of the membership or ownership assignment request through PIM for groups. Supports $expand. + * References the group that is the scope of the membership or ownership assignment request through PIM for groups. Supports $expand and $select nested in $expand for select properties like id, displayName, and mail. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -98,7 +98,7 @@ public GroupRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawU return new GroupRequestBuilder(rawUrl, requestAdapter); } /** - * References the group that is the scope of the membership or ownership assignment request through PIM for groups. Supports $expand. + * References the group that is the scope of the membership or ownership assignment request through PIM for groups. Supports $expand and $select nested in $expand for select properties like id, displayName, and mail. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/identitygovernance/privilegedaccess/group/assignmentschedulerequests/item/principal/PrincipalRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/identitygovernance/privilegedaccess/group/assignmentschedulerequests/item/principal/PrincipalRequestBuilder.java index 7488dde3e34..3f88f47d4bb 100644 --- a/src/main/java/com/microsoft/graph/generated/identitygovernance/privilegedaccess/group/assignmentschedulerequests/item/principal/PrincipalRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/identitygovernance/privilegedaccess/group/assignmentschedulerequests/item/principal/PrincipalRequestBuilder.java @@ -37,7 +37,7 @@ public PrincipalRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, super(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/{privilegedAccessGroupAssignmentScheduleRequest%2Did}/principal{?%24expand,%24select}", rawUrl); } /** - * References the principal that's in the scope of this membership or ownership assignment request through the group that's governed by PIM. Supports $expand. + * References the principal that's in the scope of this membership or ownership assignment request through the group that's governed by PIM. Supports $expand and $select nested in $expand for id only. * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -46,7 +46,7 @@ public DirectoryObject get() { return get(null); } /** - * References the principal that's in the scope of this membership or ownership assignment request through the group that's governed by PIM. Supports $expand. + * References the principal that's in the scope of this membership or ownership assignment request through the group that's governed by PIM. Supports $expand and $select nested in $expand for id only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code @@ -59,7 +59,7 @@ public DirectoryObject get(@jakarta.annotation.Nullable final java.util.function return this.requestAdapter.send(requestInfo, errorMapping, DirectoryObject::createFromDiscriminatorValue); } /** - * References the principal that's in the scope of this membership or ownership assignment request through the group that's governed by PIM. Supports $expand. + * References the principal that's in the scope of this membership or ownership assignment request through the group that's governed by PIM. Supports $expand and $select nested in $expand for id only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -67,7 +67,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * References the principal that's in the scope of this membership or ownership assignment request through the group that's governed by PIM. Supports $expand. + * References the principal that's in the scope of this membership or ownership assignment request through the group that's governed by PIM. Supports $expand and $select nested in $expand for id only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -89,7 +89,7 @@ public PrincipalRequestBuilder withUrl(@jakarta.annotation.Nonnull final String return new PrincipalRequestBuilder(rawUrl, requestAdapter); } /** - * References the principal that's in the scope of this membership or ownership assignment request through the group that's governed by PIM. Supports $expand. + * References the principal that's in the scope of this membership or ownership assignment request through the group that's governed by PIM. Supports $expand and $select nested in $expand for id only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/identitygovernance/privilegedaccess/group/assignmentschedules/item/activatedusing/ActivatedUsingRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/identitygovernance/privilegedaccess/group/assignmentschedules/item/activatedusing/ActivatedUsingRequestBuilder.java index 1829d532a68..9ff0ed7a30a 100644 --- a/src/main/java/com/microsoft/graph/generated/identitygovernance/privilegedaccess/group/assignmentschedules/item/activatedusing/ActivatedUsingRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/identitygovernance/privilegedaccess/group/assignmentschedules/item/activatedusing/ActivatedUsingRequestBuilder.java @@ -37,7 +37,7 @@ public ActivatedUsingRequestBuilder(@jakarta.annotation.Nonnull final String raw super(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentSchedules/{privilegedAccessGroupAssignmentSchedule%2Did}/activatedUsing{?%24expand,%24select}", rawUrl); } /** - * When the request activates an ownership or membership assignment in PIM for groups, this object represents the eligibility relationship. Otherwise, it is null. Supports $expand. + * When the request activates an ownership or membership assignment in PIM for groups, this object represents the eligibility relationship. Otherwise, it's null. Supports $expand. * @return a {@link PrivilegedAccessGroupEligibilitySchedule} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -46,7 +46,7 @@ public PrivilegedAccessGroupEligibilitySchedule get() { return get(null); } /** - * When the request activates an ownership or membership assignment in PIM for groups, this object represents the eligibility relationship. Otherwise, it is null. Supports $expand. + * When the request activates an ownership or membership assignment in PIM for groups, this object represents the eligibility relationship. Otherwise, it's null. Supports $expand. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link PrivilegedAccessGroupEligibilitySchedule} * @throws ODataError When receiving a 4XX or 5XX status code @@ -59,7 +59,7 @@ public PrivilegedAccessGroupEligibilitySchedule get(@jakarta.annotation.Nullable return this.requestAdapter.send(requestInfo, errorMapping, PrivilegedAccessGroupEligibilitySchedule::createFromDiscriminatorValue); } /** - * When the request activates an ownership or membership assignment in PIM for groups, this object represents the eligibility relationship. Otherwise, it is null. Supports $expand. + * When the request activates an ownership or membership assignment in PIM for groups, this object represents the eligibility relationship. Otherwise, it's null. Supports $expand. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -67,7 +67,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * When the request activates an ownership or membership assignment in PIM for groups, this object represents the eligibility relationship. Otherwise, it is null. Supports $expand. + * When the request activates an ownership or membership assignment in PIM for groups, this object represents the eligibility relationship. Otherwise, it's null. Supports $expand. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -89,7 +89,7 @@ public ActivatedUsingRequestBuilder withUrl(@jakarta.annotation.Nonnull final St return new ActivatedUsingRequestBuilder(rawUrl, requestAdapter); } /** - * When the request activates an ownership or membership assignment in PIM for groups, this object represents the eligibility relationship. Otherwise, it is null. Supports $expand. + * When the request activates an ownership or membership assignment in PIM for groups, this object represents the eligibility relationship. Otherwise, it's null. Supports $expand. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/identitygovernance/privilegedaccess/group/assignmentschedules/item/group/GroupRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/identitygovernance/privilegedaccess/group/assignmentschedules/item/group/GroupRequestBuilder.java index b25c70bc085..d31ceb70654 100644 --- a/src/main/java/com/microsoft/graph/generated/identitygovernance/privilegedaccess/group/assignmentschedules/item/group/GroupRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/identitygovernance/privilegedaccess/group/assignmentschedules/item/group/GroupRequestBuilder.java @@ -46,7 +46,7 @@ public GroupRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jak super(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentSchedules/{privilegedAccessGroupAssignmentSchedule%2Did}/group{?%24expand,%24select}", rawUrl); } /** - * References the group that is the scope of the membership or ownership assignment through PIM for groups. Supports $expand. + * References the group that is the scope of the membership or ownership assignment through PIM for groups. Supports $expand and $select nested in $expand for select properties like id, displayName, and mail. * @return a {@link Group} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -55,7 +55,7 @@ public Group get() { return get(null); } /** - * References the group that is the scope of the membership or ownership assignment through PIM for groups. Supports $expand. + * References the group that is the scope of the membership or ownership assignment through PIM for groups. Supports $expand and $select nested in $expand for select properties like id, displayName, and mail. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link Group} * @throws ODataError When receiving a 4XX or 5XX status code @@ -68,7 +68,7 @@ public Group get(@jakarta.annotation.Nullable final java.util.function.Consumer< return this.requestAdapter.send(requestInfo, errorMapping, Group::createFromDiscriminatorValue); } /** - * References the group that is the scope of the membership or ownership assignment through PIM for groups. Supports $expand. + * References the group that is the scope of the membership or ownership assignment through PIM for groups. Supports $expand and $select nested in $expand for select properties like id, displayName, and mail. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -76,7 +76,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * References the group that is the scope of the membership or ownership assignment through PIM for groups. Supports $expand. + * References the group that is the scope of the membership or ownership assignment through PIM for groups. Supports $expand and $select nested in $expand for select properties like id, displayName, and mail. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -98,7 +98,7 @@ public GroupRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawU return new GroupRequestBuilder(rawUrl, requestAdapter); } /** - * References the group that is the scope of the membership or ownership assignment through PIM for groups. Supports $expand. + * References the group that is the scope of the membership or ownership assignment through PIM for groups. Supports $expand and $select nested in $expand for select properties like id, displayName, and mail. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/identitygovernance/privilegedaccess/group/assignmentschedules/item/principal/PrincipalRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/identitygovernance/privilegedaccess/group/assignmentschedules/item/principal/PrincipalRequestBuilder.java index 15781df1b05..a8bed52216d 100644 --- a/src/main/java/com/microsoft/graph/generated/identitygovernance/privilegedaccess/group/assignmentschedules/item/principal/PrincipalRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/identitygovernance/privilegedaccess/group/assignmentschedules/item/principal/PrincipalRequestBuilder.java @@ -37,7 +37,7 @@ public PrincipalRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, super(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentSchedules/{privilegedAccessGroupAssignmentSchedule%2Did}/principal{?%24expand,%24select}", rawUrl); } /** - * References the principal that's in the scope of this membership or ownership assignment request to the group that's governed by PIM. Supports $expand. + * References the principal that's in the scope of this membership or ownership assignment request to the group that's governed through PIM. Supports $expand and $select nested in $expand for id only. * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -46,7 +46,7 @@ public DirectoryObject get() { return get(null); } /** - * References the principal that's in the scope of this membership or ownership assignment request to the group that's governed by PIM. Supports $expand. + * References the principal that's in the scope of this membership or ownership assignment request to the group that's governed through PIM. Supports $expand and $select nested in $expand for id only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code @@ -59,7 +59,7 @@ public DirectoryObject get(@jakarta.annotation.Nullable final java.util.function return this.requestAdapter.send(requestInfo, errorMapping, DirectoryObject::createFromDiscriminatorValue); } /** - * References the principal that's in the scope of this membership or ownership assignment request to the group that's governed by PIM. Supports $expand. + * References the principal that's in the scope of this membership or ownership assignment request to the group that's governed through PIM. Supports $expand and $select nested in $expand for id only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -67,7 +67,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * References the principal that's in the scope of this membership or ownership assignment request to the group that's governed by PIM. Supports $expand. + * References the principal that's in the scope of this membership or ownership assignment request to the group that's governed through PIM. Supports $expand and $select nested in $expand for id only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -89,7 +89,7 @@ public PrincipalRequestBuilder withUrl(@jakarta.annotation.Nonnull final String return new PrincipalRequestBuilder(rawUrl, requestAdapter); } /** - * References the principal that's in the scope of this membership or ownership assignment request to the group that's governed by PIM. Supports $expand. + * References the principal that's in the scope of this membership or ownership assignment request to the group that's governed through PIM. Supports $expand and $select nested in $expand for id only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/identitygovernance/privilegedaccess/group/eligibilityschedulerequests/item/group/GroupRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/identitygovernance/privilegedaccess/group/eligibilityschedulerequests/item/group/GroupRequestBuilder.java index 9f24feba1c2..2821dd0bc56 100644 --- a/src/main/java/com/microsoft/graph/generated/identitygovernance/privilegedaccess/group/eligibilityschedulerequests/item/group/GroupRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/identitygovernance/privilegedaccess/group/eligibilityschedulerequests/item/group/GroupRequestBuilder.java @@ -46,7 +46,7 @@ public GroupRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jak super(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/{privilegedAccessGroupEligibilityScheduleRequest%2Did}/group{?%24expand,%24select}", rawUrl); } /** - * References the group that is the scope of the membership or ownership eligibility request through PIM for groups. Supports $expand. + * References the group that is the scope of the membership or ownership eligibility request through PIM for groups. Supports $expand and $select nested in $expand for select properties like id, displayName, and mail. * @return a {@link Group} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -55,7 +55,7 @@ public Group get() { return get(null); } /** - * References the group that is the scope of the membership or ownership eligibility request through PIM for groups. Supports $expand. + * References the group that is the scope of the membership or ownership eligibility request through PIM for groups. Supports $expand and $select nested in $expand for select properties like id, displayName, and mail. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link Group} * @throws ODataError When receiving a 4XX or 5XX status code @@ -68,7 +68,7 @@ public Group get(@jakarta.annotation.Nullable final java.util.function.Consumer< return this.requestAdapter.send(requestInfo, errorMapping, Group::createFromDiscriminatorValue); } /** - * References the group that is the scope of the membership or ownership eligibility request through PIM for groups. Supports $expand. + * References the group that is the scope of the membership or ownership eligibility request through PIM for groups. Supports $expand and $select nested in $expand for select properties like id, displayName, and mail. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -76,7 +76,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * References the group that is the scope of the membership or ownership eligibility request through PIM for groups. Supports $expand. + * References the group that is the scope of the membership or ownership eligibility request through PIM for groups. Supports $expand and $select nested in $expand for select properties like id, displayName, and mail. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -98,7 +98,7 @@ public GroupRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawU return new GroupRequestBuilder(rawUrl, requestAdapter); } /** - * References the group that is the scope of the membership or ownership eligibility request through PIM for groups. Supports $expand. + * References the group that is the scope of the membership or ownership eligibility request through PIM for groups. Supports $expand and $select nested in $expand for select properties like id, displayName, and mail. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/identitygovernance/privilegedaccess/group/eligibilityschedulerequests/item/principal/PrincipalRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/identitygovernance/privilegedaccess/group/eligibilityschedulerequests/item/principal/PrincipalRequestBuilder.java index b5816c65a26..ad4cc8630b5 100644 --- a/src/main/java/com/microsoft/graph/generated/identitygovernance/privilegedaccess/group/eligibilityschedulerequests/item/principal/PrincipalRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/identitygovernance/privilegedaccess/group/eligibilityschedulerequests/item/principal/PrincipalRequestBuilder.java @@ -37,7 +37,7 @@ public PrincipalRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, super(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/{privilegedAccessGroupEligibilityScheduleRequest%2Did}/principal{?%24expand,%24select}", rawUrl); } /** - * References the principal that's in the scope of the membership or ownership eligibility request through the group that's governed by PIM. Supports $expand. + * References the principal that's in the scope of the membership or ownership eligibility request through the group that's governed by PIM. Supports $expand and $select nested in $expand for id only. * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -46,7 +46,7 @@ public DirectoryObject get() { return get(null); } /** - * References the principal that's in the scope of the membership or ownership eligibility request through the group that's governed by PIM. Supports $expand. + * References the principal that's in the scope of the membership or ownership eligibility request through the group that's governed by PIM. Supports $expand and $select nested in $expand for id only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code @@ -59,7 +59,7 @@ public DirectoryObject get(@jakarta.annotation.Nullable final java.util.function return this.requestAdapter.send(requestInfo, errorMapping, DirectoryObject::createFromDiscriminatorValue); } /** - * References the principal that's in the scope of the membership or ownership eligibility request through the group that's governed by PIM. Supports $expand. + * References the principal that's in the scope of the membership or ownership eligibility request through the group that's governed by PIM. Supports $expand and $select nested in $expand for id only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -67,7 +67,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * References the principal that's in the scope of the membership or ownership eligibility request through the group that's governed by PIM. Supports $expand. + * References the principal that's in the scope of the membership or ownership eligibility request through the group that's governed by PIM. Supports $expand and $select nested in $expand for id only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -89,7 +89,7 @@ public PrincipalRequestBuilder withUrl(@jakarta.annotation.Nonnull final String return new PrincipalRequestBuilder(rawUrl, requestAdapter); } /** - * References the principal that's in the scope of the membership or ownership eligibility request through the group that's governed by PIM. Supports $expand. + * References the principal that's in the scope of the membership or ownership eligibility request through the group that's governed by PIM. Supports $expand and $select nested in $expand for id only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/identitygovernance/termsofuse/agreements/item/AgreementItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/identitygovernance/termsofuse/agreements/item/AgreementItemRequestBuilder.java index b2963494911..686b48f446a 100644 --- a/src/main/java/com/microsoft/graph/generated/identitygovernance/termsofuse/agreements/item/AgreementItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/identitygovernance/termsofuse/agreements/item/AgreementItemRequestBuilder.java @@ -84,21 +84,21 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Retrieve the properties and relationships of an agreement object. + * Retrieve all files related to an agreement. This includes the default file and all localized files. * @return a {@link Agreement} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public Agreement get() { return get(null); } /** - * Retrieve the properties and relationships of an agreement object. + * Retrieve all files related to an agreement. This includes the default file and all localized files. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link Agreement} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public Agreement get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -155,7 +155,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Retrieve the properties and relationships of an agreement object. + * Retrieve all files related to an agreement. This includes the default file and all localized files. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -163,7 +163,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Retrieve the properties and relationships of an agreement object. + * Retrieve all files related to an agreement. This includes the default file and all localized files. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -215,7 +215,7 @@ public AgreementItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final Str public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Retrieve the properties and relationships of an agreement object. + * Retrieve all files related to an agreement. This includes the default file and all localized files. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/models/AccessPackageResourceEnvironment.java b/src/main/java/com/microsoft/graph/generated/models/AccessPackageResourceEnvironment.java index e5a130a67d0..11573cdf31e 100644 --- a/src/main/java/com/microsoft/graph/generated/models/AccessPackageResourceEnvironment.java +++ b/src/main/java/com/microsoft/graph/generated/models/AccessPackageResourceEnvironment.java @@ -26,7 +26,7 @@ public static AccessPackageResourceEnvironment createFromDiscriminatorValue(@jak return new AccessPackageResourceEnvironment(); } /** - * Gets the connectionInfo property value. The connectionInfo property + * Gets the connectionInfo property value. Connection information of an environment used to connect to a resource. * @return a {@link ConnectionInfo} */ @jakarta.annotation.Nullable @@ -133,7 +133,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeCollectionOfObjectValues("resources", this.getResources()); } /** - * Sets the connectionInfo property value. The connectionInfo property + * Sets the connectionInfo property value. Connection information of an environment used to connect to a resource. * @param value Value to set for the connectionInfo property. */ public void setConnectionInfo(@jakarta.annotation.Nullable final ConnectionInfo value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/Admin.java b/src/main/java/com/microsoft/graph/generated/models/Admin.java index 0d89c1651c4..249139484f6 100644 --- a/src/main/java/com/microsoft/graph/generated/models/Admin.java +++ b/src/main/java/com/microsoft/graph/generated/models/Admin.java @@ -69,14 +69,23 @@ public Edge getEdge() { */ @jakarta.annotation.Nonnull public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(5); + final HashMap> deserializerMap = new HashMap>(6); deserializerMap.put("edge", (n) -> { this.setEdge(n.getObjectValue(Edge::createFromDiscriminatorValue)); }); + deserializerMap.put("microsoft365Apps", (n) -> { this.setMicrosoft365Apps(n.getObjectValue(AdminMicrosoft365Apps::createFromDiscriminatorValue)); }); deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); }); deserializerMap.put("people", (n) -> { this.setPeople(n.getObjectValue(PeopleAdminSettings::createFromDiscriminatorValue)); }); deserializerMap.put("serviceAnnouncement", (n) -> { this.setServiceAnnouncement(n.getObjectValue(ServiceAnnouncement::createFromDiscriminatorValue)); }); deserializerMap.put("sharepoint", (n) -> { this.setSharepoint(n.getObjectValue(Sharepoint::createFromDiscriminatorValue)); }); return deserializerMap; } + /** + * Gets the microsoft365Apps property value. A container for the Microsoft 365 apps admin functionality. + * @return a {@link AdminMicrosoft365Apps} + */ + @jakarta.annotation.Nullable + public AdminMicrosoft365Apps getMicrosoft365Apps() { + return this.backingStore.get("microsoft365Apps"); + } /** * Gets the @odata.type property value. The OdataType property * @return a {@link String} @@ -116,6 +125,7 @@ public Sharepoint getSharepoint() { public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); writer.writeObjectValue("edge", this.getEdge()); + writer.writeObjectValue("microsoft365Apps", this.getMicrosoft365Apps()); writer.writeStringValue("@odata.type", this.getOdataType()); writer.writeObjectValue("people", this.getPeople()); writer.writeObjectValue("serviceAnnouncement", this.getServiceAnnouncement()); @@ -144,6 +154,13 @@ public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value public void setEdge(@jakarta.annotation.Nullable final Edge value) { this.backingStore.set("edge", value); } + /** + * Sets the microsoft365Apps property value. A container for the Microsoft 365 apps admin functionality. + * @param value Value to set for the microsoft365Apps property. + */ + public void setMicrosoft365Apps(@jakarta.annotation.Nullable final AdminMicrosoft365Apps value) { + this.backingStore.set("microsoft365Apps", value); + } /** * Sets the @odata.type property value. The OdataType property * @param value Value to set for the @odata.type property. diff --git a/src/main/java/com/microsoft/graph/generated/models/AdminMicrosoft365Apps.java b/src/main/java/com/microsoft/graph/generated/models/AdminMicrosoft365Apps.java new file mode 100644 index 00000000000..88343cc43ea --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/AdminMicrosoft365Apps.java @@ -0,0 +1,61 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class AdminMicrosoft365Apps extends Entity implements Parsable { + /** + * Instantiates a new {@link AdminMicrosoft365Apps} and sets the default values. + */ + public AdminMicrosoft365Apps() { + super(); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link AdminMicrosoft365Apps} + */ + @jakarta.annotation.Nonnull + public static AdminMicrosoft365Apps createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new AdminMicrosoft365Apps(); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("installationOptions", (n) -> { this.setInstallationOptions(n.getObjectValue(M365AppsInstallationOptions::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the installationOptions property value. A container for tenant-level settings for Microsoft 365 applications. + * @return a {@link M365AppsInstallationOptions} + */ + @jakarta.annotation.Nullable + public M365AppsInstallationOptions getInstallationOptions() { + return this.backingStore.get("installationOptions"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + super.serialize(writer); + writer.writeObjectValue("installationOptions", this.getInstallationOptions()); + } + /** + * Sets the installationOptions property value. A container for tenant-level settings for Microsoft 365 applications. + * @param value Value to set for the installationOptions property. + */ + public void setInstallationOptions(@jakarta.annotation.Nullable final M365AppsInstallationOptions value) { + this.backingStore.set("installationOptions", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/AggregationOption.java b/src/main/java/com/microsoft/graph/generated/models/AggregationOption.java index f3b53a17845..854e79f8f2c 100644 --- a/src/main/java/com/microsoft/graph/generated/models/AggregationOption.java +++ b/src/main/java/com/microsoft/graph/generated/models/AggregationOption.java @@ -64,7 +64,7 @@ public BucketAggregationDefinition getBucketDefinition() { return this.backingStore.get("bucketDefinition"); } /** - * Gets the field property value. Computes aggregation on the field while the field exists in current entity type. Required. + * Gets the field property value. Computes aggregation on the field while the field exists in the current entity type. Required. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -93,7 +93,7 @@ public String getOdataType() { return this.backingStore.get("odataType"); } /** - * Gets the size property value. The number of searchBucket resources to be returned. This isn't required when the range is provided manually in the search request. Optional. + * Gets the size property value. The number of searchBucket resources to be returned. This isn't required when the range is provided manually in the search request. The minimum accepted size is 1, and the maximum is 65535. Optional. * @return a {@link Integer} */ @jakarta.annotation.Nullable @@ -135,7 +135,7 @@ public void setBucketDefinition(@jakarta.annotation.Nullable final BucketAggrega this.backingStore.set("bucketDefinition", value); } /** - * Sets the field property value. Computes aggregation on the field while the field exists in current entity type. Required. + * Sets the field property value. Computes aggregation on the field while the field exists in the current entity type. Required. * @param value Value to set for the field property. */ public void setField(@jakarta.annotation.Nullable final String value) { @@ -149,7 +149,7 @@ public void setOdataType(@jakarta.annotation.Nullable final String value) { this.backingStore.set("odataType", value); } /** - * Sets the size property value. The number of searchBucket resources to be returned. This isn't required when the range is provided manually in the search request. Optional. + * Sets the size property value. The number of searchBucket resources to be returned. This isn't required when the range is provided manually in the search request. The minimum accepted size is 1, and the maximum is 65535. Optional. * @param value Value to set for the size property. */ public void setSize(@jakarta.annotation.Nullable final Integer value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/AndroidStoreApp.java b/src/main/java/com/microsoft/graph/generated/models/AndroidStoreApp.java index 4e9b4967b85..9333bf7b42e 100644 --- a/src/main/java/com/microsoft/graph/generated/models/AndroidStoreApp.java +++ b/src/main/java/com/microsoft/graph/generated/models/AndroidStoreApp.java @@ -73,7 +73,6 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ super.serialize(writer); writer.writeStringValue("appStoreUrl", this.getAppStoreUrl()); writer.writeObjectValue("minimumSupportedOperatingSystem", this.getMinimumSupportedOperatingSystem()); - writer.writeStringValue("packageId", this.getPackageId()); } /** * Sets the appStoreUrl property value. The Android app store URL. diff --git a/src/main/java/com/microsoft/graph/generated/models/Application.java b/src/main/java/com/microsoft/graph/generated/models/Application.java index 556325feafd..9f7c83a6316 100644 --- a/src/main/java/com/microsoft/graph/generated/models/Application.java +++ b/src/main/java/com/microsoft/graph/generated/models/Application.java @@ -28,7 +28,7 @@ public static Application createFromDiscriminatorValue(@jakarta.annotation.Nonnu return new Application(); } /** - * Gets the addIns property value. Defines custom behavior that a consuming service can use to call an app in specific contexts. For example, applications that can render file streams may set the addIns property for its 'FileHandler' functionality. This will let services like Office 365 call the application in the context of a document the user is working on. + * Gets the addIns property value. Defines custom behavior that a consuming service can use to call an app in specific contexts. For example, applications that can render file streams can set the addIns property for its 'FileHandler' functionality. This lets services like Microsoft 365 call the application in the context of a document the user is working on. * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -52,7 +52,7 @@ public String getAppId() { return this.backingStore.get("appId"); } /** - * Gets the applicationTemplateId property value. Unique identifier of the applicationTemplate. Supports $filter (eq, not, ne). + * Gets the applicationTemplateId property value. Unique identifier of the applicationTemplate. Supports $filter (eq, not, ne). Read-only. null if the app wasn't created from an application template. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -108,7 +108,7 @@ public String getDefaultRedirectUri() { return this.backingStore.get("defaultRedirectUri"); } /** - * Gets the description property value. Free text field to provide a description of the application object to end users. The maximum allowed size is 1024 characters. Supports $filter (eq, ne, not, ge, le, startsWith) and $search. + * Gets the description property value. Free text field to provide a description of the application object to end users. The maximum allowed size is 1,024 characters. Supports $filter (eq, ne, not, ge, le, startsWith) and $search. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -116,7 +116,7 @@ public String getDescription() { return this.backingStore.get("description"); } /** - * Gets the disabledByMicrosoftStatus property value. Specifies whether Microsoft has disabled the registered application. Possible values are: null (default value), NotDisabled, and DisabledDueToViolationOfServicesAgreement (reasons may include suspicious, abusive, or malicious activity, or a violation of the Microsoft Services Agreement). Supports $filter (eq, ne, not). + * Gets the disabledByMicrosoftStatus property value. Specifies whether Microsoft has disabled the registered application. Possible values are: null (default value), NotDisabled, and DisabledDueToViolationOfServicesAgreement (reasons include suspicious, abusive, or malicious activity, or a violation of the Microsoft Services Agreement). Supports $filter (eq, ne, not). * @return a {@link String} */ @jakarta.annotation.Nullable @@ -219,7 +219,7 @@ public java.util.List getHomeRealmDiscoveryPolicies() return this.backingStore.get("homeRealmDiscoveryPolicies"); } /** - * Gets the identifierUris property value. Also known as App ID URI, this value is set when an application is used as a resource app. The identifierUris acts as the prefix for the scopes you'll reference in your API's code, and it must be globally unique. You can use the default value provided, which is in the form api://, or specify a more readable URI like https://contoso.com/api. For more information on valid identifierUris patterns and best practices, see Microsoft Entra application registration security best practices. Not nullable. Supports $filter (eq, ne, ge, le, startsWith). + * Gets the identifierUris property value. Also known as App ID URI, this value is set when an application is used as a resource app. The identifierUris acts as the prefix for the scopes you reference in your API's code, and it must be globally unique. You can use the default value provided, which is in the form api://, or specify a more readable URI like https://contoso.com/api. For more information on valid identifierUris patterns and best practices, see Microsoft Entra application registration security best practices. Not nullable. Supports $filter (eq, ne, ge, le, startsWith). * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -243,7 +243,7 @@ public Boolean getIsDeviceOnlyAuthSupported() { return this.backingStore.get("isDeviceOnlyAuthSupported"); } /** - * Gets the isFallbackPublicClient property value. Specifies the fallback application type as public client, such as an installed application running on a mobile device. The default value is false which means the fallback application type is confidential client such as a web app. There are certain scenarios where Microsoft Entra ID cannot determine the client application type. For example, the ROPC flow where it is configured without specifying a redirect URI. In those cases Microsoft Entra ID interprets the application type based on the value of this property. + * Gets the isFallbackPublicClient property value. Specifies the fallback application type as public client, such as an installed application running on a mobile device. The default value is false, which means the fallback application type is confidential client such as a web app. There are certain scenarios where Microsoft Entra ID can't determine the client application type. For example, the ROPC flow where it's configured without specifying a redirect URI. In those cases, Microsoft Entra ID interprets the application type based on the value of this property. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -363,7 +363,7 @@ public String getServiceManagementReference() { return this.backingStore.get("serviceManagementReference"); } /** - * Gets the servicePrincipalLockConfiguration property value. Specifies whether sensitive properties of a multi-tenant application should be locked for editing after the application is provisioned in a tenant. Nullable. null by default. + * Gets the servicePrincipalLockConfiguration property value. Specifies whether sensitive properties of a multitenant application should be locked for editing after the application is provisioned in a tenant. Nullable. null by default. * @return a {@link ServicePrincipalLockConfiguration} */ @jakarta.annotation.Nullable @@ -371,7 +371,7 @@ public ServicePrincipalLockConfiguration getServicePrincipalLockConfiguration() return this.backingStore.get("servicePrincipalLockConfiguration"); } /** - * Gets the signInAudience property value. Specifies the Microsoft accounts that are supported for the current application. The possible values are: AzureADMyOrg, AzureADMultipleOrgs, AzureADandPersonalMicrosoftAccount (default), and PersonalMicrosoftAccount. See more in the table. The value of this object also limits the number of permissions an app can request. For more information, see Limits on requested permissions per app. The value for this property has implications on other app object properties. As a result, if you change this property, you may need to change other properties first. For more information, see Validation differences for signInAudience.Supports $filter (eq, ne, not). + * Gets the signInAudience property value. Specifies the Microsoft accounts that are supported for the current application. The possible values are: AzureADMyOrg, AzureADMultipleOrgs, AzureADandPersonalMicrosoftAccount (default), and PersonalMicrosoftAccount. See more in the table. The value of this object also limits the number of permissions an app can request. For more information, see Limits on requested permissions per app. The value for this property has implications on other app object properties. As a result, if you change this property, you might need to change other properties first. For more information, see Validation differences for signInAudience.Supports $filter (eq, ne, not). * @return a {@link String} */ @jakarta.annotation.Nullable @@ -505,7 +505,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeObjectValue("web", this.getWeb()); } /** - * Sets the addIns property value. Defines custom behavior that a consuming service can use to call an app in specific contexts. For example, applications that can render file streams may set the addIns property for its 'FileHandler' functionality. This will let services like Office 365 call the application in the context of a document the user is working on. + * Sets the addIns property value. Defines custom behavior that a consuming service can use to call an app in specific contexts. For example, applications that can render file streams can set the addIns property for its 'FileHandler' functionality. This lets services like Microsoft 365 call the application in the context of a document the user is working on. * @param value Value to set for the addIns property. */ public void setAddIns(@jakarta.annotation.Nullable final java.util.List value) { @@ -526,7 +526,7 @@ public void setAppId(@jakarta.annotation.Nullable final String value) { this.backingStore.set("appId", value); } /** - * Sets the applicationTemplateId property value. Unique identifier of the applicationTemplate. Supports $filter (eq, not, ne). + * Sets the applicationTemplateId property value. Unique identifier of the applicationTemplate. Supports $filter (eq, not, ne). Read-only. null if the app wasn't created from an application template. * @param value Value to set for the applicationTemplateId property. */ public void setApplicationTemplateId(@jakarta.annotation.Nullable final String value) { @@ -575,14 +575,14 @@ public void setDefaultRedirectUri(@jakarta.annotation.Nullable final String valu this.backingStore.set("defaultRedirectUri", value); } /** - * Sets the description property value. Free text field to provide a description of the application object to end users. The maximum allowed size is 1024 characters. Supports $filter (eq, ne, not, ge, le, startsWith) and $search. + * Sets the description property value. Free text field to provide a description of the application object to end users. The maximum allowed size is 1,024 characters. Supports $filter (eq, ne, not, ge, le, startsWith) and $search. * @param value Value to set for the description property. */ public void setDescription(@jakarta.annotation.Nullable final String value) { this.backingStore.set("description", value); } /** - * Sets the disabledByMicrosoftStatus property value. Specifies whether Microsoft has disabled the registered application. Possible values are: null (default value), NotDisabled, and DisabledDueToViolationOfServicesAgreement (reasons may include suspicious, abusive, or malicious activity, or a violation of the Microsoft Services Agreement). Supports $filter (eq, ne, not). + * Sets the disabledByMicrosoftStatus property value. Specifies whether Microsoft has disabled the registered application. Possible values are: null (default value), NotDisabled, and DisabledDueToViolationOfServicesAgreement (reasons include suspicious, abusive, or malicious activity, or a violation of the Microsoft Services Agreement). Supports $filter (eq, ne, not). * @param value Value to set for the disabledByMicrosoftStatus property. */ public void setDisabledByMicrosoftStatus(@jakarta.annotation.Nullable final String value) { @@ -624,7 +624,7 @@ public void setHomeRealmDiscoveryPolicies(@jakarta.annotation.Nullable final jav this.backingStore.set("homeRealmDiscoveryPolicies", value); } /** - * Sets the identifierUris property value. Also known as App ID URI, this value is set when an application is used as a resource app. The identifierUris acts as the prefix for the scopes you'll reference in your API's code, and it must be globally unique. You can use the default value provided, which is in the form api://, or specify a more readable URI like https://contoso.com/api. For more information on valid identifierUris patterns and best practices, see Microsoft Entra application registration security best practices. Not nullable. Supports $filter (eq, ne, ge, le, startsWith). + * Sets the identifierUris property value. Also known as App ID URI, this value is set when an application is used as a resource app. The identifierUris acts as the prefix for the scopes you reference in your API's code, and it must be globally unique. You can use the default value provided, which is in the form api://, or specify a more readable URI like https://contoso.com/api. For more information on valid identifierUris patterns and best practices, see Microsoft Entra application registration security best practices. Not nullable. Supports $filter (eq, ne, ge, le, startsWith). * @param value Value to set for the identifierUris property. */ public void setIdentifierUris(@jakarta.annotation.Nullable final java.util.List value) { @@ -645,7 +645,7 @@ public void setIsDeviceOnlyAuthSupported(@jakarta.annotation.Nullable final Bool this.backingStore.set("isDeviceOnlyAuthSupported", value); } /** - * Sets the isFallbackPublicClient property value. Specifies the fallback application type as public client, such as an installed application running on a mobile device. The default value is false which means the fallback application type is confidential client such as a web app. There are certain scenarios where Microsoft Entra ID cannot determine the client application type. For example, the ROPC flow where it is configured without specifying a redirect URI. In those cases Microsoft Entra ID interprets the application type based on the value of this property. + * Sets the isFallbackPublicClient property value. Specifies the fallback application type as public client, such as an installed application running on a mobile device. The default value is false, which means the fallback application type is confidential client such as a web app. There are certain scenarios where Microsoft Entra ID can't determine the client application type. For example, the ROPC flow where it's configured without specifying a redirect URI. In those cases, Microsoft Entra ID interprets the application type based on the value of this property. * @param value Value to set for the isFallbackPublicClient property. */ public void setIsFallbackPublicClient(@jakarta.annotation.Nullable final Boolean value) { @@ -750,14 +750,14 @@ public void setServiceManagementReference(@jakarta.annotation.Nullable final Str this.backingStore.set("serviceManagementReference", value); } /** - * Sets the servicePrincipalLockConfiguration property value. Specifies whether sensitive properties of a multi-tenant application should be locked for editing after the application is provisioned in a tenant. Nullable. null by default. + * Sets the servicePrincipalLockConfiguration property value. Specifies whether sensitive properties of a multitenant application should be locked for editing after the application is provisioned in a tenant. Nullable. null by default. * @param value Value to set for the servicePrincipalLockConfiguration property. */ public void setServicePrincipalLockConfiguration(@jakarta.annotation.Nullable final ServicePrincipalLockConfiguration value) { this.backingStore.set("servicePrincipalLockConfiguration", value); } /** - * Sets the signInAudience property value. Specifies the Microsoft accounts that are supported for the current application. The possible values are: AzureADMyOrg, AzureADMultipleOrgs, AzureADandPersonalMicrosoftAccount (default), and PersonalMicrosoftAccount. See more in the table. The value of this object also limits the number of permissions an app can request. For more information, see Limits on requested permissions per app. The value for this property has implications on other app object properties. As a result, if you change this property, you may need to change other properties first. For more information, see Validation differences for signInAudience.Supports $filter (eq, ne, not). + * Sets the signInAudience property value. Specifies the Microsoft accounts that are supported for the current application. The possible values are: AzureADMyOrg, AzureADMultipleOrgs, AzureADandPersonalMicrosoftAccount (default), and PersonalMicrosoftAccount. See more in the table. The value of this object also limits the number of permissions an app can request. For more information, see Limits on requested permissions per app. The value for this property has implications on other app object properties. As a result, if you change this property, you might need to change other properties first. For more information, see Validation differences for signInAudience.Supports $filter (eq, ne, not). * @param value Value to set for the signInAudience property. */ public void setSignInAudience(@jakarta.annotation.Nullable final String value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/AppsInstallationOptionsForMac.java b/src/main/java/com/microsoft/graph/generated/models/AppsInstallationOptionsForMac.java new file mode 100644 index 00000000000..c449c4d9a54 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/AppsInstallationOptionsForMac.java @@ -0,0 +1,141 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.AdditionalDataHolder; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import com.microsoft.kiota.store.BackedModel; +import com.microsoft.kiota.store.BackingStore; +import com.microsoft.kiota.store.BackingStoreFactorySingleton; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class AppsInstallationOptionsForMac implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link AppsInstallationOptionsForMac} and sets the default values. + */ + public AppsInstallationOptionsForMac() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link AppsInstallationOptionsForMac} + */ + @jakarta.annotation.Nonnull + public static AppsInstallationOptionsForMac createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new AppsInstallationOptionsForMac(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(3); + deserializerMap.put("isMicrosoft365AppsEnabled", (n) -> { this.setIsMicrosoft365AppsEnabled(n.getBooleanValue()); }); + deserializerMap.put("isSkypeForBusinessEnabled", (n) -> { this.setIsSkypeForBusinessEnabled(n.getBooleanValue()); }); + deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); }); + return deserializerMap; + } + /** + * Gets the isMicrosoft365AppsEnabled property value. Specifies whether users can install Microsoft 365 apps on their MAC devices. The default value is true. + * @return a {@link Boolean} + */ + @jakarta.annotation.Nullable + public Boolean getIsMicrosoft365AppsEnabled() { + return this.backingStore.get("isMicrosoft365AppsEnabled"); + } + /** + * Gets the isSkypeForBusinessEnabled property value. Specifies whether users can install Skype for Business on their MAC devices running OS X El Capitan 10.11 or later. The default value is true. + * @return a {@link Boolean} + */ + @jakarta.annotation.Nullable + public Boolean getIsSkypeForBusinessEnabled() { + return this.backingStore.get("isSkypeForBusinessEnabled"); + } + /** + * Gets the @odata.type property value. The OdataType property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getOdataType() { + return this.backingStore.get("odataType"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + writer.writeBooleanValue("isMicrosoft365AppsEnabled", this.getIsMicrosoft365AppsEnabled()); + writer.writeBooleanValue("isSkypeForBusinessEnabled", this.getIsSkypeForBusinessEnabled()); + writer.writeStringValue("@odata.type", this.getOdataType()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { + this.backingStore.set("additionalData", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @param value Value to set for the backingStore property. + */ + public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { + Objects.requireNonNull(value); + this.backingStore = value; + } + /** + * Sets the isMicrosoft365AppsEnabled property value. Specifies whether users can install Microsoft 365 apps on their MAC devices. The default value is true. + * @param value Value to set for the isMicrosoft365AppsEnabled property. + */ + public void setIsMicrosoft365AppsEnabled(@jakarta.annotation.Nullable final Boolean value) { + this.backingStore.set("isMicrosoft365AppsEnabled", value); + } + /** + * Sets the isSkypeForBusinessEnabled property value. Specifies whether users can install Skype for Business on their MAC devices running OS X El Capitan 10.11 or later. The default value is true. + * @param value Value to set for the isSkypeForBusinessEnabled property. + */ + public void setIsSkypeForBusinessEnabled(@jakarta.annotation.Nullable final Boolean value) { + this.backingStore.set("isSkypeForBusinessEnabled", value); + } + /** + * Sets the @odata.type property value. The OdataType property + * @param value Value to set for the @odata.type property. + */ + public void setOdataType(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("odataType", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/AppsInstallationOptionsForWindows.java b/src/main/java/com/microsoft/graph/generated/models/AppsInstallationOptionsForWindows.java new file mode 100644 index 00000000000..87d3efd8667 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/AppsInstallationOptionsForWindows.java @@ -0,0 +1,175 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.AdditionalDataHolder; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import com.microsoft.kiota.store.BackedModel; +import com.microsoft.kiota.store.BackingStore; +import com.microsoft.kiota.store.BackingStoreFactorySingleton; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class AppsInstallationOptionsForWindows implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link AppsInstallationOptionsForWindows} and sets the default values. + */ + public AppsInstallationOptionsForWindows() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link AppsInstallationOptionsForWindows} + */ + @jakarta.annotation.Nonnull + public static AppsInstallationOptionsForWindows createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new AppsInstallationOptionsForWindows(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(5); + deserializerMap.put("isMicrosoft365AppsEnabled", (n) -> { this.setIsMicrosoft365AppsEnabled(n.getBooleanValue()); }); + deserializerMap.put("isProjectEnabled", (n) -> { this.setIsProjectEnabled(n.getBooleanValue()); }); + deserializerMap.put("isSkypeForBusinessEnabled", (n) -> { this.setIsSkypeForBusinessEnabled(n.getBooleanValue()); }); + deserializerMap.put("isVisioEnabled", (n) -> { this.setIsVisioEnabled(n.getBooleanValue()); }); + deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); }); + return deserializerMap; + } + /** + * Gets the isMicrosoft365AppsEnabled property value. Specifies whether users can install Microsoft 365 apps, including Skype for Business, on their Windows devices. The default value is true. + * @return a {@link Boolean} + */ + @jakarta.annotation.Nullable + public Boolean getIsMicrosoft365AppsEnabled() { + return this.backingStore.get("isMicrosoft365AppsEnabled"); + } + /** + * Gets the isProjectEnabled property value. Specifies whether users can install Microsoft Project on their Windows devices. The default value is true. + * @return a {@link Boolean} + */ + @jakarta.annotation.Nullable + public Boolean getIsProjectEnabled() { + return this.backingStore.get("isProjectEnabled"); + } + /** + * Gets the isSkypeForBusinessEnabled property value. Specifies whether users can install Skype for Business (standalone) on their Windows devices. The default value is true. + * @return a {@link Boolean} + */ + @jakarta.annotation.Nullable + public Boolean getIsSkypeForBusinessEnabled() { + return this.backingStore.get("isSkypeForBusinessEnabled"); + } + /** + * Gets the isVisioEnabled property value. Specifies whether users can install Visio on their Windows devices. The default value is true. + * @return a {@link Boolean} + */ + @jakarta.annotation.Nullable + public Boolean getIsVisioEnabled() { + return this.backingStore.get("isVisioEnabled"); + } + /** + * Gets the @odata.type property value. The OdataType property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getOdataType() { + return this.backingStore.get("odataType"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + writer.writeBooleanValue("isMicrosoft365AppsEnabled", this.getIsMicrosoft365AppsEnabled()); + writer.writeBooleanValue("isProjectEnabled", this.getIsProjectEnabled()); + writer.writeBooleanValue("isSkypeForBusinessEnabled", this.getIsSkypeForBusinessEnabled()); + writer.writeBooleanValue("isVisioEnabled", this.getIsVisioEnabled()); + writer.writeStringValue("@odata.type", this.getOdataType()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { + this.backingStore.set("additionalData", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @param value Value to set for the backingStore property. + */ + public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { + Objects.requireNonNull(value); + this.backingStore = value; + } + /** + * Sets the isMicrosoft365AppsEnabled property value. Specifies whether users can install Microsoft 365 apps, including Skype for Business, on their Windows devices. The default value is true. + * @param value Value to set for the isMicrosoft365AppsEnabled property. + */ + public void setIsMicrosoft365AppsEnabled(@jakarta.annotation.Nullable final Boolean value) { + this.backingStore.set("isMicrosoft365AppsEnabled", value); + } + /** + * Sets the isProjectEnabled property value. Specifies whether users can install Microsoft Project on their Windows devices. The default value is true. + * @param value Value to set for the isProjectEnabled property. + */ + public void setIsProjectEnabled(@jakarta.annotation.Nullable final Boolean value) { + this.backingStore.set("isProjectEnabled", value); + } + /** + * Sets the isSkypeForBusinessEnabled property value. Specifies whether users can install Skype for Business (standalone) on their Windows devices. The default value is true. + * @param value Value to set for the isSkypeForBusinessEnabled property. + */ + public void setIsSkypeForBusinessEnabled(@jakarta.annotation.Nullable final Boolean value) { + this.backingStore.set("isSkypeForBusinessEnabled", value); + } + /** + * Sets the isVisioEnabled property value. Specifies whether users can install Visio on their Windows devices. The default value is true. + * @param value Value to set for the isVisioEnabled property. + */ + public void setIsVisioEnabled(@jakarta.annotation.Nullable final Boolean value) { + this.backingStore.set("isVisioEnabled", value); + } + /** + * Sets the @odata.type property value. The OdataType property + * @param value Value to set for the @odata.type property. + */ + public void setOdataType(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("odataType", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/AppsUpdateChannelType.java b/src/main/java/com/microsoft/graph/generated/models/AppsUpdateChannelType.java new file mode 100644 index 00000000000..32af914c4a7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/AppsUpdateChannelType.java @@ -0,0 +1,29 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.ValuedEnum; +import java.util.Objects; + +@jakarta.annotation.Generated("com.microsoft.kiota") +public enum AppsUpdateChannelType implements ValuedEnum { + Current("current"), + MonthlyEnterprise("monthlyEnterprise"), + SemiAnnual("semiAnnual"), + UnknownFutureValue("unknownFutureValue"); + public final String value; + AppsUpdateChannelType(final String value) { + this.value = value; + } + @jakarta.annotation.Nonnull + public String getValue() { return this.value; } + @jakarta.annotation.Nullable + public static AppsUpdateChannelType forValue(@jakarta.annotation.Nonnull final String searchValue) { + Objects.requireNonNull(searchValue); + switch(searchValue) { + case "current": return Current; + case "monthlyEnterprise": return MonthlyEnterprise; + case "semiAnnual": return SemiAnnual; + case "unknownFutureValue": return UnknownFutureValue; + default: return null; + } + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/AuthorizationPolicy.java b/src/main/java/com/microsoft/graph/generated/models/AuthorizationPolicy.java index f7140eb8afa..4f3f4a6399a 100644 --- a/src/main/java/com/microsoft/graph/generated/models/AuthorizationPolicy.java +++ b/src/main/java/com/microsoft/graph/generated/models/AuthorizationPolicy.java @@ -35,7 +35,7 @@ public Boolean getAllowedToSignUpEmailBasedSubscriptions() { return this.backingStore.get("allowedToSignUpEmailBasedSubscriptions"); } /** - * Gets the allowedToUseSSPR property value. Indicates whether users can use the Self-Service Password Reset feature on the tenant. + * Gets the allowedToUseSSPR property value. Indicates whether administrators of the tenant can use the Self-Service Password Reset (SSPR). For more information, see Self-service password reset for administrators. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -51,7 +51,7 @@ public Boolean getAllowEmailVerifiedUsersToJoinOrganization() { return this.backingStore.get("allowEmailVerifiedUsersToJoinOrganization"); } /** - * Gets the allowInvitesFrom property value. Indicates who can invite external users to the organization. Possible values are: none, adminsAndGuestInviters, adminsGuestInvitersAndAllMembers, everyone. everyone is the default setting for all cloud environments except US Government. For more information, see allowInvitesFrom values. + * Gets the allowInvitesFrom property value. Indicates who can invite guests to the organization. Possible values are: none, adminsAndGuestInviters, adminsGuestInvitersAndAllMembers, everyone. everyone is the default setting for all cloud environments except US Government. For more information, see allowInvitesFrom values. * @return a {@link AllowInvitesFrom} */ @jakarta.annotation.Nullable @@ -100,7 +100,7 @@ public Map> getFieldDeserializers return deserializerMap; } /** - * Gets the guestUserRoleId property value. Represents role templateId for the role that should be granted to guest user. Currently following roles are supported: User (a0b1b346-4d3e-4e8b-98f8-753987be4970), Guest User (10dae51f-b6af-4016-8d66-8c2a99b929b3), and Restricted Guest User (2af84b1e-32c8-42b7-82bc-daa82404023b). + * Gets the guestUserRoleId property value. Represents role templateId for the role that should be granted to guests. Currently following roles are supported: User (a0b1b346-4d3e-4e8b-98f8-753987be4970), Guest User (10dae51f-b6af-4016-8d66-8c2a99b929b3), and Restricted Guest User (2af84b1e-32c8-42b7-82bc-daa82404023b). * @return a {@link UUID} */ @jakarta.annotation.Nullable @@ -131,7 +131,7 @@ public void setAllowedToSignUpEmailBasedSubscriptions(@jakarta.annotation.Nullab this.backingStore.set("allowedToSignUpEmailBasedSubscriptions", value); } /** - * Sets the allowedToUseSSPR property value. Indicates whether users can use the Self-Service Password Reset feature on the tenant. + * Sets the allowedToUseSSPR property value. Indicates whether administrators of the tenant can use the Self-Service Password Reset (SSPR). For more information, see Self-service password reset for administrators. * @param value Value to set for the allowedToUseSSPR property. */ public void setAllowedToUseSSPR(@jakarta.annotation.Nullable final Boolean value) { @@ -145,7 +145,7 @@ public void setAllowEmailVerifiedUsersToJoinOrganization(@jakarta.annotation.Nul this.backingStore.set("allowEmailVerifiedUsersToJoinOrganization", value); } /** - * Sets the allowInvitesFrom property value. Indicates who can invite external users to the organization. Possible values are: none, adminsAndGuestInviters, adminsGuestInvitersAndAllMembers, everyone. everyone is the default setting for all cloud environments except US Government. For more information, see allowInvitesFrom values. + * Sets the allowInvitesFrom property value. Indicates who can invite guests to the organization. Possible values are: none, adminsAndGuestInviters, adminsGuestInvitersAndAllMembers, everyone. everyone is the default setting for all cloud environments except US Government. For more information, see allowInvitesFrom values. * @param value Value to set for the allowInvitesFrom property. */ public void setAllowInvitesFrom(@jakarta.annotation.Nullable final AllowInvitesFrom value) { @@ -173,7 +173,7 @@ public void setDefaultUserRolePermissions(@jakarta.annotation.Nullable final Def this.backingStore.set("defaultUserRolePermissions", value); } /** - * Sets the guestUserRoleId property value. Represents role templateId for the role that should be granted to guest user. Currently following roles are supported: User (a0b1b346-4d3e-4e8b-98f8-753987be4970), Guest User (10dae51f-b6af-4016-8d66-8c2a99b929b3), and Restricted Guest User (2af84b1e-32c8-42b7-82bc-daa82404023b). + * Sets the guestUserRoleId property value. Represents role templateId for the role that should be granted to guests. Currently following roles are supported: User (a0b1b346-4d3e-4e8b-98f8-753987be4970), Guest User (10dae51f-b6af-4016-8d66-8c2a99b929b3), and Restricted Guest User (2af84b1e-32c8-42b7-82bc-daa82404023b). * @param value Value to set for the guestUserRoleId property. */ public void setGuestUserRoleId(@jakarta.annotation.Nullable final UUID value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/BaseItem.java b/src/main/java/com/microsoft/graph/generated/models/BaseItem.java index c5678f34468..3b0acd7db14 100644 --- a/src/main/java/com/microsoft/graph/generated/models/BaseItem.java +++ b/src/main/java/com/microsoft/graph/generated/models/BaseItem.java @@ -27,12 +27,14 @@ public static BaseItem createFromDiscriminatorValue(@jakarta.annotation.Nonnull if (mappingValueNode != null) { final String mappingValue = mappingValueNode.getStringValue(); switch (mappingValue) { + case "#microsoft.graph.baseSitePage": return new BaseSitePage(); case "#microsoft.graph.drive": return new Drive(); case "#microsoft.graph.driveItem": return new DriveItem(); case "#microsoft.graph.list": return new List(); case "#microsoft.graph.listItem": return new ListItem(); case "#microsoft.graph.sharedDriveItem": return new SharedDriveItem(); case "#microsoft.graph.site": return new Site(); + case "#microsoft.graph.sitePage": return new SitePage(); } } return new BaseItem(); diff --git a/src/main/java/com/microsoft/graph/generated/models/BaseSitePage.java b/src/main/java/com/microsoft/graph/generated/models/BaseSitePage.java new file mode 100644 index 00000000000..ea96f246081 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/BaseSitePage.java @@ -0,0 +1,103 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class BaseSitePage extends BaseItem implements Parsable { + /** + * Instantiates a new {@link BaseSitePage} and sets the default values. + */ + public BaseSitePage() { + super(); + this.setOdataType("#microsoft.graph.baseSitePage"); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link BaseSitePage} + */ + @jakarta.annotation.Nonnull + public static BaseSitePage createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + final ParseNode mappingValueNode = parseNode.getChildNode("@odata.type"); + if (mappingValueNode != null) { + final String mappingValue = mappingValueNode.getStringValue(); + switch (mappingValue) { + case "#microsoft.graph.sitePage": return new SitePage(); + } + } + return new BaseSitePage(); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("pageLayout", (n) -> { this.setPageLayout(n.getEnumValue(PageLayoutType::forValue)); }); + deserializerMap.put("publishingState", (n) -> { this.setPublishingState(n.getObjectValue(PublicationFacet::createFromDiscriminatorValue)); }); + deserializerMap.put("title", (n) -> { this.setTitle(n.getStringValue()); }); + return deserializerMap; + } + /** + * Gets the pageLayout property value. The pageLayout property + * @return a {@link PageLayoutType} + */ + @jakarta.annotation.Nullable + public PageLayoutType getPageLayout() { + return this.backingStore.get("pageLayout"); + } + /** + * Gets the publishingState property value. The publishingState property + * @return a {@link PublicationFacet} + */ + @jakarta.annotation.Nullable + public PublicationFacet getPublishingState() { + return this.backingStore.get("publishingState"); + } + /** + * Gets the title property value. The title property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getTitle() { + return this.backingStore.get("title"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + super.serialize(writer); + writer.writeEnumValue("pageLayout", this.getPageLayout()); + writer.writeObjectValue("publishingState", this.getPublishingState()); + writer.writeStringValue("title", this.getTitle()); + } + /** + * Sets the pageLayout property value. The pageLayout property + * @param value Value to set for the pageLayout property. + */ + public void setPageLayout(@jakarta.annotation.Nullable final PageLayoutType value) { + this.backingStore.set("pageLayout", value); + } + /** + * Sets the publishingState property value. The publishingState property + * @param value Value to set for the publishingState property. + */ + public void setPublishingState(@jakarta.annotation.Nullable final PublicationFacet value) { + this.backingStore.set("publishingState", value); + } + /** + * Sets the title property value. The title property + * @param value Value to set for the title property. + */ + public void setTitle(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("title", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/BaseSitePageCollectionResponse.java b/src/main/java/com/microsoft/graph/generated/models/BaseSitePageCollectionResponse.java new file mode 100644 index 00000000000..a0e3031d869 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/BaseSitePageCollectionResponse.java @@ -0,0 +1,61 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class BaseSitePageCollectionResponse extends BaseCollectionPaginationCountResponse implements Parsable { + /** + * Instantiates a new {@link BaseSitePageCollectionResponse} and sets the default values. + */ + public BaseSitePageCollectionResponse() { + super(); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link BaseSitePageCollectionResponse} + */ + @jakarta.annotation.Nonnull + public static BaseSitePageCollectionResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new BaseSitePageCollectionResponse(); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("value", (n) -> { this.setValue(n.getCollectionOfObjectValues(BaseSitePage::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the value property value. The value property + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getValue() { + return this.backingStore.get("value"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + super.serialize(writer); + writer.writeCollectionOfObjectValues("value", this.getValue()); + } + /** + * Sets the value property value. The value property + * @param value Value to set for the value property. + */ + public void setValue(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("value", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/CanvasLayout.java b/src/main/java/com/microsoft/graph/generated/models/CanvasLayout.java new file mode 100644 index 00000000000..cc913e1c657 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/CanvasLayout.java @@ -0,0 +1,78 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CanvasLayout extends Entity implements Parsable { + /** + * Instantiates a new {@link CanvasLayout} and sets the default values. + */ + public CanvasLayout() { + super(); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link CanvasLayout} + */ + @jakarta.annotation.Nonnull + public static CanvasLayout createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new CanvasLayout(); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("horizontalSections", (n) -> { this.setHorizontalSections(n.getCollectionOfObjectValues(HorizontalSection::createFromDiscriminatorValue)); }); + deserializerMap.put("verticalSection", (n) -> { this.setVerticalSection(n.getObjectValue(VerticalSection::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the horizontalSections property value. The horizontalSections property + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getHorizontalSections() { + return this.backingStore.get("horizontalSections"); + } + /** + * Gets the verticalSection property value. The verticalSection property + * @return a {@link VerticalSection} + */ + @jakarta.annotation.Nullable + public VerticalSection getVerticalSection() { + return this.backingStore.get("verticalSection"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + super.serialize(writer); + writer.writeCollectionOfObjectValues("horizontalSections", this.getHorizontalSections()); + writer.writeObjectValue("verticalSection", this.getVerticalSection()); + } + /** + * Sets the horizontalSections property value. The horizontalSections property + * @param value Value to set for the horizontalSections property. + */ + public void setHorizontalSections(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("horizontalSections", value); + } + /** + * Sets the verticalSection property value. The verticalSection property + * @param value Value to set for the verticalSection property. + */ + public void setVerticalSection(@jakarta.annotation.Nullable final VerticalSection value) { + this.backingStore.set("verticalSection", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/Chat.java b/src/main/java/com/microsoft/graph/generated/models/Chat.java index 14e30d87f90..423b8ceb848 100644 --- a/src/main/java/com/microsoft/graph/generated/models/Chat.java +++ b/src/main/java/com/microsoft/graph/generated/models/Chat.java @@ -74,7 +74,7 @@ public java.util.List getInstalledApps() { return this.backingStore.get("installedApps"); } /** - * Gets the lastMessagePreview property value. Preview of the last message sent in the chat. Null if no messages have been sent in the chat. Currently, only the list chats operation supports this property. + * Gets the lastMessagePreview property value. Preview of the last message sent in the chat. Null if no messages were sent in the chat. Currently, only the list chats operation supports this property. * @return a {@link ChatMessageInfo} */ @jakarta.annotation.Nullable @@ -82,7 +82,7 @@ public ChatMessageInfo getLastMessagePreview() { return this.backingStore.get("lastMessagePreview"); } /** - * Gets the lastUpdatedDateTime property value. Date and time at which the chat was renamed or list of members were last changed. Read-only. + * Gets the lastUpdatedDateTime property value. Date and time at which the chat was renamed or the list of members was last changed. Read-only. * @return a {@link OffsetDateTime} */ @jakarta.annotation.Nullable @@ -154,7 +154,7 @@ public String getTopic() { return this.backingStore.get("topic"); } /** - * Gets the viewpoint property value. Represents caller-specific information about the chat, such as last message read date and time. This property is populated only when the request is made in a delegated context. + * Gets the viewpoint property value. Represents caller-specific information about the chat, such as the last message read date and time. This property is populated only when the request is made in a delegated context. * @return a {@link ChatViewpoint} */ @jakarta.annotation.Nullable @@ -214,14 +214,14 @@ public void setInstalledApps(@jakarta.annotation.Nullable final java.util.List> getFieldDeserializers return deserializerMap; } /** - * Gets the isChecked property value. State indicating whether the item is checked off or not. + * Gets the isChecked property value. State that indicates whether the item is checked off or not. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -97,14 +97,14 @@ public void setCreatedDateTime(@jakarta.annotation.Nullable final OffsetDateTime this.backingStore.set("createdDateTime", value); } /** - * Sets the displayName property value. Field indicating the title of checklistItem. + * Sets the displayName property value. Indicates the title of the checklistItem. * @param value Value to set for the displayName property. */ public void setDisplayName(@jakarta.annotation.Nullable final String value) { this.backingStore.set("displayName", value); } /** - * Sets the isChecked property value. State indicating whether the item is checked off or not. + * Sets the isChecked property value. State that indicates whether the item is checked off or not. * @param value Value to set for the isChecked property. */ public void setIsChecked(@jakarta.annotation.Nullable final Boolean value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/CloudClipboardItem.java b/src/main/java/com/microsoft/graph/generated/models/CloudClipboardItem.java index 5f60c1cd2d1..41bc455494a 100644 --- a/src/main/java/com/microsoft/graph/generated/models/CloudClipboardItem.java +++ b/src/main/java/com/microsoft/graph/generated/models/CloudClipboardItem.java @@ -26,7 +26,7 @@ public static CloudClipboardItem createFromDiscriminatorValue(@jakarta.annotatio return new CloudClipboardItem(); } /** - * Gets the createdDateTime property value. The createdDateTime property + * Gets the createdDateTime property value. Set by the server. DateTime in UTC when the object was created on the server. * @return a {@link OffsetDateTime} */ @jakarta.annotation.Nullable @@ -34,7 +34,7 @@ public OffsetDateTime getCreatedDateTime() { return this.backingStore.get("createdDateTime"); } /** - * Gets the expirationDateTime property value. The expirationDateTime property + * Gets the expirationDateTime property value. Set by the server. DateTime in UTC when the object expires and after that the object is no longer available. The default and also maximum TTL is 12 hours after the creation, but it might change for performance optimization. * @return a {@link OffsetDateTime} */ @jakarta.annotation.Nullable @@ -55,7 +55,7 @@ public Map> getFieldDeserializers return deserializerMap; } /** - * Gets the lastModifiedDateTime property value. The lastModifiedDateTime property + * Gets the lastModifiedDateTime property value. Set by the server if not provided in the client's request. DateTime in UTC when the object was modified by the client. * @return a {@link OffsetDateTime} */ @jakarta.annotation.Nullable @@ -63,7 +63,7 @@ public OffsetDateTime getLastModifiedDateTime() { return this.backingStore.get("lastModifiedDateTime"); } /** - * Gets the payloads property value. The payloads property + * Gets the payloads property value. A cloudClipboardItem can have multiple cloudClipboardItemPayload objects in the payloads. A window can place more than one clipboard object on the clipboard. Each one represents the same information in a different clipboard format. * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -83,28 +83,28 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeCollectionOfObjectValues("payloads", this.getPayloads()); } /** - * Sets the createdDateTime property value. The createdDateTime property + * Sets the createdDateTime property value. Set by the server. DateTime in UTC when the object was created on the server. * @param value Value to set for the createdDateTime property. */ public void setCreatedDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) { this.backingStore.set("createdDateTime", value); } /** - * Sets the expirationDateTime property value. The expirationDateTime property + * Sets the expirationDateTime property value. Set by the server. DateTime in UTC when the object expires and after that the object is no longer available. The default and also maximum TTL is 12 hours after the creation, but it might change for performance optimization. * @param value Value to set for the expirationDateTime property. */ public void setExpirationDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) { this.backingStore.set("expirationDateTime", value); } /** - * Sets the lastModifiedDateTime property value. The lastModifiedDateTime property + * Sets the lastModifiedDateTime property value. Set by the server if not provided in the client's request. DateTime in UTC when the object was modified by the client. * @param value Value to set for the lastModifiedDateTime property. */ public void setLastModifiedDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) { this.backingStore.set("lastModifiedDateTime", value); } /** - * Sets the payloads property value. The payloads property + * Sets the payloads property value. A cloudClipboardItem can have multiple cloudClipboardItemPayload objects in the payloads. A window can place more than one clipboard object on the clipboard. Each one represents the same information in a different clipboard format. * @param value Value to set for the payloads property. */ public void setPayloads(@jakarta.annotation.Nullable final java.util.List value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/CloudClipboardItemPayload.java b/src/main/java/com/microsoft/graph/generated/models/CloudClipboardItemPayload.java index 6284dc566ae..6a046e74f8c 100644 --- a/src/main/java/com/microsoft/graph/generated/models/CloudClipboardItemPayload.java +++ b/src/main/java/com/microsoft/graph/generated/models/CloudClipboardItemPayload.java @@ -56,7 +56,7 @@ public BackingStore getBackingStore() { return this.backingStore; } /** - * Gets the content property value. The content property + * Gets the content property value. The formatName version of the value of a cloud clipboard encoded in base64. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -76,7 +76,7 @@ public Map> getFieldDeserializers return deserializerMap; } /** - * Gets the formatName property value. The formatName property + * Gets the formatName property value. For a list of possible values see formatName values. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -118,14 +118,14 @@ public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value this.backingStore = value; } /** - * Sets the content property value. The content property + * Sets the content property value. The formatName version of the value of a cloud clipboard encoded in base64. * @param value Value to set for the content property. */ public void setContent(@jakarta.annotation.Nullable final String value) { this.backingStore.set("content", value); } /** - * Sets the formatName property value. The formatName property + * Sets the formatName property value. For a list of possible values see formatName values. * @param value Value to set for the formatName property. */ public void setFormatName(@jakarta.annotation.Nullable final String value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/CloudClipboardRoot.java b/src/main/java/com/microsoft/graph/generated/models/CloudClipboardRoot.java index 8a009240e54..7c02b9cbde8 100644 --- a/src/main/java/com/microsoft/graph/generated/models/CloudClipboardRoot.java +++ b/src/main/java/com/microsoft/graph/generated/models/CloudClipboardRoot.java @@ -35,7 +35,7 @@ public Map> getFieldDeserializers return deserializerMap; } /** - * Gets the items property value. The items property + * Gets the items property value. Represents a collection of Cloud Clipboard items. * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -52,7 +52,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeCollectionOfObjectValues("items", this.getItems()); } /** - * Sets the items property value. The items property + * Sets the items property value. Represents a collection of Cloud Clipboard items. * @param value Value to set for the items property. */ public void setItems(@jakarta.annotation.Nullable final java.util.List value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/CloudPC.java b/src/main/java/com/microsoft/graph/generated/models/CloudPC.java new file mode 100644 index 00000000000..b2675b99e3d --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/CloudPC.java @@ -0,0 +1,283 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CloudPC extends Entity implements Parsable { + /** + * Instantiates a new {@link CloudPC} and sets the default values. + */ + public CloudPC() { + super(); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link CloudPC} + */ + @jakarta.annotation.Nonnull + public static CloudPC createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new CloudPC(); + } + /** + * Gets the aadDeviceId property value. The Microsoft Entra device ID for the Cloud PC, also known as the Azure Active Directory (Azure AD) device ID, that consists of 32 characters in a GUID format. Generated on a VM joined to Microsoft Entra ID. Read-only. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getAadDeviceId() { + return this.backingStore.get("aadDeviceId"); + } + /** + * Gets the displayName property value. The display name for the Cloud PC. Maximum length is 64 characters. Read-only. You can use the cloudPC: rename API to modify the Cloud PC name. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getDisplayName() { + return this.backingStore.get("displayName"); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("aadDeviceId", (n) -> { this.setAadDeviceId(n.getStringValue()); }); + deserializerMap.put("displayName", (n) -> { this.setDisplayName(n.getStringValue()); }); + deserializerMap.put("gracePeriodEndDateTime", (n) -> { this.setGracePeriodEndDateTime(n.getOffsetDateTimeValue()); }); + deserializerMap.put("imageDisplayName", (n) -> { this.setImageDisplayName(n.getStringValue()); }); + deserializerMap.put("lastModifiedDateTime", (n) -> { this.setLastModifiedDateTime(n.getOffsetDateTimeValue()); }); + deserializerMap.put("managedDeviceId", (n) -> { this.setManagedDeviceId(n.getStringValue()); }); + deserializerMap.put("managedDeviceName", (n) -> { this.setManagedDeviceName(n.getStringValue()); }); + deserializerMap.put("onPremisesConnectionName", (n) -> { this.setOnPremisesConnectionName(n.getStringValue()); }); + deserializerMap.put("provisioningPolicyId", (n) -> { this.setProvisioningPolicyId(n.getStringValue()); }); + deserializerMap.put("provisioningPolicyName", (n) -> { this.setProvisioningPolicyName(n.getStringValue()); }); + deserializerMap.put("provisioningType", (n) -> { this.setProvisioningType(n.getEnumValue(CloudPcProvisioningType::forValue)); }); + deserializerMap.put("servicePlanId", (n) -> { this.setServicePlanId(n.getStringValue()); }); + deserializerMap.put("servicePlanName", (n) -> { this.setServicePlanName(n.getStringValue()); }); + deserializerMap.put("userPrincipalName", (n) -> { this.setUserPrincipalName(n.getStringValue()); }); + return deserializerMap; + } + /** + * Gets the gracePeriodEndDateTime property value. The date and time when the grace period ends and reprovisioning or deprovisioning happen. Required only if the status is inGracePeriod. The timestamp is shown in ISO 8601 format and Coordinated Universal Time (UTC). For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * @return a {@link OffsetDateTime} + */ + @jakarta.annotation.Nullable + public OffsetDateTime getGracePeriodEndDateTime() { + return this.backingStore.get("gracePeriodEndDateTime"); + } + /** + * Gets the imageDisplayName property value. The name of the operating system image used for the Cloud PC. Maximum length is 50 characters. Only letters (A-Z, a-z), numbers (0-9), and special characters (-,,.) are allowed for this property. The property value can't begin or end with an underscore. Read-only. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getImageDisplayName() { + return this.backingStore.get("imageDisplayName"); + } + /** + * Gets the lastModifiedDateTime property value. The last modified date and time of the Cloud PC. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * @return a {@link OffsetDateTime} + */ + @jakarta.annotation.Nullable + public OffsetDateTime getLastModifiedDateTime() { + return this.backingStore.get("lastModifiedDateTime"); + } + /** + * Gets the managedDeviceId property value. The Intune enrolled device ID for the Cloud PC that consists of 32 characters in a GUID format. The managedDeviceId property of Windows 365 Business Cloud PCs is always null as Windows 365 Business Cloud PCs aren't Intune-enrolled automatically by Windows 365. Read-only. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getManagedDeviceId() { + return this.backingStore.get("managedDeviceId"); + } + /** + * Gets the managedDeviceName property value. The Intune enrolled device name for the Cloud PC. The managedDeviceName property of Windows 365 Business Cloud PCs is always null as Windows 365 Business Cloud PCs aren't Intune-enrolled automatically by Windows 365. Read-only. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getManagedDeviceName() { + return this.backingStore.get("managedDeviceName"); + } + /** + * Gets the onPremisesConnectionName property value. The on-premises connection that applied during the provisioning of Cloud PCs. Read-only. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getOnPremisesConnectionName() { + return this.backingStore.get("onPremisesConnectionName"); + } + /** + * Gets the provisioningPolicyId property value. The provisioning policy ID for the Cloud PC that consists of 32 characters in a GUID format. A policy defines the type of Cloud PC the user wants to create. Read-only. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getProvisioningPolicyId() { + return this.backingStore.get("provisioningPolicyId"); + } + /** + * Gets the provisioningPolicyName property value. The provisioning policy that applied during the provisioning of Cloud PCs. Maximum length is 120 characters. Read-only. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getProvisioningPolicyName() { + return this.backingStore.get("provisioningPolicyName"); + } + /** + * Gets the provisioningType property value. The type of licenses to be used when provisioning Cloud PCs using this policy. Possible values are: dedicated, shared, unknownFutureValue. The default value is dedicated. + * @return a {@link CloudPcProvisioningType} + */ + @jakarta.annotation.Nullable + public CloudPcProvisioningType getProvisioningType() { + return this.backingStore.get("provisioningType"); + } + /** + * Gets the servicePlanId property value. The service plan ID for the Cloud PC that consists of 32 characters in a GUID format. For more information about service plans, see Product names and service plan identifiers for licensing. Read-only. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getServicePlanId() { + return this.backingStore.get("servicePlanId"); + } + /** + * Gets the servicePlanName property value. The service plan name for the customer-facing Cloud PC entity. Read-only. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getServicePlanName() { + return this.backingStore.get("servicePlanName"); + } + /** + * Gets the userPrincipalName property value. The user principal name (UPN) of the user assigned to the Cloud PC. Maximum length is 113 characters. For more information on username policies, see Password policies and account restrictions in Microsoft Entra ID. Read-only. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getUserPrincipalName() { + return this.backingStore.get("userPrincipalName"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + super.serialize(writer); + writer.writeStringValue("aadDeviceId", this.getAadDeviceId()); + writer.writeStringValue("displayName", this.getDisplayName()); + writer.writeOffsetDateTimeValue("gracePeriodEndDateTime", this.getGracePeriodEndDateTime()); + writer.writeStringValue("imageDisplayName", this.getImageDisplayName()); + writer.writeOffsetDateTimeValue("lastModifiedDateTime", this.getLastModifiedDateTime()); + writer.writeStringValue("managedDeviceId", this.getManagedDeviceId()); + writer.writeStringValue("managedDeviceName", this.getManagedDeviceName()); + writer.writeStringValue("onPremisesConnectionName", this.getOnPremisesConnectionName()); + writer.writeStringValue("provisioningPolicyId", this.getProvisioningPolicyId()); + writer.writeStringValue("provisioningPolicyName", this.getProvisioningPolicyName()); + writer.writeEnumValue("provisioningType", this.getProvisioningType()); + writer.writeStringValue("servicePlanId", this.getServicePlanId()); + writer.writeStringValue("servicePlanName", this.getServicePlanName()); + writer.writeStringValue("userPrincipalName", this.getUserPrincipalName()); + } + /** + * Sets the aadDeviceId property value. The Microsoft Entra device ID for the Cloud PC, also known as the Azure Active Directory (Azure AD) device ID, that consists of 32 characters in a GUID format. Generated on a VM joined to Microsoft Entra ID. Read-only. + * @param value Value to set for the aadDeviceId property. + */ + public void setAadDeviceId(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("aadDeviceId", value); + } + /** + * Sets the displayName property value. The display name for the Cloud PC. Maximum length is 64 characters. Read-only. You can use the cloudPC: rename API to modify the Cloud PC name. + * @param value Value to set for the displayName property. + */ + public void setDisplayName(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("displayName", value); + } + /** + * Sets the gracePeriodEndDateTime property value. The date and time when the grace period ends and reprovisioning or deprovisioning happen. Required only if the status is inGracePeriod. The timestamp is shown in ISO 8601 format and Coordinated Universal Time (UTC). For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * @param value Value to set for the gracePeriodEndDateTime property. + */ + public void setGracePeriodEndDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) { + this.backingStore.set("gracePeriodEndDateTime", value); + } + /** + * Sets the imageDisplayName property value. The name of the operating system image used for the Cloud PC. Maximum length is 50 characters. Only letters (A-Z, a-z), numbers (0-9), and special characters (-,,.) are allowed for this property. The property value can't begin or end with an underscore. Read-only. + * @param value Value to set for the imageDisplayName property. + */ + public void setImageDisplayName(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("imageDisplayName", value); + } + /** + * Sets the lastModifiedDateTime property value. The last modified date and time of the Cloud PC. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * @param value Value to set for the lastModifiedDateTime property. + */ + public void setLastModifiedDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) { + this.backingStore.set("lastModifiedDateTime", value); + } + /** + * Sets the managedDeviceId property value. The Intune enrolled device ID for the Cloud PC that consists of 32 characters in a GUID format. The managedDeviceId property of Windows 365 Business Cloud PCs is always null as Windows 365 Business Cloud PCs aren't Intune-enrolled automatically by Windows 365. Read-only. + * @param value Value to set for the managedDeviceId property. + */ + public void setManagedDeviceId(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("managedDeviceId", value); + } + /** + * Sets the managedDeviceName property value. The Intune enrolled device name for the Cloud PC. The managedDeviceName property of Windows 365 Business Cloud PCs is always null as Windows 365 Business Cloud PCs aren't Intune-enrolled automatically by Windows 365. Read-only. + * @param value Value to set for the managedDeviceName property. + */ + public void setManagedDeviceName(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("managedDeviceName", value); + } + /** + * Sets the onPremisesConnectionName property value. The on-premises connection that applied during the provisioning of Cloud PCs. Read-only. + * @param value Value to set for the onPremisesConnectionName property. + */ + public void setOnPremisesConnectionName(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("onPremisesConnectionName", value); + } + /** + * Sets the provisioningPolicyId property value. The provisioning policy ID for the Cloud PC that consists of 32 characters in a GUID format. A policy defines the type of Cloud PC the user wants to create. Read-only. + * @param value Value to set for the provisioningPolicyId property. + */ + public void setProvisioningPolicyId(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("provisioningPolicyId", value); + } + /** + * Sets the provisioningPolicyName property value. The provisioning policy that applied during the provisioning of Cloud PCs. Maximum length is 120 characters. Read-only. + * @param value Value to set for the provisioningPolicyName property. + */ + public void setProvisioningPolicyName(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("provisioningPolicyName", value); + } + /** + * Sets the provisioningType property value. The type of licenses to be used when provisioning Cloud PCs using this policy. Possible values are: dedicated, shared, unknownFutureValue. The default value is dedicated. + * @param value Value to set for the provisioningType property. + */ + public void setProvisioningType(@jakarta.annotation.Nullable final CloudPcProvisioningType value) { + this.backingStore.set("provisioningType", value); + } + /** + * Sets the servicePlanId property value. The service plan ID for the Cloud PC that consists of 32 characters in a GUID format. For more information about service plans, see Product names and service plan identifiers for licensing. Read-only. + * @param value Value to set for the servicePlanId property. + */ + public void setServicePlanId(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("servicePlanId", value); + } + /** + * Sets the servicePlanName property value. The service plan name for the customer-facing Cloud PC entity. Read-only. + * @param value Value to set for the servicePlanName property. + */ + public void setServicePlanName(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("servicePlanName", value); + } + /** + * Sets the userPrincipalName property value. The user principal name (UPN) of the user assigned to the Cloud PC. Maximum length is 113 characters. For more information on username policies, see Password policies and account restrictions in Microsoft Entra ID. Read-only. + * @param value Value to set for the userPrincipalName property. + */ + public void setUserPrincipalName(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("userPrincipalName", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/CloudPCCollectionResponse.java b/src/main/java/com/microsoft/graph/generated/models/CloudPCCollectionResponse.java new file mode 100644 index 00000000000..d917f8a5a2c --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/CloudPCCollectionResponse.java @@ -0,0 +1,61 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CloudPCCollectionResponse extends BaseCollectionPaginationCountResponse implements Parsable { + /** + * Instantiates a new {@link CloudPCCollectionResponse} and sets the default values. + */ + public CloudPCCollectionResponse() { + super(); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link CloudPCCollectionResponse} + */ + @jakarta.annotation.Nonnull + public static CloudPCCollectionResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new CloudPCCollectionResponse(); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("value", (n) -> { this.setValue(n.getCollectionOfObjectValues(CloudPC::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the value property value. The value property + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getValue() { + return this.backingStore.get("value"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + super.serialize(writer); + writer.writeCollectionOfObjectValues("value", this.getValue()); + } + /** + * Sets the value property value. The value property + * @param value Value to set for the value property. + */ + public void setValue(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("value", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/CloudPcAuditActivityOperationType.java b/src/main/java/com/microsoft/graph/generated/models/CloudPcAuditActivityOperationType.java new file mode 100644 index 00000000000..20abd1c777b --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/CloudPcAuditActivityOperationType.java @@ -0,0 +1,29 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.ValuedEnum; +import java.util.Objects; + +@jakarta.annotation.Generated("com.microsoft.kiota") +public enum CloudPcAuditActivityOperationType implements ValuedEnum { + Create("create"), + Delete("delete"), + Patch("patch"), + UnknownFutureValue("unknownFutureValue"); + public final String value; + CloudPcAuditActivityOperationType(final String value) { + this.value = value; + } + @jakarta.annotation.Nonnull + public String getValue() { return this.value; } + @jakarta.annotation.Nullable + public static CloudPcAuditActivityOperationType forValue(@jakarta.annotation.Nonnull final String searchValue) { + Objects.requireNonNull(searchValue); + switch(searchValue) { + case "create": return Create; + case "delete": return Delete; + case "patch": return Patch; + case "unknownFutureValue": return UnknownFutureValue; + default: return null; + } + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/CloudPcAuditActivityResult.java b/src/main/java/com/microsoft/graph/generated/models/CloudPcAuditActivityResult.java new file mode 100644 index 00000000000..0d9671049ab --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/CloudPcAuditActivityResult.java @@ -0,0 +1,31 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.ValuedEnum; +import java.util.Objects; + +@jakarta.annotation.Generated("com.microsoft.kiota") +public enum CloudPcAuditActivityResult implements ValuedEnum { + Success("success"), + ClientError("clientError"), + Failure("failure"), + Timeout("timeout"), + UnknownFutureValue("unknownFutureValue"); + public final String value; + CloudPcAuditActivityResult(final String value) { + this.value = value; + } + @jakarta.annotation.Nonnull + public String getValue() { return this.value; } + @jakarta.annotation.Nullable + public static CloudPcAuditActivityResult forValue(@jakarta.annotation.Nonnull final String searchValue) { + Objects.requireNonNull(searchValue); + switch(searchValue) { + case "success": return Success; + case "clientError": return ClientError; + case "failure": return Failure; + case "timeout": return Timeout; + case "unknownFutureValue": return UnknownFutureValue; + default: return null; + } + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/CloudPcAuditActor.java b/src/main/java/com/microsoft/graph/generated/models/CloudPcAuditActor.java new file mode 100644 index 00000000000..bd549364ebc --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/CloudPcAuditActor.java @@ -0,0 +1,277 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.AdditionalDataHolder; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import com.microsoft.kiota.store.BackedModel; +import com.microsoft.kiota.store.BackingStore; +import com.microsoft.kiota.store.BackingStoreFactorySingleton; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CloudPcAuditActor implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link CloudPcAuditActor} and sets the default values. + */ + public CloudPcAuditActor() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link CloudPcAuditActor} + */ + @jakarta.annotation.Nonnull + public static CloudPcAuditActor createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new CloudPcAuditActor(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the applicationDisplayName property value. Name of the application. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getApplicationDisplayName() { + return this.backingStore.get("applicationDisplayName"); + } + /** + * Gets the applicationId property value. Microsoft Entra application ID. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getApplicationId() { + return this.backingStore.get("applicationId"); + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(11); + deserializerMap.put("applicationDisplayName", (n) -> { this.setApplicationDisplayName(n.getStringValue()); }); + deserializerMap.put("applicationId", (n) -> { this.setApplicationId(n.getStringValue()); }); + deserializerMap.put("ipAddress", (n) -> { this.setIpAddress(n.getStringValue()); }); + deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); }); + deserializerMap.put("remoteTenantId", (n) -> { this.setRemoteTenantId(n.getStringValue()); }); + deserializerMap.put("remoteUserId", (n) -> { this.setRemoteUserId(n.getStringValue()); }); + deserializerMap.put("servicePrincipalName", (n) -> { this.setServicePrincipalName(n.getStringValue()); }); + deserializerMap.put("userId", (n) -> { this.setUserId(n.getStringValue()); }); + deserializerMap.put("userPermissions", (n) -> { this.setUserPermissions(n.getCollectionOfPrimitiveValues(String.class)); }); + deserializerMap.put("userPrincipalName", (n) -> { this.setUserPrincipalName(n.getStringValue()); }); + deserializerMap.put("userRoleScopeTags", (n) -> { this.setUserRoleScopeTags(n.getCollectionOfObjectValues(CloudPcUserRoleScopeTagInfo::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the ipAddress property value. IP address. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getIpAddress() { + return this.backingStore.get("ipAddress"); + } + /** + * Gets the @odata.type property value. The OdataType property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getOdataType() { + return this.backingStore.get("odataType"); + } + /** + * Gets the remoteTenantId property value. The delegated partner tenant ID. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getRemoteTenantId() { + return this.backingStore.get("remoteTenantId"); + } + /** + * Gets the remoteUserId property value. The delegated partner user ID. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getRemoteUserId() { + return this.backingStore.get("remoteUserId"); + } + /** + * Gets the servicePrincipalName property value. Service Principal Name (SPN). + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getServicePrincipalName() { + return this.backingStore.get("servicePrincipalName"); + } + /** + * Gets the userId property value. Microsoft Entra user ID. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getUserId() { + return this.backingStore.get("userId"); + } + /** + * Gets the userPermissions property value. List of user permissions and application permissions when the audit event was performed. + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getUserPermissions() { + return this.backingStore.get("userPermissions"); + } + /** + * Gets the userPrincipalName property value. User Principal Name (UPN). + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getUserPrincipalName() { + return this.backingStore.get("userPrincipalName"); + } + /** + * Gets the userRoleScopeTags property value. List of role scope tags. + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getUserRoleScopeTags() { + return this.backingStore.get("userRoleScopeTags"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + writer.writeStringValue("applicationDisplayName", this.getApplicationDisplayName()); + writer.writeStringValue("applicationId", this.getApplicationId()); + writer.writeStringValue("ipAddress", this.getIpAddress()); + writer.writeStringValue("@odata.type", this.getOdataType()); + writer.writeStringValue("remoteTenantId", this.getRemoteTenantId()); + writer.writeStringValue("remoteUserId", this.getRemoteUserId()); + writer.writeStringValue("servicePrincipalName", this.getServicePrincipalName()); + writer.writeStringValue("userId", this.getUserId()); + writer.writeCollectionOfPrimitiveValues("userPermissions", this.getUserPermissions()); + writer.writeStringValue("userPrincipalName", this.getUserPrincipalName()); + writer.writeCollectionOfObjectValues("userRoleScopeTags", this.getUserRoleScopeTags()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { + this.backingStore.set("additionalData", value); + } + /** + * Sets the applicationDisplayName property value. Name of the application. + * @param value Value to set for the applicationDisplayName property. + */ + public void setApplicationDisplayName(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("applicationDisplayName", value); + } + /** + * Sets the applicationId property value. Microsoft Entra application ID. + * @param value Value to set for the applicationId property. + */ + public void setApplicationId(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("applicationId", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @param value Value to set for the backingStore property. + */ + public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { + Objects.requireNonNull(value); + this.backingStore = value; + } + /** + * Sets the ipAddress property value. IP address. + * @param value Value to set for the ipAddress property. + */ + public void setIpAddress(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("ipAddress", value); + } + /** + * Sets the @odata.type property value. The OdataType property + * @param value Value to set for the @odata.type property. + */ + public void setOdataType(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("odataType", value); + } + /** + * Sets the remoteTenantId property value. The delegated partner tenant ID. + * @param value Value to set for the remoteTenantId property. + */ + public void setRemoteTenantId(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("remoteTenantId", value); + } + /** + * Sets the remoteUserId property value. The delegated partner user ID. + * @param value Value to set for the remoteUserId property. + */ + public void setRemoteUserId(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("remoteUserId", value); + } + /** + * Sets the servicePrincipalName property value. Service Principal Name (SPN). + * @param value Value to set for the servicePrincipalName property. + */ + public void setServicePrincipalName(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("servicePrincipalName", value); + } + /** + * Sets the userId property value. Microsoft Entra user ID. + * @param value Value to set for the userId property. + */ + public void setUserId(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("userId", value); + } + /** + * Sets the userPermissions property value. List of user permissions and application permissions when the audit event was performed. + * @param value Value to set for the userPermissions property. + */ + public void setUserPermissions(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("userPermissions", value); + } + /** + * Sets the userPrincipalName property value. User Principal Name (UPN). + * @param value Value to set for the userPrincipalName property. + */ + public void setUserPrincipalName(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("userPrincipalName", value); + } + /** + * Sets the userRoleScopeTags property value. List of role scope tags. + * @param value Value to set for the userRoleScopeTags property. + */ + public void setUserRoleScopeTags(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("userRoleScopeTags", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/CloudPcAuditCategory.java b/src/main/java/com/microsoft/graph/generated/models/CloudPcAuditCategory.java new file mode 100644 index 00000000000..bc98da438b6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/CloudPcAuditCategory.java @@ -0,0 +1,25 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.ValuedEnum; +import java.util.Objects; + +@jakarta.annotation.Generated("com.microsoft.kiota") +public enum CloudPcAuditCategory implements ValuedEnum { + CloudPC("cloudPC"), + UnknownFutureValue("unknownFutureValue"); + public final String value; + CloudPcAuditCategory(final String value) { + this.value = value; + } + @jakarta.annotation.Nonnull + public String getValue() { return this.value; } + @jakarta.annotation.Nullable + public static CloudPcAuditCategory forValue(@jakarta.annotation.Nonnull final String searchValue) { + Objects.requireNonNull(searchValue); + switch(searchValue) { + case "cloudPC": return CloudPC; + case "unknownFutureValue": return UnknownFutureValue; + default: return null; + } + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/CloudPcAuditEvent.java b/src/main/java/com/microsoft/graph/generated/models/CloudPcAuditEvent.java new file mode 100644 index 00000000000..bc39338d971 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/CloudPcAuditEvent.java @@ -0,0 +1,232 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CloudPcAuditEvent extends Entity implements Parsable { + /** + * Instantiates a new {@link CloudPcAuditEvent} and sets the default values. + */ + public CloudPcAuditEvent() { + super(); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link CloudPcAuditEvent} + */ + @jakarta.annotation.Nonnull + public static CloudPcAuditEvent createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new CloudPcAuditEvent(); + } + /** + * Gets the activity property value. The friendly name of the audit activity. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getActivity() { + return this.backingStore.get("activity"); + } + /** + * Gets the activityDateTime property value. The date time in UTC when the activity was performed.Read-only. + * @return a {@link OffsetDateTime} + */ + @jakarta.annotation.Nullable + public OffsetDateTime getActivityDateTime() { + return this.backingStore.get("activityDateTime"); + } + /** + * Gets the activityOperationType property value. The activityOperationType property + * @return a {@link CloudPcAuditActivityOperationType} + */ + @jakarta.annotation.Nullable + public CloudPcAuditActivityOperationType getActivityOperationType() { + return this.backingStore.get("activityOperationType"); + } + /** + * Gets the activityResult property value. The activityResult property + * @return a {@link CloudPcAuditActivityResult} + */ + @jakarta.annotation.Nullable + public CloudPcAuditActivityResult getActivityResult() { + return this.backingStore.get("activityResult"); + } + /** + * Gets the activityType property value. The type of activity that was performed.Read-only. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getActivityType() { + return this.backingStore.get("activityType"); + } + /** + * Gets the actor property value. The actor property + * @return a {@link CloudPcAuditActor} + */ + @jakarta.annotation.Nullable + public CloudPcAuditActor getActor() { + return this.backingStore.get("actor"); + } + /** + * Gets the category property value. The category property + * @return a {@link CloudPcAuditCategory} + */ + @jakarta.annotation.Nullable + public CloudPcAuditCategory getCategory() { + return this.backingStore.get("category"); + } + /** + * Gets the componentName property value. The component name for the audit event. Read-only. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getComponentName() { + return this.backingStore.get("componentName"); + } + /** + * Gets the correlationId property value. The client request ID that is used to correlate activity within the system.Read-only. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getCorrelationId() { + return this.backingStore.get("correlationId"); + } + /** + * Gets the displayName property value. The display name for the audit event. Read-only. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getDisplayName() { + return this.backingStore.get("displayName"); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("activity", (n) -> { this.setActivity(n.getStringValue()); }); + deserializerMap.put("activityDateTime", (n) -> { this.setActivityDateTime(n.getOffsetDateTimeValue()); }); + deserializerMap.put("activityOperationType", (n) -> { this.setActivityOperationType(n.getEnumValue(CloudPcAuditActivityOperationType::forValue)); }); + deserializerMap.put("activityResult", (n) -> { this.setActivityResult(n.getEnumValue(CloudPcAuditActivityResult::forValue)); }); + deserializerMap.put("activityType", (n) -> { this.setActivityType(n.getStringValue()); }); + deserializerMap.put("actor", (n) -> { this.setActor(n.getObjectValue(CloudPcAuditActor::createFromDiscriminatorValue)); }); + deserializerMap.put("category", (n) -> { this.setCategory(n.getEnumValue(CloudPcAuditCategory::forValue)); }); + deserializerMap.put("componentName", (n) -> { this.setComponentName(n.getStringValue()); }); + deserializerMap.put("correlationId", (n) -> { this.setCorrelationId(n.getStringValue()); }); + deserializerMap.put("displayName", (n) -> { this.setDisplayName(n.getStringValue()); }); + deserializerMap.put("resources", (n) -> { this.setResources(n.getCollectionOfObjectValues(CloudPcAuditResource::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the resources property value. The list of cloudPcAuditResource objects.Read-only. + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getResources() { + return this.backingStore.get("resources"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + super.serialize(writer); + writer.writeStringValue("activity", this.getActivity()); + writer.writeOffsetDateTimeValue("activityDateTime", this.getActivityDateTime()); + writer.writeEnumValue("activityOperationType", this.getActivityOperationType()); + writer.writeEnumValue("activityResult", this.getActivityResult()); + writer.writeStringValue("activityType", this.getActivityType()); + writer.writeObjectValue("actor", this.getActor()); + writer.writeEnumValue("category", this.getCategory()); + writer.writeStringValue("componentName", this.getComponentName()); + writer.writeStringValue("correlationId", this.getCorrelationId()); + writer.writeStringValue("displayName", this.getDisplayName()); + writer.writeCollectionOfObjectValues("resources", this.getResources()); + } + /** + * Sets the activity property value. The friendly name of the audit activity. + * @param value Value to set for the activity property. + */ + public void setActivity(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("activity", value); + } + /** + * Sets the activityDateTime property value. The date time in UTC when the activity was performed.Read-only. + * @param value Value to set for the activityDateTime property. + */ + public void setActivityDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) { + this.backingStore.set("activityDateTime", value); + } + /** + * Sets the activityOperationType property value. The activityOperationType property + * @param value Value to set for the activityOperationType property. + */ + public void setActivityOperationType(@jakarta.annotation.Nullable final CloudPcAuditActivityOperationType value) { + this.backingStore.set("activityOperationType", value); + } + /** + * Sets the activityResult property value. The activityResult property + * @param value Value to set for the activityResult property. + */ + public void setActivityResult(@jakarta.annotation.Nullable final CloudPcAuditActivityResult value) { + this.backingStore.set("activityResult", value); + } + /** + * Sets the activityType property value. The type of activity that was performed.Read-only. + * @param value Value to set for the activityType property. + */ + public void setActivityType(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("activityType", value); + } + /** + * Sets the actor property value. The actor property + * @param value Value to set for the actor property. + */ + public void setActor(@jakarta.annotation.Nullable final CloudPcAuditActor value) { + this.backingStore.set("actor", value); + } + /** + * Sets the category property value. The category property + * @param value Value to set for the category property. + */ + public void setCategory(@jakarta.annotation.Nullable final CloudPcAuditCategory value) { + this.backingStore.set("category", value); + } + /** + * Sets the componentName property value. The component name for the audit event. Read-only. + * @param value Value to set for the componentName property. + */ + public void setComponentName(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("componentName", value); + } + /** + * Sets the correlationId property value. The client request ID that is used to correlate activity within the system.Read-only. + * @param value Value to set for the correlationId property. + */ + public void setCorrelationId(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("correlationId", value); + } + /** + * Sets the displayName property value. The display name for the audit event. Read-only. + * @param value Value to set for the displayName property. + */ + public void setDisplayName(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("displayName", value); + } + /** + * Sets the resources property value. The list of cloudPcAuditResource objects.Read-only. + * @param value Value to set for the resources property. + */ + public void setResources(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("resources", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/CloudPcAuditEventCollectionResponse.java b/src/main/java/com/microsoft/graph/generated/models/CloudPcAuditEventCollectionResponse.java new file mode 100644 index 00000000000..7b96bd4cfef --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/CloudPcAuditEventCollectionResponse.java @@ -0,0 +1,61 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CloudPcAuditEventCollectionResponse extends BaseCollectionPaginationCountResponse implements Parsable { + /** + * Instantiates a new {@link CloudPcAuditEventCollectionResponse} and sets the default values. + */ + public CloudPcAuditEventCollectionResponse() { + super(); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link CloudPcAuditEventCollectionResponse} + */ + @jakarta.annotation.Nonnull + public static CloudPcAuditEventCollectionResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new CloudPcAuditEventCollectionResponse(); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("value", (n) -> { this.setValue(n.getCollectionOfObjectValues(CloudPcAuditEvent::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the value property value. The value property + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getValue() { + return this.backingStore.get("value"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + super.serialize(writer); + writer.writeCollectionOfObjectValues("value", this.getValue()); + } + /** + * Sets the value property value. The value property + * @param value Value to set for the value property. + */ + public void setValue(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("value", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/CloudPcAuditProperty.java b/src/main/java/com/microsoft/graph/generated/models/CloudPcAuditProperty.java new file mode 100644 index 00000000000..ff9c2d1eca9 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/CloudPcAuditProperty.java @@ -0,0 +1,158 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.AdditionalDataHolder; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import com.microsoft.kiota.store.BackedModel; +import com.microsoft.kiota.store.BackingStore; +import com.microsoft.kiota.store.BackingStoreFactorySingleton; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CloudPcAuditProperty implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link CloudPcAuditProperty} and sets the default values. + */ + public CloudPcAuditProperty() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link CloudPcAuditProperty} + */ + @jakarta.annotation.Nonnull + public static CloudPcAuditProperty createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new CloudPcAuditProperty(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * Gets the displayName property value. The display name for this property. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getDisplayName() { + return this.backingStore.get("displayName"); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(4); + deserializerMap.put("displayName", (n) -> { this.setDisplayName(n.getStringValue()); }); + deserializerMap.put("newValue", (n) -> { this.setNewValue(n.getStringValue()); }); + deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); }); + deserializerMap.put("oldValue", (n) -> { this.setOldValue(n.getStringValue()); }); + return deserializerMap; + } + /** + * Gets the newValue property value. The new value for this property. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getNewValue() { + return this.backingStore.get("newValue"); + } + /** + * Gets the @odata.type property value. The OdataType property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getOdataType() { + return this.backingStore.get("odataType"); + } + /** + * Gets the oldValue property value. The old value for this property. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getOldValue() { + return this.backingStore.get("oldValue"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + writer.writeStringValue("displayName", this.getDisplayName()); + writer.writeStringValue("newValue", this.getNewValue()); + writer.writeStringValue("@odata.type", this.getOdataType()); + writer.writeStringValue("oldValue", this.getOldValue()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { + this.backingStore.set("additionalData", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @param value Value to set for the backingStore property. + */ + public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { + Objects.requireNonNull(value); + this.backingStore = value; + } + /** + * Sets the displayName property value. The display name for this property. + * @param value Value to set for the displayName property. + */ + public void setDisplayName(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("displayName", value); + } + /** + * Sets the newValue property value. The new value for this property. + * @param value Value to set for the newValue property. + */ + public void setNewValue(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("newValue", value); + } + /** + * Sets the @odata.type property value. The OdataType property + * @param value Value to set for the @odata.type property. + */ + public void setOdataType(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("odataType", value); + } + /** + * Sets the oldValue property value. The old value for this property. + * @param value Value to set for the oldValue property. + */ + public void setOldValue(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("oldValue", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/CloudPcAuditResource.java b/src/main/java/com/microsoft/graph/generated/models/CloudPcAuditResource.java new file mode 100644 index 00000000000..815fa67048f --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/CloudPcAuditResource.java @@ -0,0 +1,158 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.AdditionalDataHolder; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import com.microsoft.kiota.store.BackedModel; +import com.microsoft.kiota.store.BackingStore; +import com.microsoft.kiota.store.BackingStoreFactorySingleton; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CloudPcAuditResource implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link CloudPcAuditResource} and sets the default values. + */ + public CloudPcAuditResource() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link CloudPcAuditResource} + */ + @jakarta.annotation.Nonnull + public static CloudPcAuditResource createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new CloudPcAuditResource(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * Gets the displayName property value. The display name of the modified resource entity. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getDisplayName() { + return this.backingStore.get("displayName"); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(4); + deserializerMap.put("displayName", (n) -> { this.setDisplayName(n.getStringValue()); }); + deserializerMap.put("modifiedProperties", (n) -> { this.setModifiedProperties(n.getCollectionOfObjectValues(CloudPcAuditProperty::createFromDiscriminatorValue)); }); + deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); }); + deserializerMap.put("resourceId", (n) -> { this.setResourceId(n.getStringValue()); }); + return deserializerMap; + } + /** + * Gets the modifiedProperties property value. The list of modified properties. + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getModifiedProperties() { + return this.backingStore.get("modifiedProperties"); + } + /** + * Gets the @odata.type property value. The OdataType property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getOdataType() { + return this.backingStore.get("odataType"); + } + /** + * Gets the resourceId property value. The unique identifier of the modified resource entity. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getResourceId() { + return this.backingStore.get("resourceId"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + writer.writeStringValue("displayName", this.getDisplayName()); + writer.writeCollectionOfObjectValues("modifiedProperties", this.getModifiedProperties()); + writer.writeStringValue("@odata.type", this.getOdataType()); + writer.writeStringValue("resourceId", this.getResourceId()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { + this.backingStore.set("additionalData", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @param value Value to set for the backingStore property. + */ + public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { + Objects.requireNonNull(value); + this.backingStore = value; + } + /** + * Sets the displayName property value. The display name of the modified resource entity. + * @param value Value to set for the displayName property. + */ + public void setDisplayName(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("displayName", value); + } + /** + * Sets the modifiedProperties property value. The list of modified properties. + * @param value Value to set for the modifiedProperties property. + */ + public void setModifiedProperties(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("modifiedProperties", value); + } + /** + * Sets the @odata.type property value. The OdataType property + * @param value Value to set for the @odata.type property. + */ + public void setOdataType(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("odataType", value); + } + /** + * Sets the resourceId property value. The unique identifier of the modified resource entity. + * @param value Value to set for the resourceId property. + */ + public void setResourceId(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("resourceId", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/CloudPcDeviceImage.java b/src/main/java/com/microsoft/graph/generated/models/CloudPcDeviceImage.java new file mode 100644 index 00000000000..6e2ec97c744 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/CloudPcDeviceImage.java @@ -0,0 +1,216 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import java.time.LocalDate; +import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CloudPcDeviceImage extends Entity implements Parsable { + /** + * Instantiates a new {@link CloudPcDeviceImage} and sets the default values. + */ + public CloudPcDeviceImage() { + super(); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link CloudPcDeviceImage} + */ + @jakarta.annotation.Nonnull + public static CloudPcDeviceImage createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new CloudPcDeviceImage(); + } + /** + * Gets the displayName property value. The display name of the associated device image. The device image display name and the version are used to uniquely identify the Cloud PC device image. Read-only. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getDisplayName() { + return this.backingStore.get("displayName"); + } + /** + * Gets the errorCode property value. The error code of the status of the image that indicates why the upload failed, if applicable. Possible values are: internalServerError, sourceImageNotFound, osVersionNotSupported, sourceImageInvalid, sourceImageNotGeneralized, unknownFutureValue, vmAlreadyAzureAdJoined, paidSourceImageNotSupport, sourceImageNotSupportCustomizeVMName, sourceImageSizeExceedsLimitation. Note that you must use the Prefer: include-unknown-enum-members request header to get the following values from this evolvable enum: vmAlreadyAzureAdJoined, paidSourceImageNotSupport, sourceImageNotSupportCustomizeVMName, sourceImageSizeExceedsLimitation. Read-only. + * @return a {@link CloudPcDeviceImageErrorCode} + */ + @jakarta.annotation.Nullable + public CloudPcDeviceImageErrorCode getErrorCode() { + return this.backingStore.get("errorCode"); + } + /** + * Gets the expirationDate property value. The date when the image became unavailable. Read-only. + * @return a {@link LocalDate} + */ + @jakarta.annotation.Nullable + public LocalDate getExpirationDate() { + return this.backingStore.get("expirationDate"); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("displayName", (n) -> { this.setDisplayName(n.getStringValue()); }); + deserializerMap.put("errorCode", (n) -> { this.setErrorCode(n.getEnumValue(CloudPcDeviceImageErrorCode::forValue)); }); + deserializerMap.put("expirationDate", (n) -> { this.setExpirationDate(n.getLocalDateValue()); }); + deserializerMap.put("lastModifiedDateTime", (n) -> { this.setLastModifiedDateTime(n.getOffsetDateTimeValue()); }); + deserializerMap.put("operatingSystem", (n) -> { this.setOperatingSystem(n.getStringValue()); }); + deserializerMap.put("osBuildNumber", (n) -> { this.setOsBuildNumber(n.getStringValue()); }); + deserializerMap.put("osStatus", (n) -> { this.setOsStatus(n.getEnumValue(CloudPcDeviceImageOsStatus::forValue)); }); + deserializerMap.put("sourceImageResourceId", (n) -> { this.setSourceImageResourceId(n.getStringValue()); }); + deserializerMap.put("status", (n) -> { this.setStatus(n.getEnumValue(CloudPcDeviceImageStatus::forValue)); }); + deserializerMap.put("version", (n) -> { this.setVersion(n.getStringValue()); }); + return deserializerMap; + } + /** + * Gets the lastModifiedDateTime property value. The data and time when the image was last modified. The timestamp represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. + * @return a {@link OffsetDateTime} + */ + @jakarta.annotation.Nullable + public OffsetDateTime getLastModifiedDateTime() { + return this.backingStore.get("lastModifiedDateTime"); + } + /** + * Gets the operatingSystem property value. The operating system (OS) of the image. For example, Windows 10 Enterprise. Read-only. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getOperatingSystem() { + return this.backingStore.get("operatingSystem"); + } + /** + * Gets the osBuildNumber property value. The OS build version of the image. For example, 1909. Read-only. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getOsBuildNumber() { + return this.backingStore.get("osBuildNumber"); + } + /** + * Gets the osStatus property value. The OS status of this image. Possible values are: supported, supportedWithWarning, unknown, unknownFutureValue. The default value is unknown. Read-only. + * @return a {@link CloudPcDeviceImageOsStatus} + */ + @jakarta.annotation.Nullable + public CloudPcDeviceImageOsStatus getOsStatus() { + return this.backingStore.get("osStatus"); + } + /** + * Gets the sourceImageResourceId property value. The unique identifier (ID) of the source image resource on Azure. The required ID format is: '/subscriptions/{subscription-id}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}'. Read-only. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getSourceImageResourceId() { + return this.backingStore.get("sourceImageResourceId"); + } + /** + * Gets the status property value. The status of the image on the Cloud PC. Possible values are: pending, ready, failed, unknownFutureValue. Read-only. + * @return a {@link CloudPcDeviceImageStatus} + */ + @jakarta.annotation.Nullable + public CloudPcDeviceImageStatus getStatus() { + return this.backingStore.get("status"); + } + /** + * Gets the version property value. The image version. For example, 0.0.1 and 1.5.13. Read-only. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getVersion() { + return this.backingStore.get("version"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + super.serialize(writer); + writer.writeStringValue("displayName", this.getDisplayName()); + writer.writeEnumValue("errorCode", this.getErrorCode()); + writer.writeLocalDateValue("expirationDate", this.getExpirationDate()); + writer.writeOffsetDateTimeValue("lastModifiedDateTime", this.getLastModifiedDateTime()); + writer.writeStringValue("operatingSystem", this.getOperatingSystem()); + writer.writeStringValue("osBuildNumber", this.getOsBuildNumber()); + writer.writeEnumValue("osStatus", this.getOsStatus()); + writer.writeStringValue("sourceImageResourceId", this.getSourceImageResourceId()); + writer.writeEnumValue("status", this.getStatus()); + writer.writeStringValue("version", this.getVersion()); + } + /** + * Sets the displayName property value. The display name of the associated device image. The device image display name and the version are used to uniquely identify the Cloud PC device image. Read-only. + * @param value Value to set for the displayName property. + */ + public void setDisplayName(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("displayName", value); + } + /** + * Sets the errorCode property value. The error code of the status of the image that indicates why the upload failed, if applicable. Possible values are: internalServerError, sourceImageNotFound, osVersionNotSupported, sourceImageInvalid, sourceImageNotGeneralized, unknownFutureValue, vmAlreadyAzureAdJoined, paidSourceImageNotSupport, sourceImageNotSupportCustomizeVMName, sourceImageSizeExceedsLimitation. Note that you must use the Prefer: include-unknown-enum-members request header to get the following values from this evolvable enum: vmAlreadyAzureAdJoined, paidSourceImageNotSupport, sourceImageNotSupportCustomizeVMName, sourceImageSizeExceedsLimitation. Read-only. + * @param value Value to set for the errorCode property. + */ + public void setErrorCode(@jakarta.annotation.Nullable final CloudPcDeviceImageErrorCode value) { + this.backingStore.set("errorCode", value); + } + /** + * Sets the expirationDate property value. The date when the image became unavailable. Read-only. + * @param value Value to set for the expirationDate property. + */ + public void setExpirationDate(@jakarta.annotation.Nullable final LocalDate value) { + this.backingStore.set("expirationDate", value); + } + /** + * Sets the lastModifiedDateTime property value. The data and time when the image was last modified. The timestamp represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. + * @param value Value to set for the lastModifiedDateTime property. + */ + public void setLastModifiedDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) { + this.backingStore.set("lastModifiedDateTime", value); + } + /** + * Sets the operatingSystem property value. The operating system (OS) of the image. For example, Windows 10 Enterprise. Read-only. + * @param value Value to set for the operatingSystem property. + */ + public void setOperatingSystem(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("operatingSystem", value); + } + /** + * Sets the osBuildNumber property value. The OS build version of the image. For example, 1909. Read-only. + * @param value Value to set for the osBuildNumber property. + */ + public void setOsBuildNumber(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("osBuildNumber", value); + } + /** + * Sets the osStatus property value. The OS status of this image. Possible values are: supported, supportedWithWarning, unknown, unknownFutureValue. The default value is unknown. Read-only. + * @param value Value to set for the osStatus property. + */ + public void setOsStatus(@jakarta.annotation.Nullable final CloudPcDeviceImageOsStatus value) { + this.backingStore.set("osStatus", value); + } + /** + * Sets the sourceImageResourceId property value. The unique identifier (ID) of the source image resource on Azure. The required ID format is: '/subscriptions/{subscription-id}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}'. Read-only. + * @param value Value to set for the sourceImageResourceId property. + */ + public void setSourceImageResourceId(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("sourceImageResourceId", value); + } + /** + * Sets the status property value. The status of the image on the Cloud PC. Possible values are: pending, ready, failed, unknownFutureValue. Read-only. + * @param value Value to set for the status property. + */ + public void setStatus(@jakarta.annotation.Nullable final CloudPcDeviceImageStatus value) { + this.backingStore.set("status", value); + } + /** + * Sets the version property value. The image version. For example, 0.0.1 and 1.5.13. Read-only. + * @param value Value to set for the version property. + */ + public void setVersion(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("version", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/CloudPcDeviceImageCollectionResponse.java b/src/main/java/com/microsoft/graph/generated/models/CloudPcDeviceImageCollectionResponse.java new file mode 100644 index 00000000000..342cb4cece3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/CloudPcDeviceImageCollectionResponse.java @@ -0,0 +1,61 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CloudPcDeviceImageCollectionResponse extends BaseCollectionPaginationCountResponse implements Parsable { + /** + * Instantiates a new {@link CloudPcDeviceImageCollectionResponse} and sets the default values. + */ + public CloudPcDeviceImageCollectionResponse() { + super(); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link CloudPcDeviceImageCollectionResponse} + */ + @jakarta.annotation.Nonnull + public static CloudPcDeviceImageCollectionResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new CloudPcDeviceImageCollectionResponse(); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("value", (n) -> { this.setValue(n.getCollectionOfObjectValues(CloudPcDeviceImage::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the value property value. The value property + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getValue() { + return this.backingStore.get("value"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + super.serialize(writer); + writer.writeCollectionOfObjectValues("value", this.getValue()); + } + /** + * Sets the value property value. The value property + * @param value Value to set for the value property. + */ + public void setValue(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("value", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/CloudPcDeviceImageErrorCode.java b/src/main/java/com/microsoft/graph/generated/models/CloudPcDeviceImageErrorCode.java new file mode 100644 index 00000000000..d55bb25cf9b --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/CloudPcDeviceImageErrorCode.java @@ -0,0 +1,41 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.ValuedEnum; +import java.util.Objects; + +@jakarta.annotation.Generated("com.microsoft.kiota") +public enum CloudPcDeviceImageErrorCode implements ValuedEnum { + InternalServerError("internalServerError"), + SourceImageNotFound("sourceImageNotFound"), + OsVersionNotSupported("osVersionNotSupported"), + SourceImageInvalid("sourceImageInvalid"), + SourceImageNotGeneralized("sourceImageNotGeneralized"), + UnknownFutureValue("unknownFutureValue"), + VmAlreadyAzureAdjoined("vmAlreadyAzureAdjoined"), + PaidSourceImageNotSupport("paidSourceImageNotSupport"), + SourceImageNotSupportCustomizeVMName("sourceImageNotSupportCustomizeVMName"), + SourceImageSizeExceedsLimitation("sourceImageSizeExceedsLimitation"); + public final String value; + CloudPcDeviceImageErrorCode(final String value) { + this.value = value; + } + @jakarta.annotation.Nonnull + public String getValue() { return this.value; } + @jakarta.annotation.Nullable + public static CloudPcDeviceImageErrorCode forValue(@jakarta.annotation.Nonnull final String searchValue) { + Objects.requireNonNull(searchValue); + switch(searchValue) { + case "internalServerError": return InternalServerError; + case "sourceImageNotFound": return SourceImageNotFound; + case "osVersionNotSupported": return OsVersionNotSupported; + case "sourceImageInvalid": return SourceImageInvalid; + case "sourceImageNotGeneralized": return SourceImageNotGeneralized; + case "unknownFutureValue": return UnknownFutureValue; + case "vmAlreadyAzureAdjoined": return VmAlreadyAzureAdjoined; + case "paidSourceImageNotSupport": return PaidSourceImageNotSupport; + case "sourceImageNotSupportCustomizeVMName": return SourceImageNotSupportCustomizeVMName; + case "sourceImageSizeExceedsLimitation": return SourceImageSizeExceedsLimitation; + default: return null; + } + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/CloudPcDeviceImageOsStatus.java b/src/main/java/com/microsoft/graph/generated/models/CloudPcDeviceImageOsStatus.java new file mode 100644 index 00000000000..cb0fd6e8771 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/CloudPcDeviceImageOsStatus.java @@ -0,0 +1,29 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.ValuedEnum; +import java.util.Objects; + +@jakarta.annotation.Generated("com.microsoft.kiota") +public enum CloudPcDeviceImageOsStatus implements ValuedEnum { + Supported("supported"), + SupportedWithWarning("supportedWithWarning"), + Unknown("unknown"), + UnknownFutureValue("unknownFutureValue"); + public final String value; + CloudPcDeviceImageOsStatus(final String value) { + this.value = value; + } + @jakarta.annotation.Nonnull + public String getValue() { return this.value; } + @jakarta.annotation.Nullable + public static CloudPcDeviceImageOsStatus forValue(@jakarta.annotation.Nonnull final String searchValue) { + Objects.requireNonNull(searchValue); + switch(searchValue) { + case "supported": return Supported; + case "supportedWithWarning": return SupportedWithWarning; + case "unknown": return Unknown; + case "unknownFutureValue": return UnknownFutureValue; + default: return null; + } + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/CloudPcDeviceImageStatus.java b/src/main/java/com/microsoft/graph/generated/models/CloudPcDeviceImageStatus.java new file mode 100644 index 00000000000..568cd943d14 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/CloudPcDeviceImageStatus.java @@ -0,0 +1,29 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.ValuedEnum; +import java.util.Objects; + +@jakarta.annotation.Generated("com.microsoft.kiota") +public enum CloudPcDeviceImageStatus implements ValuedEnum { + Pending("pending"), + Ready("ready"), + Failed("failed"), + UnknownFutureValue("unknownFutureValue"); + public final String value; + CloudPcDeviceImageStatus(final String value) { + this.value = value; + } + @jakarta.annotation.Nonnull + public String getValue() { return this.value; } + @jakarta.annotation.Nullable + public static CloudPcDeviceImageStatus forValue(@jakarta.annotation.Nonnull final String searchValue) { + Objects.requireNonNull(searchValue); + switch(searchValue) { + case "pending": return Pending; + case "ready": return Ready; + case "failed": return Failed; + case "unknownFutureValue": return UnknownFutureValue; + default: return null; + } + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/CloudPcDomainJoinConfiguration.java b/src/main/java/com/microsoft/graph/generated/models/CloudPcDomainJoinConfiguration.java new file mode 100644 index 00000000000..769106316f6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/CloudPcDomainJoinConfiguration.java @@ -0,0 +1,175 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.AdditionalDataHolder; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import com.microsoft.kiota.store.BackedModel; +import com.microsoft.kiota.store.BackingStore; +import com.microsoft.kiota.store.BackingStoreFactorySingleton; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CloudPcDomainJoinConfiguration implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link CloudPcDomainJoinConfiguration} and sets the default values. + */ + public CloudPcDomainJoinConfiguration() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link CloudPcDomainJoinConfiguration} + */ + @jakarta.annotation.Nonnull + public static CloudPcDomainJoinConfiguration createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new CloudPcDomainJoinConfiguration(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * Gets the domainJoinType property value. Specifies the method by which the provisioned Cloud PC joins Microsoft Entra ID. If you choose the hybridAzureADJoin type, only provide a value for the onPremisesConnectionId property and leave the regionName property empty. If you choose the azureADJoin type, provide a value for either the onPremisesConnectionId or the regionName property. Possible values are: azureADJoin, hybridAzureADJoin, unknownFutureValue. + * @return a {@link CloudPcDomainJoinType} + */ + @jakarta.annotation.Nullable + public CloudPcDomainJoinType getDomainJoinType() { + return this.backingStore.get("domainJoinType"); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(5); + deserializerMap.put("domainJoinType", (n) -> { this.setDomainJoinType(n.getEnumValue(CloudPcDomainJoinType::forValue)); }); + deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); }); + deserializerMap.put("onPremisesConnectionId", (n) -> { this.setOnPremisesConnectionId(n.getStringValue()); }); + deserializerMap.put("regionGroup", (n) -> { this.setRegionGroup(n.getEnumValue(CloudPcRegionGroup::forValue)); }); + deserializerMap.put("regionName", (n) -> { this.setRegionName(n.getStringValue()); }); + return deserializerMap; + } + /** + * Gets the @odata.type property value. The OdataType property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getOdataType() { + return this.backingStore.get("odataType"); + } + /** + * Gets the onPremisesConnectionId property value. The Azure network connection ID that matches the virtual network IT admins want the provisioning policy to use when they create Cloud PCs. You can use this property in both domain join types: Azure AD joined or Hybrid Microsoft Entra joined. If you enter an onPremisesConnectionId, leave the regionName property empty. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getOnPremisesConnectionId() { + return this.backingStore.get("onPremisesConnectionId"); + } + /** + * Gets the regionGroup property value. The logical geographic group this region belongs to. Multiple regions can belong to one region group. A customer can select a regionGroup when they provision a Cloud PC, and the Cloud PC is put in one of the regions in the group based on resource status. For example, the Europe region group contains the Northern Europe and Western Europe regions. Possible values are: default, australia, canada, usCentral, usEast, usWest, france, germany, europeUnion, unitedKingdom, japan, asia, india, southAmerica, euap, usGovernment, usGovernmentDOD, unknownFutureValue, norway, switzerland, southKorea. Note that you must use the Prefer: include-unknown-enum-members request header to get the following values in this evolvable enum: norway, switzerland, southKorea. Read-only. + * @return a {@link CloudPcRegionGroup} + */ + @jakarta.annotation.Nullable + public CloudPcRegionGroup getRegionGroup() { + return this.backingStore.get("regionGroup"); + } + /** + * Gets the regionName property value. The supported Azure region where the IT admin wants the provisioning policy to create Cloud PCs. Within this region, the Windows 365 service creates and manages the underlying virtual network. This option is available only when the IT admin selects Microsoft Entra joined as the domain join type. If you enter a regionName, leave the onPremisesConnectionId property empty. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getRegionName() { + return this.backingStore.get("regionName"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + writer.writeEnumValue("domainJoinType", this.getDomainJoinType()); + writer.writeStringValue("@odata.type", this.getOdataType()); + writer.writeStringValue("onPremisesConnectionId", this.getOnPremisesConnectionId()); + writer.writeEnumValue("regionGroup", this.getRegionGroup()); + writer.writeStringValue("regionName", this.getRegionName()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { + this.backingStore.set("additionalData", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @param value Value to set for the backingStore property. + */ + public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { + Objects.requireNonNull(value); + this.backingStore = value; + } + /** + * Sets the domainJoinType property value. Specifies the method by which the provisioned Cloud PC joins Microsoft Entra ID. If you choose the hybridAzureADJoin type, only provide a value for the onPremisesConnectionId property and leave the regionName property empty. If you choose the azureADJoin type, provide a value for either the onPremisesConnectionId or the regionName property. Possible values are: azureADJoin, hybridAzureADJoin, unknownFutureValue. + * @param value Value to set for the domainJoinType property. + */ + public void setDomainJoinType(@jakarta.annotation.Nullable final CloudPcDomainJoinType value) { + this.backingStore.set("domainJoinType", value); + } + /** + * Sets the @odata.type property value. The OdataType property + * @param value Value to set for the @odata.type property. + */ + public void setOdataType(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("odataType", value); + } + /** + * Sets the onPremisesConnectionId property value. The Azure network connection ID that matches the virtual network IT admins want the provisioning policy to use when they create Cloud PCs. You can use this property in both domain join types: Azure AD joined or Hybrid Microsoft Entra joined. If you enter an onPremisesConnectionId, leave the regionName property empty. + * @param value Value to set for the onPremisesConnectionId property. + */ + public void setOnPremisesConnectionId(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("onPremisesConnectionId", value); + } + /** + * Sets the regionGroup property value. The logical geographic group this region belongs to. Multiple regions can belong to one region group. A customer can select a regionGroup when they provision a Cloud PC, and the Cloud PC is put in one of the regions in the group based on resource status. For example, the Europe region group contains the Northern Europe and Western Europe regions. Possible values are: default, australia, canada, usCentral, usEast, usWest, france, germany, europeUnion, unitedKingdom, japan, asia, india, southAmerica, euap, usGovernment, usGovernmentDOD, unknownFutureValue, norway, switzerland, southKorea. Note that you must use the Prefer: include-unknown-enum-members request header to get the following values in this evolvable enum: norway, switzerland, southKorea. Read-only. + * @param value Value to set for the regionGroup property. + */ + public void setRegionGroup(@jakarta.annotation.Nullable final CloudPcRegionGroup value) { + this.backingStore.set("regionGroup", value); + } + /** + * Sets the regionName property value. The supported Azure region where the IT admin wants the provisioning policy to create Cloud PCs. Within this region, the Windows 365 service creates and manages the underlying virtual network. This option is available only when the IT admin selects Microsoft Entra joined as the domain join type. If you enter a regionName, leave the onPremisesConnectionId property empty. + * @param value Value to set for the regionName property. + */ + public void setRegionName(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("regionName", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/CloudPcDomainJoinType.java b/src/main/java/com/microsoft/graph/generated/models/CloudPcDomainJoinType.java new file mode 100644 index 00000000000..0985fcf5ce3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/CloudPcDomainJoinType.java @@ -0,0 +1,27 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.ValuedEnum; +import java.util.Objects; + +@jakarta.annotation.Generated("com.microsoft.kiota") +public enum CloudPcDomainJoinType implements ValuedEnum { + AzureADJoin("azureADJoin"), + HybridAzureADJoin("hybridAzureADJoin"), + UnknownFutureValue("unknownFutureValue"); + public final String value; + CloudPcDomainJoinType(final String value) { + this.value = value; + } + @jakarta.annotation.Nonnull + public String getValue() { return this.value; } + @jakarta.annotation.Nullable + public static CloudPcDomainJoinType forValue(@jakarta.annotation.Nonnull final String searchValue) { + Objects.requireNonNull(searchValue); + switch(searchValue) { + case "azureADJoin": return AzureADJoin; + case "hybridAzureADJoin": return HybridAzureADJoin; + case "unknownFutureValue": return UnknownFutureValue; + default: return null; + } + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/CloudPcGalleryImage.java b/src/main/java/com/microsoft/graph/generated/models/CloudPcGalleryImage.java new file mode 100644 index 00000000000..38499cac10c --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/CloudPcGalleryImage.java @@ -0,0 +1,198 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import java.time.LocalDate; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CloudPcGalleryImage extends Entity implements Parsable { + /** + * Instantiates a new {@link CloudPcGalleryImage} and sets the default values. + */ + public CloudPcGalleryImage() { + super(); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link CloudPcGalleryImage} + */ + @jakarta.annotation.Nonnull + public static CloudPcGalleryImage createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new CloudPcGalleryImage(); + } + /** + * Gets the displayName property value. The display name of this gallery image. For example, Windows 11 Enterprise + Microsoft 365 Apps 22H2. Read-only. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getDisplayName() { + return this.backingStore.get("displayName"); + } + /** + * Gets the endDate property value. The date when the status of the image becomes supportedWithWarning. Users can still provision new Cloud PCs if the current time is later than endDate and earlier than expirationDate. For example, assume the endDate of a gallery image is 2023-9-14 and expirationDate is 2024-3-14, users are able to provision new Cloud PCs if today is 2023-10-01. Read-only. + * @return a {@link LocalDate} + */ + @jakarta.annotation.Nullable + public LocalDate getEndDate() { + return this.backingStore.get("endDate"); + } + /** + * Gets the expirationDate property value. The date when the image is no longer available. Users are unable to provision new Cloud PCs if the current time is later than expirationDate. The value is usually endDate plus six months. For example, if the startDate is 2025-10-14, the expirationDate is usually 2026-04-14. Read-only. + * @return a {@link LocalDate} + */ + @jakarta.annotation.Nullable + public LocalDate getExpirationDate() { + return this.backingStore.get("expirationDate"); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("displayName", (n) -> { this.setDisplayName(n.getStringValue()); }); + deserializerMap.put("endDate", (n) -> { this.setEndDate(n.getLocalDateValue()); }); + deserializerMap.put("expirationDate", (n) -> { this.setExpirationDate(n.getLocalDateValue()); }); + deserializerMap.put("offerName", (n) -> { this.setOfferName(n.getStringValue()); }); + deserializerMap.put("publisherName", (n) -> { this.setPublisherName(n.getStringValue()); }); + deserializerMap.put("sizeInGB", (n) -> { this.setSizeInGB(n.getIntegerValue()); }); + deserializerMap.put("skuName", (n) -> { this.setSkuName(n.getStringValue()); }); + deserializerMap.put("startDate", (n) -> { this.setStartDate(n.getLocalDateValue()); }); + deserializerMap.put("status", (n) -> { this.setStatus(n.getEnumValue(CloudPcGalleryImageStatus::forValue)); }); + return deserializerMap; + } + /** + * Gets the offerName property value. The offer name of this gallery image that is passed to Azure Resource Manager (ARM) to retrieve the image resource. Read-only. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getOfferName() { + return this.backingStore.get("offerName"); + } + /** + * Gets the publisherName property value. The publisher name of this gallery image that is passed to Azure Resource Manager (ARM) to retrieve the image resource. Read-only. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getPublisherName() { + return this.backingStore.get("publisherName"); + } + /** + * Gets the sizeInGB property value. Indicates the size of this image in gigabytes. For example, 64. Read-only. + * @return a {@link Integer} + */ + @jakarta.annotation.Nullable + public Integer getSizeInGB() { + return this.backingStore.get("sizeInGB"); + } + /** + * Gets the skuName property value. The SKU name of this image that is passed to Azure Resource Manager (ARM) to retrieve the image resource. Read-only. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getSkuName() { + return this.backingStore.get("skuName"); + } + /** + * Gets the startDate property value. The date when the Cloud PC image is available for provisioning new Cloud PCs. For example, 2022-09-20. Read-only. + * @return a {@link LocalDate} + */ + @jakarta.annotation.Nullable + public LocalDate getStartDate() { + return this.backingStore.get("startDate"); + } + /** + * Gets the status property value. The status of the gallery image on the Cloud PC. Possible values are: supported, supportedWithWarning, notSupported, unknownFutureValue. The default value is supported. Read-only. + * @return a {@link CloudPcGalleryImageStatus} + */ + @jakarta.annotation.Nullable + public CloudPcGalleryImageStatus getStatus() { + return this.backingStore.get("status"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + super.serialize(writer); + writer.writeStringValue("displayName", this.getDisplayName()); + writer.writeLocalDateValue("endDate", this.getEndDate()); + writer.writeLocalDateValue("expirationDate", this.getExpirationDate()); + writer.writeStringValue("offerName", this.getOfferName()); + writer.writeStringValue("publisherName", this.getPublisherName()); + writer.writeIntegerValue("sizeInGB", this.getSizeInGB()); + writer.writeStringValue("skuName", this.getSkuName()); + writer.writeLocalDateValue("startDate", this.getStartDate()); + writer.writeEnumValue("status", this.getStatus()); + } + /** + * Sets the displayName property value. The display name of this gallery image. For example, Windows 11 Enterprise + Microsoft 365 Apps 22H2. Read-only. + * @param value Value to set for the displayName property. + */ + public void setDisplayName(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("displayName", value); + } + /** + * Sets the endDate property value. The date when the status of the image becomes supportedWithWarning. Users can still provision new Cloud PCs if the current time is later than endDate and earlier than expirationDate. For example, assume the endDate of a gallery image is 2023-9-14 and expirationDate is 2024-3-14, users are able to provision new Cloud PCs if today is 2023-10-01. Read-only. + * @param value Value to set for the endDate property. + */ + public void setEndDate(@jakarta.annotation.Nullable final LocalDate value) { + this.backingStore.set("endDate", value); + } + /** + * Sets the expirationDate property value. The date when the image is no longer available. Users are unable to provision new Cloud PCs if the current time is later than expirationDate. The value is usually endDate plus six months. For example, if the startDate is 2025-10-14, the expirationDate is usually 2026-04-14. Read-only. + * @param value Value to set for the expirationDate property. + */ + public void setExpirationDate(@jakarta.annotation.Nullable final LocalDate value) { + this.backingStore.set("expirationDate", value); + } + /** + * Sets the offerName property value. The offer name of this gallery image that is passed to Azure Resource Manager (ARM) to retrieve the image resource. Read-only. + * @param value Value to set for the offerName property. + */ + public void setOfferName(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("offerName", value); + } + /** + * Sets the publisherName property value. The publisher name of this gallery image that is passed to Azure Resource Manager (ARM) to retrieve the image resource. Read-only. + * @param value Value to set for the publisherName property. + */ + public void setPublisherName(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("publisherName", value); + } + /** + * Sets the sizeInGB property value. Indicates the size of this image in gigabytes. For example, 64. Read-only. + * @param value Value to set for the sizeInGB property. + */ + public void setSizeInGB(@jakarta.annotation.Nullable final Integer value) { + this.backingStore.set("sizeInGB", value); + } + /** + * Sets the skuName property value. The SKU name of this image that is passed to Azure Resource Manager (ARM) to retrieve the image resource. Read-only. + * @param value Value to set for the skuName property. + */ + public void setSkuName(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("skuName", value); + } + /** + * Sets the startDate property value. The date when the Cloud PC image is available for provisioning new Cloud PCs. For example, 2022-09-20. Read-only. + * @param value Value to set for the startDate property. + */ + public void setStartDate(@jakarta.annotation.Nullable final LocalDate value) { + this.backingStore.set("startDate", value); + } + /** + * Sets the status property value. The status of the gallery image on the Cloud PC. Possible values are: supported, supportedWithWarning, notSupported, unknownFutureValue. The default value is supported. Read-only. + * @param value Value to set for the status property. + */ + public void setStatus(@jakarta.annotation.Nullable final CloudPcGalleryImageStatus value) { + this.backingStore.set("status", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/CloudPcGalleryImageCollectionResponse.java b/src/main/java/com/microsoft/graph/generated/models/CloudPcGalleryImageCollectionResponse.java new file mode 100644 index 00000000000..ea12123675f --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/CloudPcGalleryImageCollectionResponse.java @@ -0,0 +1,61 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CloudPcGalleryImageCollectionResponse extends BaseCollectionPaginationCountResponse implements Parsable { + /** + * Instantiates a new {@link CloudPcGalleryImageCollectionResponse} and sets the default values. + */ + public CloudPcGalleryImageCollectionResponse() { + super(); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link CloudPcGalleryImageCollectionResponse} + */ + @jakarta.annotation.Nonnull + public static CloudPcGalleryImageCollectionResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new CloudPcGalleryImageCollectionResponse(); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("value", (n) -> { this.setValue(n.getCollectionOfObjectValues(CloudPcGalleryImage::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the value property value. The value property + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getValue() { + return this.backingStore.get("value"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + super.serialize(writer); + writer.writeCollectionOfObjectValues("value", this.getValue()); + } + /** + * Sets the value property value. The value property + * @param value Value to set for the value property. + */ + public void setValue(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("value", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/CloudPcGalleryImageStatus.java b/src/main/java/com/microsoft/graph/generated/models/CloudPcGalleryImageStatus.java new file mode 100644 index 00000000000..078a19ffde1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/CloudPcGalleryImageStatus.java @@ -0,0 +1,29 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.ValuedEnum; +import java.util.Objects; + +@jakarta.annotation.Generated("com.microsoft.kiota") +public enum CloudPcGalleryImageStatus implements ValuedEnum { + Supported("supported"), + SupportedWithWarning("supportedWithWarning"), + NotSupported("notSupported"), + UnknownFutureValue("unknownFutureValue"); + public final String value; + CloudPcGalleryImageStatus(final String value) { + this.value = value; + } + @jakarta.annotation.Nonnull + public String getValue() { return this.value; } + @jakarta.annotation.Nullable + public static CloudPcGalleryImageStatus forValue(@jakarta.annotation.Nonnull final String searchValue) { + Objects.requireNonNull(searchValue); + switch(searchValue) { + case "supported": return Supported; + case "supportedWithWarning": return SupportedWithWarning; + case "notSupported": return NotSupported; + case "unknownFutureValue": return UnknownFutureValue; + default: return null; + } + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/CloudPcManagementAssignmentTarget.java b/src/main/java/com/microsoft/graph/generated/models/CloudPcManagementAssignmentTarget.java new file mode 100644 index 00000000000..33e489ceb4f --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/CloudPcManagementAssignmentTarget.java @@ -0,0 +1,114 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.AdditionalDataHolder; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import com.microsoft.kiota.store.BackedModel; +import com.microsoft.kiota.store.BackingStore; +import com.microsoft.kiota.store.BackingStoreFactorySingleton; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CloudPcManagementAssignmentTarget implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link CloudPcManagementAssignmentTarget} and sets the default values. + */ + public CloudPcManagementAssignmentTarget() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link CloudPcManagementAssignmentTarget} + */ + @jakarta.annotation.Nonnull + public static CloudPcManagementAssignmentTarget createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + final ParseNode mappingValueNode = parseNode.getChildNode("@odata.type"); + if (mappingValueNode != null) { + final String mappingValue = mappingValueNode.getStringValue(); + switch (mappingValue) { + case "#microsoft.graph.cloudPcManagementGroupAssignmentTarget": return new CloudPcManagementGroupAssignmentTarget(); + } + } + return new CloudPcManagementAssignmentTarget(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(1); + deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); }); + return deserializerMap; + } + /** + * Gets the @odata.type property value. The OdataType property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getOdataType() { + return this.backingStore.get("odataType"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + writer.writeStringValue("@odata.type", this.getOdataType()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { + this.backingStore.set("additionalData", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @param value Value to set for the backingStore property. + */ + public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { + Objects.requireNonNull(value); + this.backingStore = value; + } + /** + * Sets the @odata.type property value. The OdataType property + * @param value Value to set for the @odata.type property. + */ + public void setOdataType(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("odataType", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/CloudPcManagementGroupAssignmentTarget.java b/src/main/java/com/microsoft/graph/generated/models/CloudPcManagementGroupAssignmentTarget.java new file mode 100644 index 00000000000..d4a765da14a --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/CloudPcManagementGroupAssignmentTarget.java @@ -0,0 +1,79 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CloudPcManagementGroupAssignmentTarget extends CloudPcManagementAssignmentTarget implements Parsable { + /** + * Instantiates a new {@link CloudPcManagementGroupAssignmentTarget} and sets the default values. + */ + public CloudPcManagementGroupAssignmentTarget() { + super(); + this.setOdataType("#microsoft.graph.cloudPcManagementGroupAssignmentTarget"); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link CloudPcManagementGroupAssignmentTarget} + */ + @jakarta.annotation.Nonnull + public static CloudPcManagementGroupAssignmentTarget createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new CloudPcManagementGroupAssignmentTarget(); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("groupId", (n) -> { this.setGroupId(n.getStringValue()); }); + deserializerMap.put("servicePlanId", (n) -> { this.setServicePlanId(n.getStringValue()); }); + return deserializerMap; + } + /** + * Gets the groupId property value. The ID of the target group for the assignment. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getGroupId() { + return this.backingStore.get("groupId"); + } + /** + * Gets the servicePlanId property value. The unique identifier for the service plan that indicates which size of the Cloud PC to provision for the user. Use a null value, when the provisioningType is dedicated. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getServicePlanId() { + return this.backingStore.get("servicePlanId"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + super.serialize(writer); + writer.writeStringValue("groupId", this.getGroupId()); + writer.writeStringValue("servicePlanId", this.getServicePlanId()); + } + /** + * Sets the groupId property value. The ID of the target group for the assignment. + * @param value Value to set for the groupId property. + */ + public void setGroupId(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("groupId", value); + } + /** + * Sets the servicePlanId property value. The unique identifier for the service plan that indicates which size of the Cloud PC to provision for the user. Use a null value, when the provisioningType is dedicated. + * @param value Value to set for the servicePlanId property. + */ + public void setServicePlanId(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("servicePlanId", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/CloudPcOnPremisesConnection.java b/src/main/java/com/microsoft/graph/generated/models/CloudPcOnPremisesConnection.java new file mode 100644 index 00000000000..8d69794b21c --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/CloudPcOnPremisesConnection.java @@ -0,0 +1,316 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CloudPcOnPremisesConnection extends Entity implements Parsable { + /** + * Instantiates a new {@link CloudPcOnPremisesConnection} and sets the default values. + */ + public CloudPcOnPremisesConnection() { + super(); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link CloudPcOnPremisesConnection} + */ + @jakarta.annotation.Nonnull + public static CloudPcOnPremisesConnection createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new CloudPcOnPremisesConnection(); + } + /** + * Gets the adDomainName property value. The fully qualified domain name (FQDN) of the Active Directory domain you want to join. Maximum length is 255. Optional. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getAdDomainName() { + return this.backingStore.get("adDomainName"); + } + /** + * Gets the adDomainPassword property value. The password associated with the username of an Active Directory account (adDomainUsername). + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getAdDomainPassword() { + return this.backingStore.get("adDomainPassword"); + } + /** + * Gets the adDomainUsername property value. The username of an Active Directory account (user or service account) that has permission to create computer objects in Active Directory. Required format: admin@contoso.com. Optional. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getAdDomainUsername() { + return this.backingStore.get("adDomainUsername"); + } + /** + * Gets the alternateResourceUrl property value. The interface URL of the partner service's resource that links to this Azure network connection. Returned only on $select. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getAlternateResourceUrl() { + return this.backingStore.get("alternateResourceUrl"); + } + /** + * Gets the connectionType property value. Specifies how the provisioned Cloud PC joins to Microsoft Entra. It includes different types, one is Microsoft Entra ID join, which means there's no on-premises Active Directory (AD) in the current tenant, and the Cloud PC device is joined by Microsoft Entra. Another one is hybridAzureADJoin, which means there's also an on-premises Active Directory (AD) in the current tenant and the Cloud PC device joins to on-premises Active Directory (AD) and Microsoft Entra. The type also determines which types of users can be assigned and can sign into a Cloud PC. The azureADJoin type indicates that cloud-only and hybrid users can be assigned and signed into the Cloud PC. hybridAzureADJoin indicates only hybrid users can be assigned and signed into the Cloud PC. The default value is hybridAzureADJoin. + * @return a {@link CloudPcOnPremisesConnectionType} + */ + @jakarta.annotation.Nullable + public CloudPcOnPremisesConnectionType getConnectionType() { + return this.backingStore.get("connectionType"); + } + /** + * Gets the displayName property value. The display name for the Azure network connection. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getDisplayName() { + return this.backingStore.get("displayName"); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("adDomainName", (n) -> { this.setAdDomainName(n.getStringValue()); }); + deserializerMap.put("adDomainPassword", (n) -> { this.setAdDomainPassword(n.getStringValue()); }); + deserializerMap.put("adDomainUsername", (n) -> { this.setAdDomainUsername(n.getStringValue()); }); + deserializerMap.put("alternateResourceUrl", (n) -> { this.setAlternateResourceUrl(n.getStringValue()); }); + deserializerMap.put("connectionType", (n) -> { this.setConnectionType(n.getEnumValue(CloudPcOnPremisesConnectionType::forValue)); }); + deserializerMap.put("displayName", (n) -> { this.setDisplayName(n.getStringValue()); }); + deserializerMap.put("healthCheckStatus", (n) -> { this.setHealthCheckStatus(n.getEnumValue(CloudPcOnPremisesConnectionStatus::forValue)); }); + deserializerMap.put("healthCheckStatusDetail", (n) -> { this.setHealthCheckStatusDetail(n.getObjectValue(CloudPcOnPremisesConnectionStatusDetail::createFromDiscriminatorValue)); }); + deserializerMap.put("inUse", (n) -> { this.setInUse(n.getBooleanValue()); }); + deserializerMap.put("organizationalUnit", (n) -> { this.setOrganizationalUnit(n.getStringValue()); }); + deserializerMap.put("resourceGroupId", (n) -> { this.setResourceGroupId(n.getStringValue()); }); + deserializerMap.put("subnetId", (n) -> { this.setSubnetId(n.getStringValue()); }); + deserializerMap.put("subscriptionId", (n) -> { this.setSubscriptionId(n.getStringValue()); }); + deserializerMap.put("subscriptionName", (n) -> { this.setSubscriptionName(n.getStringValue()); }); + deserializerMap.put("virtualNetworkId", (n) -> { this.setVirtualNetworkId(n.getStringValue()); }); + deserializerMap.put("virtualNetworkLocation", (n) -> { this.setVirtualNetworkLocation(n.getStringValue()); }); + return deserializerMap; + } + /** + * Gets the healthCheckStatus property value. The healthCheckStatus property + * @return a {@link CloudPcOnPremisesConnectionStatus} + */ + @jakarta.annotation.Nullable + public CloudPcOnPremisesConnectionStatus getHealthCheckStatus() { + return this.backingStore.get("healthCheckStatus"); + } + /** + * Gets the healthCheckStatusDetail property value. Indicates the results of health checks performed on the on-premises connection. Read-only. Returned only on $select. For an example that shows how to get the inUse property, see Example 2: Get the selected properties of an Azure network connection, including healthCheckStatusDetail. Read-only. + * @return a {@link CloudPcOnPremisesConnectionStatusDetail} + */ + @jakarta.annotation.Nullable + public CloudPcOnPremisesConnectionStatusDetail getHealthCheckStatusDetail() { + return this.backingStore.get("healthCheckStatusDetail"); + } + /** + * Gets the inUse property value. When true, the Azure network connection is in use. When false, the connection isn't in use. You can't delete a connection thats in use. Returned only on $select. For an example that shows how to get the inUse property, see Example 2: Get the selected properties of an Azure network connection, including healthCheckStatusDetail. Read-only. + * @return a {@link Boolean} + */ + @jakarta.annotation.Nullable + public Boolean getInUse() { + return this.backingStore.get("inUse"); + } + /** + * Gets the organizationalUnit property value. The organizational unit (OU) in which the computer account is created. If left null, the OU configured as the default (a well-known computer object container) in the tenant's Active Directory domain (OU) is used. Optional. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getOrganizationalUnit() { + return this.backingStore.get("organizationalUnit"); + } + /** + * Gets the resourceGroupId property value. The unique identifier of the target resource group used associated with the on-premises network connectivity for Cloud PCs. Required format: '/subscriptions/{subscription-id}/resourceGroups/{resourceGroupName}' + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getResourceGroupId() { + return this.backingStore.get("resourceGroupId"); + } + /** + * Gets the subnetId property value. The unique identifier of the target subnet used associated with the on-premises network connectivity for Cloud PCs. Required format: '/subscriptions/{subscription-id}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkId}/subnets/{subnetName}' + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getSubnetId() { + return this.backingStore.get("subnetId"); + } + /** + * Gets the subscriptionId property value. The unique identifier of the Azure subscription associated with the tenant. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getSubscriptionId() { + return this.backingStore.get("subscriptionId"); + } + /** + * Gets the subscriptionName property value. The name of the Azure subscription is used to create an Azure network connection. Read-only. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getSubscriptionName() { + return this.backingStore.get("subscriptionName"); + } + /** + * Gets the virtualNetworkId property value. The unique identifier of the target virtual network used associated with the on-premises network connectivity for Cloud PCs. Required format: '/subscriptions/{subscription-id}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}' + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getVirtualNetworkId() { + return this.backingStore.get("virtualNetworkId"); + } + /** + * Gets the virtualNetworkLocation property value. Indicates the resource location of the target virtual network. For example, the location can be eastus2, westeurope, etc. Read-only (computed value). + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getVirtualNetworkLocation() { + return this.backingStore.get("virtualNetworkLocation"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + super.serialize(writer); + writer.writeStringValue("adDomainName", this.getAdDomainName()); + writer.writeStringValue("adDomainPassword", this.getAdDomainPassword()); + writer.writeStringValue("adDomainUsername", this.getAdDomainUsername()); + writer.writeStringValue("alternateResourceUrl", this.getAlternateResourceUrl()); + writer.writeEnumValue("connectionType", this.getConnectionType()); + writer.writeStringValue("displayName", this.getDisplayName()); + writer.writeEnumValue("healthCheckStatus", this.getHealthCheckStatus()); + writer.writeObjectValue("healthCheckStatusDetail", this.getHealthCheckStatusDetail()); + writer.writeBooleanValue("inUse", this.getInUse()); + writer.writeStringValue("organizationalUnit", this.getOrganizationalUnit()); + writer.writeStringValue("resourceGroupId", this.getResourceGroupId()); + writer.writeStringValue("subnetId", this.getSubnetId()); + writer.writeStringValue("subscriptionId", this.getSubscriptionId()); + writer.writeStringValue("subscriptionName", this.getSubscriptionName()); + writer.writeStringValue("virtualNetworkId", this.getVirtualNetworkId()); + writer.writeStringValue("virtualNetworkLocation", this.getVirtualNetworkLocation()); + } + /** + * Sets the adDomainName property value. The fully qualified domain name (FQDN) of the Active Directory domain you want to join. Maximum length is 255. Optional. + * @param value Value to set for the adDomainName property. + */ + public void setAdDomainName(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("adDomainName", value); + } + /** + * Sets the adDomainPassword property value. The password associated with the username of an Active Directory account (adDomainUsername). + * @param value Value to set for the adDomainPassword property. + */ + public void setAdDomainPassword(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("adDomainPassword", value); + } + /** + * Sets the adDomainUsername property value. The username of an Active Directory account (user or service account) that has permission to create computer objects in Active Directory. Required format: admin@contoso.com. Optional. + * @param value Value to set for the adDomainUsername property. + */ + public void setAdDomainUsername(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("adDomainUsername", value); + } + /** + * Sets the alternateResourceUrl property value. The interface URL of the partner service's resource that links to this Azure network connection. Returned only on $select. + * @param value Value to set for the alternateResourceUrl property. + */ + public void setAlternateResourceUrl(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("alternateResourceUrl", value); + } + /** + * Sets the connectionType property value. Specifies how the provisioned Cloud PC joins to Microsoft Entra. It includes different types, one is Microsoft Entra ID join, which means there's no on-premises Active Directory (AD) in the current tenant, and the Cloud PC device is joined by Microsoft Entra. Another one is hybridAzureADJoin, which means there's also an on-premises Active Directory (AD) in the current tenant and the Cloud PC device joins to on-premises Active Directory (AD) and Microsoft Entra. The type also determines which types of users can be assigned and can sign into a Cloud PC. The azureADJoin type indicates that cloud-only and hybrid users can be assigned and signed into the Cloud PC. hybridAzureADJoin indicates only hybrid users can be assigned and signed into the Cloud PC. The default value is hybridAzureADJoin. + * @param value Value to set for the connectionType property. + */ + public void setConnectionType(@jakarta.annotation.Nullable final CloudPcOnPremisesConnectionType value) { + this.backingStore.set("connectionType", value); + } + /** + * Sets the displayName property value. The display name for the Azure network connection. + * @param value Value to set for the displayName property. + */ + public void setDisplayName(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("displayName", value); + } + /** + * Sets the healthCheckStatus property value. The healthCheckStatus property + * @param value Value to set for the healthCheckStatus property. + */ + public void setHealthCheckStatus(@jakarta.annotation.Nullable final CloudPcOnPremisesConnectionStatus value) { + this.backingStore.set("healthCheckStatus", value); + } + /** + * Sets the healthCheckStatusDetail property value. Indicates the results of health checks performed on the on-premises connection. Read-only. Returned only on $select. For an example that shows how to get the inUse property, see Example 2: Get the selected properties of an Azure network connection, including healthCheckStatusDetail. Read-only. + * @param value Value to set for the healthCheckStatusDetail property. + */ + public void setHealthCheckStatusDetail(@jakarta.annotation.Nullable final CloudPcOnPremisesConnectionStatusDetail value) { + this.backingStore.set("healthCheckStatusDetail", value); + } + /** + * Sets the inUse property value. When true, the Azure network connection is in use. When false, the connection isn't in use. You can't delete a connection thats in use. Returned only on $select. For an example that shows how to get the inUse property, see Example 2: Get the selected properties of an Azure network connection, including healthCheckStatusDetail. Read-only. + * @param value Value to set for the inUse property. + */ + public void setInUse(@jakarta.annotation.Nullable final Boolean value) { + this.backingStore.set("inUse", value); + } + /** + * Sets the organizationalUnit property value. The organizational unit (OU) in which the computer account is created. If left null, the OU configured as the default (a well-known computer object container) in the tenant's Active Directory domain (OU) is used. Optional. + * @param value Value to set for the organizationalUnit property. + */ + public void setOrganizationalUnit(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("organizationalUnit", value); + } + /** + * Sets the resourceGroupId property value. The unique identifier of the target resource group used associated with the on-premises network connectivity for Cloud PCs. Required format: '/subscriptions/{subscription-id}/resourceGroups/{resourceGroupName}' + * @param value Value to set for the resourceGroupId property. + */ + public void setResourceGroupId(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("resourceGroupId", value); + } + /** + * Sets the subnetId property value. The unique identifier of the target subnet used associated with the on-premises network connectivity for Cloud PCs. Required format: '/subscriptions/{subscription-id}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkId}/subnets/{subnetName}' + * @param value Value to set for the subnetId property. + */ + public void setSubnetId(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("subnetId", value); + } + /** + * Sets the subscriptionId property value. The unique identifier of the Azure subscription associated with the tenant. + * @param value Value to set for the subscriptionId property. + */ + public void setSubscriptionId(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("subscriptionId", value); + } + /** + * Sets the subscriptionName property value. The name of the Azure subscription is used to create an Azure network connection. Read-only. + * @param value Value to set for the subscriptionName property. + */ + public void setSubscriptionName(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("subscriptionName", value); + } + /** + * Sets the virtualNetworkId property value. The unique identifier of the target virtual network used associated with the on-premises network connectivity for Cloud PCs. Required format: '/subscriptions/{subscription-id}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}' + * @param value Value to set for the virtualNetworkId property. + */ + public void setVirtualNetworkId(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("virtualNetworkId", value); + } + /** + * Sets the virtualNetworkLocation property value. Indicates the resource location of the target virtual network. For example, the location can be eastus2, westeurope, etc. Read-only (computed value). + * @param value Value to set for the virtualNetworkLocation property. + */ + public void setVirtualNetworkLocation(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("virtualNetworkLocation", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/CloudPcOnPremisesConnectionCollectionResponse.java b/src/main/java/com/microsoft/graph/generated/models/CloudPcOnPremisesConnectionCollectionResponse.java new file mode 100644 index 00000000000..826460c2c68 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/CloudPcOnPremisesConnectionCollectionResponse.java @@ -0,0 +1,61 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CloudPcOnPremisesConnectionCollectionResponse extends BaseCollectionPaginationCountResponse implements Parsable { + /** + * Instantiates a new {@link CloudPcOnPremisesConnectionCollectionResponse} and sets the default values. + */ + public CloudPcOnPremisesConnectionCollectionResponse() { + super(); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link CloudPcOnPremisesConnectionCollectionResponse} + */ + @jakarta.annotation.Nonnull + public static CloudPcOnPremisesConnectionCollectionResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new CloudPcOnPremisesConnectionCollectionResponse(); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("value", (n) -> { this.setValue(n.getCollectionOfObjectValues(CloudPcOnPremisesConnection::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the value property value. The value property + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getValue() { + return this.backingStore.get("value"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + super.serialize(writer); + writer.writeCollectionOfObjectValues("value", this.getValue()); + } + /** + * Sets the value property value. The value property + * @param value Value to set for the value property. + */ + public void setValue(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("value", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/CloudPcOnPremisesConnectionHealthCheck.java b/src/main/java/com/microsoft/graph/generated/models/CloudPcOnPremisesConnectionHealthCheck.java new file mode 100644 index 00000000000..607fb7cf9c3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/CloudPcOnPremisesConnectionHealthCheck.java @@ -0,0 +1,244 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.AdditionalDataHolder; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import com.microsoft.kiota.store.BackedModel; +import com.microsoft.kiota.store.BackingStore; +import com.microsoft.kiota.store.BackingStoreFactorySingleton; +import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CloudPcOnPremisesConnectionHealthCheck implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link CloudPcOnPremisesConnectionHealthCheck} and sets the default values. + */ + public CloudPcOnPremisesConnectionHealthCheck() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link CloudPcOnPremisesConnectionHealthCheck} + */ + @jakarta.annotation.Nonnull + public static CloudPcOnPremisesConnectionHealthCheck createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new CloudPcOnPremisesConnectionHealthCheck(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the additionalDetail property value. Additional details about the health check or the recommended action. For exmaple, the string value can be download.microsoft.com:443;software-download.microsoft.com:443; Read-only. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getAdditionalDetail() { + return this.backingStore.get("additionalDetail"); + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * Gets the correlationId property value. The unique identifier of the health check item-related activities. This identifier can be useful in troubleshooting. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getCorrelationId() { + return this.backingStore.get("correlationId"); + } + /** + * Gets the displayName property value. The display name for this health check item. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getDisplayName() { + return this.backingStore.get("displayName"); + } + /** + * Gets the endDateTime property value. The value cannot be modified and is automatically populated when the health check ends. The Timestamp type represents date and time information using ISO 8601 format and is in Coordinated Universal Time (UTC). For example, midnight UTC on Jan 1, 2024 would look like this: '2024-01-01T00:00:00Z'. Returned by default. Read-only. + * @return a {@link OffsetDateTime} + */ + @jakarta.annotation.Nullable + public OffsetDateTime getEndDateTime() { + return this.backingStore.get("endDateTime"); + } + /** + * Gets the errorType property value. The type of error that occurred during this health check. Possible values are: endpointConnectivityCheckCloudPcUrlNotAllowListed, endpointConnectivityCheckWVDUrlNotAllowListed, etc. (The all possible values can refer to cloudPcOnPremisesConnectionHealthCheckErrorType) Read-Only. + * @return a {@link CloudPcOnPremisesConnectionHealthCheckErrorType} + */ + @jakarta.annotation.Nullable + public CloudPcOnPremisesConnectionHealthCheckErrorType getErrorType() { + return this.backingStore.get("errorType"); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(9); + deserializerMap.put("additionalDetail", (n) -> { this.setAdditionalDetail(n.getStringValue()); }); + deserializerMap.put("correlationId", (n) -> { this.setCorrelationId(n.getStringValue()); }); + deserializerMap.put("displayName", (n) -> { this.setDisplayName(n.getStringValue()); }); + deserializerMap.put("endDateTime", (n) -> { this.setEndDateTime(n.getOffsetDateTimeValue()); }); + deserializerMap.put("errorType", (n) -> { this.setErrorType(n.getEnumValue(CloudPcOnPremisesConnectionHealthCheckErrorType::forValue)); }); + deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); }); + deserializerMap.put("recommendedAction", (n) -> { this.setRecommendedAction(n.getStringValue()); }); + deserializerMap.put("startDateTime", (n) -> { this.setStartDateTime(n.getOffsetDateTimeValue()); }); + deserializerMap.put("status", (n) -> { this.setStatus(n.getEnumValue(CloudPcOnPremisesConnectionStatus::forValue)); }); + return deserializerMap; + } + /** + * Gets the @odata.type property value. The OdataType property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getOdataType() { + return this.backingStore.get("odataType"); + } + /** + * Gets the recommendedAction property value. The recommended action to fix the corresponding error. For example, The Active Directory domain join check failed because the password of the domain join user has expired. Read-Only. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getRecommendedAction() { + return this.backingStore.get("recommendedAction"); + } + /** + * Gets the startDateTime property value. The value cannot be modified and is automatically populated when the health check starts. The Timestamp type represents date and time information using ISO 8601 format and is in Coordinated Universal Time (UTC). For example, midnight UTC on Jan 1, 2024 would look like this: '2024-01-01T00:00:00Z'. Returned by default. Read-only. + * @return a {@link OffsetDateTime} + */ + @jakarta.annotation.Nullable + public OffsetDateTime getStartDateTime() { + return this.backingStore.get("startDateTime"); + } + /** + * Gets the status property value. The status property + * @return a {@link CloudPcOnPremisesConnectionStatus} + */ + @jakarta.annotation.Nullable + public CloudPcOnPremisesConnectionStatus getStatus() { + return this.backingStore.get("status"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + writer.writeStringValue("additionalDetail", this.getAdditionalDetail()); + writer.writeStringValue("correlationId", this.getCorrelationId()); + writer.writeStringValue("displayName", this.getDisplayName()); + writer.writeOffsetDateTimeValue("endDateTime", this.getEndDateTime()); + writer.writeEnumValue("errorType", this.getErrorType()); + writer.writeStringValue("@odata.type", this.getOdataType()); + writer.writeStringValue("recommendedAction", this.getRecommendedAction()); + writer.writeOffsetDateTimeValue("startDateTime", this.getStartDateTime()); + writer.writeEnumValue("status", this.getStatus()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { + this.backingStore.set("additionalData", value); + } + /** + * Sets the additionalDetail property value. Additional details about the health check or the recommended action. For exmaple, the string value can be download.microsoft.com:443;software-download.microsoft.com:443; Read-only. + * @param value Value to set for the additionalDetail property. + */ + public void setAdditionalDetail(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("additionalDetail", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @param value Value to set for the backingStore property. + */ + public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { + Objects.requireNonNull(value); + this.backingStore = value; + } + /** + * Sets the correlationId property value. The unique identifier of the health check item-related activities. This identifier can be useful in troubleshooting. + * @param value Value to set for the correlationId property. + */ + public void setCorrelationId(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("correlationId", value); + } + /** + * Sets the displayName property value. The display name for this health check item. + * @param value Value to set for the displayName property. + */ + public void setDisplayName(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("displayName", value); + } + /** + * Sets the endDateTime property value. The value cannot be modified and is automatically populated when the health check ends. The Timestamp type represents date and time information using ISO 8601 format and is in Coordinated Universal Time (UTC). For example, midnight UTC on Jan 1, 2024 would look like this: '2024-01-01T00:00:00Z'. Returned by default. Read-only. + * @param value Value to set for the endDateTime property. + */ + public void setEndDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) { + this.backingStore.set("endDateTime", value); + } + /** + * Sets the errorType property value. The type of error that occurred during this health check. Possible values are: endpointConnectivityCheckCloudPcUrlNotAllowListed, endpointConnectivityCheckWVDUrlNotAllowListed, etc. (The all possible values can refer to cloudPcOnPremisesConnectionHealthCheckErrorType) Read-Only. + * @param value Value to set for the errorType property. + */ + public void setErrorType(@jakarta.annotation.Nullable final CloudPcOnPremisesConnectionHealthCheckErrorType value) { + this.backingStore.set("errorType", value); + } + /** + * Sets the @odata.type property value. The OdataType property + * @param value Value to set for the @odata.type property. + */ + public void setOdataType(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("odataType", value); + } + /** + * Sets the recommendedAction property value. The recommended action to fix the corresponding error. For example, The Active Directory domain join check failed because the password of the domain join user has expired. Read-Only. + * @param value Value to set for the recommendedAction property. + */ + public void setRecommendedAction(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("recommendedAction", value); + } + /** + * Sets the startDateTime property value. The value cannot be modified and is automatically populated when the health check starts. The Timestamp type represents date and time information using ISO 8601 format and is in Coordinated Universal Time (UTC). For example, midnight UTC on Jan 1, 2024 would look like this: '2024-01-01T00:00:00Z'. Returned by default. Read-only. + * @param value Value to set for the startDateTime property. + */ + public void setStartDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) { + this.backingStore.set("startDateTime", value); + } + /** + * Sets the status property value. The status property + * @param value Value to set for the status property. + */ + public void setStatus(@jakarta.annotation.Nullable final CloudPcOnPremisesConnectionStatus value) { + this.backingStore.set("status", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/CloudPcOnPremisesConnectionHealthCheckErrorType.java b/src/main/java/com/microsoft/graph/generated/models/CloudPcOnPremisesConnectionHealthCheckErrorType.java new file mode 100644 index 00000000000..236c8048ca7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/CloudPcOnPremisesConnectionHealthCheckErrorType.java @@ -0,0 +1,157 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.ValuedEnum; +import java.util.Objects; + +@jakarta.annotation.Generated("com.microsoft.kiota") +public enum CloudPcOnPremisesConnectionHealthCheckErrorType implements ValuedEnum { + DnsCheckFqdnNotFound("dnsCheckFqdnNotFound"), + DnsCheckNameWithInvalidCharacter("dnsCheckNameWithInvalidCharacter"), + DnsCheckUnknownError("dnsCheckUnknownError"), + AdJoinCheckFqdnNotFound("adJoinCheckFqdnNotFound"), + AdJoinCheckIncorrectCredentials("adJoinCheckIncorrectCredentials"), + AdJoinCheckOrganizationalUnitNotFound("adJoinCheckOrganizationalUnitNotFound"), + AdJoinCheckOrganizationalUnitIncorrectFormat("adJoinCheckOrganizationalUnitIncorrectFormat"), + AdJoinCheckComputerObjectAlreadyExists("adJoinCheckComputerObjectAlreadyExists"), + AdJoinCheckAccessDenied("adJoinCheckAccessDenied"), + AdJoinCheckCredentialsExpired("adJoinCheckCredentialsExpired"), + AdJoinCheckAccountLockedOrDisabled("adJoinCheckAccountLockedOrDisabled"), + AdJoinCheckAccountQuotaExceeded("adJoinCheckAccountQuotaExceeded"), + AdJoinCheckServerNotOperational("adJoinCheckServerNotOperational"), + AdJoinCheckUnknownError("adJoinCheckUnknownError"), + EndpointConnectivityCheckCloudPcUrlNotAllowListed("endpointConnectivityCheckCloudPcUrlNotAllowListed"), + EndpointConnectivityCheckWVDUrlNotAllowListed("endpointConnectivityCheckWVDUrlNotAllowListed"), + EndpointConnectivityCheckIntuneUrlNotAllowListed("endpointConnectivityCheckIntuneUrlNotAllowListed"), + EndpointConnectivityCheckAzureADUrlNotAllowListed("endpointConnectivityCheckAzureADUrlNotAllowListed"), + EndpointConnectivityCheckLocaleUrlNotAllowListed("endpointConnectivityCheckLocaleUrlNotAllowListed"), + EndpointConnectivityCheckUnknownError("endpointConnectivityCheckUnknownError"), + AzureAdDeviceSyncCheckDeviceNotFound("azureAdDeviceSyncCheckDeviceNotFound"), + AzureAdDeviceSyncCheckLongSyncCircle("azureAdDeviceSyncCheckLongSyncCircle"), + AzureAdDeviceSyncCheckConnectDisabled("azureAdDeviceSyncCheckConnectDisabled"), + AzureAdDeviceSyncCheckDurationExceeded("azureAdDeviceSyncCheckDurationExceeded"), + AzureAdDeviceSyncCheckScpNotConfigured("azureAdDeviceSyncCheckScpNotConfigured"), + AzureAdDeviceSyncCheckTransientServiceError("azureAdDeviceSyncCheckTransientServiceError"), + AzureAdDeviceSyncCheckUnknownError("azureAdDeviceSyncCheckUnknownError"), + ResourceAvailabilityCheckNoSubnetIP("resourceAvailabilityCheckNoSubnetIP"), + ResourceAvailabilityCheckSubscriptionDisabled("resourceAvailabilityCheckSubscriptionDisabled"), + ResourceAvailabilityCheckAzurePolicyViolation("resourceAvailabilityCheckAzurePolicyViolation"), + ResourceAvailabilityCheckSubscriptionNotFound("resourceAvailabilityCheckSubscriptionNotFound"), + ResourceAvailabilityCheckSubscriptionTransferred("resourceAvailabilityCheckSubscriptionTransferred"), + ResourceAvailabilityCheckGeneralSubscriptionError("resourceAvailabilityCheckGeneralSubscriptionError"), + ResourceAvailabilityCheckUnsupportedVNetRegion("resourceAvailabilityCheckUnsupportedVNetRegion"), + ResourceAvailabilityCheckResourceGroupInvalid("resourceAvailabilityCheckResourceGroupInvalid"), + ResourceAvailabilityCheckVNetInvalid("resourceAvailabilityCheckVNetInvalid"), + ResourceAvailabilityCheckSubnetInvalid("resourceAvailabilityCheckSubnetInvalid"), + ResourceAvailabilityCheckResourceGroupBeingDeleted("resourceAvailabilityCheckResourceGroupBeingDeleted"), + ResourceAvailabilityCheckVNetBeingMoved("resourceAvailabilityCheckVNetBeingMoved"), + ResourceAvailabilityCheckSubnetDelegationFailed("resourceAvailabilityCheckSubnetDelegationFailed"), + ResourceAvailabilityCheckSubnetWithExternalResources("resourceAvailabilityCheckSubnetWithExternalResources"), + ResourceAvailabilityCheckResourceGroupLockedForReadonly("resourceAvailabilityCheckResourceGroupLockedForReadonly"), + ResourceAvailabilityCheckResourceGroupLockedForDelete("resourceAvailabilityCheckResourceGroupLockedForDelete"), + ResourceAvailabilityCheckNoIntuneReaderRoleError("resourceAvailabilityCheckNoIntuneReaderRoleError"), + ResourceAvailabilityCheckIntuneDefaultWindowsRestrictionViolation("resourceAvailabilityCheckIntuneDefaultWindowsRestrictionViolation"), + ResourceAvailabilityCheckIntuneCustomWindowsRestrictionViolation("resourceAvailabilityCheckIntuneCustomWindowsRestrictionViolation"), + ResourceAvailabilityCheckDeploymentQuotaLimitReached("resourceAvailabilityCheckDeploymentQuotaLimitReached"), + ResourceAvailabilityCheckTransientServiceError("resourceAvailabilityCheckTransientServiceError"), + ResourceAvailabilityCheckUnknownError("resourceAvailabilityCheckUnknownError"), + PermissionCheckNoSubscriptionReaderRole("permissionCheckNoSubscriptionReaderRole"), + PermissionCheckNoResourceGroupOwnerRole("permissionCheckNoResourceGroupOwnerRole"), + PermissionCheckNoVNetContributorRole("permissionCheckNoVNetContributorRole"), + PermissionCheckNoResourceGroupNetworkContributorRole("permissionCheckNoResourceGroupNetworkContributorRole"), + PermissionCheckNoWindows365NetworkUserRole("permissionCheckNoWindows365NetworkUserRole"), + PermissionCheckNoWindows365NetworkInterfaceContributorRole("permissionCheckNoWindows365NetworkInterfaceContributorRole"), + PermissionCheckTransientServiceError("permissionCheckTransientServiceError"), + PermissionCheckUnknownError("permissionCheckUnknownError"), + UdpConnectivityCheckStunUrlNotAllowListed("udpConnectivityCheckStunUrlNotAllowListed"), + UdpConnectivityCheckTurnUrlNotAllowListed("udpConnectivityCheckTurnUrlNotAllowListed"), + UdpConnectivityCheckUrlsNotAllowListed("udpConnectivityCheckUrlsNotAllowListed"), + UdpConnectivityCheckUnknownError("udpConnectivityCheckUnknownError"), + InternalServerErrorDeploymentCanceled("internalServerErrorDeploymentCanceled"), + InternalServerErrorAllocateResourceFailed("internalServerErrorAllocateResourceFailed"), + InternalServerErrorVMDeploymentTimeout("internalServerErrorVMDeploymentTimeout"), + InternalServerErrorUnableToRunDscScript("internalServerErrorUnableToRunDscScript"), + SsoCheckKerberosConfigurationError("ssoCheckKerberosConfigurationError"), + InternalServerUnknownError("internalServerUnknownError"), + UnknownFutureValue("unknownFutureValue"); + public final String value; + CloudPcOnPremisesConnectionHealthCheckErrorType(final String value) { + this.value = value; + } + @jakarta.annotation.Nonnull + public String getValue() { return this.value; } + @jakarta.annotation.Nullable + public static CloudPcOnPremisesConnectionHealthCheckErrorType forValue(@jakarta.annotation.Nonnull final String searchValue) { + Objects.requireNonNull(searchValue); + switch(searchValue) { + case "dnsCheckFqdnNotFound": return DnsCheckFqdnNotFound; + case "dnsCheckNameWithInvalidCharacter": return DnsCheckNameWithInvalidCharacter; + case "dnsCheckUnknownError": return DnsCheckUnknownError; + case "adJoinCheckFqdnNotFound": return AdJoinCheckFqdnNotFound; + case "adJoinCheckIncorrectCredentials": return AdJoinCheckIncorrectCredentials; + case "adJoinCheckOrganizationalUnitNotFound": return AdJoinCheckOrganizationalUnitNotFound; + case "adJoinCheckOrganizationalUnitIncorrectFormat": return AdJoinCheckOrganizationalUnitIncorrectFormat; + case "adJoinCheckComputerObjectAlreadyExists": return AdJoinCheckComputerObjectAlreadyExists; + case "adJoinCheckAccessDenied": return AdJoinCheckAccessDenied; + case "adJoinCheckCredentialsExpired": return AdJoinCheckCredentialsExpired; + case "adJoinCheckAccountLockedOrDisabled": return AdJoinCheckAccountLockedOrDisabled; + case "adJoinCheckAccountQuotaExceeded": return AdJoinCheckAccountQuotaExceeded; + case "adJoinCheckServerNotOperational": return AdJoinCheckServerNotOperational; + case "adJoinCheckUnknownError": return AdJoinCheckUnknownError; + case "endpointConnectivityCheckCloudPcUrlNotAllowListed": return EndpointConnectivityCheckCloudPcUrlNotAllowListed; + case "endpointConnectivityCheckWVDUrlNotAllowListed": return EndpointConnectivityCheckWVDUrlNotAllowListed; + case "endpointConnectivityCheckIntuneUrlNotAllowListed": return EndpointConnectivityCheckIntuneUrlNotAllowListed; + case "endpointConnectivityCheckAzureADUrlNotAllowListed": return EndpointConnectivityCheckAzureADUrlNotAllowListed; + case "endpointConnectivityCheckLocaleUrlNotAllowListed": return EndpointConnectivityCheckLocaleUrlNotAllowListed; + case "endpointConnectivityCheckUnknownError": return EndpointConnectivityCheckUnknownError; + case "azureAdDeviceSyncCheckDeviceNotFound": return AzureAdDeviceSyncCheckDeviceNotFound; + case "azureAdDeviceSyncCheckLongSyncCircle": return AzureAdDeviceSyncCheckLongSyncCircle; + case "azureAdDeviceSyncCheckConnectDisabled": return AzureAdDeviceSyncCheckConnectDisabled; + case "azureAdDeviceSyncCheckDurationExceeded": return AzureAdDeviceSyncCheckDurationExceeded; + case "azureAdDeviceSyncCheckScpNotConfigured": return AzureAdDeviceSyncCheckScpNotConfigured; + case "azureAdDeviceSyncCheckTransientServiceError": return AzureAdDeviceSyncCheckTransientServiceError; + case "azureAdDeviceSyncCheckUnknownError": return AzureAdDeviceSyncCheckUnknownError; + case "resourceAvailabilityCheckNoSubnetIP": return ResourceAvailabilityCheckNoSubnetIP; + case "resourceAvailabilityCheckSubscriptionDisabled": return ResourceAvailabilityCheckSubscriptionDisabled; + case "resourceAvailabilityCheckAzurePolicyViolation": return ResourceAvailabilityCheckAzurePolicyViolation; + case "resourceAvailabilityCheckSubscriptionNotFound": return ResourceAvailabilityCheckSubscriptionNotFound; + case "resourceAvailabilityCheckSubscriptionTransferred": return ResourceAvailabilityCheckSubscriptionTransferred; + case "resourceAvailabilityCheckGeneralSubscriptionError": return ResourceAvailabilityCheckGeneralSubscriptionError; + case "resourceAvailabilityCheckUnsupportedVNetRegion": return ResourceAvailabilityCheckUnsupportedVNetRegion; + case "resourceAvailabilityCheckResourceGroupInvalid": return ResourceAvailabilityCheckResourceGroupInvalid; + case "resourceAvailabilityCheckVNetInvalid": return ResourceAvailabilityCheckVNetInvalid; + case "resourceAvailabilityCheckSubnetInvalid": return ResourceAvailabilityCheckSubnetInvalid; + case "resourceAvailabilityCheckResourceGroupBeingDeleted": return ResourceAvailabilityCheckResourceGroupBeingDeleted; + case "resourceAvailabilityCheckVNetBeingMoved": return ResourceAvailabilityCheckVNetBeingMoved; + case "resourceAvailabilityCheckSubnetDelegationFailed": return ResourceAvailabilityCheckSubnetDelegationFailed; + case "resourceAvailabilityCheckSubnetWithExternalResources": return ResourceAvailabilityCheckSubnetWithExternalResources; + case "resourceAvailabilityCheckResourceGroupLockedForReadonly": return ResourceAvailabilityCheckResourceGroupLockedForReadonly; + case "resourceAvailabilityCheckResourceGroupLockedForDelete": return ResourceAvailabilityCheckResourceGroupLockedForDelete; + case "resourceAvailabilityCheckNoIntuneReaderRoleError": return ResourceAvailabilityCheckNoIntuneReaderRoleError; + case "resourceAvailabilityCheckIntuneDefaultWindowsRestrictionViolation": return ResourceAvailabilityCheckIntuneDefaultWindowsRestrictionViolation; + case "resourceAvailabilityCheckIntuneCustomWindowsRestrictionViolation": return ResourceAvailabilityCheckIntuneCustomWindowsRestrictionViolation; + case "resourceAvailabilityCheckDeploymentQuotaLimitReached": return ResourceAvailabilityCheckDeploymentQuotaLimitReached; + case "resourceAvailabilityCheckTransientServiceError": return ResourceAvailabilityCheckTransientServiceError; + case "resourceAvailabilityCheckUnknownError": return ResourceAvailabilityCheckUnknownError; + case "permissionCheckNoSubscriptionReaderRole": return PermissionCheckNoSubscriptionReaderRole; + case "permissionCheckNoResourceGroupOwnerRole": return PermissionCheckNoResourceGroupOwnerRole; + case "permissionCheckNoVNetContributorRole": return PermissionCheckNoVNetContributorRole; + case "permissionCheckNoResourceGroupNetworkContributorRole": return PermissionCheckNoResourceGroupNetworkContributorRole; + case "permissionCheckNoWindows365NetworkUserRole": return PermissionCheckNoWindows365NetworkUserRole; + case "permissionCheckNoWindows365NetworkInterfaceContributorRole": return PermissionCheckNoWindows365NetworkInterfaceContributorRole; + case "permissionCheckTransientServiceError": return PermissionCheckTransientServiceError; + case "permissionCheckUnknownError": return PermissionCheckUnknownError; + case "udpConnectivityCheckStunUrlNotAllowListed": return UdpConnectivityCheckStunUrlNotAllowListed; + case "udpConnectivityCheckTurnUrlNotAllowListed": return UdpConnectivityCheckTurnUrlNotAllowListed; + case "udpConnectivityCheckUrlsNotAllowListed": return UdpConnectivityCheckUrlsNotAllowListed; + case "udpConnectivityCheckUnknownError": return UdpConnectivityCheckUnknownError; + case "internalServerErrorDeploymentCanceled": return InternalServerErrorDeploymentCanceled; + case "internalServerErrorAllocateResourceFailed": return InternalServerErrorAllocateResourceFailed; + case "internalServerErrorVMDeploymentTimeout": return InternalServerErrorVMDeploymentTimeout; + case "internalServerErrorUnableToRunDscScript": return InternalServerErrorUnableToRunDscScript; + case "ssoCheckKerberosConfigurationError": return SsoCheckKerberosConfigurationError; + case "internalServerUnknownError": return InternalServerUnknownError; + case "unknownFutureValue": return UnknownFutureValue; + default: return null; + } + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/CloudPcOnPremisesConnectionStatus.java b/src/main/java/com/microsoft/graph/generated/models/CloudPcOnPremisesConnectionStatus.java new file mode 100644 index 00000000000..a7f5e9805d5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/CloudPcOnPremisesConnectionStatus.java @@ -0,0 +1,35 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.ValuedEnum; +import java.util.Objects; + +@jakarta.annotation.Generated("com.microsoft.kiota") +public enum CloudPcOnPremisesConnectionStatus implements ValuedEnum { + Pending("pending"), + Running("running"), + Passed("passed"), + Failed("failed"), + Warning("warning"), + Informational("informational"), + UnknownFutureValue("unknownFutureValue"); + public final String value; + CloudPcOnPremisesConnectionStatus(final String value) { + this.value = value; + } + @jakarta.annotation.Nonnull + public String getValue() { return this.value; } + @jakarta.annotation.Nullable + public static CloudPcOnPremisesConnectionStatus forValue(@jakarta.annotation.Nonnull final String searchValue) { + Objects.requireNonNull(searchValue); + switch(searchValue) { + case "pending": return Pending; + case "running": return Running; + case "passed": return Passed; + case "failed": return Failed; + case "warning": return Warning; + case "informational": return Informational; + case "unknownFutureValue": return UnknownFutureValue; + default: return null; + } + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/CloudPcOnPremisesConnectionStatusDetail.java b/src/main/java/com/microsoft/graph/generated/models/CloudPcOnPremisesConnectionStatusDetail.java new file mode 100644 index 00000000000..6a54710a33d --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/CloudPcOnPremisesConnectionStatusDetail.java @@ -0,0 +1,159 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.AdditionalDataHolder; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import com.microsoft.kiota.store.BackedModel; +import com.microsoft.kiota.store.BackingStore; +import com.microsoft.kiota.store.BackingStoreFactorySingleton; +import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CloudPcOnPremisesConnectionStatusDetail implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link CloudPcOnPremisesConnectionStatusDetail} and sets the default values. + */ + public CloudPcOnPremisesConnectionStatusDetail() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link CloudPcOnPremisesConnectionStatusDetail} + */ + @jakarta.annotation.Nonnull + public static CloudPcOnPremisesConnectionStatusDetail createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new CloudPcOnPremisesConnectionStatusDetail(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * Gets the endDateTime property value. The end time of the connection health check. The Timestamp is shown in ISO 8601 format and Coordinated Universal Time (UTC). For example, midnight UTC on Jan 1, 2014 appears as 2014-01-01T00:00:00Z. Read-Only. + * @return a {@link OffsetDateTime} + */ + @jakarta.annotation.Nullable + public OffsetDateTime getEndDateTime() { + return this.backingStore.get("endDateTime"); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(4); + deserializerMap.put("endDateTime", (n) -> { this.setEndDateTime(n.getOffsetDateTimeValue()); }); + deserializerMap.put("healthChecks", (n) -> { this.setHealthChecks(n.getCollectionOfObjectValues(CloudPcOnPremisesConnectionHealthCheck::createFromDiscriminatorValue)); }); + deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); }); + deserializerMap.put("startDateTime", (n) -> { this.setStartDateTime(n.getOffsetDateTimeValue()); }); + return deserializerMap; + } + /** + * Gets the healthChecks property value. A list of all checks that have been run on the connection. Read-Only. + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getHealthChecks() { + return this.backingStore.get("healthChecks"); + } + /** + * Gets the @odata.type property value. The OdataType property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getOdataType() { + return this.backingStore.get("odataType"); + } + /** + * Gets the startDateTime property value. The start time of the health check. The timestamp is shown in ISO 8601 format and Coordinated Universal Time (UTC). For example, midnight UTC on Jan 1, 2014 appear as 2014-01-01T00:00:00Z. Read-Only. + * @return a {@link OffsetDateTime} + */ + @jakarta.annotation.Nullable + public OffsetDateTime getStartDateTime() { + return this.backingStore.get("startDateTime"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + writer.writeOffsetDateTimeValue("endDateTime", this.getEndDateTime()); + writer.writeCollectionOfObjectValues("healthChecks", this.getHealthChecks()); + writer.writeStringValue("@odata.type", this.getOdataType()); + writer.writeOffsetDateTimeValue("startDateTime", this.getStartDateTime()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { + this.backingStore.set("additionalData", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @param value Value to set for the backingStore property. + */ + public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { + Objects.requireNonNull(value); + this.backingStore = value; + } + /** + * Sets the endDateTime property value. The end time of the connection health check. The Timestamp is shown in ISO 8601 format and Coordinated Universal Time (UTC). For example, midnight UTC on Jan 1, 2014 appears as 2014-01-01T00:00:00Z. Read-Only. + * @param value Value to set for the endDateTime property. + */ + public void setEndDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) { + this.backingStore.set("endDateTime", value); + } + /** + * Sets the healthChecks property value. A list of all checks that have been run on the connection. Read-Only. + * @param value Value to set for the healthChecks property. + */ + public void setHealthChecks(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("healthChecks", value); + } + /** + * Sets the @odata.type property value. The OdataType property + * @param value Value to set for the @odata.type property. + */ + public void setOdataType(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("odataType", value); + } + /** + * Sets the startDateTime property value. The start time of the health check. The timestamp is shown in ISO 8601 format and Coordinated Universal Time (UTC). For example, midnight UTC on Jan 1, 2014 appear as 2014-01-01T00:00:00Z. Read-Only. + * @param value Value to set for the startDateTime property. + */ + public void setStartDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) { + this.backingStore.set("startDateTime", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/CloudPcOnPremisesConnectionType.java b/src/main/java/com/microsoft/graph/generated/models/CloudPcOnPremisesConnectionType.java new file mode 100644 index 00000000000..086174a37a4 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/CloudPcOnPremisesConnectionType.java @@ -0,0 +1,27 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.ValuedEnum; +import java.util.Objects; + +@jakarta.annotation.Generated("com.microsoft.kiota") +public enum CloudPcOnPremisesConnectionType implements ValuedEnum { + HybridAzureADJoin("hybridAzureADJoin"), + AzureADJoin("azureADJoin"), + UnknownFutureValue("unknownFutureValue"); + public final String value; + CloudPcOnPremisesConnectionType(final String value) { + this.value = value; + } + @jakarta.annotation.Nonnull + public String getValue() { return this.value; } + @jakarta.annotation.Nullable + public static CloudPcOnPremisesConnectionType forValue(@jakarta.annotation.Nonnull final String searchValue) { + Objects.requireNonNull(searchValue); + switch(searchValue) { + case "hybridAzureADJoin": return HybridAzureADJoin; + case "azureADJoin": return AzureADJoin; + case "unknownFutureValue": return UnknownFutureValue; + default: return null; + } + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/CloudPcProvisioningPolicy.java b/src/main/java/com/microsoft/graph/generated/models/CloudPcProvisioningPolicy.java new file mode 100644 index 00000000000..970adc9a125 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/CloudPcProvisioningPolicy.java @@ -0,0 +1,316 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CloudPcProvisioningPolicy extends Entity implements Parsable { + /** + * Instantiates a new {@link CloudPcProvisioningPolicy} and sets the default values. + */ + public CloudPcProvisioningPolicy() { + super(); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link CloudPcProvisioningPolicy} + */ + @jakarta.annotation.Nonnull + public static CloudPcProvisioningPolicy createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new CloudPcProvisioningPolicy(); + } + /** + * Gets the alternateResourceUrl property value. The URL of the alternate resource that links to this provisioning policy. Read-only. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getAlternateResourceUrl() { + return this.backingStore.get("alternateResourceUrl"); + } + /** + * Gets the assignments property value. A defined collection of provisioning policy assignments. Represents the set of Microsoft 365 groups and security groups in Microsoft Entra ID that have provisioning policy assigned. Returned only on $expand. For an example about how to get the assignments relationship, see Get cloudPcProvisioningPolicy. + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getAssignments() { + return this.backingStore.get("assignments"); + } + /** + * Gets the cloudPcGroupDisplayName property value. The display name of the Cloud PC group that the Cloud PCs reside in. Read-only. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getCloudPcGroupDisplayName() { + return this.backingStore.get("cloudPcGroupDisplayName"); + } + /** + * Gets the cloudPcNamingTemplate property value. The template used to name Cloud PCs provisioned using this policy. The template can contain custom text and replacement tokens, including %USERNAME:x% and %RAND:x%, which represent the user's name and a randomly generated number, respectively. For example, CPC-%USERNAME:4%-%RAND:5% means that the name of the Cloud PC starts with CPC-, followed by a four-character username, a - character, and then five random characters. The total length of the text generated by the template can't exceed 15 characters. Supports $filter, $select, and $orderby. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getCloudPcNamingTemplate() { + return this.backingStore.get("cloudPcNamingTemplate"); + } + /** + * Gets the description property value. The provisioning policy description. Supports $filter, $select, and $orderBy. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getDescription() { + return this.backingStore.get("description"); + } + /** + * Gets the displayName property value. The display name for the provisioning policy. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getDisplayName() { + return this.backingStore.get("displayName"); + } + /** + * Gets the domainJoinConfigurations property value. Specifies a list ordered by priority on how Cloud PCs join Microsoft Entra ID (Azure AD). Supports $select. + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getDomainJoinConfigurations() { + return this.backingStore.get("domainJoinConfigurations"); + } + /** + * Gets the enableSingleSignOn property value. True if the provisioned Cloud PC can be accessed by single sign-on. False indicates that the provisioned Cloud PC doesn't support this feature. The default value is false. Windows 365 users can use single sign-on to authenticate to Microsoft Entra ID with passwordless options (for example, FIDO keys) to access their Cloud PC. Optional. + * @return a {@link Boolean} + */ + @jakarta.annotation.Nullable + public Boolean getEnableSingleSignOn() { + return this.backingStore.get("enableSingleSignOn"); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("alternateResourceUrl", (n) -> { this.setAlternateResourceUrl(n.getStringValue()); }); + deserializerMap.put("assignments", (n) -> { this.setAssignments(n.getCollectionOfObjectValues(CloudPcProvisioningPolicyAssignment::createFromDiscriminatorValue)); }); + deserializerMap.put("cloudPcGroupDisplayName", (n) -> { this.setCloudPcGroupDisplayName(n.getStringValue()); }); + deserializerMap.put("cloudPcNamingTemplate", (n) -> { this.setCloudPcNamingTemplate(n.getStringValue()); }); + deserializerMap.put("description", (n) -> { this.setDescription(n.getStringValue()); }); + deserializerMap.put("displayName", (n) -> { this.setDisplayName(n.getStringValue()); }); + deserializerMap.put("domainJoinConfigurations", (n) -> { this.setDomainJoinConfigurations(n.getCollectionOfObjectValues(CloudPcDomainJoinConfiguration::createFromDiscriminatorValue)); }); + deserializerMap.put("enableSingleSignOn", (n) -> { this.setEnableSingleSignOn(n.getBooleanValue()); }); + deserializerMap.put("gracePeriodInHours", (n) -> { this.setGracePeriodInHours(n.getIntegerValue()); }); + deserializerMap.put("imageDisplayName", (n) -> { this.setImageDisplayName(n.getStringValue()); }); + deserializerMap.put("imageId", (n) -> { this.setImageId(n.getStringValue()); }); + deserializerMap.put("imageType", (n) -> { this.setImageType(n.getEnumValue(CloudPcProvisioningPolicyImageType::forValue)); }); + deserializerMap.put("localAdminEnabled", (n) -> { this.setLocalAdminEnabled(n.getBooleanValue()); }); + deserializerMap.put("microsoftManagedDesktop", (n) -> { this.setMicrosoftManagedDesktop(n.getObjectValue(MicrosoftManagedDesktop::createFromDiscriminatorValue)); }); + deserializerMap.put("provisioningType", (n) -> { this.setProvisioningType(n.getEnumValue(CloudPcProvisioningType::forValue)); }); + deserializerMap.put("windowsSetting", (n) -> { this.setWindowsSetting(n.getObjectValue(CloudPcWindowsSetting::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the gracePeriodInHours property value. The number of hours to wait before reprovisioning/deprovisioning happens. Read-only. + * @return a {@link Integer} + */ + @jakarta.annotation.Nullable + public Integer getGracePeriodInHours() { + return this.backingStore.get("gracePeriodInHours"); + } + /** + * Gets the imageDisplayName property value. The display name of the operating system image that is used for provisioning. For example, Windows 11 Preview + Microsoft 365 Apps 23H2 23H2. Supports $filter, $select, and $orderBy. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getImageDisplayName() { + return this.backingStore.get("imageDisplayName"); + } + /** + * Gets the imageId property value. The unique identifier that represents an operating system image that is used for provisioning new Cloud PCs. The format for a gallery type image is: {publisherNameofferNameskuName}. Supported values for each of the parameters are:publisher: Microsoftwindowsdesktop offer: windows-ent-cpc sku: 21h1-ent-cpc-m365, 21h1-ent-cpc-os, 20h2-ent-cpc-m365, 20h2-ent-cpc-os, 20h1-ent-cpc-m365, 20h1-ent-cpc-os, 19h2-ent-cpc-m365, and 19h2-ent-cpc-os Supports $filter, $select, and $orderBy. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getImageId() { + return this.backingStore.get("imageId"); + } + /** + * Gets the imageType property value. The imageType property + * @return a {@link CloudPcProvisioningPolicyImageType} + */ + @jakarta.annotation.Nullable + public CloudPcProvisioningPolicyImageType getImageType() { + return this.backingStore.get("imageType"); + } + /** + * Gets the localAdminEnabled property value. When true, the local admin is enabled for Cloud PCs; false indicates that the local admin isn't enabled for Cloud PCs. The default value is false. Supports $filter, $select, and $orderBy. + * @return a {@link Boolean} + */ + @jakarta.annotation.Nullable + public Boolean getLocalAdminEnabled() { + return this.backingStore.get("localAdminEnabled"); + } + /** + * Gets the microsoftManagedDesktop property value. The specific settings to microsoftManagedDesktop that enables Microsoft Managed Desktop customers to get device managed experience for Cloud PC. To enable microsoftManagedDesktop to provide more value, an admin needs to specify certain settings in it. Supports $filter, $select, and $orderBy. + * @return a {@link MicrosoftManagedDesktop} + */ + @jakarta.annotation.Nullable + public MicrosoftManagedDesktop getMicrosoftManagedDesktop() { + return this.backingStore.get("microsoftManagedDesktop"); + } + /** + * Gets the provisioningType property value. Specifies the type of license used when provisioning Cloud PCs using this policy. By default, the license type is dedicated if the provisioningType isn't specified when you create the cloudPcProvisioningPolicy. You can't change this property after the cloudPcProvisioningPolicy was created. Possible values are: dedicated, shared, unknownFutureValue. + * @return a {@link CloudPcProvisioningType} + */ + @jakarta.annotation.Nullable + public CloudPcProvisioningType getProvisioningType() { + return this.backingStore.get("provisioningType"); + } + /** + * Gets the windowsSetting property value. Indicates a specific Windows setting to configure during the creation of Cloud PCs for this provisioning policy. Supports $select. + * @return a {@link CloudPcWindowsSetting} + */ + @jakarta.annotation.Nullable + public CloudPcWindowsSetting getWindowsSetting() { + return this.backingStore.get("windowsSetting"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + super.serialize(writer); + writer.writeStringValue("alternateResourceUrl", this.getAlternateResourceUrl()); + writer.writeCollectionOfObjectValues("assignments", this.getAssignments()); + writer.writeStringValue("cloudPcGroupDisplayName", this.getCloudPcGroupDisplayName()); + writer.writeStringValue("cloudPcNamingTemplate", this.getCloudPcNamingTemplate()); + writer.writeStringValue("description", this.getDescription()); + writer.writeStringValue("displayName", this.getDisplayName()); + writer.writeCollectionOfObjectValues("domainJoinConfigurations", this.getDomainJoinConfigurations()); + writer.writeBooleanValue("enableSingleSignOn", this.getEnableSingleSignOn()); + writer.writeIntegerValue("gracePeriodInHours", this.getGracePeriodInHours()); + writer.writeStringValue("imageDisplayName", this.getImageDisplayName()); + writer.writeStringValue("imageId", this.getImageId()); + writer.writeEnumValue("imageType", this.getImageType()); + writer.writeBooleanValue("localAdminEnabled", this.getLocalAdminEnabled()); + writer.writeObjectValue("microsoftManagedDesktop", this.getMicrosoftManagedDesktop()); + writer.writeEnumValue("provisioningType", this.getProvisioningType()); + writer.writeObjectValue("windowsSetting", this.getWindowsSetting()); + } + /** + * Sets the alternateResourceUrl property value. The URL of the alternate resource that links to this provisioning policy. Read-only. + * @param value Value to set for the alternateResourceUrl property. + */ + public void setAlternateResourceUrl(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("alternateResourceUrl", value); + } + /** + * Sets the assignments property value. A defined collection of provisioning policy assignments. Represents the set of Microsoft 365 groups and security groups in Microsoft Entra ID that have provisioning policy assigned. Returned only on $expand. For an example about how to get the assignments relationship, see Get cloudPcProvisioningPolicy. + * @param value Value to set for the assignments property. + */ + public void setAssignments(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("assignments", value); + } + /** + * Sets the cloudPcGroupDisplayName property value. The display name of the Cloud PC group that the Cloud PCs reside in. Read-only. + * @param value Value to set for the cloudPcGroupDisplayName property. + */ + public void setCloudPcGroupDisplayName(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("cloudPcGroupDisplayName", value); + } + /** + * Sets the cloudPcNamingTemplate property value. The template used to name Cloud PCs provisioned using this policy. The template can contain custom text and replacement tokens, including %USERNAME:x% and %RAND:x%, which represent the user's name and a randomly generated number, respectively. For example, CPC-%USERNAME:4%-%RAND:5% means that the name of the Cloud PC starts with CPC-, followed by a four-character username, a - character, and then five random characters. The total length of the text generated by the template can't exceed 15 characters. Supports $filter, $select, and $orderby. + * @param value Value to set for the cloudPcNamingTemplate property. + */ + public void setCloudPcNamingTemplate(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("cloudPcNamingTemplate", value); + } + /** + * Sets the description property value. The provisioning policy description. Supports $filter, $select, and $orderBy. + * @param value Value to set for the description property. + */ + public void setDescription(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("description", value); + } + /** + * Sets the displayName property value. The display name for the provisioning policy. + * @param value Value to set for the displayName property. + */ + public void setDisplayName(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("displayName", value); + } + /** + * Sets the domainJoinConfigurations property value. Specifies a list ordered by priority on how Cloud PCs join Microsoft Entra ID (Azure AD). Supports $select. + * @param value Value to set for the domainJoinConfigurations property. + */ + public void setDomainJoinConfigurations(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("domainJoinConfigurations", value); + } + /** + * Sets the enableSingleSignOn property value. True if the provisioned Cloud PC can be accessed by single sign-on. False indicates that the provisioned Cloud PC doesn't support this feature. The default value is false. Windows 365 users can use single sign-on to authenticate to Microsoft Entra ID with passwordless options (for example, FIDO keys) to access their Cloud PC. Optional. + * @param value Value to set for the enableSingleSignOn property. + */ + public void setEnableSingleSignOn(@jakarta.annotation.Nullable final Boolean value) { + this.backingStore.set("enableSingleSignOn", value); + } + /** + * Sets the gracePeriodInHours property value. The number of hours to wait before reprovisioning/deprovisioning happens. Read-only. + * @param value Value to set for the gracePeriodInHours property. + */ + public void setGracePeriodInHours(@jakarta.annotation.Nullable final Integer value) { + this.backingStore.set("gracePeriodInHours", value); + } + /** + * Sets the imageDisplayName property value. The display name of the operating system image that is used for provisioning. For example, Windows 11 Preview + Microsoft 365 Apps 23H2 23H2. Supports $filter, $select, and $orderBy. + * @param value Value to set for the imageDisplayName property. + */ + public void setImageDisplayName(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("imageDisplayName", value); + } + /** + * Sets the imageId property value. The unique identifier that represents an operating system image that is used for provisioning new Cloud PCs. The format for a gallery type image is: {publisherNameofferNameskuName}. Supported values for each of the parameters are:publisher: Microsoftwindowsdesktop offer: windows-ent-cpc sku: 21h1-ent-cpc-m365, 21h1-ent-cpc-os, 20h2-ent-cpc-m365, 20h2-ent-cpc-os, 20h1-ent-cpc-m365, 20h1-ent-cpc-os, 19h2-ent-cpc-m365, and 19h2-ent-cpc-os Supports $filter, $select, and $orderBy. + * @param value Value to set for the imageId property. + */ + public void setImageId(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("imageId", value); + } + /** + * Sets the imageType property value. The imageType property + * @param value Value to set for the imageType property. + */ + public void setImageType(@jakarta.annotation.Nullable final CloudPcProvisioningPolicyImageType value) { + this.backingStore.set("imageType", value); + } + /** + * Sets the localAdminEnabled property value. When true, the local admin is enabled for Cloud PCs; false indicates that the local admin isn't enabled for Cloud PCs. The default value is false. Supports $filter, $select, and $orderBy. + * @param value Value to set for the localAdminEnabled property. + */ + public void setLocalAdminEnabled(@jakarta.annotation.Nullable final Boolean value) { + this.backingStore.set("localAdminEnabled", value); + } + /** + * Sets the microsoftManagedDesktop property value. The specific settings to microsoftManagedDesktop that enables Microsoft Managed Desktop customers to get device managed experience for Cloud PC. To enable microsoftManagedDesktop to provide more value, an admin needs to specify certain settings in it. Supports $filter, $select, and $orderBy. + * @param value Value to set for the microsoftManagedDesktop property. + */ + public void setMicrosoftManagedDesktop(@jakarta.annotation.Nullable final MicrosoftManagedDesktop value) { + this.backingStore.set("microsoftManagedDesktop", value); + } + /** + * Sets the provisioningType property value. Specifies the type of license used when provisioning Cloud PCs using this policy. By default, the license type is dedicated if the provisioningType isn't specified when you create the cloudPcProvisioningPolicy. You can't change this property after the cloudPcProvisioningPolicy was created. Possible values are: dedicated, shared, unknownFutureValue. + * @param value Value to set for the provisioningType property. + */ + public void setProvisioningType(@jakarta.annotation.Nullable final CloudPcProvisioningType value) { + this.backingStore.set("provisioningType", value); + } + /** + * Sets the windowsSetting property value. Indicates a specific Windows setting to configure during the creation of Cloud PCs for this provisioning policy. Supports $select. + * @param value Value to set for the windowsSetting property. + */ + public void setWindowsSetting(@jakarta.annotation.Nullable final CloudPcWindowsSetting value) { + this.backingStore.set("windowsSetting", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/CloudPcProvisioningPolicyAssignment.java b/src/main/java/com/microsoft/graph/generated/models/CloudPcProvisioningPolicyAssignment.java new file mode 100644 index 00000000000..e9600920537 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/CloudPcProvisioningPolicyAssignment.java @@ -0,0 +1,78 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CloudPcProvisioningPolicyAssignment extends Entity implements Parsable { + /** + * Instantiates a new {@link CloudPcProvisioningPolicyAssignment} and sets the default values. + */ + public CloudPcProvisioningPolicyAssignment() { + super(); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link CloudPcProvisioningPolicyAssignment} + */ + @jakarta.annotation.Nonnull + public static CloudPcProvisioningPolicyAssignment createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new CloudPcProvisioningPolicyAssignment(); + } + /** + * Gets the assignedUsers property value. The assignment targeted users for the provisioning policy. This list of users is computed based on assignments, licenses, group memberships, and policies. Read-only. Supports$expand. + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getAssignedUsers() { + return this.backingStore.get("assignedUsers"); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("assignedUsers", (n) -> { this.setAssignedUsers(n.getCollectionOfObjectValues(User::createFromDiscriminatorValue)); }); + deserializerMap.put("target", (n) -> { this.setTarget(n.getObjectValue(CloudPcManagementAssignmentTarget::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the target property value. The assignment target for the provisioning policy. Currently, the only target supported for this policy is a user group. For details, see cloudPcManagementGroupAssignmentTarget. + * @return a {@link CloudPcManagementAssignmentTarget} + */ + @jakarta.annotation.Nullable + public CloudPcManagementAssignmentTarget getTarget() { + return this.backingStore.get("target"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + super.serialize(writer); + writer.writeCollectionOfObjectValues("assignedUsers", this.getAssignedUsers()); + writer.writeObjectValue("target", this.getTarget()); + } + /** + * Sets the assignedUsers property value. The assignment targeted users for the provisioning policy. This list of users is computed based on assignments, licenses, group memberships, and policies. Read-only. Supports$expand. + * @param value Value to set for the assignedUsers property. + */ + public void setAssignedUsers(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("assignedUsers", value); + } + /** + * Sets the target property value. The assignment target for the provisioning policy. Currently, the only target supported for this policy is a user group. For details, see cloudPcManagementGroupAssignmentTarget. + * @param value Value to set for the target property. + */ + public void setTarget(@jakarta.annotation.Nullable final CloudPcManagementAssignmentTarget value) { + this.backingStore.set("target", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/CloudPcProvisioningPolicyAssignmentCollectionResponse.java b/src/main/java/com/microsoft/graph/generated/models/CloudPcProvisioningPolicyAssignmentCollectionResponse.java new file mode 100644 index 00000000000..4d02c2bd54e --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/CloudPcProvisioningPolicyAssignmentCollectionResponse.java @@ -0,0 +1,61 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CloudPcProvisioningPolicyAssignmentCollectionResponse extends BaseCollectionPaginationCountResponse implements Parsable { + /** + * Instantiates a new {@link CloudPcProvisioningPolicyAssignmentCollectionResponse} and sets the default values. + */ + public CloudPcProvisioningPolicyAssignmentCollectionResponse() { + super(); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link CloudPcProvisioningPolicyAssignmentCollectionResponse} + */ + @jakarta.annotation.Nonnull + public static CloudPcProvisioningPolicyAssignmentCollectionResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new CloudPcProvisioningPolicyAssignmentCollectionResponse(); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("value", (n) -> { this.setValue(n.getCollectionOfObjectValues(CloudPcProvisioningPolicyAssignment::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the value property value. The value property + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getValue() { + return this.backingStore.get("value"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + super.serialize(writer); + writer.writeCollectionOfObjectValues("value", this.getValue()); + } + /** + * Sets the value property value. The value property + * @param value Value to set for the value property. + */ + public void setValue(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("value", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/CloudPcProvisioningPolicyCollectionResponse.java b/src/main/java/com/microsoft/graph/generated/models/CloudPcProvisioningPolicyCollectionResponse.java new file mode 100644 index 00000000000..ba231d451a8 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/CloudPcProvisioningPolicyCollectionResponse.java @@ -0,0 +1,61 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CloudPcProvisioningPolicyCollectionResponse extends BaseCollectionPaginationCountResponse implements Parsable { + /** + * Instantiates a new {@link CloudPcProvisioningPolicyCollectionResponse} and sets the default values. + */ + public CloudPcProvisioningPolicyCollectionResponse() { + super(); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link CloudPcProvisioningPolicyCollectionResponse} + */ + @jakarta.annotation.Nonnull + public static CloudPcProvisioningPolicyCollectionResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new CloudPcProvisioningPolicyCollectionResponse(); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("value", (n) -> { this.setValue(n.getCollectionOfObjectValues(CloudPcProvisioningPolicy::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the value property value. The value property + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getValue() { + return this.backingStore.get("value"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + super.serialize(writer); + writer.writeCollectionOfObjectValues("value", this.getValue()); + } + /** + * Sets the value property value. The value property + * @param value Value to set for the value property. + */ + public void setValue(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("value", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/CloudPcProvisioningPolicyImageType.java b/src/main/java/com/microsoft/graph/generated/models/CloudPcProvisioningPolicyImageType.java new file mode 100644 index 00000000000..11de2cdf993 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/CloudPcProvisioningPolicyImageType.java @@ -0,0 +1,27 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.ValuedEnum; +import java.util.Objects; + +@jakarta.annotation.Generated("com.microsoft.kiota") +public enum CloudPcProvisioningPolicyImageType implements ValuedEnum { + Gallery("gallery"), + Custom("custom"), + UnknownFutureValue("unknownFutureValue"); + public final String value; + CloudPcProvisioningPolicyImageType(final String value) { + this.value = value; + } + @jakarta.annotation.Nonnull + public String getValue() { return this.value; } + @jakarta.annotation.Nullable + public static CloudPcProvisioningPolicyImageType forValue(@jakarta.annotation.Nonnull final String searchValue) { + Objects.requireNonNull(searchValue); + switch(searchValue) { + case "gallery": return Gallery; + case "custom": return Custom; + case "unknownFutureValue": return UnknownFutureValue; + default: return null; + } + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/CloudPcProvisioningType.java b/src/main/java/com/microsoft/graph/generated/models/CloudPcProvisioningType.java new file mode 100644 index 00000000000..dd7f4dd0862 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/CloudPcProvisioningType.java @@ -0,0 +1,27 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.ValuedEnum; +import java.util.Objects; + +@jakarta.annotation.Generated("com.microsoft.kiota") +public enum CloudPcProvisioningType implements ValuedEnum { + Dedicated("dedicated"), + Shared("shared"), + UnknownFutureValue("unknownFutureValue"); + public final String value; + CloudPcProvisioningType(final String value) { + this.value = value; + } + @jakarta.annotation.Nonnull + public String getValue() { return this.value; } + @jakarta.annotation.Nullable + public static CloudPcProvisioningType forValue(@jakarta.annotation.Nonnull final String searchValue) { + Objects.requireNonNull(searchValue); + switch(searchValue) { + case "dedicated": return Dedicated; + case "shared": return Shared; + case "unknownFutureValue": return UnknownFutureValue; + default: return null; + } + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/CloudPcRegionGroup.java b/src/main/java/com/microsoft/graph/generated/models/CloudPcRegionGroup.java new file mode 100644 index 00000000000..c9dfa4aef9f --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/CloudPcRegionGroup.java @@ -0,0 +1,63 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.ValuedEnum; +import java.util.Objects; + +@jakarta.annotation.Generated("com.microsoft.kiota") +public enum CloudPcRegionGroup implements ValuedEnum { + Default("default"), + Australia("australia"), + Canada("canada"), + UsCentral("usCentral"), + UsEast("usEast"), + UsWest("usWest"), + France("france"), + Germany("germany"), + EuropeUnion("europeUnion"), + UnitedKingdom("unitedKingdom"), + Japan("japan"), + Asia("asia"), + India("india"), + SouthAmerica("southAmerica"), + Euap("euap"), + UsGovernment("usGovernment"), + UsGovernmentDOD("usGovernmentDOD"), + Norway("norway"), + Switzerland("switzerland"), + SouthKorea("southKorea"), + UnknownFutureValue("unknownFutureValue"); + public final String value; + CloudPcRegionGroup(final String value) { + this.value = value; + } + @jakarta.annotation.Nonnull + public String getValue() { return this.value; } + @jakarta.annotation.Nullable + public static CloudPcRegionGroup forValue(@jakarta.annotation.Nonnull final String searchValue) { + Objects.requireNonNull(searchValue); + switch(searchValue) { + case "default": return Default; + case "australia": return Australia; + case "canada": return Canada; + case "usCentral": return UsCentral; + case "usEast": return UsEast; + case "usWest": return UsWest; + case "france": return France; + case "germany": return Germany; + case "europeUnion": return EuropeUnion; + case "unitedKingdom": return UnitedKingdom; + case "japan": return Japan; + case "asia": return Asia; + case "india": return India; + case "southAmerica": return SouthAmerica; + case "euap": return Euap; + case "usGovernment": return UsGovernment; + case "usGovernmentDOD": return UsGovernmentDOD; + case "norway": return Norway; + case "switzerland": return Switzerland; + case "southKorea": return SouthKorea; + case "unknownFutureValue": return UnknownFutureValue; + default: return null; + } + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/CloudPcRestorePointFrequencyType.java b/src/main/java/com/microsoft/graph/generated/models/CloudPcRestorePointFrequencyType.java new file mode 100644 index 00000000000..1a49fe63ec3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/CloudPcRestorePointFrequencyType.java @@ -0,0 +1,35 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.ValuedEnum; +import java.util.Objects; + +@jakarta.annotation.Generated("com.microsoft.kiota") +public enum CloudPcRestorePointFrequencyType implements ValuedEnum { + Default("default"), + FourHours("fourHours"), + SixHours("sixHours"), + TwelveHours("twelveHours"), + SixteenHours("sixteenHours"), + TwentyFourHours("twentyFourHours"), + UnknownFutureValue("unknownFutureValue"); + public final String value; + CloudPcRestorePointFrequencyType(final String value) { + this.value = value; + } + @jakarta.annotation.Nonnull + public String getValue() { return this.value; } + @jakarta.annotation.Nullable + public static CloudPcRestorePointFrequencyType forValue(@jakarta.annotation.Nonnull final String searchValue) { + Objects.requireNonNull(searchValue); + switch(searchValue) { + case "default": return Default; + case "fourHours": return FourHours; + case "sixHours": return SixHours; + case "twelveHours": return TwelveHours; + case "sixteenHours": return SixteenHours; + case "twentyFourHours": return TwentyFourHours; + case "unknownFutureValue": return UnknownFutureValue; + default: return null; + } + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/CloudPcRestorePointSetting.java b/src/main/java/com/microsoft/graph/generated/models/CloudPcRestorePointSetting.java new file mode 100644 index 00000000000..0a727c2770a --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/CloudPcRestorePointSetting.java @@ -0,0 +1,141 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.AdditionalDataHolder; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import com.microsoft.kiota.store.BackedModel; +import com.microsoft.kiota.store.BackingStore; +import com.microsoft.kiota.store.BackingStoreFactorySingleton; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CloudPcRestorePointSetting implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link CloudPcRestorePointSetting} and sets the default values. + */ + public CloudPcRestorePointSetting() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link CloudPcRestorePointSetting} + */ + @jakarta.annotation.Nonnull + public static CloudPcRestorePointSetting createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new CloudPcRestorePointSetting(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(3); + deserializerMap.put("frequencyType", (n) -> { this.setFrequencyType(n.getEnumValue(CloudPcRestorePointFrequencyType::forValue)); }); + deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); }); + deserializerMap.put("userRestoreEnabled", (n) -> { this.setUserRestoreEnabled(n.getBooleanValue()); }); + return deserializerMap; + } + /** + * Gets the frequencyType property value. The time interval in hours to take snapshots (restore points) of a Cloud PC automatically. Possible values are: default, fourHours, sixHours, twelveHours, sixteenHours, twentyFourHours, unknownFutureValue. The default value is default that indicates that the time interval for automatic capturing of restore point snapshots is set to 12 hours. + * @return a {@link CloudPcRestorePointFrequencyType} + */ + @jakarta.annotation.Nullable + public CloudPcRestorePointFrequencyType getFrequencyType() { + return this.backingStore.get("frequencyType"); + } + /** + * Gets the @odata.type property value. The OdataType property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getOdataType() { + return this.backingStore.get("odataType"); + } + /** + * Gets the userRestoreEnabled property value. If true, the user has the ability to use snapshots to restore Cloud PCs. If false, non-admin users can't use snapshots to restore the Cloud PC. + * @return a {@link Boolean} + */ + @jakarta.annotation.Nullable + public Boolean getUserRestoreEnabled() { + return this.backingStore.get("userRestoreEnabled"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + writer.writeEnumValue("frequencyType", this.getFrequencyType()); + writer.writeStringValue("@odata.type", this.getOdataType()); + writer.writeBooleanValue("userRestoreEnabled", this.getUserRestoreEnabled()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { + this.backingStore.set("additionalData", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @param value Value to set for the backingStore property. + */ + public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { + Objects.requireNonNull(value); + this.backingStore = value; + } + /** + * Sets the frequencyType property value. The time interval in hours to take snapshots (restore points) of a Cloud PC automatically. Possible values are: default, fourHours, sixHours, twelveHours, sixteenHours, twentyFourHours, unknownFutureValue. The default value is default that indicates that the time interval for automatic capturing of restore point snapshots is set to 12 hours. + * @param value Value to set for the frequencyType property. + */ + public void setFrequencyType(@jakarta.annotation.Nullable final CloudPcRestorePointFrequencyType value) { + this.backingStore.set("frequencyType", value); + } + /** + * Sets the @odata.type property value. The OdataType property + * @param value Value to set for the @odata.type property. + */ + public void setOdataType(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("odataType", value); + } + /** + * Sets the userRestoreEnabled property value. If true, the user has the ability to use snapshots to restore Cloud PCs. If false, non-admin users can't use snapshots to restore the Cloud PC. + * @param value Value to set for the userRestoreEnabled property. + */ + public void setUserRestoreEnabled(@jakarta.annotation.Nullable final Boolean value) { + this.backingStore.set("userRestoreEnabled", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/CloudPcSourceDeviceImage.java b/src/main/java/com/microsoft/graph/generated/models/CloudPcSourceDeviceImage.java new file mode 100644 index 00000000000..06613a45202 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/CloudPcSourceDeviceImage.java @@ -0,0 +1,175 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.AdditionalDataHolder; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import com.microsoft.kiota.store.BackedModel; +import com.microsoft.kiota.store.BackingStore; +import com.microsoft.kiota.store.BackingStoreFactorySingleton; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CloudPcSourceDeviceImage implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link CloudPcSourceDeviceImage} and sets the default values. + */ + public CloudPcSourceDeviceImage() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link CloudPcSourceDeviceImage} + */ + @jakarta.annotation.Nonnull + public static CloudPcSourceDeviceImage createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new CloudPcSourceDeviceImage(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * Gets the displayName property value. The display name for the source image. Read-only. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getDisplayName() { + return this.backingStore.get("displayName"); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(5); + deserializerMap.put("displayName", (n) -> { this.setDisplayName(n.getStringValue()); }); + deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); }); + deserializerMap.put("resourceId", (n) -> { this.setResourceId(n.getStringValue()); }); + deserializerMap.put("subscriptionDisplayName", (n) -> { this.setSubscriptionDisplayName(n.getStringValue()); }); + deserializerMap.put("subscriptionId", (n) -> { this.setSubscriptionId(n.getStringValue()); }); + return deserializerMap; + } + /** + * Gets the @odata.type property value. The OdataType property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getOdataType() { + return this.backingStore.get("odataType"); + } + /** + * Gets the resourceId property value. The fully qualified unique identifier (ID) of the source image resource in Azure. The ID format is: '/subscriptions/{subscription-id}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}'. Read-only. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getResourceId() { + return this.backingStore.get("resourceId"); + } + /** + * Gets the subscriptionDisplayName property value. The display name of the subscription that hosts the source image. Read-only. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getSubscriptionDisplayName() { + return this.backingStore.get("subscriptionDisplayName"); + } + /** + * Gets the subscriptionId property value. The unique identifier (ID) of the subscription that hosts the source image. Read-only. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getSubscriptionId() { + return this.backingStore.get("subscriptionId"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + writer.writeStringValue("displayName", this.getDisplayName()); + writer.writeStringValue("@odata.type", this.getOdataType()); + writer.writeStringValue("resourceId", this.getResourceId()); + writer.writeStringValue("subscriptionDisplayName", this.getSubscriptionDisplayName()); + writer.writeStringValue("subscriptionId", this.getSubscriptionId()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { + this.backingStore.set("additionalData", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @param value Value to set for the backingStore property. + */ + public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { + Objects.requireNonNull(value); + this.backingStore = value; + } + /** + * Sets the displayName property value. The display name for the source image. Read-only. + * @param value Value to set for the displayName property. + */ + public void setDisplayName(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("displayName", value); + } + /** + * Sets the @odata.type property value. The OdataType property + * @param value Value to set for the @odata.type property. + */ + public void setOdataType(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("odataType", value); + } + /** + * Sets the resourceId property value. The fully qualified unique identifier (ID) of the source image resource in Azure. The ID format is: '/subscriptions/{subscription-id}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}'. Read-only. + * @param value Value to set for the resourceId property. + */ + public void setResourceId(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("resourceId", value); + } + /** + * Sets the subscriptionDisplayName property value. The display name of the subscription that hosts the source image. Read-only. + * @param value Value to set for the subscriptionDisplayName property. + */ + public void setSubscriptionDisplayName(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("subscriptionDisplayName", value); + } + /** + * Sets the subscriptionId property value. The unique identifier (ID) of the subscription that hosts the source image. Read-only. + * @param value Value to set for the subscriptionId property. + */ + public void setSubscriptionId(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("subscriptionId", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/CloudPcUserRoleScopeTagInfo.java b/src/main/java/com/microsoft/graph/generated/models/CloudPcUserRoleScopeTagInfo.java new file mode 100644 index 00000000000..f3aa98fe011 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/CloudPcUserRoleScopeTagInfo.java @@ -0,0 +1,141 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.AdditionalDataHolder; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import com.microsoft.kiota.store.BackedModel; +import com.microsoft.kiota.store.BackingStore; +import com.microsoft.kiota.store.BackingStoreFactorySingleton; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CloudPcUserRoleScopeTagInfo implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link CloudPcUserRoleScopeTagInfo} and sets the default values. + */ + public CloudPcUserRoleScopeTagInfo() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link CloudPcUserRoleScopeTagInfo} + */ + @jakarta.annotation.Nonnull + public static CloudPcUserRoleScopeTagInfo createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new CloudPcUserRoleScopeTagInfo(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * Gets the displayName property value. Scope tag display name. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getDisplayName() { + return this.backingStore.get("displayName"); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(3); + deserializerMap.put("displayName", (n) -> { this.setDisplayName(n.getStringValue()); }); + deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); }); + deserializerMap.put("roleScopeTagId", (n) -> { this.setRoleScopeTagId(n.getStringValue()); }); + return deserializerMap; + } + /** + * Gets the @odata.type property value. The OdataType property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getOdataType() { + return this.backingStore.get("odataType"); + } + /** + * Gets the roleScopeTagId property value. Scope tag identity. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getRoleScopeTagId() { + return this.backingStore.get("roleScopeTagId"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + writer.writeStringValue("displayName", this.getDisplayName()); + writer.writeStringValue("@odata.type", this.getOdataType()); + writer.writeStringValue("roleScopeTagId", this.getRoleScopeTagId()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { + this.backingStore.set("additionalData", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @param value Value to set for the backingStore property. + */ + public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { + Objects.requireNonNull(value); + this.backingStore = value; + } + /** + * Sets the displayName property value. Scope tag display name. + * @param value Value to set for the displayName property. + */ + public void setDisplayName(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("displayName", value); + } + /** + * Sets the @odata.type property value. The OdataType property + * @param value Value to set for the @odata.type property. + */ + public void setOdataType(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("odataType", value); + } + /** + * Sets the roleScopeTagId property value. Scope tag identity. + * @param value Value to set for the roleScopeTagId property. + */ + public void setRoleScopeTagId(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("roleScopeTagId", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/CloudPcUserSetting.java b/src/main/java/com/microsoft/graph/generated/models/CloudPcUserSetting.java new file mode 100644 index 00000000000..22693b1984a --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/CloudPcUserSetting.java @@ -0,0 +1,164 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CloudPcUserSetting extends Entity implements Parsable { + /** + * Instantiates a new {@link CloudPcUserSetting} and sets the default values. + */ + public CloudPcUserSetting() { + super(); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link CloudPcUserSetting} + */ + @jakarta.annotation.Nonnull + public static CloudPcUserSetting createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new CloudPcUserSetting(); + } + /** + * Gets the assignments property value. Represents the set of Microsoft 365 groups and security groups in Microsoft Entra ID that have cloudPCUserSetting assigned. Returned only on $expand. For an example, see Get cloudPcUserSetting. + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getAssignments() { + return this.backingStore.get("assignments"); + } + /** + * Gets the createdDateTime property value. The date and time when the setting was created. The timestamp type represents the date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * @return a {@link OffsetDateTime} + */ + @jakarta.annotation.Nullable + public OffsetDateTime getCreatedDateTime() { + return this.backingStore.get("createdDateTime"); + } + /** + * Gets the displayName property value. The setting name displayed in the user interface. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getDisplayName() { + return this.backingStore.get("displayName"); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("assignments", (n) -> { this.setAssignments(n.getCollectionOfObjectValues(CloudPcUserSettingAssignment::createFromDiscriminatorValue)); }); + deserializerMap.put("createdDateTime", (n) -> { this.setCreatedDateTime(n.getOffsetDateTimeValue()); }); + deserializerMap.put("displayName", (n) -> { this.setDisplayName(n.getStringValue()); }); + deserializerMap.put("lastModifiedDateTime", (n) -> { this.setLastModifiedDateTime(n.getOffsetDateTimeValue()); }); + deserializerMap.put("localAdminEnabled", (n) -> { this.setLocalAdminEnabled(n.getBooleanValue()); }); + deserializerMap.put("resetEnabled", (n) -> { this.setResetEnabled(n.getBooleanValue()); }); + deserializerMap.put("restorePointSetting", (n) -> { this.setRestorePointSetting(n.getObjectValue(CloudPcRestorePointSetting::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the lastModifiedDateTime property value. The date and time when the setting was last modified. The timestamp type represents the date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * @return a {@link OffsetDateTime} + */ + @jakarta.annotation.Nullable + public OffsetDateTime getLastModifiedDateTime() { + return this.backingStore.get("lastModifiedDateTime"); + } + /** + * Gets the localAdminEnabled property value. Indicates whether the local admin option is enabled. The default value is false. To enable the local admin option, change the setting to true. If the local admin option is enabled, the end user can be an admin of the Cloud PC device. + * @return a {@link Boolean} + */ + @jakarta.annotation.Nullable + public Boolean getLocalAdminEnabled() { + return this.backingStore.get("localAdminEnabled"); + } + /** + * Gets the resetEnabled property value. Indicates whether an end user is allowed to reset their Cloud PC. When true, the user is allowed to reset their Cloud PC. When false, end-user initiated reset is not allowed. The default value is false. + * @return a {@link Boolean} + */ + @jakarta.annotation.Nullable + public Boolean getResetEnabled() { + return this.backingStore.get("resetEnabled"); + } + /** + * Gets the restorePointSetting property value. Defines how frequently a restore point is created that is, a snapshot is taken) for users' provisioned Cloud PCs (default is 12 hours), and whether the user is allowed to restore their own Cloud PCs to a backup made at a specific point in time. + * @return a {@link CloudPcRestorePointSetting} + */ + @jakarta.annotation.Nullable + public CloudPcRestorePointSetting getRestorePointSetting() { + return this.backingStore.get("restorePointSetting"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + super.serialize(writer); + writer.writeCollectionOfObjectValues("assignments", this.getAssignments()); + writer.writeOffsetDateTimeValue("createdDateTime", this.getCreatedDateTime()); + writer.writeStringValue("displayName", this.getDisplayName()); + writer.writeOffsetDateTimeValue("lastModifiedDateTime", this.getLastModifiedDateTime()); + writer.writeBooleanValue("localAdminEnabled", this.getLocalAdminEnabled()); + writer.writeBooleanValue("resetEnabled", this.getResetEnabled()); + writer.writeObjectValue("restorePointSetting", this.getRestorePointSetting()); + } + /** + * Sets the assignments property value. Represents the set of Microsoft 365 groups and security groups in Microsoft Entra ID that have cloudPCUserSetting assigned. Returned only on $expand. For an example, see Get cloudPcUserSetting. + * @param value Value to set for the assignments property. + */ + public void setAssignments(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("assignments", value); + } + /** + * Sets the createdDateTime property value. The date and time when the setting was created. The timestamp type represents the date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * @param value Value to set for the createdDateTime property. + */ + public void setCreatedDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) { + this.backingStore.set("createdDateTime", value); + } + /** + * Sets the displayName property value. The setting name displayed in the user interface. + * @param value Value to set for the displayName property. + */ + public void setDisplayName(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("displayName", value); + } + /** + * Sets the lastModifiedDateTime property value. The date and time when the setting was last modified. The timestamp type represents the date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * @param value Value to set for the lastModifiedDateTime property. + */ + public void setLastModifiedDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) { + this.backingStore.set("lastModifiedDateTime", value); + } + /** + * Sets the localAdminEnabled property value. Indicates whether the local admin option is enabled. The default value is false. To enable the local admin option, change the setting to true. If the local admin option is enabled, the end user can be an admin of the Cloud PC device. + * @param value Value to set for the localAdminEnabled property. + */ + public void setLocalAdminEnabled(@jakarta.annotation.Nullable final Boolean value) { + this.backingStore.set("localAdminEnabled", value); + } + /** + * Sets the resetEnabled property value. Indicates whether an end user is allowed to reset their Cloud PC. When true, the user is allowed to reset their Cloud PC. When false, end-user initiated reset is not allowed. The default value is false. + * @param value Value to set for the resetEnabled property. + */ + public void setResetEnabled(@jakarta.annotation.Nullable final Boolean value) { + this.backingStore.set("resetEnabled", value); + } + /** + * Sets the restorePointSetting property value. Defines how frequently a restore point is created that is, a snapshot is taken) for users' provisioned Cloud PCs (default is 12 hours), and whether the user is allowed to restore their own Cloud PCs to a backup made at a specific point in time. + * @param value Value to set for the restorePointSetting property. + */ + public void setRestorePointSetting(@jakarta.annotation.Nullable final CloudPcRestorePointSetting value) { + this.backingStore.set("restorePointSetting", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/CloudPcUserSettingAssignment.java b/src/main/java/com/microsoft/graph/generated/models/CloudPcUserSettingAssignment.java new file mode 100644 index 00000000000..1446d2c2d31 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/CloudPcUserSettingAssignment.java @@ -0,0 +1,79 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CloudPcUserSettingAssignment extends Entity implements Parsable { + /** + * Instantiates a new {@link CloudPcUserSettingAssignment} and sets the default values. + */ + public CloudPcUserSettingAssignment() { + super(); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link CloudPcUserSettingAssignment} + */ + @jakarta.annotation.Nonnull + public static CloudPcUserSettingAssignment createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new CloudPcUserSettingAssignment(); + } + /** + * Gets the createdDateTime property value. The date and time when this assignment was created. The timestamp type represents the date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * @return a {@link OffsetDateTime} + */ + @jakarta.annotation.Nullable + public OffsetDateTime getCreatedDateTime() { + return this.backingStore.get("createdDateTime"); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("createdDateTime", (n) -> { this.setCreatedDateTime(n.getOffsetDateTimeValue()); }); + deserializerMap.put("target", (n) -> { this.setTarget(n.getObjectValue(CloudPcManagementAssignmentTarget::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the target property value. The assignment target for the user setting. Currently, the only target supported for this user setting is a user group. For details, see cloudPcManagementGroupAssignmentTarget. + * @return a {@link CloudPcManagementAssignmentTarget} + */ + @jakarta.annotation.Nullable + public CloudPcManagementAssignmentTarget getTarget() { + return this.backingStore.get("target"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + super.serialize(writer); + writer.writeOffsetDateTimeValue("createdDateTime", this.getCreatedDateTime()); + writer.writeObjectValue("target", this.getTarget()); + } + /** + * Sets the createdDateTime property value. The date and time when this assignment was created. The timestamp type represents the date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * @param value Value to set for the createdDateTime property. + */ + public void setCreatedDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) { + this.backingStore.set("createdDateTime", value); + } + /** + * Sets the target property value. The assignment target for the user setting. Currently, the only target supported for this user setting is a user group. For details, see cloudPcManagementGroupAssignmentTarget. + * @param value Value to set for the target property. + */ + public void setTarget(@jakarta.annotation.Nullable final CloudPcManagementAssignmentTarget value) { + this.backingStore.set("target", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/CloudPcUserSettingAssignmentCollectionResponse.java b/src/main/java/com/microsoft/graph/generated/models/CloudPcUserSettingAssignmentCollectionResponse.java new file mode 100644 index 00000000000..5730a982166 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/CloudPcUserSettingAssignmentCollectionResponse.java @@ -0,0 +1,61 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CloudPcUserSettingAssignmentCollectionResponse extends BaseCollectionPaginationCountResponse implements Parsable { + /** + * Instantiates a new {@link CloudPcUserSettingAssignmentCollectionResponse} and sets the default values. + */ + public CloudPcUserSettingAssignmentCollectionResponse() { + super(); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link CloudPcUserSettingAssignmentCollectionResponse} + */ + @jakarta.annotation.Nonnull + public static CloudPcUserSettingAssignmentCollectionResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new CloudPcUserSettingAssignmentCollectionResponse(); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("value", (n) -> { this.setValue(n.getCollectionOfObjectValues(CloudPcUserSettingAssignment::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the value property value. The value property + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getValue() { + return this.backingStore.get("value"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + super.serialize(writer); + writer.writeCollectionOfObjectValues("value", this.getValue()); + } + /** + * Sets the value property value. The value property + * @param value Value to set for the value property. + */ + public void setValue(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("value", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/CloudPcUserSettingCollectionResponse.java b/src/main/java/com/microsoft/graph/generated/models/CloudPcUserSettingCollectionResponse.java new file mode 100644 index 00000000000..9b6588dfaf9 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/CloudPcUserSettingCollectionResponse.java @@ -0,0 +1,61 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CloudPcUserSettingCollectionResponse extends BaseCollectionPaginationCountResponse implements Parsable { + /** + * Instantiates a new {@link CloudPcUserSettingCollectionResponse} and sets the default values. + */ + public CloudPcUserSettingCollectionResponse() { + super(); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link CloudPcUserSettingCollectionResponse} + */ + @jakarta.annotation.Nonnull + public static CloudPcUserSettingCollectionResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new CloudPcUserSettingCollectionResponse(); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("value", (n) -> { this.setValue(n.getCollectionOfObjectValues(CloudPcUserSetting::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the value property value. The value property + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getValue() { + return this.backingStore.get("value"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + super.serialize(writer); + writer.writeCollectionOfObjectValues("value", this.getValue()); + } + /** + * Sets the value property value. The value property + * @param value Value to set for the value property. + */ + public void setValue(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("value", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/CloudPcWindowsSetting.java b/src/main/java/com/microsoft/graph/generated/models/CloudPcWindowsSetting.java new file mode 100644 index 00000000000..5c70d2d79d7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/CloudPcWindowsSetting.java @@ -0,0 +1,124 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.AdditionalDataHolder; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import com.microsoft.kiota.store.BackedModel; +import com.microsoft.kiota.store.BackingStore; +import com.microsoft.kiota.store.BackingStoreFactorySingleton; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CloudPcWindowsSetting implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link CloudPcWindowsSetting} and sets the default values. + */ + public CloudPcWindowsSetting() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link CloudPcWindowsSetting} + */ + @jakarta.annotation.Nonnull + public static CloudPcWindowsSetting createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new CloudPcWindowsSetting(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(2); + deserializerMap.put("locale", (n) -> { this.setLocale(n.getStringValue()); }); + deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); }); + return deserializerMap; + } + /** + * Gets the locale property value. The Windows language or region tag to use for language pack configuration and localization of the Cloud PC. The default value is en-US, which corresponds to English (United States). + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getLocale() { + return this.backingStore.get("locale"); + } + /** + * Gets the @odata.type property value. The OdataType property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getOdataType() { + return this.backingStore.get("odataType"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + writer.writeStringValue("locale", this.getLocale()); + writer.writeStringValue("@odata.type", this.getOdataType()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { + this.backingStore.set("additionalData", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @param value Value to set for the backingStore property. + */ + public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { + Objects.requireNonNull(value); + this.backingStore = value; + } + /** + * Sets the locale property value. The Windows language or region tag to use for language pack configuration and localization of the Cloud PC. The default value is en-US, which corresponds to English (United States). + * @param value Value to set for the locale property. + */ + public void setLocale(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("locale", value); + } + /** + * Sets the @odata.type property value. The OdataType property + * @param value Value to set for the @odata.type property. + */ + public void setOdataType(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("odataType", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/ConditionalAccessApplications.java b/src/main/java/com/microsoft/graph/generated/models/ConditionalAccessApplications.java index e266bf038e7..4531eb49d48 100644 --- a/src/main/java/com/microsoft/graph/generated/models/ConditionalAccessApplications.java +++ b/src/main/java/com/microsoft/graph/generated/models/ConditionalAccessApplications.java @@ -64,7 +64,7 @@ public BackingStore getBackingStore() { return this.backingStore; } /** - * Gets the excludeApplications property value. Can be one of the following: The list of client IDs (appId) explicitly excluded from the policy. Office365 - For the list of apps included in Office365, see Apps included in Conditional Access Office 365 app suite + * Gets the excludeApplications property value. Can be one of the following: The list of client IDs (appId) explicitly excluded from the policy. Office365 - For the list of apps included in Office365, see Apps included in Conditional Access Office 365 app suite MicrosoftAdminPortals - For more information, see Conditional Access Target resources: Microsoft Admin Portals * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -87,7 +87,7 @@ public Map> getFieldDeserializers return deserializerMap; } /** - * Gets the includeApplications property value. Can be one of the following: The list of client IDs (appId) the policy applies to, unless explicitly excluded (in excludeApplications) All Office365 - For the list of apps included in Office365, see Apps included in Conditional Access Office 365 app suite + * Gets the includeApplications property value. Can be one of the following: The list of client IDs (appId) the policy applies to, unless explicitly excluded (in excludeApplications) All Office365 - For the list of apps included in Office365, see Apps included in Conditional Access Office 365 app suite MicrosoftAdminPortals - For more information, see Conditional Access Target resources: Microsoft Admin Portals * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -155,14 +155,14 @@ public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value this.backingStore = value; } /** - * Sets the excludeApplications property value. Can be one of the following: The list of client IDs (appId) explicitly excluded from the policy. Office365 - For the list of apps included in Office365, see Apps included in Conditional Access Office 365 app suite + * Sets the excludeApplications property value. Can be one of the following: The list of client IDs (appId) explicitly excluded from the policy. Office365 - For the list of apps included in Office365, see Apps included in Conditional Access Office 365 app suite MicrosoftAdminPortals - For more information, see Conditional Access Target resources: Microsoft Admin Portals * @param value Value to set for the excludeApplications property. */ public void setExcludeApplications(@jakarta.annotation.Nullable final java.util.List value) { this.backingStore.set("excludeApplications", value); } /** - * Sets the includeApplications property value. Can be one of the following: The list of client IDs (appId) the policy applies to, unless explicitly excluded (in excludeApplications) All Office365 - For the list of apps included in Office365, see Apps included in Conditional Access Office 365 app suite + * Sets the includeApplications property value. Can be one of the following: The list of client IDs (appId) the policy applies to, unless explicitly excluded (in excludeApplications) All Office365 - For the list of apps included in Office365, see Apps included in Conditional Access Office 365 app suite MicrosoftAdminPortals - For more information, see Conditional Access Target resources: Microsoft Admin Portals * @param value Value to set for the includeApplications property. */ public void setIncludeApplications(@jakarta.annotation.Nullable final java.util.List value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/Contact.java b/src/main/java/com/microsoft/graph/generated/models/Contact.java index dae647d06a1..ec535f3eabf 100644 --- a/src/main/java/com/microsoft/graph/generated/models/Contact.java +++ b/src/main/java/com/microsoft/graph/generated/models/Contact.java @@ -201,7 +201,7 @@ public java.util.List getHomePhones() { return this.backingStore.get("homePhones"); } /** - * Gets the imAddresses property value. The imAddresses property + * Gets the imAddresses property value. The contact's instant messaging (IM) addresses. * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -209,7 +209,7 @@ public java.util.List getImAddresses() { return this.backingStore.get("imAddresses"); } /** - * Gets the initials property value. The initials property + * Gets the initials property value. The contact's initials. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -217,7 +217,7 @@ public String getInitials() { return this.backingStore.get("initials"); } /** - * Gets the jobTitle property value. The jobTitle property + * Gets the jobTitle property value. The contacts job title. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -225,7 +225,7 @@ public String getJobTitle() { return this.backingStore.get("jobTitle"); } /** - * Gets the manager property value. The manager property + * Gets the manager property value. The name of the contact's manager. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -233,7 +233,7 @@ public String getManager() { return this.backingStore.get("manager"); } /** - * Gets the middleName property value. The middleName property + * Gets the middleName property value. The contact's middle name. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -241,7 +241,7 @@ public String getMiddleName() { return this.backingStore.get("middleName"); } /** - * Gets the mobilePhone property value. The mobilePhone property + * Gets the mobilePhone property value. The contact's mobile phone number. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -257,7 +257,7 @@ public java.util.List getMultiValueExtendedPro return this.backingStore.get("multiValueExtendedProperties"); } /** - * Gets the nickName property value. The nickName property + * Gets the nickName property value. The contact's nickname. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -265,7 +265,7 @@ public String getNickName() { return this.backingStore.get("nickName"); } /** - * Gets the officeLocation property value. The officeLocation property + * Gets the officeLocation property value. The location of the contact's office. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -273,7 +273,7 @@ public String getOfficeLocation() { return this.backingStore.get("officeLocation"); } /** - * Gets the otherAddress property value. The otherAddress property + * Gets the otherAddress property value. Other addresses for the contact. * @return a {@link PhysicalAddress} */ @jakarta.annotation.Nullable @@ -281,7 +281,7 @@ public PhysicalAddress getOtherAddress() { return this.backingStore.get("otherAddress"); } /** - * Gets the parentFolderId property value. The parentFolderId property + * Gets the parentFolderId property value. The ID of the contact's parent folder. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -289,7 +289,7 @@ public String getParentFolderId() { return this.backingStore.get("parentFolderId"); } /** - * Gets the personalNotes property value. The personalNotes property + * Gets the personalNotes property value. The user's notes about the contact. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -305,7 +305,7 @@ public ProfilePhoto getPhoto() { return this.backingStore.get("photo"); } /** - * Gets the profession property value. The profession property + * Gets the profession property value. The contact's profession. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -321,7 +321,7 @@ public java.util.List getSingleValueExtendedP return this.backingStore.get("singleValueExtendedProperties"); } /** - * Gets the spouseName property value. The spouseName property + * Gets the spouseName property value. The name of the contact's spouse/partner. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -329,7 +329,7 @@ public String getSpouseName() { return this.backingStore.get("spouseName"); } /** - * Gets the surname property value. The surname property + * Gets the surname property value. The contact's surname. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -337,7 +337,7 @@ public String getSurname() { return this.backingStore.get("surname"); } /** - * Gets the title property value. The title property + * Gets the title property value. The contact's title. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -345,7 +345,7 @@ public String getTitle() { return this.backingStore.get("title"); } /** - * Gets the yomiCompanyName property value. The yomiCompanyName property + * Gets the yomiCompanyName property value. The phonetic Japanese company name of the contact. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -353,7 +353,7 @@ public String getYomiCompanyName() { return this.backingStore.get("yomiCompanyName"); } /** - * Gets the yomiGivenName property value. The yomiGivenName property + * Gets the yomiGivenName property value. The phonetic Japanese given name (first name) of the contact. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -361,7 +361,7 @@ public String getYomiGivenName() { return this.backingStore.get("yomiGivenName"); } /** - * Gets the yomiSurname property value. The yomiSurname property + * Gets the yomiSurname property value. The phonetic Japanese surname (last name) of the contact. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -526,42 +526,42 @@ public void setHomePhones(@jakarta.annotation.Nullable final java.util.List value) { this.backingStore.set("imAddresses", value); } /** - * Sets the initials property value. The initials property + * Sets the initials property value. The contact's initials. * @param value Value to set for the initials property. */ public void setInitials(@jakarta.annotation.Nullable final String value) { this.backingStore.set("initials", value); } /** - * Sets the jobTitle property value. The jobTitle property + * Sets the jobTitle property value. The contacts job title. * @param value Value to set for the jobTitle property. */ public void setJobTitle(@jakarta.annotation.Nullable final String value) { this.backingStore.set("jobTitle", value); } /** - * Sets the manager property value. The manager property + * Sets the manager property value. The name of the contact's manager. * @param value Value to set for the manager property. */ public void setManager(@jakarta.annotation.Nullable final String value) { this.backingStore.set("manager", value); } /** - * Sets the middleName property value. The middleName property + * Sets the middleName property value. The contact's middle name. * @param value Value to set for the middleName property. */ public void setMiddleName(@jakarta.annotation.Nullable final String value) { this.backingStore.set("middleName", value); } /** - * Sets the mobilePhone property value. The mobilePhone property + * Sets the mobilePhone property value. The contact's mobile phone number. * @param value Value to set for the mobilePhone property. */ public void setMobilePhone(@jakarta.annotation.Nullable final String value) { @@ -575,35 +575,35 @@ public void setMultiValueExtendedProperties(@jakarta.annotation.Nullable final j this.backingStore.set("multiValueExtendedProperties", value); } /** - * Sets the nickName property value. The nickName property + * Sets the nickName property value. The contact's nickname. * @param value Value to set for the nickName property. */ public void setNickName(@jakarta.annotation.Nullable final String value) { this.backingStore.set("nickName", value); } /** - * Sets the officeLocation property value. The officeLocation property + * Sets the officeLocation property value. The location of the contact's office. * @param value Value to set for the officeLocation property. */ public void setOfficeLocation(@jakarta.annotation.Nullable final String value) { this.backingStore.set("officeLocation", value); } /** - * Sets the otherAddress property value. The otherAddress property + * Sets the otherAddress property value. Other addresses for the contact. * @param value Value to set for the otherAddress property. */ public void setOtherAddress(@jakarta.annotation.Nullable final PhysicalAddress value) { this.backingStore.set("otherAddress", value); } /** - * Sets the parentFolderId property value. The parentFolderId property + * Sets the parentFolderId property value. The ID of the contact's parent folder. * @param value Value to set for the parentFolderId property. */ public void setParentFolderId(@jakarta.annotation.Nullable final String value) { this.backingStore.set("parentFolderId", value); } /** - * Sets the personalNotes property value. The personalNotes property + * Sets the personalNotes property value. The user's notes about the contact. * @param value Value to set for the personalNotes property. */ public void setPersonalNotes(@jakarta.annotation.Nullable final String value) { @@ -617,7 +617,7 @@ public void setPhoto(@jakarta.annotation.Nullable final ProfilePhoto value) { this.backingStore.set("photo", value); } /** - * Sets the profession property value. The profession property + * Sets the profession property value. The contact's profession. * @param value Value to set for the profession property. */ public void setProfession(@jakarta.annotation.Nullable final String value) { @@ -631,42 +631,42 @@ public void setSingleValueExtendedProperties(@jakarta.annotation.Nullable final this.backingStore.set("singleValueExtendedProperties", value); } /** - * Sets the spouseName property value. The spouseName property + * Sets the spouseName property value. The name of the contact's spouse/partner. * @param value Value to set for the spouseName property. */ public void setSpouseName(@jakarta.annotation.Nullable final String value) { this.backingStore.set("spouseName", value); } /** - * Sets the surname property value. The surname property + * Sets the surname property value. The contact's surname. * @param value Value to set for the surname property. */ public void setSurname(@jakarta.annotation.Nullable final String value) { this.backingStore.set("surname", value); } /** - * Sets the title property value. The title property + * Sets the title property value. The contact's title. * @param value Value to set for the title property. */ public void setTitle(@jakarta.annotation.Nullable final String value) { this.backingStore.set("title", value); } /** - * Sets the yomiCompanyName property value. The yomiCompanyName property + * Sets the yomiCompanyName property value. The phonetic Japanese company name of the contact. * @param value Value to set for the yomiCompanyName property. */ public void setYomiCompanyName(@jakarta.annotation.Nullable final String value) { this.backingStore.set("yomiCompanyName", value); } /** - * Sets the yomiGivenName property value. The yomiGivenName property + * Sets the yomiGivenName property value. The phonetic Japanese given name (first name) of the contact. * @param value Value to set for the yomiGivenName property. */ public void setYomiGivenName(@jakarta.annotation.Nullable final String value) { this.backingStore.set("yomiGivenName", value); } /** - * Sets the yomiSurname property value. The yomiSurname property + * Sets the yomiSurname property value. The phonetic Japanese surname (last name) of the contact. * @param value Value to set for the yomiSurname property. */ public void setYomiSurname(@jakarta.annotation.Nullable final String value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/ContentType.java b/src/main/java/com/microsoft/graph/generated/models/ContentType.java index afc58d89418..faa4c794676 100644 --- a/src/main/java/com/microsoft/graph/generated/models/ContentType.java +++ b/src/main/java/com/microsoft/graph/generated/models/ContentType.java @@ -25,7 +25,7 @@ public static ContentType createFromDiscriminatorValue(@jakarta.annotation.Nonnu return new ContentType(); } /** - * Gets the associatedHubsUrls property value. List of canonical URLs for hub sites with which this content type is associated to. This will contain all hub sites where this content type is queued to be enforced or is already enforced. Enforcing a content type means that the content type will be applied to the lists in the enforced sites. + * Gets the associatedHubsUrls property value. List of canonical URLs for hub sites with which this content type is associated to. This will contain all hub sites where this content type is queued to be enforced or is already enforced. Enforcing a content type means that the content type is applied to the lists in the enforced sites. * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -65,7 +65,7 @@ public java.util.List getColumnPositions() { return this.backingStore.get("columnPositions"); } /** - * Gets the columns property value. The collection of column definitions for this contentType. + * Gets the columns property value. The collection of column definitions for this content type. * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -181,7 +181,7 @@ public String getParentId() { return this.backingStore.get("parentId"); } /** - * Gets the propagateChanges property value. If true, any changes made to the content type will be pushed to inherited content types and lists that implement the content type. + * Gets the propagateChanges property value. If true, any changes made to the content type are pushed to inherited content types and lists that implement the content type. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -232,7 +232,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeBooleanValue("sealed", this.getSealed()); } /** - * Sets the associatedHubsUrls property value. List of canonical URLs for hub sites with which this content type is associated to. This will contain all hub sites where this content type is queued to be enforced or is already enforced. Enforcing a content type means that the content type will be applied to the lists in the enforced sites. + * Sets the associatedHubsUrls property value. List of canonical URLs for hub sites with which this content type is associated to. This will contain all hub sites where this content type is queued to be enforced or is already enforced. Enforcing a content type means that the content type is applied to the lists in the enforced sites. * @param value Value to set for the associatedHubsUrls property. */ public void setAssociatedHubsUrls(@jakarta.annotation.Nullable final java.util.List value) { @@ -267,7 +267,7 @@ public void setColumnPositions(@jakarta.annotation.Nullable final java.util.List this.backingStore.set("columnPositions", value); } /** - * Sets the columns property value. The collection of column definitions for this contentType. + * Sets the columns property value. The collection of column definitions for this content type. * @param value Value to set for the columns property. */ public void setColumns(@jakarta.annotation.Nullable final java.util.List value) { @@ -344,7 +344,7 @@ public void setParentId(@jakarta.annotation.Nullable final String value) { this.backingStore.set("parentId", value); } /** - * Sets the propagateChanges property value. If true, any changes made to the content type will be pushed to inherited content types and lists that implement the content type. + * Sets the propagateChanges property value. If true, any changes made to the content type are pushed to inherited content types and lists that implement the content type. * @param value Value to set for the propagateChanges property. */ public void setPropagateChanges(@jakarta.annotation.Nullable final Boolean value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/DelegatedPermissionClassification.java b/src/main/java/com/microsoft/graph/generated/models/DelegatedPermissionClassification.java index 3e058de1558..21320b862ab 100644 --- a/src/main/java/com/microsoft/graph/generated/models/DelegatedPermissionClassification.java +++ b/src/main/java/com/microsoft/graph/generated/models/DelegatedPermissionClassification.java @@ -25,7 +25,7 @@ public static DelegatedPermissionClassification createFromDiscriminatorValue(@ja return new DelegatedPermissionClassification(); } /** - * Gets the classification property value. The classification value being given. Possible value: low. Doesn't support $filter. + * Gets the classification property value. The classification value. Possible values: low, medium (preview), high (preview). Doesn't support $filter. * @return a {@link PermissionClassificationType} */ @jakarta.annotation.Nullable @@ -72,7 +72,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeStringValue("permissionName", this.getPermissionName()); } /** - * Sets the classification property value. The classification value being given. Possible value: low. Doesn't support $filter. + * Sets the classification property value. The classification value. Possible values: low, medium (preview), high (preview). Doesn't support $filter. * @param value Value to set for the classification property. */ public void setClassification(@jakarta.annotation.Nullable final PermissionClassificationType value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/Device.java b/src/main/java/com/microsoft/graph/generated/models/Device.java index 03068edb963..abd83155cfb 100644 --- a/src/main/java/com/microsoft/graph/generated/models/Device.java +++ b/src/main/java/com/microsoft/graph/generated/models/Device.java @@ -114,6 +114,14 @@ public String getDisplayName() { public String getEnrollmentProfileName() { return this.backingStore.get("enrollmentProfileName"); } + /** + * Gets the enrollmentType property value. The enrollmentType property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getEnrollmentType() { + return this.backingStore.get("enrollmentType"); + } /** * Gets the extensions property value. The collection of open extensions defined for the device. Read-only. Nullable. * @return a {@link java.util.List} @@ -140,9 +148,12 @@ public Map> getFieldDeserializers deserializerMap.put("deviceVersion", (n) -> { this.setDeviceVersion(n.getIntegerValue()); }); deserializerMap.put("displayName", (n) -> { this.setDisplayName(n.getStringValue()); }); deserializerMap.put("enrollmentProfileName", (n) -> { this.setEnrollmentProfileName(n.getStringValue()); }); + deserializerMap.put("enrollmentType", (n) -> { this.setEnrollmentType(n.getStringValue()); }); deserializerMap.put("extensions", (n) -> { this.setExtensions(n.getCollectionOfObjectValues(Extension::createFromDiscriminatorValue)); }); deserializerMap.put("isCompliant", (n) -> { this.setIsCompliant(n.getBooleanValue()); }); deserializerMap.put("isManaged", (n) -> { this.setIsManaged(n.getBooleanValue()); }); + deserializerMap.put("isRooted", (n) -> { this.setIsRooted(n.getBooleanValue()); }); + deserializerMap.put("managementType", (n) -> { this.setManagementType(n.getStringValue()); }); deserializerMap.put("manufacturer", (n) -> { this.setManufacturer(n.getStringValue()); }); deserializerMap.put("mdmAppId", (n) -> { this.setMdmAppId(n.getStringValue()); }); deserializerMap.put("memberOf", (n) -> { this.setMemberOf(n.getCollectionOfObjectValues(DirectoryObject::createFromDiscriminatorValue)); }); @@ -178,6 +189,22 @@ public Boolean getIsCompliant() { public Boolean getIsManaged() { return this.backingStore.get("isManaged"); } + /** + * Gets the isRooted property value. The isRooted property + * @return a {@link Boolean} + */ + @jakarta.annotation.Nullable + public Boolean getIsRooted() { + return this.backingStore.get("isRooted"); + } + /** + * Gets the managementType property value. The managementType property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getManagementType() { + return this.backingStore.get("managementType"); + } /** * Gets the manufacturer property value. Manufacturer of the device. Read-only. * @return a {@link String} @@ -219,7 +246,7 @@ public OffsetDateTime getOnPremisesLastSyncDateTime() { return this.backingStore.get("onPremisesLastSyncDateTime"); } /** - * Gets the onPremisesSecurityIdentifier property value. The onPremisesSecurityIdentifier property + * Gets the onPremisesSecurityIdentifier property value. The on-premises security identifier (SID) for the user who was synchronized from on-premises to the cloud. Read-only. Returned only on $select. Supports $filter (eq). * @return a {@link String} */ @jakarta.annotation.Nullable @@ -332,9 +359,12 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeIntegerValue("deviceVersion", this.getDeviceVersion()); writer.writeStringValue("displayName", this.getDisplayName()); writer.writeStringValue("enrollmentProfileName", this.getEnrollmentProfileName()); + writer.writeStringValue("enrollmentType", this.getEnrollmentType()); writer.writeCollectionOfObjectValues("extensions", this.getExtensions()); writer.writeBooleanValue("isCompliant", this.getIsCompliant()); writer.writeBooleanValue("isManaged", this.getIsManaged()); + writer.writeBooleanValue("isRooted", this.getIsRooted()); + writer.writeStringValue("managementType", this.getManagementType()); writer.writeStringValue("manufacturer", this.getManufacturer()); writer.writeStringValue("mdmAppId", this.getMdmAppId()); writer.writeCollectionOfObjectValues("memberOf", this.getMemberOf()); @@ -430,6 +460,13 @@ public void setDisplayName(@jakarta.annotation.Nullable final String value) { public void setEnrollmentProfileName(@jakarta.annotation.Nullable final String value) { this.backingStore.set("enrollmentProfileName", value); } + /** + * Sets the enrollmentType property value. The enrollmentType property + * @param value Value to set for the enrollmentType property. + */ + public void setEnrollmentType(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("enrollmentType", value); + } /** * Sets the extensions property value. The collection of open extensions defined for the device. Read-only. Nullable. * @param value Value to set for the extensions property. @@ -451,6 +488,20 @@ public void setIsCompliant(@jakarta.annotation.Nullable final Boolean value) { public void setIsManaged(@jakarta.annotation.Nullable final Boolean value) { this.backingStore.set("isManaged", value); } + /** + * Sets the isRooted property value. The isRooted property + * @param value Value to set for the isRooted property. + */ + public void setIsRooted(@jakarta.annotation.Nullable final Boolean value) { + this.backingStore.set("isRooted", value); + } + /** + * Sets the managementType property value. The managementType property + * @param value Value to set for the managementType property. + */ + public void setManagementType(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("managementType", value); + } /** * Sets the manufacturer property value. Manufacturer of the device. Read-only. * @param value Value to set for the manufacturer property. @@ -487,7 +538,7 @@ public void setOnPremisesLastSyncDateTime(@jakarta.annotation.Nullable final Off this.backingStore.set("onPremisesLastSyncDateTime", value); } /** - * Sets the onPremisesSecurityIdentifier property value. The onPremisesSecurityIdentifier property + * Sets the onPremisesSecurityIdentifier property value. The on-premises security identifier (SID) for the user who was synchronized from on-premises to the cloud. Read-only. Returned only on $select. Supports $filter (eq). * @param value Value to set for the onPremisesSecurityIdentifier property. */ public void setOnPremisesSecurityIdentifier(@jakarta.annotation.Nullable final String value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/DeviceEnrollmentConfiguration.java b/src/main/java/com/microsoft/graph/generated/models/DeviceEnrollmentConfiguration.java index 33efa076967..cd5f32a1013 100644 --- a/src/main/java/com/microsoft/graph/generated/models/DeviceEnrollmentConfiguration.java +++ b/src/main/java/com/microsoft/graph/generated/models/DeviceEnrollmentConfiguration.java @@ -33,6 +33,7 @@ public static DeviceEnrollmentConfiguration createFromDiscriminatorValue(@jakart case "#microsoft.graph.deviceEnrollmentLimitConfiguration": return new DeviceEnrollmentLimitConfiguration(); case "#microsoft.graph.deviceEnrollmentPlatformRestrictionsConfiguration": return new DeviceEnrollmentPlatformRestrictionsConfiguration(); case "#microsoft.graph.deviceEnrollmentWindowsHelloForBusinessConfiguration": return new DeviceEnrollmentWindowsHelloForBusinessConfiguration(); + case "#microsoft.graph.windows10EnrollmentCompletionPageConfiguration": return new Windows10EnrollmentCompletionPageConfiguration(); } } return new DeviceEnrollmentConfiguration(); diff --git a/src/main/java/com/microsoft/graph/generated/models/DeviceManagement.java b/src/main/java/com/microsoft/graph/generated/models/DeviceManagement.java index 6961e5edba4..5f0694862b4 100644 --- a/src/main/java/com/microsoft/graph/generated/models/DeviceManagement.java +++ b/src/main/java/com/microsoft/graph/generated/models/DeviceManagement.java @@ -575,7 +575,7 @@ public java.util.List g return this.backingStore.get("userExperienceAnalyticsWorkFromAnywhereModelPerformance"); } /** - * Gets the virtualEndpoint property value. The virtualEndpoint property + * Gets the virtualEndpoint property value. Virtual endpoint * @return a {@link VirtualEndpoint} */ @jakarta.annotation.Nullable @@ -1109,7 +1109,7 @@ public void setUserExperienceAnalyticsWorkFromAnywhereModelPerformance(@jakarta. this.backingStore.set("userExperienceAnalyticsWorkFromAnywhereModelPerformance", value); } /** - * Sets the virtualEndpoint property value. The virtualEndpoint property + * Sets the virtualEndpoint property value. Virtual endpoint * @param value Value to set for the virtualEndpoint property. */ public void setVirtualEndpoint(@jakarta.annotation.Nullable final VirtualEndpoint value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/DeviceManagementCachedReportConfiguration.java b/src/main/java/com/microsoft/graph/generated/models/DeviceManagementCachedReportConfiguration.java new file mode 100644 index 00000000000..047ee65a6a1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/DeviceManagementCachedReportConfiguration.java @@ -0,0 +1,47 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Entity representing the configuration of a cached report. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class DeviceManagementCachedReportConfiguration extends Entity implements Parsable { + /** + * Instantiates a new {@link DeviceManagementCachedReportConfiguration} and sets the default values. + */ + public DeviceManagementCachedReportConfiguration() { + super(); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link DeviceManagementCachedReportConfiguration} + */ + @jakarta.annotation.Nonnull + public static DeviceManagementCachedReportConfiguration createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new DeviceManagementCachedReportConfiguration(); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + return deserializerMap; + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + super.serialize(writer); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/DeviceManagementExportJob.java b/src/main/java/com/microsoft/graph/generated/models/DeviceManagementExportJob.java index 36a97562908..df608b25399 100644 --- a/src/main/java/com/microsoft/graph/generated/models/DeviceManagementExportJob.java +++ b/src/main/java/com/microsoft/graph/generated/models/DeviceManagementExportJob.java @@ -8,7 +8,7 @@ import java.util.Map; import java.util.Objects; /** - * Entity representing a job to export a report + * Entity representing a job to export a report. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class DeviceManagementExportJob extends Entity implements Parsable { @@ -64,7 +64,7 @@ public String getFilter() { return this.backingStore.get("filter"); } /** - * Gets the format property value. Possible values for the file format of a report + * Gets the format property value. Possible values for the file format of a report. * @return a {@link DeviceManagementReportFileFormat} */ @jakarta.annotation.Nullable @@ -72,7 +72,7 @@ public DeviceManagementReportFileFormat getFormat() { return this.backingStore.get("format"); } /** - * Gets the localizationType property value. Configures how the requested export job is localized + * Gets the localizationType property value. Configures how the requested export job is localized. * @return a {@link DeviceManagementExportJobLocalizationType} */ @jakarta.annotation.Nullable @@ -112,7 +112,7 @@ public String getSnapshotId() { return this.backingStore.get("snapshotId"); } /** - * Gets the status property value. Possible statuses associated with a generated report + * Gets the status property value. Possible statuses associated with a generated report. * @return a {@link DeviceManagementReportStatus} */ @jakarta.annotation.Nullable @@ -160,14 +160,14 @@ public void setFilter(@jakarta.annotation.Nullable final String value) { this.backingStore.set("filter", value); } /** - * Sets the format property value. Possible values for the file format of a report + * Sets the format property value. Possible values for the file format of a report. * @param value Value to set for the format property. */ public void setFormat(@jakarta.annotation.Nullable final DeviceManagementReportFileFormat value) { this.backingStore.set("format", value); } /** - * Sets the localizationType property value. Configures how the requested export job is localized + * Sets the localizationType property value. Configures how the requested export job is localized. * @param value Value to set for the localizationType property. */ public void setLocalizationType(@jakarta.annotation.Nullable final DeviceManagementExportJobLocalizationType value) { @@ -202,7 +202,7 @@ public void setSnapshotId(@jakarta.annotation.Nullable final String value) { this.backingStore.set("snapshotId", value); } /** - * Sets the status property value. Possible statuses associated with a generated report + * Sets the status property value. Possible statuses associated with a generated report. * @param value Value to set for the status property. */ public void setStatus(@jakarta.annotation.Nullable final DeviceManagementReportStatus value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/DeviceManagementExportJobLocalizationType.java b/src/main/java/com/microsoft/graph/generated/models/DeviceManagementExportJobLocalizationType.java index c55fb22cfee..bd0cedf81b2 100644 --- a/src/main/java/com/microsoft/graph/generated/models/DeviceManagementExportJobLocalizationType.java +++ b/src/main/java/com/microsoft/graph/generated/models/DeviceManagementExportJobLocalizationType.java @@ -4,13 +4,13 @@ import java.util.Objects; /** - * Configures how the requested export job is localized + * Configures how the requested export job is localized. */ @jakarta.annotation.Generated("com.microsoft.kiota") public enum DeviceManagementExportJobLocalizationType implements ValuedEnum { - /** Configures the export job to expose localized values as an additional column */ + /** Configures the export job to expose localized values as an additional column. */ LocalizedValuesAsAdditionalColumn("localizedValuesAsAdditionalColumn"), - /** Configures the export job to replace enumerable values with their localized values */ + /** Configures the export job to replace enumerable values with their localized values. */ ReplaceLocalizableValues("replaceLocalizableValues"); public final String value; DeviceManagementExportJobLocalizationType(final String value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/DeviceManagementReportFileFormat.java b/src/main/java/com/microsoft/graph/generated/models/DeviceManagementReportFileFormat.java index cf50fe73706..b15a186bfb4 100644 --- a/src/main/java/com/microsoft/graph/generated/models/DeviceManagementReportFileFormat.java +++ b/src/main/java/com/microsoft/graph/generated/models/DeviceManagementReportFileFormat.java @@ -4,15 +4,15 @@ import java.util.Objects; /** - * Possible values for the file format of a report + * Possible values for the file format of a report. */ @jakarta.annotation.Generated("com.microsoft.kiota") public enum DeviceManagementReportFileFormat implements ValuedEnum { - /** CSV Format */ + /** CSV Format. */ Csv("csv"), - /** PDF Format */ + /** PDF Format (Deprecate later). */ Pdf("pdf"), - /** JSON Format */ + /** JSON Format. */ Json("json"), /** Evolvable enumeration sentinel value. Do not use. */ UnknownFutureValue("unknownFutureValue"); diff --git a/src/main/java/com/microsoft/graph/generated/models/DeviceManagementReportStatus.java b/src/main/java/com/microsoft/graph/generated/models/DeviceManagementReportStatus.java index 3cc3bbea959..23b4da3cc0d 100644 --- a/src/main/java/com/microsoft/graph/generated/models/DeviceManagementReportStatus.java +++ b/src/main/java/com/microsoft/graph/generated/models/DeviceManagementReportStatus.java @@ -4,19 +4,19 @@ import java.util.Objects; /** - * Possible statuses associated with a generated report + * Possible statuses associated with a generated report. */ @jakarta.annotation.Generated("com.microsoft.kiota") public enum DeviceManagementReportStatus implements ValuedEnum { - /** Report generation status is unknown */ + /** Report generation status is unknown. */ Unknown("unknown"), - /** Report generation has not started */ + /** Report generation has not started. */ NotStarted("notStarted"), - /** Report generation is in progress */ + /** Report generation is in progress. */ InProgress("inProgress"), - /** Report generation is completed */ + /** Report generation is completed. */ Completed("completed"), - /** Report generation has failed */ + /** Report generation has failed. */ Failed("failed"); public final String value; DeviceManagementReportStatus(final String value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/DevicePlatformType.java b/src/main/java/com/microsoft/graph/generated/models/DevicePlatformType.java new file mode 100644 index 00000000000..e5b90ce4ef8 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/DevicePlatformType.java @@ -0,0 +1,63 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.ValuedEnum; +import java.util.Objects; + +/** + * Supported platform types. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public enum DevicePlatformType implements ValuedEnum { + /** Android. */ + Android("android"), + /** AndroidForWork. */ + AndroidForWork("androidForWork"), + /** iOS. */ + IOS("iOS"), + /** MacOS. */ + MacOS("macOS"), + /** WindowsPhone 8.1. */ + WindowsPhone81("windowsPhone81"), + /** Windows 8.1 and later */ + Windows81AndLater("windows81AndLater"), + /** Windows 10 and later. */ + Windows10AndLater("windows10AndLater"), + /** Android Work Profile. */ + AndroidWorkProfile("androidWorkProfile"), + /** Unknown. */ + Unknown("unknown"), + /** Android AOSP. */ + AndroidAOSP("androidAOSP"), + /** Indicates Mobile Application Management (MAM) for android devices. */ + AndroidMobileApplicationManagement("androidMobileApplicationManagement"), + /** Indicates Mobile Application Management (MAM) for iOS devices */ + IOSMobileApplicationManagement("iOSMobileApplicationManagement"), + /** Evolvable enumeration sentinel value. Do not use */ + UnknownFutureValue("unknownFutureValue"); + public final String value; + DevicePlatformType(final String value) { + this.value = value; + } + @jakarta.annotation.Nonnull + public String getValue() { return this.value; } + @jakarta.annotation.Nullable + public static DevicePlatformType forValue(@jakarta.annotation.Nonnull final String searchValue) { + Objects.requireNonNull(searchValue); + switch(searchValue) { + case "android": return Android; + case "androidForWork": return AndroidForWork; + case "iOS": return IOS; + case "macOS": return MacOS; + case "windowsPhone81": return WindowsPhone81; + case "windows81AndLater": return Windows81AndLater; + case "windows10AndLater": return Windows10AndLater; + case "androidWorkProfile": return AndroidWorkProfile; + case "unknown": return Unknown; + case "androidAOSP": return AndroidAOSP; + case "androidMobileApplicationManagement": return AndroidMobileApplicationManagement; + case "iOSMobileApplicationManagement": return IOSMobileApplicationManagement; + case "unknownFutureValue": return UnknownFutureValue; + default: return null; + } + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/DocumentSetVersion.java b/src/main/java/com/microsoft/graph/generated/models/DocumentSetVersion.java index 44a7131dace..7136b8152f4 100644 --- a/src/main/java/com/microsoft/graph/generated/models/DocumentSetVersion.java +++ b/src/main/java/com/microsoft/graph/generated/models/DocumentSetVersion.java @@ -73,7 +73,7 @@ public java.util.List getItems() { return this.backingStore.get("items"); } /** - * Gets the shouldCaptureMinorVersion property value. If true, minor versions of items are also captured; otherwise, only major versions will be captured. Default value is false. + * Gets the shouldCaptureMinorVersion property value. If true, minor versions of items are also captured; otherwise, only major versions are captured. The default value is false. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -122,7 +122,7 @@ public void setItems(@jakarta.annotation.Nullable final java.util.List> getFieldDeserializers return deserializerMap; } /** - * Gets the notificationChannelUrl property value. Default Teams channel to which notifications will be sent. Default value is null. + * Gets the notificationChannelUrl property value. Default Teams channel to which notifications are sent. Default value is null. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -104,7 +104,7 @@ public void setDueTime(@jakarta.annotation.Nullable final LocalTime value) { this.backingStore.set("dueTime", value); } /** - * Sets the notificationChannelUrl property value. Default Teams channel to which notifications will be sent. Default value is null. + * Sets the notificationChannelUrl property value. Default Teams channel to which notifications are sent. Default value is null. * @param value Value to set for the notificationChannelUrl property. */ public void setNotificationChannelUrl(@jakarta.annotation.Nullable final String value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/Entity.java b/src/main/java/com/microsoft/graph/generated/models/Entity.java index 2400b21d1b4..46ced4f4176 100644 --- a/src/main/java/com/microsoft/graph/generated/models/Entity.java +++ b/src/main/java/com/microsoft/graph/generated/models/Entity.java @@ -22,14 +22,20 @@ import com.microsoft.graph.models.identitygovernance.UserProcessingResult; import com.microsoft.graph.models.identitygovernance.WorkflowTemplate; import com.microsoft.graph.models.partners.billing.AzureUsage; +import com.microsoft.graph.models.partners.billing.BilledReconciliation; import com.microsoft.graph.models.partners.billing.BilledUsage; import com.microsoft.graph.models.partners.billing.Billing; +import com.microsoft.graph.models.partners.billing.BillingReconciliation; import com.microsoft.graph.models.partners.billing.ExportSuccessOperation; import com.microsoft.graph.models.partners.billing.FailedOperation; import com.microsoft.graph.models.partners.billing.Manifest; import com.microsoft.graph.models.partners.billing.Operation; import com.microsoft.graph.models.partners.billing.RunningOperation; import com.microsoft.graph.models.partners.billing.UnbilledUsage; +import com.microsoft.graph.models.search.Acronym; +import com.microsoft.graph.models.search.Bookmark; +import com.microsoft.graph.models.search.Qna; +import com.microsoft.graph.models.search.SearchAnswer; import com.microsoft.graph.models.security.Alert; import com.microsoft.graph.models.security.Article; import com.microsoft.graph.models.security.ArticleIndicator; @@ -178,6 +184,7 @@ private static Entity createFromDiscriminatorValue_0(@jakarta.annotation.Nonnull case "#microsoft.graph.addLargeGalleryViewOperation": return new AddLargeGalleryViewOperation(); case "#microsoft.graph.adminConsentRequestPolicy": return new AdminConsentRequestPolicy(); case "#microsoft.graph.administrativeUnit": return new AdministrativeUnit(); + case "#microsoft.graph.adminMicrosoft365Apps": return new AdminMicrosoft365Apps(); case "#microsoft.graph.agreement": return new Agreement(); case "#microsoft.graph.agreementAcceptance": return new AgreementAcceptance(); case "#microsoft.graph.agreementFile": return new AgreementFile(); @@ -241,6 +248,7 @@ private static Entity createFromDiscriminatorValue_0(@jakarta.annotation.Nonnull case "#microsoft.graph.b2xIdentityUserFlow": return new B2xIdentityUserFlow(); case "#microsoft.graph.baseItem": return new BaseItem(); case "#microsoft.graph.baseItemVersion": return new BaseItemVersion(); + case "#microsoft.graph.baseSitePage": return new BaseSitePage(); case "#microsoft.graph.bitlocker": return new Bitlocker(); case "#microsoft.graph.bitlockerRecoveryKey": return new BitlockerRecoveryKey(); case "#microsoft.graph.bookingAppointment": return new BookingAppointment(); @@ -268,6 +276,7 @@ private static Entity createFromDiscriminatorValue_0(@jakarta.annotation.Nonnull case "#microsoft.graph.callRecords.session": return new Session(); case "#microsoft.graph.callTranscript": return new CallTranscript(); case "#microsoft.graph.cancelMediaProcessingOperation": return new CancelMediaProcessingOperation(); + case "#microsoft.graph.canvasLayout": return new CanvasLayout(); case "#microsoft.graph.certificateBasedAuthConfiguration": return new CertificateBasedAuthConfiguration(); case "#microsoft.graph.changeTrackedEntity": return new ChangeTrackedEntity(); case "#microsoft.graph.channel": return new Channel(); @@ -279,6 +288,15 @@ private static Entity createFromDiscriminatorValue_0(@jakarta.annotation.Nonnull case "#microsoft.graph.claimsMappingPolicy": return new ClaimsMappingPolicy(); case "#microsoft.graph.cloudClipboardItem": return new CloudClipboardItem(); case "#microsoft.graph.cloudClipboardRoot": return new CloudClipboardRoot(); + case "#microsoft.graph.cloudPC": return new CloudPC(); + case "#microsoft.graph.cloudPcAuditEvent": return new CloudPcAuditEvent(); + case "#microsoft.graph.cloudPcDeviceImage": return new CloudPcDeviceImage(); + case "#microsoft.graph.cloudPcGalleryImage": return new CloudPcGalleryImage(); + case "#microsoft.graph.cloudPcOnPremisesConnection": return new CloudPcOnPremisesConnection(); + case "#microsoft.graph.cloudPcProvisioningPolicy": return new CloudPcProvisioningPolicy(); + case "#microsoft.graph.cloudPcProvisioningPolicyAssignment": return new CloudPcProvisioningPolicyAssignment(); + case "#microsoft.graph.cloudPcUserSetting": return new CloudPcUserSetting(); + case "#microsoft.graph.cloudPcUserSettingAssignment": return new CloudPcUserSettingAssignment(); case "#microsoft.graph.columnDefinition": return new ColumnDefinition(); case "#microsoft.graph.columnLink": return new ColumnLink(); case "#microsoft.graph.commsOperation": return new CommsOperation(); @@ -348,6 +366,7 @@ private static Entity createFromDiscriminatorValue_0(@jakarta.annotation.Nonnull case "#microsoft.graph.deviceLocalCredentialInfo": return new DeviceLocalCredentialInfo(); case "#microsoft.graph.deviceLogCollectionResponse": return new DeviceLogCollectionResponse(); case "#microsoft.graph.deviceManagement": return new DeviceManagement(); + case "#microsoft.graph.deviceManagementCachedReportConfiguration": return new DeviceManagementCachedReportConfiguration(); case "#microsoft.graph.deviceManagementExchangeConnector": return new DeviceManagementExchangeConnector(); case "#microsoft.graph.deviceManagementExportJob": return new DeviceManagementExportJob(); case "#microsoft.graph.deviceManagementPartner": return new DeviceManagementPartner(); @@ -437,6 +456,8 @@ private static Entity createFromDiscriminatorValue_0(@jakarta.annotation.Nonnull case "#microsoft.graph.groupSetting": return new GroupSetting(); case "#microsoft.graph.groupSettingTemplate": return new GroupSettingTemplate(); case "#microsoft.graph.homeRealmDiscoveryPolicy": return new HomeRealmDiscoveryPolicy(); + case "#microsoft.graph.horizontalSection": return new HorizontalSection(); + case "#microsoft.graph.horizontalSectionColumn": return new HorizontalSectionColumn(); case "#microsoft.graph.identityApiConnector": return new IdentityApiConnector(); case "#microsoft.graph.identityBuiltInUserFlowAttribute": return new IdentityBuiltInUserFlowAttribute(); case "#microsoft.graph.identityContainer": return new IdentityContainer(); @@ -503,6 +524,7 @@ private static Entity createFromDiscriminatorValue_0(@jakarta.annotation.Nonnull case "#microsoft.graph.localizedNotificationMessage": return new LocalizedNotificationMessage(); case "#microsoft.graph.loginPage": return new LoginPage(); case "#microsoft.graph.longRunningOperation": return new LongRunningOperation(); + case "#microsoft.graph.m365AppsInstallationOptions": return new M365AppsInstallationOptions(); case "#microsoft.graph.macOSCompliancePolicy": return new MacOSCompliancePolicy(); case "#microsoft.graph.macOSCustomConfiguration": return new MacOSCustomConfiguration(); case "#microsoft.graph.macOSDeviceFeaturesConfiguration": return new MacOSDeviceFeaturesConfiguration(); @@ -597,8 +619,10 @@ private static Entity createFromDiscriminatorValue_0(@jakarta.annotation.Nonnull case "#microsoft.graph.participantLeftNotification": return new ParticipantLeftNotification(); case "#microsoft.graph.partners": return new Partners(); case "#microsoft.graph.partners.billing.azureUsage": return new AzureUsage(); + case "#microsoft.graph.partners.billing.billedReconciliation": return new BilledReconciliation(); case "#microsoft.graph.partners.billing.billedUsage": return new BilledUsage(); case "#microsoft.graph.partners.billing.billing": return new Billing(); + case "#microsoft.graph.partners.billing.billingReconciliation": return new BillingReconciliation(); case "#microsoft.graph.partners.billing.exportSuccessOperation": return new ExportSuccessOperation(); case "#microsoft.graph.partners.billing.failedOperation": return new FailedOperation(); case "#microsoft.graph.partners.billing.manifest": return new Manifest(); @@ -629,6 +653,17 @@ private static Entity createFromDiscriminatorValue_0(@jakarta.annotation.Nonnull case "#microsoft.graph.playPromptOperation": return new PlayPromptOperation(); case "#microsoft.graph.policyBase": return new PolicyBase(); case "#microsoft.graph.policyRoot": return new PolicyRoot(); + } + return null; + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param discriminatorValue Discriminator value from the payload + * @return a {@link Entity} + */ + @jakarta.annotation.Nonnull + private static Entity createFromDiscriminatorValue_1(@jakarta.annotation.Nonnull final String discriminatorValue) { + switch (discriminatorValue) { case "#microsoft.graph.post": return new Post(); case "#microsoft.graph.presence": return new Presence(); case "#microsoft.graph.printConnector": return new PrintConnector(); @@ -647,17 +682,6 @@ private static Entity createFromDiscriminatorValue_0(@jakarta.annotation.Nonnull case "#microsoft.graph.printUsage": return new PrintUsage(); case "#microsoft.graph.printUsageByPrinter": return new PrintUsageByPrinter(); case "#microsoft.graph.printUsageByUser": return new PrintUsageByUser(); - } - return null; - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param discriminatorValue Discriminator value from the payload - * @return a {@link Entity} - */ - @jakarta.annotation.Nonnull - private static Entity createFromDiscriminatorValue_1(@jakarta.annotation.Nonnull final String discriminatorValue) { - switch (discriminatorValue) { case "#microsoft.graph.privilegedAccessGroup": return new PrivilegedAccessGroup(); case "#microsoft.graph.privilegedAccessGroupAssignmentSchedule": return new PrivilegedAccessGroupAssignmentSchedule(); case "#microsoft.graph.privilegedAccessGroupAssignmentScheduleInstance": return new PrivilegedAccessGroupAssignmentScheduleInstance(); @@ -700,6 +724,10 @@ private static Entity createFromDiscriminatorValue_1(@jakarta.annotation.Nonnull case "#microsoft.graph.schedulingGroup": return new SchedulingGroup(); case "#microsoft.graph.schemaExtension": return new SchemaExtension(); case "#microsoft.graph.scopedRoleMembership": return new ScopedRoleMembership(); + case "#microsoft.graph.search.acronym": return new Acronym(); + case "#microsoft.graph.search.bookmark": return new Bookmark(); + case "#microsoft.graph.search.qna": return new Qna(); + case "#microsoft.graph.search.searchAnswer": return new SearchAnswer(); case "#microsoft.graph.searchEntity": return new SearchEntity(); case "#microsoft.graph.sectionGroup": return new SectionGroup(); case "#microsoft.graph.secureScore": return new SecureScore(); @@ -788,6 +816,7 @@ private static Entity createFromDiscriminatorValue_1(@jakarta.annotation.Nonnull case "#microsoft.graph.simulationAutomationRun": return new SimulationAutomationRun(); case "#microsoft.graph.singleValueLegacyExtendedProperty": return new SingleValueLegacyExtendedProperty(); case "#microsoft.graph.site": return new Site(); + case "#microsoft.graph.sitePage": return new SitePage(); case "#microsoft.graph.skypeForBusinessUserConversationMember": return new SkypeForBusinessUserConversationMember(); case "#microsoft.graph.skypeUserConversationMember": return new SkypeUserConversationMember(); case "#microsoft.graph.smsAuthenticationMethodConfiguration": return new SmsAuthenticationMethodConfiguration(); @@ -796,6 +825,7 @@ private static Entity createFromDiscriminatorValue_1(@jakarta.annotation.Nonnull case "#microsoft.graph.softwareOathAuthenticationMethod": return new SoftwareOathAuthenticationMethod(); case "#microsoft.graph.softwareOathAuthenticationMethodConfiguration": return new SoftwareOathAuthenticationMethodConfiguration(); case "#microsoft.graph.softwareUpdateStatusSummary": return new SoftwareUpdateStatusSummary(); + case "#microsoft.graph.standardWebPart": return new StandardWebPart(); case "#microsoft.graph.startHoldMusicOperation": return new StartHoldMusicOperation(); case "#microsoft.graph.stopHoldMusicOperation": return new StopHoldMusicOperation(); case "#microsoft.graph.stsPolicy": return new StsPolicy(); @@ -840,6 +870,7 @@ private static Entity createFromDiscriminatorValue_1(@jakarta.annotation.Nonnull case "#microsoft.graph.termStore.set": return new Set(); case "#microsoft.graph.termStore.store": return new Store(); case "#microsoft.graph.termStore.term": return new Term(); + case "#microsoft.graph.textWebPart": return new TextWebPart(); case "#microsoft.graph.threatAssessmentRequest": return new ThreatAssessmentRequest(); case "#microsoft.graph.threatAssessmentResult": return new ThreatAssessmentResult(); case "#microsoft.graph.thumbnailSet": return new ThumbnailSet(); @@ -913,6 +944,7 @@ private static Entity createFromDiscriminatorValue_1(@jakarta.annotation.Nonnull case "#microsoft.graph.userSettings": return new UserSettings(); case "#microsoft.graph.userSignInInsight": return new UserSignInInsight(); case "#microsoft.graph.userTeamwork": return new UserTeamwork(); + case "#microsoft.graph.verticalSection": return new VerticalSection(); case "#microsoft.graph.virtualEndpoint": return new VirtualEndpoint(); case "#microsoft.graph.virtualEvent": return new VirtualEvent(); case "#microsoft.graph.virtualEventRegistration": return new VirtualEventRegistration(); @@ -922,10 +954,12 @@ private static Entity createFromDiscriminatorValue_1(@jakarta.annotation.Nonnull case "#microsoft.graph.voiceAuthenticationMethodConfiguration": return new VoiceAuthenticationMethodConfiguration(); case "#microsoft.graph.vppToken": return new VppToken(); case "#microsoft.graph.webApp": return new WebApp(); + case "#microsoft.graph.webPart": return new WebPart(); case "#microsoft.graph.win32LobApp": return new Win32LobApp(); case "#microsoft.graph.windows10CompliancePolicy": return new Windows10CompliancePolicy(); case "#microsoft.graph.windows10CustomConfiguration": return new Windows10CustomConfiguration(); case "#microsoft.graph.windows10EndpointProtectionConfiguration": return new Windows10EndpointProtectionConfiguration(); + case "#microsoft.graph.windows10EnrollmentCompletionPageConfiguration": return new Windows10EnrollmentCompletionPageConfiguration(); case "#microsoft.graph.windows10EnterpriseModernAppManagementConfiguration": return new Windows10EnterpriseModernAppManagementConfiguration(); case "#microsoft.graph.windows10GeneralConfiguration": return new Windows10GeneralConfiguration(); case "#microsoft.graph.windows10MobileCompliancePolicy": return new Windows10MobileCompliancePolicy(); diff --git a/src/main/java/com/microsoft/graph/generated/models/Event.java b/src/main/java/com/microsoft/graph/generated/models/Event.java index 533d252ca09..ae3a0c3554e 100644 --- a/src/main/java/com/microsoft/graph/generated/models/Event.java +++ b/src/main/java/com/microsoft/graph/generated/models/Event.java @@ -166,7 +166,7 @@ public String getICalUId() { return this.backingStore.get("iCalUId"); } /** - * Gets the importance property value. The importance property + * Gets the importance property value. The importance of the event. The possible values are: low, normal, high. * @return a {@link Importance} */ @jakarta.annotation.Nullable @@ -182,7 +182,7 @@ public java.util.List getInstances() { return this.backingStore.get("instances"); } /** - * Gets the isAllDay property value. The isAllDay property + * Gets the isAllDay property value. Set to true if the event lasts all day. If true, regardless of whether it's a single-day or multi-day event, start and end time must be set to midnight and be in the same time zone. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -190,7 +190,7 @@ public Boolean getIsAllDay() { return this.backingStore.get("isAllDay"); } /** - * Gets the isCancelled property value. The isCancelled property + * Gets the isCancelled property value. Set to true if the event has been canceled. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -198,7 +198,7 @@ public Boolean getIsCancelled() { return this.backingStore.get("isCancelled"); } /** - * Gets the isDraft property value. The isDraft property + * Gets the isDraft property value. Set to true if the user has updated the meeting in Outlook but has not sent the updates to attendees. Set to false if all changes have been sent, or if the event is an appointment without any attendees. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -206,7 +206,7 @@ public Boolean getIsDraft() { return this.backingStore.get("isDraft"); } /** - * Gets the isOnlineMeeting property value. The isOnlineMeeting property + * Gets the isOnlineMeeting property value. True if this event has online meeting information (that is, onlineMeeting points to an onlineMeetingInfo resource), false otherwise. Default is false (onlineMeeting is null). Optional. After you set isOnlineMeeting to true, Microsoft Graph initializes onlineMeeting. Subsequently Outlook ignores any further changes to isOnlineMeeting, and the meeting remains available online. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -214,7 +214,7 @@ public Boolean getIsOnlineMeeting() { return this.backingStore.get("isOnlineMeeting"); } /** - * Gets the isOrganizer property value. The isOrganizer property + * Gets the isOrganizer property value. Set to true if the calendar owner (specified by the owner property of the calendar) is the organizer of the event (specified by the organizer property of the event). This also applies if a delegate organized the event on behalf of the owner. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -222,7 +222,7 @@ public Boolean getIsOrganizer() { return this.backingStore.get("isOrganizer"); } /** - * Gets the isReminderOn property value. The isReminderOn property + * Gets the isReminderOn property value. Set to true if an alert is set to remind the user of the event. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -230,7 +230,7 @@ public Boolean getIsReminderOn() { return this.backingStore.get("isReminderOn"); } /** - * Gets the location property value. The location property + * Gets the location property value. The location of the event. * @return a {@link Location} */ @jakarta.annotation.Nullable @@ -238,7 +238,7 @@ public Location getLocation() { return this.backingStore.get("location"); } /** - * Gets the locations property value. The locations property + * Gets the locations property value. The locations where the event is held or attended from. The location and locations properties always correspond with each other. If you update the location property, any prior locations in the locations collection would be removed and replaced by the new location value. * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -254,7 +254,7 @@ public java.util.List getMultiValueExtendedPro return this.backingStore.get("multiValueExtendedProperties"); } /** - * Gets the onlineMeeting property value. The onlineMeeting property + * Gets the onlineMeeting property value. Details for an attendee to join the meeting online. Default is null. Read-only. After you set the isOnlineMeeting and onlineMeetingProvider properties to enable a meeting online, Microsoft Graph initializes onlineMeeting. When set, the meeting remains available online, and you cannot change the isOnlineMeeting, onlineMeetingProvider, and onlneMeeting properties again. * @return a {@link OnlineMeetingInfo} */ @jakarta.annotation.Nullable @@ -262,7 +262,7 @@ public OnlineMeetingInfo getOnlineMeeting() { return this.backingStore.get("onlineMeeting"); } /** - * Gets the onlineMeetingProvider property value. The onlineMeetingProvider property + * Gets the onlineMeetingProvider property value. Represents the online meeting service provider. By default, onlineMeetingProvider is unknown. The possible values are unknown, teamsForBusiness, skypeForBusiness, and skypeForConsumer. Optional. After you set onlineMeetingProvider, Microsoft Graph initializes onlineMeeting. Subsequently you cannot change onlineMeetingProvider again, and the meeting remains available online. * @return a {@link OnlineMeetingProviderType} */ @jakarta.annotation.Nullable @@ -270,7 +270,7 @@ public OnlineMeetingProviderType getOnlineMeetingProvider() { return this.backingStore.get("onlineMeetingProvider"); } /** - * Gets the onlineMeetingUrl property value. The onlineMeetingUrl property + * Gets the onlineMeetingUrl property value. A URL for an online meeting. The property is set only when an organizer specifies in Outlook that an event is an online meeting such as Skype. Read-only.To access the URL to join an online meeting, use joinUrl which is exposed via the onlineMeeting property of the event. The onlineMeetingUrl property will be deprecated in the future. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -278,7 +278,7 @@ public String getOnlineMeetingUrl() { return this.backingStore.get("onlineMeetingUrl"); } /** - * Gets the organizer property value. The organizer property + * Gets the organizer property value. The organizer of the event. * @return a {@link Recipient} */ @jakarta.annotation.Nullable @@ -286,7 +286,7 @@ public Recipient getOrganizer() { return this.backingStore.get("organizer"); } /** - * Gets the originalEndTimeZone property value. The originalEndTimeZone property + * Gets the originalEndTimeZone property value. The end time zone that was set when the event was created. A value of tzone://Microsoft/Custom indicates that a legacy custom time zone was set in desktop Outlook. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -294,7 +294,7 @@ public String getOriginalEndTimeZone() { return this.backingStore.get("originalEndTimeZone"); } /** - * Gets the originalStart property value. The originalStart property + * Gets the originalStart property value. Represents the start time of an event when it is initially created as an occurrence or exception in a recurring series. This property is not returned for events that are single instances. Its date and time information is expressed in ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z * @return a {@link OffsetDateTime} */ @jakarta.annotation.Nullable @@ -302,7 +302,7 @@ public OffsetDateTime getOriginalStart() { return this.backingStore.get("originalStart"); } /** - * Gets the originalStartTimeZone property value. The originalStartTimeZone property + * Gets the originalStartTimeZone property value. The start time zone that was set when the event was created. A value of tzone://Microsoft/Custom indicates that a legacy custom time zone was set in desktop Outlook. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -310,7 +310,7 @@ public String getOriginalStartTimeZone() { return this.backingStore.get("originalStartTimeZone"); } /** - * Gets the recurrence property value. The recurrence property + * Gets the recurrence property value. The recurrence pattern for the event. * @return a {@link PatternedRecurrence} */ @jakarta.annotation.Nullable @@ -318,7 +318,7 @@ public PatternedRecurrence getRecurrence() { return this.backingStore.get("recurrence"); } /** - * Gets the reminderMinutesBeforeStart property value. The reminderMinutesBeforeStart property + * Gets the reminderMinutesBeforeStart property value. The number of minutes before the event start time that the reminder alert occurs. * @return a {@link Integer} */ @jakarta.annotation.Nullable @@ -326,7 +326,7 @@ public Integer getReminderMinutesBeforeStart() { return this.backingStore.get("reminderMinutesBeforeStart"); } /** - * Gets the responseRequested property value. The responseRequested property + * Gets the responseRequested property value. Default is true, which represents the organizer would like an invitee to send a response to the event. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -334,7 +334,7 @@ public Boolean getResponseRequested() { return this.backingStore.get("responseRequested"); } /** - * Gets the responseStatus property value. The responseStatus property + * Gets the responseStatus property value. Indicates the type of response sent in response to an event message. * @return a {@link ResponseStatus} */ @jakarta.annotation.Nullable @@ -342,7 +342,7 @@ public ResponseStatus getResponseStatus() { return this.backingStore.get("responseStatus"); } /** - * Gets the sensitivity property value. The sensitivity property + * Gets the sensitivity property value. Possible values are: normal, personal, private, confidential. * @return a {@link Sensitivity} */ @jakarta.annotation.Nullable @@ -350,7 +350,7 @@ public Sensitivity getSensitivity() { return this.backingStore.get("sensitivity"); } /** - * Gets the seriesMasterId property value. The seriesMasterId property + * Gets the seriesMasterId property value. The ID for the recurring series master item, if this event is part of a recurring series. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -358,7 +358,7 @@ public String getSeriesMasterId() { return this.backingStore.get("seriesMasterId"); } /** - * Gets the showAs property value. The showAs property + * Gets the showAs property value. The status to show. Possible values are: free, tentative, busy, oof, workingElsewhere, unknown. * @return a {@link FreeBusyStatus} */ @jakarta.annotation.Nullable @@ -374,7 +374,7 @@ public java.util.List getSingleValueExtendedP return this.backingStore.get("singleValueExtendedProperties"); } /** - * Gets the start property value. The start property + * Gets the start property value. The start date, time, and time zone of the event. By default, the start time is in UTC. * @return a {@link DateTimeTimeZone} */ @jakarta.annotation.Nullable @@ -382,7 +382,7 @@ public DateTimeTimeZone getStart() { return this.backingStore.get("start"); } /** - * Gets the subject property value. The subject property + * Gets the subject property value. The text of the event's subject line. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -390,7 +390,7 @@ public String getSubject() { return this.backingStore.get("subject"); } /** - * Gets the transactionId property value. The transactionId property + * Gets the transactionId property value. A custom identifier specified by a client app for the server to avoid redundant POST operations in case of client retries to create the same event. This is useful when low network connectivity causes the client to time out before receiving a response from the server for the client's prior create-event request. After you set transactionId when creating an event, you cannot change transactionId in a subsequent update. This property is only returned in a response payload if an app has set it. Optional. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -398,7 +398,7 @@ public String getTransactionId() { return this.backingStore.get("transactionId"); } /** - * Gets the type property value. The type property + * Gets the type property value. The event type. Possible values are: singleInstance, occurrence, exception, seriesMaster. Read-only * @return a {@link EventType} */ @jakarta.annotation.Nullable @@ -406,7 +406,7 @@ public EventType getType() { return this.backingStore.get("type"); } /** - * Gets the webLink property value. The webLink property + * Gets the webLink property value. The URL to open the event in Outlook on the web.Outlook on the web opens the event in the browser if you are signed in to your mailbox. Otherwise, Outlook on the web prompts you to sign in.This URL cannot be accessed from within an iFrame. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -541,7 +541,7 @@ public void setICalUId(@jakarta.annotation.Nullable final String value) { this.backingStore.set("iCalUId", value); } /** - * Sets the importance property value. The importance property + * Sets the importance property value. The importance of the event. The possible values are: low, normal, high. * @param value Value to set for the importance property. */ public void setImportance(@jakarta.annotation.Nullable final Importance value) { @@ -555,56 +555,56 @@ public void setInstances(@jakarta.annotation.Nullable final java.util.List value) { @@ -618,98 +618,98 @@ public void setMultiValueExtendedProperties(@jakarta.annotation.Nullable final j this.backingStore.set("multiValueExtendedProperties", value); } /** - * Sets the onlineMeeting property value. The onlineMeeting property + * Sets the onlineMeeting property value. Details for an attendee to join the meeting online. Default is null. Read-only. After you set the isOnlineMeeting and onlineMeetingProvider properties to enable a meeting online, Microsoft Graph initializes onlineMeeting. When set, the meeting remains available online, and you cannot change the isOnlineMeeting, onlineMeetingProvider, and onlneMeeting properties again. * @param value Value to set for the onlineMeeting property. */ public void setOnlineMeeting(@jakarta.annotation.Nullable final OnlineMeetingInfo value) { this.backingStore.set("onlineMeeting", value); } /** - * Sets the onlineMeetingProvider property value. The onlineMeetingProvider property + * Sets the onlineMeetingProvider property value. Represents the online meeting service provider. By default, onlineMeetingProvider is unknown. The possible values are unknown, teamsForBusiness, skypeForBusiness, and skypeForConsumer. Optional. After you set onlineMeetingProvider, Microsoft Graph initializes onlineMeeting. Subsequently you cannot change onlineMeetingProvider again, and the meeting remains available online. * @param value Value to set for the onlineMeetingProvider property. */ public void setOnlineMeetingProvider(@jakarta.annotation.Nullable final OnlineMeetingProviderType value) { this.backingStore.set("onlineMeetingProvider", value); } /** - * Sets the onlineMeetingUrl property value. The onlineMeetingUrl property + * Sets the onlineMeetingUrl property value. A URL for an online meeting. The property is set only when an organizer specifies in Outlook that an event is an online meeting such as Skype. Read-only.To access the URL to join an online meeting, use joinUrl which is exposed via the onlineMeeting property of the event. The onlineMeetingUrl property will be deprecated in the future. * @param value Value to set for the onlineMeetingUrl property. */ public void setOnlineMeetingUrl(@jakarta.annotation.Nullable final String value) { this.backingStore.set("onlineMeetingUrl", value); } /** - * Sets the organizer property value. The organizer property + * Sets the organizer property value. The organizer of the event. * @param value Value to set for the organizer property. */ public void setOrganizer(@jakarta.annotation.Nullable final Recipient value) { this.backingStore.set("organizer", value); } /** - * Sets the originalEndTimeZone property value. The originalEndTimeZone property + * Sets the originalEndTimeZone property value. The end time zone that was set when the event was created. A value of tzone://Microsoft/Custom indicates that a legacy custom time zone was set in desktop Outlook. * @param value Value to set for the originalEndTimeZone property. */ public void setOriginalEndTimeZone(@jakarta.annotation.Nullable final String value) { this.backingStore.set("originalEndTimeZone", value); } /** - * Sets the originalStart property value. The originalStart property + * Sets the originalStart property value. Represents the start time of an event when it is initially created as an occurrence or exception in a recurring series. This property is not returned for events that are single instances. Its date and time information is expressed in ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z * @param value Value to set for the originalStart property. */ public void setOriginalStart(@jakarta.annotation.Nullable final OffsetDateTime value) { this.backingStore.set("originalStart", value); } /** - * Sets the originalStartTimeZone property value. The originalStartTimeZone property + * Sets the originalStartTimeZone property value. The start time zone that was set when the event was created. A value of tzone://Microsoft/Custom indicates that a legacy custom time zone was set in desktop Outlook. * @param value Value to set for the originalStartTimeZone property. */ public void setOriginalStartTimeZone(@jakarta.annotation.Nullable final String value) { this.backingStore.set("originalStartTimeZone", value); } /** - * Sets the recurrence property value. The recurrence property + * Sets the recurrence property value. The recurrence pattern for the event. * @param value Value to set for the recurrence property. */ public void setRecurrence(@jakarta.annotation.Nullable final PatternedRecurrence value) { this.backingStore.set("recurrence", value); } /** - * Sets the reminderMinutesBeforeStart property value. The reminderMinutesBeforeStart property + * Sets the reminderMinutesBeforeStart property value. The number of minutes before the event start time that the reminder alert occurs. * @param value Value to set for the reminderMinutesBeforeStart property. */ public void setReminderMinutesBeforeStart(@jakarta.annotation.Nullable final Integer value) { this.backingStore.set("reminderMinutesBeforeStart", value); } /** - * Sets the responseRequested property value. The responseRequested property + * Sets the responseRequested property value. Default is true, which represents the organizer would like an invitee to send a response to the event. * @param value Value to set for the responseRequested property. */ public void setResponseRequested(@jakarta.annotation.Nullable final Boolean value) { this.backingStore.set("responseRequested", value); } /** - * Sets the responseStatus property value. The responseStatus property + * Sets the responseStatus property value. Indicates the type of response sent in response to an event message. * @param value Value to set for the responseStatus property. */ public void setResponseStatus(@jakarta.annotation.Nullable final ResponseStatus value) { this.backingStore.set("responseStatus", value); } /** - * Sets the sensitivity property value. The sensitivity property + * Sets the sensitivity property value. Possible values are: normal, personal, private, confidential. * @param value Value to set for the sensitivity property. */ public void setSensitivity(@jakarta.annotation.Nullable final Sensitivity value) { this.backingStore.set("sensitivity", value); } /** - * Sets the seriesMasterId property value. The seriesMasterId property + * Sets the seriesMasterId property value. The ID for the recurring series master item, if this event is part of a recurring series. * @param value Value to set for the seriesMasterId property. */ public void setSeriesMasterId(@jakarta.annotation.Nullable final String value) { this.backingStore.set("seriesMasterId", value); } /** - * Sets the showAs property value. The showAs property + * Sets the showAs property value. The status to show. Possible values are: free, tentative, busy, oof, workingElsewhere, unknown. * @param value Value to set for the showAs property. */ public void setShowAs(@jakarta.annotation.Nullable final FreeBusyStatus value) { @@ -723,35 +723,35 @@ public void setSingleValueExtendedProperties(@jakarta.annotation.Nullable final this.backingStore.set("singleValueExtendedProperties", value); } /** - * Sets the start property value. The start property + * Sets the start property value. The start date, time, and time zone of the event. By default, the start time is in UTC. * @param value Value to set for the start property. */ public void setStart(@jakarta.annotation.Nullable final DateTimeTimeZone value) { this.backingStore.set("start", value); } /** - * Sets the subject property value. The subject property + * Sets the subject property value. The text of the event's subject line. * @param value Value to set for the subject property. */ public void setSubject(@jakarta.annotation.Nullable final String value) { this.backingStore.set("subject", value); } /** - * Sets the transactionId property value. The transactionId property + * Sets the transactionId property value. A custom identifier specified by a client app for the server to avoid redundant POST operations in case of client retries to create the same event. This is useful when low network connectivity causes the client to time out before receiving a response from the server for the client's prior create-event request. After you set transactionId when creating an event, you cannot change transactionId in a subsequent update. This property is only returned in a response payload if an app has set it. Optional. * @param value Value to set for the transactionId property. */ public void setTransactionId(@jakarta.annotation.Nullable final String value) { this.backingStore.set("transactionId", value); } /** - * Sets the type property value. The type property + * Sets the type property value. The event type. Possible values are: singleInstance, occurrence, exception, seriesMaster. Read-only * @param value Value to set for the type property. */ public void setType(@jakarta.annotation.Nullable final EventType value) { this.backingStore.set("type", value); } /** - * Sets the webLink property value. The webLink property + * Sets the webLink property value. The URL to open the event in Outlook on the web.Outlook on the web opens the event in the browser if you are signed in to your mailbox. Otherwise, Outlook on the web prompts you to sign in.This URL cannot be accessed from within an iFrame. * @param value Value to set for the webLink property. */ public void setWebLink(@jakarta.annotation.Nullable final String value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/EventMessage.java b/src/main/java/com/microsoft/graph/generated/models/EventMessage.java index e1ef9bdd627..b51662a0875 100644 --- a/src/main/java/com/microsoft/graph/generated/models/EventMessage.java +++ b/src/main/java/com/microsoft/graph/generated/models/EventMessage.java @@ -77,7 +77,7 @@ public Boolean getIsAllDay() { return this.backingStore.get("isAllDay"); } /** - * Gets the isDelegated property value. The isDelegated property + * Gets the isDelegated property value. True if this meeting request is accessible to a delegate, false otherwise. Default is false. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -101,7 +101,7 @@ public Location getLocation() { return this.backingStore.get("location"); } /** - * Gets the meetingMessageType property value. The meetingMessageType property + * Gets the meetingMessageType property value. The type of event message: none, meetingRequest, meetingCancelled, meetingAccepted, meetingTenativelyAccepted, meetingDeclined. * @return a {@link MeetingMessageType} */ @jakarta.annotation.Nullable @@ -172,7 +172,7 @@ public void setIsAllDay(@jakarta.annotation.Nullable final Boolean value) { this.backingStore.set("isAllDay", value); } /** - * Sets the isDelegated property value. The isDelegated property + * Sets the isDelegated property value. True if this meeting request is accessible to a delegate, false otherwise. Default is false. * @param value Value to set for the isDelegated property. */ public void setIsDelegated(@jakarta.annotation.Nullable final Boolean value) { @@ -193,7 +193,7 @@ public void setLocation(@jakarta.annotation.Nullable final Location value) { this.backingStore.set("location", value); } /** - * Sets the meetingMessageType property value. The meetingMessageType property + * Sets the meetingMessageType property value. The type of event message: none, meetingRequest, meetingCancelled, meetingAccepted, meetingTenativelyAccepted, meetingDeclined. * @param value Value to set for the meetingMessageType property. */ public void setMeetingMessageType(@jakarta.annotation.Nullable final MeetingMessageType value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/EventMessageResponse.java b/src/main/java/com/microsoft/graph/generated/models/EventMessageResponse.java index d7ff9774c0c..3ec7c0e7da5 100644 --- a/src/main/java/com/microsoft/graph/generated/models/EventMessageResponse.java +++ b/src/main/java/com/microsoft/graph/generated/models/EventMessageResponse.java @@ -37,7 +37,7 @@ public Map> getFieldDeserializers return deserializerMap; } /** - * Gets the proposedNewTime property value. The proposedNewTime property + * Gets the proposedNewTime property value. An alternate date/time proposed by an invitee for a meeting request to start and end. Read-only. Not filterable. * @return a {@link TimeSlot} */ @jakarta.annotation.Nullable @@ -45,7 +45,7 @@ public TimeSlot getProposedNewTime() { return this.backingStore.get("proposedNewTime"); } /** - * Gets the responseType property value. The responseType property + * Gets the responseType property value. Specifies the type of response to a meeting request. Possible values are: tentativelyAccepted, accepted, declined. For the eventMessageResponse type, none, organizer, and notResponded are not supported. Read-only. Not filterable. * @return a {@link ResponseType} */ @jakarta.annotation.Nullable @@ -63,14 +63,14 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeEnumValue("responseType", this.getResponseType()); } /** - * Sets the proposedNewTime property value. The proposedNewTime property + * Sets the proposedNewTime property value. An alternate date/time proposed by an invitee for a meeting request to start and end. Read-only. Not filterable. * @param value Value to set for the proposedNewTime property. */ public void setProposedNewTime(@jakarta.annotation.Nullable final TimeSlot value) { this.backingStore.set("proposedNewTime", value); } /** - * Sets the responseType property value. The responseType property + * Sets the responseType property value. Specifies the type of response to a meeting request. Possible values are: tentativelyAccepted, accepted, declined. For the eventMessageResponse type, none, organizer, and notResponded are not supported. Read-only. Not filterable. * @param value Value to set for the responseType property. */ public void setResponseType(@jakarta.annotation.Nullable final ResponseType value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/HorizontalSection.java b/src/main/java/com/microsoft/graph/generated/models/HorizontalSection.java new file mode 100644 index 00000000000..0dec8243a69 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/HorizontalSection.java @@ -0,0 +1,95 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class HorizontalSection extends Entity implements Parsable { + /** + * Instantiates a new {@link HorizontalSection} and sets the default values. + */ + public HorizontalSection() { + super(); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link HorizontalSection} + */ + @jakarta.annotation.Nonnull + public static HorizontalSection createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new HorizontalSection(); + } + /** + * Gets the columns property value. The columns property + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getColumns() { + return this.backingStore.get("columns"); + } + /** + * Gets the emphasis property value. The emphasis property + * @return a {@link SectionEmphasisType} + */ + @jakarta.annotation.Nullable + public SectionEmphasisType getEmphasis() { + return this.backingStore.get("emphasis"); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("columns", (n) -> { this.setColumns(n.getCollectionOfObjectValues(HorizontalSectionColumn::createFromDiscriminatorValue)); }); + deserializerMap.put("emphasis", (n) -> { this.setEmphasis(n.getEnumValue(SectionEmphasisType::forValue)); }); + deserializerMap.put("layout", (n) -> { this.setLayout(n.getEnumValue(HorizontalSectionLayoutType::forValue)); }); + return deserializerMap; + } + /** + * Gets the layout property value. The layout property + * @return a {@link HorizontalSectionLayoutType} + */ + @jakarta.annotation.Nullable + public HorizontalSectionLayoutType getLayout() { + return this.backingStore.get("layout"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + super.serialize(writer); + writer.writeCollectionOfObjectValues("columns", this.getColumns()); + writer.writeEnumValue("emphasis", this.getEmphasis()); + writer.writeEnumValue("layout", this.getLayout()); + } + /** + * Sets the columns property value. The columns property + * @param value Value to set for the columns property. + */ + public void setColumns(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("columns", value); + } + /** + * Sets the emphasis property value. The emphasis property + * @param value Value to set for the emphasis property. + */ + public void setEmphasis(@jakarta.annotation.Nullable final SectionEmphasisType value) { + this.backingStore.set("emphasis", value); + } + /** + * Sets the layout property value. The layout property + * @param value Value to set for the layout property. + */ + public void setLayout(@jakarta.annotation.Nullable final HorizontalSectionLayoutType value) { + this.backingStore.set("layout", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/HorizontalSectionCollectionResponse.java b/src/main/java/com/microsoft/graph/generated/models/HorizontalSectionCollectionResponse.java new file mode 100644 index 00000000000..e890d499c9d --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/HorizontalSectionCollectionResponse.java @@ -0,0 +1,61 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class HorizontalSectionCollectionResponse extends BaseCollectionPaginationCountResponse implements Parsable { + /** + * Instantiates a new {@link HorizontalSectionCollectionResponse} and sets the default values. + */ + public HorizontalSectionCollectionResponse() { + super(); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link HorizontalSectionCollectionResponse} + */ + @jakarta.annotation.Nonnull + public static HorizontalSectionCollectionResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new HorizontalSectionCollectionResponse(); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("value", (n) -> { this.setValue(n.getCollectionOfObjectValues(HorizontalSection::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the value property value. The value property + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getValue() { + return this.backingStore.get("value"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + super.serialize(writer); + writer.writeCollectionOfObjectValues("value", this.getValue()); + } + /** + * Sets the value property value. The value property + * @param value Value to set for the value property. + */ + public void setValue(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("value", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/HorizontalSectionColumn.java b/src/main/java/com/microsoft/graph/generated/models/HorizontalSectionColumn.java new file mode 100644 index 00000000000..b06a9302705 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/HorizontalSectionColumn.java @@ -0,0 +1,78 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class HorizontalSectionColumn extends Entity implements Parsable { + /** + * Instantiates a new {@link HorizontalSectionColumn} and sets the default values. + */ + public HorizontalSectionColumn() { + super(); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link HorizontalSectionColumn} + */ + @jakarta.annotation.Nonnull + public static HorizontalSectionColumn createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new HorizontalSectionColumn(); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("webparts", (n) -> { this.setWebparts(n.getCollectionOfObjectValues(WebPart::createFromDiscriminatorValue)); }); + deserializerMap.put("width", (n) -> { this.setWidth(n.getIntegerValue()); }); + return deserializerMap; + } + /** + * Gets the webparts property value. The webparts property + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getWebparts() { + return this.backingStore.get("webparts"); + } + /** + * Gets the width property value. The width property + * @return a {@link Integer} + */ + @jakarta.annotation.Nullable + public Integer getWidth() { + return this.backingStore.get("width"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + super.serialize(writer); + writer.writeCollectionOfObjectValues("webparts", this.getWebparts()); + writer.writeIntegerValue("width", this.getWidth()); + } + /** + * Sets the webparts property value. The webparts property + * @param value Value to set for the webparts property. + */ + public void setWebparts(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("webparts", value); + } + /** + * Sets the width property value. The width property + * @param value Value to set for the width property. + */ + public void setWidth(@jakarta.annotation.Nullable final Integer value) { + this.backingStore.set("width", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/HorizontalSectionColumnCollectionResponse.java b/src/main/java/com/microsoft/graph/generated/models/HorizontalSectionColumnCollectionResponse.java new file mode 100644 index 00000000000..82d6f7eab66 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/HorizontalSectionColumnCollectionResponse.java @@ -0,0 +1,61 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class HorizontalSectionColumnCollectionResponse extends BaseCollectionPaginationCountResponse implements Parsable { + /** + * Instantiates a new {@link HorizontalSectionColumnCollectionResponse} and sets the default values. + */ + public HorizontalSectionColumnCollectionResponse() { + super(); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link HorizontalSectionColumnCollectionResponse} + */ + @jakarta.annotation.Nonnull + public static HorizontalSectionColumnCollectionResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new HorizontalSectionColumnCollectionResponse(); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("value", (n) -> { this.setValue(n.getCollectionOfObjectValues(HorizontalSectionColumn::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the value property value. The value property + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getValue() { + return this.backingStore.get("value"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + super.serialize(writer); + writer.writeCollectionOfObjectValues("value", this.getValue()); + } + /** + * Sets the value property value. The value property + * @param value Value to set for the value property. + */ + public void setValue(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("value", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/HorizontalSectionLayoutType.java b/src/main/java/com/microsoft/graph/generated/models/HorizontalSectionLayoutType.java new file mode 100644 index 00000000000..46db9256390 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/HorizontalSectionLayoutType.java @@ -0,0 +1,37 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.ValuedEnum; +import java.util.Objects; + +@jakarta.annotation.Generated("com.microsoft.kiota") +public enum HorizontalSectionLayoutType implements ValuedEnum { + None("none"), + OneColumn("oneColumn"), + TwoColumns("twoColumns"), + ThreeColumns("threeColumns"), + OneThirdLeftColumn("oneThirdLeftColumn"), + OneThirdRightColumn("oneThirdRightColumn"), + FullWidth("fullWidth"), + UnknownFutureValue("unknownFutureValue"); + public final String value; + HorizontalSectionLayoutType(final String value) { + this.value = value; + } + @jakarta.annotation.Nonnull + public String getValue() { return this.value; } + @jakarta.annotation.Nullable + public static HorizontalSectionLayoutType forValue(@jakarta.annotation.Nonnull final String searchValue) { + Objects.requireNonNull(searchValue); + switch(searchValue) { + case "none": return None; + case "oneColumn": return OneColumn; + case "twoColumns": return TwoColumns; + case "threeColumns": return ThreeColumns; + case "oneThirdLeftColumn": return OneThirdLeftColumn; + case "oneThirdRightColumn": return OneThirdRightColumn; + case "fullWidth": return FullWidth; + case "unknownFutureValue": return UnknownFutureValue; + default: return null; + } + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/LicenseDetails.java b/src/main/java/com/microsoft/graph/generated/models/LicenseDetails.java index bc5bc189b7b..53fb707d052 100644 --- a/src/main/java/com/microsoft/graph/generated/models/LicenseDetails.java +++ b/src/main/java/com/microsoft/graph/generated/models/LicenseDetails.java @@ -38,7 +38,7 @@ public Map> getFieldDeserializers return deserializerMap; } /** - * Gets the servicePlans property value. Information about the service plans assigned with the license. Read-only, Not nullable + * Gets the servicePlans property value. Information about the service plans assigned with the license. Read-only. Not nullable. * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -46,7 +46,7 @@ public java.util.List getServicePlans() { return this.backingStore.get("servicePlans"); } /** - * Gets the skuId property value. Unique identifier (GUID) for the service SKU. Equal to the skuId property on the related SubscribedSku object. Read-only + * Gets the skuId property value. Unique identifier (GUID) for the service SKU. Equal to the skuId property on the related subscribedSku object. Read-only. * @return a {@link UUID} */ @jakarta.annotation.Nullable @@ -54,7 +54,7 @@ public UUID getSkuId() { return this.backingStore.get("skuId"); } /** - * Gets the skuPartNumber property value. Unique SKU display name. Equal to the skuPartNumber on the related SubscribedSku object; for example: 'AAD_Premium'. Read-only + * Gets the skuPartNumber property value. Unique SKU display name. Equal to the skuPartNumber on the related subscribedSku object; for example, AAD_Premium. Read-only. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -73,21 +73,21 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeStringValue("skuPartNumber", this.getSkuPartNumber()); } /** - * Sets the servicePlans property value. Information about the service plans assigned with the license. Read-only, Not nullable + * Sets the servicePlans property value. Information about the service plans assigned with the license. Read-only. Not nullable. * @param value Value to set for the servicePlans property. */ public void setServicePlans(@jakarta.annotation.Nullable final java.util.List value) { this.backingStore.set("servicePlans", value); } /** - * Sets the skuId property value. Unique identifier (GUID) for the service SKU. Equal to the skuId property on the related SubscribedSku object. Read-only + * Sets the skuId property value. Unique identifier (GUID) for the service SKU. Equal to the skuId property on the related subscribedSku object. Read-only. * @param value Value to set for the skuId property. */ public void setSkuId(@jakarta.annotation.Nullable final UUID value) { this.backingStore.set("skuId", value); } /** - * Sets the skuPartNumber property value. Unique SKU display name. Equal to the skuPartNumber on the related SubscribedSku object; for example: 'AAD_Premium'. Read-only + * Sets the skuPartNumber property value. Unique SKU display name. Equal to the skuPartNumber on the related subscribedSku object; for example, AAD_Premium. Read-only. * @param value Value to set for the skuPartNumber property. */ public void setSkuPartNumber(@jakarta.annotation.Nullable final String value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/M365AppsInstallationOptions.java b/src/main/java/com/microsoft/graph/generated/models/M365AppsInstallationOptions.java new file mode 100644 index 00000000000..45d4b4d9709 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/M365AppsInstallationOptions.java @@ -0,0 +1,95 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class M365AppsInstallationOptions extends Entity implements Parsable { + /** + * Instantiates a new {@link M365AppsInstallationOptions} and sets the default values. + */ + public M365AppsInstallationOptions() { + super(); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link M365AppsInstallationOptions} + */ + @jakarta.annotation.Nonnull + public static M365AppsInstallationOptions createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new M365AppsInstallationOptions(); + } + /** + * Gets the appsForMac property value. The appsForMac property + * @return a {@link AppsInstallationOptionsForMac} + */ + @jakarta.annotation.Nullable + public AppsInstallationOptionsForMac getAppsForMac() { + return this.backingStore.get("appsForMac"); + } + /** + * Gets the appsForWindows property value. The appsForWindows property + * @return a {@link AppsInstallationOptionsForWindows} + */ + @jakarta.annotation.Nullable + public AppsInstallationOptionsForWindows getAppsForWindows() { + return this.backingStore.get("appsForWindows"); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("appsForMac", (n) -> { this.setAppsForMac(n.getObjectValue(AppsInstallationOptionsForMac::createFromDiscriminatorValue)); }); + deserializerMap.put("appsForWindows", (n) -> { this.setAppsForWindows(n.getObjectValue(AppsInstallationOptionsForWindows::createFromDiscriminatorValue)); }); + deserializerMap.put("updateChannel", (n) -> { this.setUpdateChannel(n.getEnumValue(AppsUpdateChannelType::forValue)); }); + return deserializerMap; + } + /** + * Gets the updateChannel property value. The updateChannel property + * @return a {@link AppsUpdateChannelType} + */ + @jakarta.annotation.Nullable + public AppsUpdateChannelType getUpdateChannel() { + return this.backingStore.get("updateChannel"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + super.serialize(writer); + writer.writeObjectValue("appsForMac", this.getAppsForMac()); + writer.writeObjectValue("appsForWindows", this.getAppsForWindows()); + writer.writeEnumValue("updateChannel", this.getUpdateChannel()); + } + /** + * Sets the appsForMac property value. The appsForMac property + * @param value Value to set for the appsForMac property. + */ + public void setAppsForMac(@jakarta.annotation.Nullable final AppsInstallationOptionsForMac value) { + this.backingStore.set("appsForMac", value); + } + /** + * Sets the appsForWindows property value. The appsForWindows property + * @param value Value to set for the appsForWindows property. + */ + public void setAppsForWindows(@jakarta.annotation.Nullable final AppsInstallationOptionsForWindows value) { + this.backingStore.set("appsForWindows", value); + } + /** + * Sets the updateChannel property value. The updateChannel property + * @param value Value to set for the updateChannel property. + */ + public void setUpdateChannel(@jakarta.annotation.Nullable final AppsUpdateChannelType value) { + this.backingStore.set("updateChannel", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/MacOSDmgApp.java b/src/main/java/com/microsoft/graph/generated/models/MacOSDmgApp.java index 8e4c05d0bed..9140e16a9ef 100644 --- a/src/main/java/com/microsoft/graph/generated/models/MacOSDmgApp.java +++ b/src/main/java/com/microsoft/graph/generated/models/MacOSDmgApp.java @@ -51,7 +51,7 @@ public Boolean getIgnoreVersionDetection() { return this.backingStore.get("ignoreVersionDetection"); } /** - * Gets the includedApps property value. The list of .apps expected to be installed by the DMG (Apple Disk Image) + * Gets the includedApps property value. The list of .apps expected to be installed by the DMG (Apple Disk Image). This collection can contain a maximum of 500 elements. * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -103,7 +103,7 @@ public void setIgnoreVersionDetection(@jakarta.annotation.Nullable final Boolean this.backingStore.set("ignoreVersionDetection", value); } /** - * Sets the includedApps property value. The list of .apps expected to be installed by the DMG (Apple Disk Image) + * Sets the includedApps property value. The list of .apps expected to be installed by the DMG (Apple Disk Image). This collection can contain a maximum of 500 elements. * @param value Value to set for the includedApps property. */ public void setIncludedApps(@jakarta.annotation.Nullable final java.util.List value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/ManagedMobileLobApp.java b/src/main/java/com/microsoft/graph/generated/models/ManagedMobileLobApp.java index 4190788f00d..dfbcf4b7903 100644 --- a/src/main/java/com/microsoft/graph/generated/models/ManagedMobileLobApp.java +++ b/src/main/java/com/microsoft/graph/generated/models/ManagedMobileLobApp.java @@ -91,7 +91,6 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeStringValue("committedContentVersion", this.getCommittedContentVersion()); writer.writeCollectionOfObjectValues("contentVersions", this.getContentVersions()); writer.writeStringValue("fileName", this.getFileName()); - writer.writeLongValue("size", this.getSize()); } /** * Sets the committedContentVersion property value. The internal committed content version. diff --git a/src/main/java/com/microsoft/graph/generated/models/Message.java b/src/main/java/com/microsoft/graph/generated/models/Message.java index f6bd2929cbd..09f83cea79e 100644 --- a/src/main/java/com/microsoft/graph/generated/models/Message.java +++ b/src/main/java/com/microsoft/graph/generated/models/Message.java @@ -164,7 +164,7 @@ public Boolean getHasAttachments() { return this.backingStore.get("hasAttachments"); } /** - * Gets the importance property value. The importance property + * Gets the importance property value. The importance of the message. The possible values are: low, normal, and high. * @return a {@link Importance} */ @jakarta.annotation.Nullable @@ -172,7 +172,7 @@ public Importance getImportance() { return this.backingStore.get("importance"); } /** - * Gets the inferenceClassification property value. The inferenceClassification property + * Gets the inferenceClassification property value. The classification of the message for the user, based on inferred relevance or importance, or on an explicit override. The possible values are: focused or other. * @return a {@link InferenceClassificationType} */ @jakarta.annotation.Nullable @@ -180,7 +180,7 @@ public InferenceClassificationType getInferenceClassification() { return this.backingStore.get("inferenceClassification"); } /** - * Gets the internetMessageHeaders property value. The internetMessageHeaders property + * Gets the internetMessageHeaders property value. A collection of message headers defined by RFC5322. The set includes message headers indicating the network path taken by a message from the sender to the recipient. It can also contain custom message headers that hold app data for the message. Returned only on applying a $select query option. Read-only. * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -188,7 +188,7 @@ public java.util.List getInternetMessageHeaders() { return this.backingStore.get("internetMessageHeaders"); } /** - * Gets the internetMessageId property value. The internetMessageId property + * Gets the internetMessageId property value. The message ID in the format specified by RFC2822. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -196,7 +196,7 @@ public String getInternetMessageId() { return this.backingStore.get("internetMessageId"); } /** - * Gets the isDeliveryReceiptRequested property value. The isDeliveryReceiptRequested property + * Gets the isDeliveryReceiptRequested property value. Indicates whether a read receipt is requested for the message. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -204,7 +204,7 @@ public Boolean getIsDeliveryReceiptRequested() { return this.backingStore.get("isDeliveryReceiptRequested"); } /** - * Gets the isDraft property value. The isDraft property + * Gets the isDraft property value. Indicates whether the message is a draft. A message is a draft if it hasn't been sent yet. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -212,7 +212,7 @@ public Boolean getIsDraft() { return this.backingStore.get("isDraft"); } /** - * Gets the isRead property value. The isRead property + * Gets the isRead property value. Indicates whether the message has been read. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -220,7 +220,7 @@ public Boolean getIsRead() { return this.backingStore.get("isRead"); } /** - * Gets the isReadReceiptRequested property value. The isReadReceiptRequested property + * Gets the isReadReceiptRequested property value. Indicates whether a read receipt is requested for the message. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -236,7 +236,7 @@ public java.util.List getMultiValueExtendedPro return this.backingStore.get("multiValueExtendedProperties"); } /** - * Gets the parentFolderId property value. The parentFolderId property + * Gets the parentFolderId property value. The unique identifier for the message's parent mailFolder. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -244,7 +244,7 @@ public String getParentFolderId() { return this.backingStore.get("parentFolderId"); } /** - * Gets the receivedDateTime property value. The receivedDateTime property + * Gets the receivedDateTime property value. The date and time the message was received. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. * @return a {@link OffsetDateTime} */ @jakarta.annotation.Nullable @@ -252,7 +252,7 @@ public OffsetDateTime getReceivedDateTime() { return this.backingStore.get("receivedDateTime"); } /** - * Gets the replyTo property value. The replyTo property + * Gets the replyTo property value. The email addresses to use when replying. * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -260,7 +260,7 @@ public java.util.List getReplyTo() { return this.backingStore.get("replyTo"); } /** - * Gets the sender property value. The sender property + * Gets the sender property value. The account that is actually used to generate the message. In most cases, this value is the same as the from property. You can set this property to a different value when sending a message from a shared mailbox, for a shared calendar, or as a delegate. In any case, the value must correspond to the actual mailbox used. Find out more about setting the from and sender properties of a message. * @return a {@link Recipient} */ @jakarta.annotation.Nullable @@ -268,7 +268,7 @@ public Recipient getSender() { return this.backingStore.get("sender"); } /** - * Gets the sentDateTime property value. The sentDateTime property + * Gets the sentDateTime property value. The date and time the message was sent. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. * @return a {@link OffsetDateTime} */ @jakarta.annotation.Nullable @@ -284,7 +284,7 @@ public java.util.List getSingleValueExtendedP return this.backingStore.get("singleValueExtendedProperties"); } /** - * Gets the subject property value. The subject property + * Gets the subject property value. The subject of the message. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -292,7 +292,7 @@ public String getSubject() { return this.backingStore.get("subject"); } /** - * Gets the toRecipients property value. The toRecipients property + * Gets the toRecipients property value. The To: recipients for the message. * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -300,7 +300,7 @@ public java.util.List getToRecipients() { return this.backingStore.get("toRecipients"); } /** - * Gets the uniqueBody property value. The uniqueBody property + * Gets the uniqueBody property value. The part of the body of the message that is unique to the current message. uniqueBody is not returned by default but can be retrieved for a given message by use of the ?$select=uniqueBody query. It can be in HTML or text format. * @return a {@link ItemBody} */ @jakarta.annotation.Nullable @@ -308,7 +308,7 @@ public ItemBody getUniqueBody() { return this.backingStore.get("uniqueBody"); } /** - * Gets the webLink property value. The webLink property + * Gets the webLink property value. The URL to open the message in Outlook on the web.You can append an ispopout argument to the end of the URL to change how the message is displayed. If ispopout is not present or if it is set to 1, then the message is shown in a popout window. If ispopout is set to 0, the browser shows the message in the Outlook on the web review pane.The message opens in the browser if you are signed in to your mailbox via Outlook on the web. You are prompted to sign in if you are not already signed in with the browser.This URL cannot be accessed from within an iFrame. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -431,56 +431,56 @@ public void setHasAttachments(@jakarta.annotation.Nullable final Boolean value) this.backingStore.set("hasAttachments", value); } /** - * Sets the importance property value. The importance property + * Sets the importance property value. The importance of the message. The possible values are: low, normal, and high. * @param value Value to set for the importance property. */ public void setImportance(@jakarta.annotation.Nullable final Importance value) { this.backingStore.set("importance", value); } /** - * Sets the inferenceClassification property value. The inferenceClassification property + * Sets the inferenceClassification property value. The classification of the message for the user, based on inferred relevance or importance, or on an explicit override. The possible values are: focused or other. * @param value Value to set for the inferenceClassification property. */ public void setInferenceClassification(@jakarta.annotation.Nullable final InferenceClassificationType value) { this.backingStore.set("inferenceClassification", value); } /** - * Sets the internetMessageHeaders property value. The internetMessageHeaders property + * Sets the internetMessageHeaders property value. A collection of message headers defined by RFC5322. The set includes message headers indicating the network path taken by a message from the sender to the recipient. It can also contain custom message headers that hold app data for the message. Returned only on applying a $select query option. Read-only. * @param value Value to set for the internetMessageHeaders property. */ public void setInternetMessageHeaders(@jakarta.annotation.Nullable final java.util.List value) { this.backingStore.set("internetMessageHeaders", value); } /** - * Sets the internetMessageId property value. The internetMessageId property + * Sets the internetMessageId property value. The message ID in the format specified by RFC2822. * @param value Value to set for the internetMessageId property. */ public void setInternetMessageId(@jakarta.annotation.Nullable final String value) { this.backingStore.set("internetMessageId", value); } /** - * Sets the isDeliveryReceiptRequested property value. The isDeliveryReceiptRequested property + * Sets the isDeliveryReceiptRequested property value. Indicates whether a read receipt is requested for the message. * @param value Value to set for the isDeliveryReceiptRequested property. */ public void setIsDeliveryReceiptRequested(@jakarta.annotation.Nullable final Boolean value) { this.backingStore.set("isDeliveryReceiptRequested", value); } /** - * Sets the isDraft property value. The isDraft property + * Sets the isDraft property value. Indicates whether the message is a draft. A message is a draft if it hasn't been sent yet. * @param value Value to set for the isDraft property. */ public void setIsDraft(@jakarta.annotation.Nullable final Boolean value) { this.backingStore.set("isDraft", value); } /** - * Sets the isRead property value. The isRead property + * Sets the isRead property value. Indicates whether the message has been read. * @param value Value to set for the isRead property. */ public void setIsRead(@jakarta.annotation.Nullable final Boolean value) { this.backingStore.set("isRead", value); } /** - * Sets the isReadReceiptRequested property value. The isReadReceiptRequested property + * Sets the isReadReceiptRequested property value. Indicates whether a read receipt is requested for the message. * @param value Value to set for the isReadReceiptRequested property. */ public void setIsReadReceiptRequested(@jakarta.annotation.Nullable final Boolean value) { @@ -494,35 +494,35 @@ public void setMultiValueExtendedProperties(@jakarta.annotation.Nullable final j this.backingStore.set("multiValueExtendedProperties", value); } /** - * Sets the parentFolderId property value. The parentFolderId property + * Sets the parentFolderId property value. The unique identifier for the message's parent mailFolder. * @param value Value to set for the parentFolderId property. */ public void setParentFolderId(@jakarta.annotation.Nullable final String value) { this.backingStore.set("parentFolderId", value); } /** - * Sets the receivedDateTime property value. The receivedDateTime property + * Sets the receivedDateTime property value. The date and time the message was received. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. * @param value Value to set for the receivedDateTime property. */ public void setReceivedDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) { this.backingStore.set("receivedDateTime", value); } /** - * Sets the replyTo property value. The replyTo property + * Sets the replyTo property value. The email addresses to use when replying. * @param value Value to set for the replyTo property. */ public void setReplyTo(@jakarta.annotation.Nullable final java.util.List value) { this.backingStore.set("replyTo", value); } /** - * Sets the sender property value. The sender property + * Sets the sender property value. The account that is actually used to generate the message. In most cases, this value is the same as the from property. You can set this property to a different value when sending a message from a shared mailbox, for a shared calendar, or as a delegate. In any case, the value must correspond to the actual mailbox used. Find out more about setting the from and sender properties of a message. * @param value Value to set for the sender property. */ public void setSender(@jakarta.annotation.Nullable final Recipient value) { this.backingStore.set("sender", value); } /** - * Sets the sentDateTime property value. The sentDateTime property + * Sets the sentDateTime property value. The date and time the message was sent. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. * @param value Value to set for the sentDateTime property. */ public void setSentDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) { @@ -536,28 +536,28 @@ public void setSingleValueExtendedProperties(@jakarta.annotation.Nullable final this.backingStore.set("singleValueExtendedProperties", value); } /** - * Sets the subject property value. The subject property + * Sets the subject property value. The subject of the message. * @param value Value to set for the subject property. */ public void setSubject(@jakarta.annotation.Nullable final String value) { this.backingStore.set("subject", value); } /** - * Sets the toRecipients property value. The toRecipients property + * Sets the toRecipients property value. The To: recipients for the message. * @param value Value to set for the toRecipients property. */ public void setToRecipients(@jakarta.annotation.Nullable final java.util.List value) { this.backingStore.set("toRecipients", value); } /** - * Sets the uniqueBody property value. The uniqueBody property + * Sets the uniqueBody property value. The part of the body of the message that is unique to the current message. uniqueBody is not returned by default but can be retrieved for a given message by use of the ?$select=uniqueBody query. It can be in HTML or text format. * @param value Value to set for the uniqueBody property. */ public void setUniqueBody(@jakarta.annotation.Nullable final ItemBody value) { this.backingStore.set("uniqueBody", value); } /** - * Sets the webLink property value. The webLink property + * Sets the webLink property value. The URL to open the message in Outlook on the web.You can append an ispopout argument to the end of the URL to change how the message is displayed. If ispopout is not present or if it is set to 1, then the message is shown in a popout window. If ispopout is set to 0, the browser shows the message in the Outlook on the web review pane.The message opens in the browser if you are signed in to your mailbox via Outlook on the web. You are prompted to sign in if you are not already signed in with the browser.This URL cannot be accessed from within an iFrame. * @param value Value to set for the webLink property. */ public void setWebLink(@jakarta.annotation.Nullable final String value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/MetaDataKeyStringPair.java b/src/main/java/com/microsoft/graph/generated/models/MetaDataKeyStringPair.java new file mode 100644 index 00000000000..b805ddfa4e2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/MetaDataKeyStringPair.java @@ -0,0 +1,141 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.AdditionalDataHolder; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import com.microsoft.kiota.store.BackedModel; +import com.microsoft.kiota.store.BackingStore; +import com.microsoft.kiota.store.BackingStoreFactorySingleton; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class MetaDataKeyStringPair implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link MetaDataKeyStringPair} and sets the default values. + */ + public MetaDataKeyStringPair() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link MetaDataKeyStringPair} + */ + @jakarta.annotation.Nonnull + public static MetaDataKeyStringPair createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new MetaDataKeyStringPair(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(3); + deserializerMap.put("key", (n) -> { this.setKey(n.getStringValue()); }); + deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); }); + deserializerMap.put("value", (n) -> { this.setValue(n.getStringValue()); }); + return deserializerMap; + } + /** + * Gets the key property value. The key property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getKey() { + return this.backingStore.get("key"); + } + /** + * Gets the @odata.type property value. The OdataType property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getOdataType() { + return this.backingStore.get("odataType"); + } + /** + * Gets the value property value. The value property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getValue() { + return this.backingStore.get("value"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + writer.writeStringValue("key", this.getKey()); + writer.writeStringValue("@odata.type", this.getOdataType()); + writer.writeStringValue("value", this.getValue()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { + this.backingStore.set("additionalData", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @param value Value to set for the backingStore property. + */ + public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { + Objects.requireNonNull(value); + this.backingStore = value; + } + /** + * Sets the key property value. The key property + * @param value Value to set for the key property. + */ + public void setKey(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("key", value); + } + /** + * Sets the @odata.type property value. The OdataType property + * @param value Value to set for the @odata.type property. + */ + public void setOdataType(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("odataType", value); + } + /** + * Sets the value property value. The value property + * @param value Value to set for the value property. + */ + public void setValue(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("value", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/MicrosoftManagedDesktop.java b/src/main/java/com/microsoft/graph/generated/models/MicrosoftManagedDesktop.java new file mode 100644 index 00000000000..90ed23b5a0e --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/MicrosoftManagedDesktop.java @@ -0,0 +1,141 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.AdditionalDataHolder; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import com.microsoft.kiota.store.BackedModel; +import com.microsoft.kiota.store.BackingStore; +import com.microsoft.kiota.store.BackingStoreFactorySingleton; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class MicrosoftManagedDesktop implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link MicrosoftManagedDesktop} and sets the default values. + */ + public MicrosoftManagedDesktop() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link MicrosoftManagedDesktop} + */ + @jakarta.annotation.Nonnull + public static MicrosoftManagedDesktop createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new MicrosoftManagedDesktop(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(3); + deserializerMap.put("managedType", (n) -> { this.setManagedType(n.getEnumValue(MicrosoftManagedDesktopType::forValue)); }); + deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); }); + deserializerMap.put("profile", (n) -> { this.setProfile(n.getStringValue()); }); + return deserializerMap; + } + /** + * Gets the managedType property value. Indicates the provisioning policy associated with Microsoft Managed Desktop settings. Possible values are: notManaged, premiumManaged, standardManaged, starterManaged, unknownFutureValue. The default is notManaged. + * @return a {@link MicrosoftManagedDesktopType} + */ + @jakarta.annotation.Nullable + public MicrosoftManagedDesktopType getManagedType() { + return this.backingStore.get("managedType"); + } + /** + * Gets the @odata.type property value. The OdataType property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getOdataType() { + return this.backingStore.get("odataType"); + } + /** + * Gets the profile property value. The name of the Microsoft Managed Desktop profile that the Windows 365 Cloud PC is associated with. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getProfile() { + return this.backingStore.get("profile"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + writer.writeEnumValue("managedType", this.getManagedType()); + writer.writeStringValue("@odata.type", this.getOdataType()); + writer.writeStringValue("profile", this.getProfile()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { + this.backingStore.set("additionalData", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @param value Value to set for the backingStore property. + */ + public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { + Objects.requireNonNull(value); + this.backingStore = value; + } + /** + * Sets the managedType property value. Indicates the provisioning policy associated with Microsoft Managed Desktop settings. Possible values are: notManaged, premiumManaged, standardManaged, starterManaged, unknownFutureValue. The default is notManaged. + * @param value Value to set for the managedType property. + */ + public void setManagedType(@jakarta.annotation.Nullable final MicrosoftManagedDesktopType value) { + this.backingStore.set("managedType", value); + } + /** + * Sets the @odata.type property value. The OdataType property + * @param value Value to set for the @odata.type property. + */ + public void setOdataType(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("odataType", value); + } + /** + * Sets the profile property value. The name of the Microsoft Managed Desktop profile that the Windows 365 Cloud PC is associated with. + * @param value Value to set for the profile property. + */ + public void setProfile(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("profile", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/MicrosoftManagedDesktopType.java b/src/main/java/com/microsoft/graph/generated/models/MicrosoftManagedDesktopType.java new file mode 100644 index 00000000000..c3741cdfd3a --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/MicrosoftManagedDesktopType.java @@ -0,0 +1,31 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.ValuedEnum; +import java.util.Objects; + +@jakarta.annotation.Generated("com.microsoft.kiota") +public enum MicrosoftManagedDesktopType implements ValuedEnum { + NotManaged("notManaged"), + PremiumManaged("premiumManaged"), + StandardManaged("standardManaged"), + StarterManaged("starterManaged"), + UnknownFutureValue("unknownFutureValue"); + public final String value; + MicrosoftManagedDesktopType(final String value) { + this.value = value; + } + @jakarta.annotation.Nonnull + public String getValue() { return this.value; } + @jakarta.annotation.Nullable + public static MicrosoftManagedDesktopType forValue(@jakarta.annotation.Nonnull final String searchValue) { + Objects.requireNonNull(searchValue); + switch(searchValue) { + case "notManaged": return NotManaged; + case "premiumManaged": return PremiumManaged; + case "standardManaged": return StandardManaged; + case "starterManaged": return StarterManaged; + case "unknownFutureValue": return UnknownFutureValue; + default: return null; + } + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/MobileApp.java b/src/main/java/com/microsoft/graph/generated/models/MobileApp.java index cdf608792f3..daad5225fcb 100644 --- a/src/main/java/com/microsoft/graph/generated/models/MobileApp.java +++ b/src/main/java/com/microsoft/graph/generated/models/MobileApp.java @@ -213,14 +213,12 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ super.serialize(writer); writer.writeCollectionOfObjectValues("assignments", this.getAssignments()); writer.writeCollectionOfObjectValues("categories", this.getCategories()); - writer.writeOffsetDateTimeValue("createdDateTime", this.getCreatedDateTime()); writer.writeStringValue("description", this.getDescription()); writer.writeStringValue("developer", this.getDeveloper()); writer.writeStringValue("displayName", this.getDisplayName()); writer.writeStringValue("informationUrl", this.getInformationUrl()); writer.writeBooleanValue("isFeatured", this.getIsFeatured()); writer.writeObjectValue("largeIcon", this.getLargeIcon()); - writer.writeOffsetDateTimeValue("lastModifiedDateTime", this.getLastModifiedDateTime()); writer.writeStringValue("notes", this.getNotes()); writer.writeStringValue("owner", this.getOwner()); writer.writeStringValue("privacyInformationUrl", this.getPrivacyInformationUrl()); diff --git a/src/main/java/com/microsoft/graph/generated/models/MobileAppCategory.java b/src/main/java/com/microsoft/graph/generated/models/MobileAppCategory.java index 1ddb787fa7d..7fbccc477c6 100644 --- a/src/main/java/com/microsoft/graph/generated/models/MobileAppCategory.java +++ b/src/main/java/com/microsoft/graph/generated/models/MobileAppCategory.java @@ -63,7 +63,6 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ Objects.requireNonNull(writer); super.serialize(writer); writer.writeStringValue("displayName", this.getDisplayName()); - writer.writeOffsetDateTimeValue("lastModifiedDateTime", this.getLastModifiedDateTime()); } /** * Sets the displayName property value. The name of the app category. diff --git a/src/main/java/com/microsoft/graph/generated/models/MobileAppContentFile.java b/src/main/java/com/microsoft/graph/generated/models/MobileAppContentFile.java index 479e8ac66a2..e29401051b7 100644 --- a/src/main/java/com/microsoft/graph/generated/models/MobileAppContentFile.java +++ b/src/main/java/com/microsoft/graph/generated/models/MobileAppContentFile.java @@ -125,10 +125,6 @@ public MobileAppContentFileUploadState getUploadState() { public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); super.serialize(writer); - writer.writeStringValue("azureStorageUri", this.getAzureStorageUri()); - writer.writeOffsetDateTimeValue("azureStorageUriExpirationDateTime", this.getAzureStorageUriExpirationDateTime()); - writer.writeOffsetDateTimeValue("createdDateTime", this.getCreatedDateTime()); - writer.writeBooleanValue("isCommitted", this.getIsCommitted()); writer.writeByteArrayValue("manifest", this.getManifest()); writer.writeStringValue("name", this.getName()); writer.writeLongValue("size", this.getSize()); diff --git a/src/main/java/com/microsoft/graph/generated/models/MobileLobApp.java b/src/main/java/com/microsoft/graph/generated/models/MobileLobApp.java index e8ca5817993..b9709b1c3be 100644 --- a/src/main/java/com/microsoft/graph/generated/models/MobileLobApp.java +++ b/src/main/java/com/microsoft/graph/generated/models/MobileLobApp.java @@ -97,7 +97,6 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeStringValue("committedContentVersion", this.getCommittedContentVersion()); writer.writeCollectionOfObjectValues("contentVersions", this.getContentVersions()); writer.writeStringValue("fileName", this.getFileName()); - writer.writeLongValue("size", this.getSize()); } /** * Sets the committedContentVersion property value. The internal committed content version. diff --git a/src/main/java/com/microsoft/graph/generated/models/MobileThreatPartnerTenantState.java b/src/main/java/com/microsoft/graph/generated/models/MobileThreatPartnerTenantState.java index aa4efb21825..0e664f88aca 100644 --- a/src/main/java/com/microsoft/graph/generated/models/MobileThreatPartnerTenantState.java +++ b/src/main/java/com/microsoft/graph/generated/models/MobileThreatPartnerTenantState.java @@ -15,7 +15,9 @@ public enum MobileThreatPartnerTenantState implements ValuedEnum { /** Partner is enabled. */ Enabled("enabled"), /** Partner is unresponsive. */ - Unresponsive("unresponsive"); + Unresponsive("unresponsive"), + /** Evolvable enumeration sentinel value. Do not use. */ + UnknownFutureValue("unknownFutureValue"); public final String value; MobileThreatPartnerTenantState(final String value) { this.value = value; @@ -30,6 +32,7 @@ public static MobileThreatPartnerTenantState forValue(@jakarta.annotation.Nonnul case "available": return Available; case "enabled": return Enabled; case "unresponsive": return Unresponsive; + case "unknownFutureValue": return UnknownFutureValue; default: return null; } } diff --git a/src/main/java/com/microsoft/graph/generated/models/ObjectIdentity.java b/src/main/java/com/microsoft/graph/generated/models/ObjectIdentity.java index 3a6c2ba0dba..5bfd6b2b25f 100644 --- a/src/main/java/com/microsoft/graph/generated/models/ObjectIdentity.java +++ b/src/main/java/com/microsoft/graph/generated/models/ObjectIdentity.java @@ -69,7 +69,7 @@ public Map> getFieldDeserializers return deserializerMap; } /** - * Gets the issuer property value. Specifies the issuer of the identity, for example facebook.com. 512 character limit. For local accounts (where signInType isn't federated), this property is the local default domain name for the tenant, for example contoso.com.
For guests from other Microsoft Entra organization, this is the domain of the federated organization, for examplecontoso.com`. For more information about filtering behavior for this property, see Filtering on the identities property of a user. + * Gets the issuer property value. Specifies the issuer of the identity, for example facebook.com. 512 character limit. For local accounts (where signInType isn't federated), this property is the local default domain name for the tenant, for example contoso.com. For guests from other Microsoft Entra organizations, this is the domain of the federated organization, for example contoso.com. For more information about filtering behavior for this property, see Filtering on the identities property of a user. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -128,7 +128,7 @@ public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value this.backingStore = value; } /** - * Sets the issuer property value. Specifies the issuer of the identity, for example facebook.com. 512 character limit. For local accounts (where signInType isn't federated), this property is the local default domain name for the tenant, for example contoso.com.
For guests from other Microsoft Entra organization, this is the domain of the federated organization, for examplecontoso.com`. For more information about filtering behavior for this property, see Filtering on the identities property of a user. + * Sets the issuer property value. Specifies the issuer of the identity, for example facebook.com. 512 character limit. For local accounts (where signInType isn't federated), this property is the local default domain name for the tenant, for example contoso.com. For guests from other Microsoft Entra organizations, this is the domain of the federated organization, for example contoso.com. For more information about filtering behavior for this property, see Filtering on the identities property of a user. * @param value Value to set for the issuer property. */ public void setIssuer(@jakarta.annotation.Nullable final String value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/OnlineMeeting.java b/src/main/java/com/microsoft/graph/generated/models/OnlineMeeting.java index 4698ff43ae8..d447a4962b4 100644 --- a/src/main/java/com/microsoft/graph/generated/models/OnlineMeeting.java +++ b/src/main/java/com/microsoft/graph/generated/models/OnlineMeeting.java @@ -51,7 +51,7 @@ public OffsetDateTime getCreationDateTime() { return this.backingStore.get("creationDateTime"); } /** - * Gets the endDateTime property value. The meeting end time in UTC. + * Gets the endDateTime property value. The meeting end time in UTC. Required when you create an online meeting. * @return a {@link OffsetDateTime} */ @jakarta.annotation.Nullable @@ -94,7 +94,7 @@ public Boolean getIsBroadcast() { return this.backingStore.get("isBroadcast"); } /** - * Gets the participants property value. The participants associated with the online meeting, including the organizer and the attendees. + * Gets the participants property value. The participants associated with the online meeting. This includes the organizer and the attendees. * @return a {@link MeetingParticipants} */ @jakarta.annotation.Nullable @@ -110,7 +110,7 @@ public java.util.List getRecordings() { return this.backingStore.get("recordings"); } /** - * Gets the startDateTime property value. The meeting start time in UTC. + * Gets the startDateTime property value. The meeting start time in UTC. Required when you create an online meeting. * @return a {@link OffsetDateTime} */ @jakarta.annotation.Nullable @@ -165,7 +165,7 @@ public void setCreationDateTime(@jakarta.annotation.Nullable final OffsetDateTim this.backingStore.set("creationDateTime", value); } /** - * Sets the endDateTime property value. The meeting end time in UTC. + * Sets the endDateTime property value. The meeting end time in UTC. Required when you create an online meeting. * @param value Value to set for the endDateTime property. */ public void setEndDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) { @@ -186,7 +186,7 @@ public void setIsBroadcast(@jakarta.annotation.Nullable final Boolean value) { this.backingStore.set("isBroadcast", value); } /** - * Sets the participants property value. The participants associated with the online meeting, including the organizer and the attendees. + * Sets the participants property value. The participants associated with the online meeting. This includes the organizer and the attendees. * @param value Value to set for the participants property. */ public void setParticipants(@jakarta.annotation.Nullable final MeetingParticipants value) { @@ -200,7 +200,7 @@ public void setRecordings(@jakarta.annotation.Nullable final java.util.List} */ @jakarta.annotation.Nullable @@ -67,7 +67,7 @@ public String getCity() { return this.backingStore.get("city"); } /** - * Gets the country property value. Country/region name of the address for the organization. + * Gets the country property value. Country or region name of the address for the organization. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -83,7 +83,7 @@ public String getCountryLetterCode() { return this.backingStore.get("countryLetterCode"); } /** - * Gets the createdDateTime property value. Timestamp of when the organization was created. The value cannot be modified and is automatically populated when the organization is created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. + * Gets the createdDateTime property value. Timestamp of when the organization was created. The value can't be modified and is automatically populated when the organization is created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. * @return a {@link OffsetDateTime} */ @jakarta.annotation.Nullable @@ -175,7 +175,7 @@ public OffsetDateTime getOnPremisesLastSyncDateTime() { return this.backingStore.get("onPremisesLastSyncDateTime"); } /** - * Gets the onPremisesSyncEnabled property value. true if this object is synced from an on-premises directory; false if this object was originally synced from an on-premises directory but is no longer synced. Nullable. null if this object has never been synced from an on-premises directory (default). + * Gets the onPremisesSyncEnabled property value. true if this object is synced from an on-premises directory; false if this object was originally synced from an on-premises directory but is no longer synced. Nullable. null if this object isn't synced from on-premises active directory (default). * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -263,7 +263,7 @@ public java.util.List getTechnicalNotificationMails() { return this.backingStore.get("technicalNotificationMails"); } /** - * Gets the tenantType property value. Not nullable. The tenant type option that was selected when the tenant was created. The possible values are: AAD - An enterprise identity access management (IAM) service that serves business-to-employee and business-to-business (B2B) scenarios. AAD B2C A customer identity access management (CIAM) service that serves business-to-consumer (B2C) scenarios. + * Gets the tenantType property value. Not nullable. Can be one of the following types: AAD - An enterprise identity access management (IAM) service that serves business-to-employee and business-to-business (B2B) scenarios. AAD B2C An identity access management (IAM) service that serves business-to-consumer (B2C) scenarios. CIAM - A customer identity & access management (CIAM) solution that provides an integrated platform to serve consumers, partners, and citizen scenarios. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -328,7 +328,7 @@ public void setBranding(@jakarta.annotation.Nullable final OrganizationalBrandin this.backingStore.set("branding", value); } /** - * Sets the businessPhones property value. Telephone number for the organization. Although this is a string collection, only one number can be set for this property. + * Sets the businessPhones property value. Telephone number for the organization. Although this property is a string collection, only one number can be set. * @param value Value to set for the businessPhones property. */ public void setBusinessPhones(@jakarta.annotation.Nullable final java.util.List value) { @@ -349,7 +349,7 @@ public void setCity(@jakarta.annotation.Nullable final String value) { this.backingStore.set("city", value); } /** - * Sets the country property value. Country/region name of the address for the organization. + * Sets the country property value. Country or region name of the address for the organization. * @param value Value to set for the country property. */ public void setCountry(@jakarta.annotation.Nullable final String value) { @@ -363,7 +363,7 @@ public void setCountryLetterCode(@jakarta.annotation.Nullable final String value this.backingStore.set("countryLetterCode", value); } /** - * Sets the createdDateTime property value. Timestamp of when the organization was created. The value cannot be modified and is automatically populated when the organization is created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. + * Sets the createdDateTime property value. Timestamp of when the organization was created. The value can't be modified and is automatically populated when the organization is created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. * @param value Value to set for the createdDateTime property. */ public void setCreatedDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) { @@ -412,7 +412,7 @@ public void setOnPremisesLastSyncDateTime(@jakarta.annotation.Nullable final Off this.backingStore.set("onPremisesLastSyncDateTime", value); } /** - * Sets the onPremisesSyncEnabled property value. true if this object is synced from an on-premises directory; false if this object was originally synced from an on-premises directory but is no longer synced. Nullable. null if this object has never been synced from an on-premises directory (default). + * Sets the onPremisesSyncEnabled property value. true if this object is synced from an on-premises directory; false if this object was originally synced from an on-premises directory but is no longer synced. Nullable. null if this object isn't synced from on-premises active directory (default). * @param value Value to set for the onPremisesSyncEnabled property. */ public void setOnPremisesSyncEnabled(@jakarta.annotation.Nullable final Boolean value) { @@ -489,7 +489,7 @@ public void setTechnicalNotificationMails(@jakarta.annotation.Nullable final jav this.backingStore.set("technicalNotificationMails", value); } /** - * Sets the tenantType property value. Not nullable. The tenant type option that was selected when the tenant was created. The possible values are: AAD - An enterprise identity access management (IAM) service that serves business-to-employee and business-to-business (B2B) scenarios. AAD B2C A customer identity access management (CIAM) service that serves business-to-consumer (B2C) scenarios. + * Sets the tenantType property value. Not nullable. Can be one of the following types: AAD - An enterprise identity access management (IAM) service that serves business-to-employee and business-to-business (B2B) scenarios. AAD B2C An identity access management (IAM) service that serves business-to-consumer (B2C) scenarios. CIAM - A customer identity & access management (CIAM) solution that provides an integrated platform to serve consumers, partners, and citizen scenarios. * @param value Value to set for the tenantType property. */ public void setTenantType(@jakarta.annotation.Nullable final String value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/PageLayoutType.java b/src/main/java/com/microsoft/graph/generated/models/PageLayoutType.java new file mode 100644 index 00000000000..c7edc990f4c --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/PageLayoutType.java @@ -0,0 +1,29 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.ValuedEnum; +import java.util.Objects; + +@jakarta.annotation.Generated("com.microsoft.kiota") +public enum PageLayoutType implements ValuedEnum { + MicrosoftReserved("microsoftReserved"), + Article("article"), + Home("home"), + UnknownFutureValue("unknownFutureValue"); + public final String value; + PageLayoutType(final String value) { + this.value = value; + } + @jakarta.annotation.Nonnull + public String getValue() { return this.value; } + @jakarta.annotation.Nullable + public static PageLayoutType forValue(@jakarta.annotation.Nonnull final String searchValue) { + Objects.requireNonNull(searchValue); + switch(searchValue) { + case "microsoftReserved": return MicrosoftReserved; + case "article": return Article; + case "home": return Home; + case "unknownFutureValue": return UnknownFutureValue; + default: return null; + } + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/PagePromotionType.java b/src/main/java/com/microsoft/graph/generated/models/PagePromotionType.java new file mode 100644 index 00000000000..a0f26dac180 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/PagePromotionType.java @@ -0,0 +1,29 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.ValuedEnum; +import java.util.Objects; + +@jakarta.annotation.Generated("com.microsoft.kiota") +public enum PagePromotionType implements ValuedEnum { + MicrosoftReserved("microsoftReserved"), + Page("page"), + NewsPost("newsPost"), + UnknownFutureValue("unknownFutureValue"); + public final String value; + PagePromotionType(final String value) { + this.value = value; + } + @jakarta.annotation.Nonnull + public String getValue() { return this.value; } + @jakarta.annotation.Nullable + public static PagePromotionType forValue(@jakarta.annotation.Nonnull final String searchValue) { + Objects.requireNonNull(searchValue); + switch(searchValue) { + case "microsoftReserved": return MicrosoftReserved; + case "page": return Page; + case "newsPost": return NewsPost; + case "unknownFutureValue": return UnknownFutureValue; + default: return null; + } + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/PasswordProfile.java b/src/main/java/com/microsoft/graph/generated/models/PasswordProfile.java index 6a23f38c846..2a73b6835c2 100644 --- a/src/main/java/com/microsoft/graph/generated/models/PasswordProfile.java +++ b/src/main/java/com/microsoft/graph/generated/models/PasswordProfile.java @@ -69,7 +69,7 @@ public Map> getFieldDeserializers return deserializerMap; } /** - * Gets the forceChangePasswordNextSignIn property value. true if the user must change her password on the next login; otherwise false. + * Gets the forceChangePasswordNextSignIn property value. true if the user must change their password on the next sign-in; otherwise false. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -77,7 +77,7 @@ public Boolean getForceChangePasswordNextSignIn() { return this.backingStore.get("forceChangePasswordNextSignIn"); } /** - * Gets the forceChangePasswordNextSignInWithMfa property value. If true, at next sign-in, the user must perform a multi-factor authentication (MFA) before being forced to change their password. The behavior is identical to forceChangePasswordNextSignIn except that the user is required to first perform a multi-factor authentication before password change. After a password change, this property will be automatically reset to false. If not set, default is false. + * Gets the forceChangePasswordNextSignInWithMfa property value. If true, at next sign-in, the user must perform a multifactor authentication (MFA) before being forced to change their password. The behavior is identical to forceChangePasswordNextSignIn except that the user is required to first perform a multifactor authentication before password change. After a password change, this property will be automatically reset to false. If not set, default is false. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -93,7 +93,7 @@ public String getOdataType() { return this.backingStore.get("odataType"); } /** - * Gets the password property value. The password for the user. This property is required when a user is created. It can be updated, but the user will be required to change the password on the next login. The password must satisfy minimum requirements as specified by the user's passwordPolicies property. By default, a strong password is required. + * Gets the password property value. The password for the user. This property is required when a user is created. It can be updated, but the user will be required to change the password on the next sign-in. The password must satisfy minimum requirements as specified by the user's passwordPolicies property. By default, a strong password is required. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -128,14 +128,14 @@ public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value this.backingStore = value; } /** - * Sets the forceChangePasswordNextSignIn property value. true if the user must change her password on the next login; otherwise false. + * Sets the forceChangePasswordNextSignIn property value. true if the user must change their password on the next sign-in; otherwise false. * @param value Value to set for the forceChangePasswordNextSignIn property. */ public void setForceChangePasswordNextSignIn(@jakarta.annotation.Nullable final Boolean value) { this.backingStore.set("forceChangePasswordNextSignIn", value); } /** - * Sets the forceChangePasswordNextSignInWithMfa property value. If true, at next sign-in, the user must perform a multi-factor authentication (MFA) before being forced to change their password. The behavior is identical to forceChangePasswordNextSignIn except that the user is required to first perform a multi-factor authentication before password change. After a password change, this property will be automatically reset to false. If not set, default is false. + * Sets the forceChangePasswordNextSignInWithMfa property value. If true, at next sign-in, the user must perform a multifactor authentication (MFA) before being forced to change their password. The behavior is identical to forceChangePasswordNextSignIn except that the user is required to first perform a multifactor authentication before password change. After a password change, this property will be automatically reset to false. If not set, default is false. * @param value Value to set for the forceChangePasswordNextSignInWithMfa property. */ public void setForceChangePasswordNextSignInWithMfa(@jakarta.annotation.Nullable final Boolean value) { @@ -149,7 +149,7 @@ public void setOdataType(@jakarta.annotation.Nullable final String value) { this.backingStore.set("odataType", value); } /** - * Sets the password property value. The password for the user. This property is required when a user is created. It can be updated, but the user will be required to change the password on the next login. The password must satisfy minimum requirements as specified by the user's passwordPolicies property. By default, a strong password is required. + * Sets the password property value. The password for the user. This property is required when a user is created. It can be updated, but the user will be required to change the password on the next sign-in. The password must satisfy minimum requirements as specified by the user's passwordPolicies property. By default, a strong password is required. * @param value Value to set for the password property. */ public void setPassword(@jakarta.annotation.Nullable final String value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/Place.java b/src/main/java/com/microsoft/graph/generated/models/Place.java index 8101527f5a4..2d379e2707c 100644 --- a/src/main/java/com/microsoft/graph/generated/models/Place.java +++ b/src/main/java/com/microsoft/graph/generated/models/Place.java @@ -62,7 +62,7 @@ public Map> getFieldDeserializers return deserializerMap; } /** - * Gets the geoCoordinates property value. Specifies the place location in latitude, longitude and (optionally) altitude coordinates. + * Gets the geoCoordinates property value. Specifies the place location in latitude, longitude, and (optionally) altitude coordinates. * @return a {@link OutlookGeoCoordinates} */ @jakarta.annotation.Nullable @@ -104,7 +104,7 @@ public void setDisplayName(@jakarta.annotation.Nullable final String value) { this.backingStore.set("displayName", value); } /** - * Sets the geoCoordinates property value. Specifies the place location in latitude, longitude and (optionally) altitude coordinates. + * Sets the geoCoordinates property value. Specifies the place location in latitude, longitude, and (optionally) altitude coordinates. * @param value Value to set for the geoCoordinates property. */ public void setGeoCoordinates(@jakarta.annotation.Nullable final OutlookGeoCoordinates value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/PrivilegedAccessGroupAssignmentSchedule.java b/src/main/java/com/microsoft/graph/generated/models/PrivilegedAccessGroupAssignmentSchedule.java index 6c618925c0c..ed9960cbd15 100644 --- a/src/main/java/com/microsoft/graph/generated/models/PrivilegedAccessGroupAssignmentSchedule.java +++ b/src/main/java/com/microsoft/graph/generated/models/PrivilegedAccessGroupAssignmentSchedule.java @@ -26,7 +26,7 @@ public static PrivilegedAccessGroupAssignmentSchedule createFromDiscriminatorVal return new PrivilegedAccessGroupAssignmentSchedule(); } /** - * Gets the accessId property value. The identifier of the membership or ownership assignment to the group that is governed by PIM. Required. The possible values are: owner, member, unknownFutureValue. Supports $filter (eq). + * Gets the accessId property value. The identifier of the membership or ownership assignment to the group that is governed through PIM. Required. The possible values are: owner, member, unknownFutureValue. Supports $filter (eq). * @return a {@link PrivilegedAccessGroupRelationships} */ @jakarta.annotation.Nullable @@ -34,7 +34,7 @@ public PrivilegedAccessGroupRelationships getAccessId() { return this.backingStore.get("accessId"); } /** - * Gets the activatedUsing property value. When the request activates an ownership or membership assignment in PIM for groups, this object represents the eligibility relationship. Otherwise, it is null. Supports $expand. + * Gets the activatedUsing property value. When the request activates an ownership or membership assignment in PIM for groups, this object represents the eligibility relationship. Otherwise, it's null. Supports $expand. * @return a {@link PrivilegedAccessGroupEligibilitySchedule} */ @jakarta.annotation.Nullable @@ -67,7 +67,7 @@ public Map> getFieldDeserializers return deserializerMap; } /** - * Gets the group property value. References the group that is the scope of the membership or ownership assignment through PIM for groups. Supports $expand. + * Gets the group property value. References the group that is the scope of the membership or ownership assignment through PIM for groups. Supports $expand and $select nested in $expand for select properties like id, displayName, and mail. * @return a {@link Group} */ @jakarta.annotation.Nullable @@ -91,7 +91,7 @@ public PrivilegedAccessGroupMemberType getMemberType() { return this.backingStore.get("memberType"); } /** - * Gets the principal property value. References the principal that's in the scope of this membership or ownership assignment request to the group that's governed by PIM. Supports $expand. + * Gets the principal property value. References the principal that's in the scope of this membership or ownership assignment request to the group that's governed through PIM. Supports $expand and $select nested in $expand for id only. * @return a {@link DirectoryObject} */ @jakarta.annotation.Nullable @@ -123,14 +123,14 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeStringValue("principalId", this.getPrincipalId()); } /** - * Sets the accessId property value. The identifier of the membership or ownership assignment to the group that is governed by PIM. Required. The possible values are: owner, member, unknownFutureValue. Supports $filter (eq). + * Sets the accessId property value. The identifier of the membership or ownership assignment to the group that is governed through PIM. Required. The possible values are: owner, member, unknownFutureValue. Supports $filter (eq). * @param value Value to set for the accessId property. */ public void setAccessId(@jakarta.annotation.Nullable final PrivilegedAccessGroupRelationships value) { this.backingStore.set("accessId", value); } /** - * Sets the activatedUsing property value. When the request activates an ownership or membership assignment in PIM for groups, this object represents the eligibility relationship. Otherwise, it is null. Supports $expand. + * Sets the activatedUsing property value. When the request activates an ownership or membership assignment in PIM for groups, this object represents the eligibility relationship. Otherwise, it's null. Supports $expand. * @param value Value to set for the activatedUsing property. */ public void setActivatedUsing(@jakarta.annotation.Nullable final PrivilegedAccessGroupEligibilitySchedule value) { @@ -144,7 +144,7 @@ public void setAssignmentType(@jakarta.annotation.Nullable final PrivilegedAcces this.backingStore.set("assignmentType", value); } /** - * Sets the group property value. References the group that is the scope of the membership or ownership assignment through PIM for groups. Supports $expand. + * Sets the group property value. References the group that is the scope of the membership or ownership assignment through PIM for groups. Supports $expand and $select nested in $expand for select properties like id, displayName, and mail. * @param value Value to set for the group property. */ public void setGroup(@jakarta.annotation.Nullable final Group value) { @@ -165,7 +165,7 @@ public void setMemberType(@jakarta.annotation.Nullable final PrivilegedAccessGro this.backingStore.set("memberType", value); } /** - * Sets the principal property value. References the principal that's in the scope of this membership or ownership assignment request to the group that's governed by PIM. Supports $expand. + * Sets the principal property value. References the principal that's in the scope of this membership or ownership assignment request to the group that's governed through PIM. Supports $expand and $select nested in $expand for id only. * @param value Value to set for the principal property. */ public void setPrincipal(@jakarta.annotation.Nullable final DirectoryObject value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/PrivilegedAccessGroupAssignmentScheduleRequest.java b/src/main/java/com/microsoft/graph/generated/models/PrivilegedAccessGroupAssignmentScheduleRequest.java index fffd34dc54b..5576803ead9 100644 --- a/src/main/java/com/microsoft/graph/generated/models/PrivilegedAccessGroupAssignmentScheduleRequest.java +++ b/src/main/java/com/microsoft/graph/generated/models/PrivilegedAccessGroupAssignmentScheduleRequest.java @@ -59,7 +59,7 @@ public Map> getFieldDeserializers return deserializerMap; } /** - * Gets the group property value. References the group that is the scope of the membership or ownership assignment request through PIM for groups. Supports $expand. + * Gets the group property value. References the group that is the scope of the membership or ownership assignment request through PIM for groups. Supports $expand and $select nested in $expand for select properties like id, displayName, and mail. * @return a {@link Group} */ @jakarta.annotation.Nullable @@ -75,7 +75,7 @@ public String getGroupId() { return this.backingStore.get("groupId"); } /** - * Gets the principal property value. References the principal that's in the scope of this membership or ownership assignment request through the group that's governed by PIM. Supports $expand. + * Gets the principal property value. References the principal that's in the scope of this membership or ownership assignment request through the group that's governed by PIM. Supports $expand and $select nested in $expand for id only. * @return a {@link DirectoryObject} */ @jakarta.annotation.Nullable @@ -137,7 +137,7 @@ public void setActivatedUsing(@jakarta.annotation.Nullable final PrivilegedAcces this.backingStore.set("activatedUsing", value); } /** - * Sets the group property value. References the group that is the scope of the membership or ownership assignment request through PIM for groups. Supports $expand. + * Sets the group property value. References the group that is the scope of the membership or ownership assignment request through PIM for groups. Supports $expand and $select nested in $expand for select properties like id, displayName, and mail. * @param value Value to set for the group property. */ public void setGroup(@jakarta.annotation.Nullable final Group value) { @@ -151,7 +151,7 @@ public void setGroupId(@jakarta.annotation.Nullable final String value) { this.backingStore.set("groupId", value); } /** - * Sets the principal property value. References the principal that's in the scope of this membership or ownership assignment request through the group that's governed by PIM. Supports $expand. + * Sets the principal property value. References the principal that's in the scope of this membership or ownership assignment request through the group that's governed by PIM. Supports $expand and $select nested in $expand for id only. * @param value Value to set for the principal property. */ public void setPrincipal(@jakarta.annotation.Nullable final DirectoryObject value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/PrivilegedAccessGroupEligibilityScheduleRequest.java b/src/main/java/com/microsoft/graph/generated/models/PrivilegedAccessGroupEligibilityScheduleRequest.java index a4707955a3c..26b26e9beaa 100644 --- a/src/main/java/com/microsoft/graph/generated/models/PrivilegedAccessGroupEligibilityScheduleRequest.java +++ b/src/main/java/com/microsoft/graph/generated/models/PrivilegedAccessGroupEligibilityScheduleRequest.java @@ -50,7 +50,7 @@ public Map> getFieldDeserializers return deserializerMap; } /** - * Gets the group property value. References the group that is the scope of the membership or ownership eligibility request through PIM for groups. Supports $expand. + * Gets the group property value. References the group that is the scope of the membership or ownership eligibility request through PIM for groups. Supports $expand and $select nested in $expand for select properties like id, displayName, and mail. * @return a {@link Group} */ @jakarta.annotation.Nullable @@ -66,7 +66,7 @@ public String getGroupId() { return this.backingStore.get("groupId"); } /** - * Gets the principal property value. References the principal that's in the scope of the membership or ownership eligibility request through the group that's governed by PIM. Supports $expand. + * Gets the principal property value. References the principal that's in the scope of the membership or ownership eligibility request through the group that's governed by PIM. Supports $expand and $select nested in $expand for id only. * @return a {@link DirectoryObject} */ @jakarta.annotation.Nullable @@ -120,7 +120,7 @@ public void setAccessId(@jakarta.annotation.Nullable final PrivilegedAccessGroup this.backingStore.set("accessId", value); } /** - * Sets the group property value. References the group that is the scope of the membership or ownership eligibility request through PIM for groups. Supports $expand. + * Sets the group property value. References the group that is the scope of the membership or ownership eligibility request through PIM for groups. Supports $expand and $select nested in $expand for select properties like id, displayName, and mail. * @param value Value to set for the group property. */ public void setGroup(@jakarta.annotation.Nullable final Group value) { @@ -134,7 +134,7 @@ public void setGroupId(@jakarta.annotation.Nullable final String value) { this.backingStore.set("groupId", value); } /** - * Sets the principal property value. References the principal that's in the scope of the membership or ownership eligibility request through the group that's governed by PIM. Supports $expand. + * Sets the principal property value. References the principal that's in the scope of the membership or ownership eligibility request through the group that's governed by PIM. Supports $expand and $select nested in $expand for id only. * @param value Value to set for the principal property. */ public void setPrincipal(@jakarta.annotation.Nullable final DirectoryObject value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/ReactionsFacet.java b/src/main/java/com/microsoft/graph/generated/models/ReactionsFacet.java new file mode 100644 index 00000000000..30a948754ae --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/ReactionsFacet.java @@ -0,0 +1,158 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.AdditionalDataHolder; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import com.microsoft.kiota.store.BackedModel; +import com.microsoft.kiota.store.BackingStore; +import com.microsoft.kiota.store.BackingStoreFactorySingleton; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class ReactionsFacet implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link ReactionsFacet} and sets the default values. + */ + public ReactionsFacet() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link ReactionsFacet} + */ + @jakarta.annotation.Nonnull + public static ReactionsFacet createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new ReactionsFacet(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * Gets the commentCount property value. The commentCount property + * @return a {@link Integer} + */ + @jakarta.annotation.Nullable + public Integer getCommentCount() { + return this.backingStore.get("commentCount"); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(4); + deserializerMap.put("commentCount", (n) -> { this.setCommentCount(n.getIntegerValue()); }); + deserializerMap.put("likeCount", (n) -> { this.setLikeCount(n.getIntegerValue()); }); + deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); }); + deserializerMap.put("shareCount", (n) -> { this.setShareCount(n.getIntegerValue()); }); + return deserializerMap; + } + /** + * Gets the likeCount property value. The likeCount property + * @return a {@link Integer} + */ + @jakarta.annotation.Nullable + public Integer getLikeCount() { + return this.backingStore.get("likeCount"); + } + /** + * Gets the @odata.type property value. The OdataType property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getOdataType() { + return this.backingStore.get("odataType"); + } + /** + * Gets the shareCount property value. The shareCount property + * @return a {@link Integer} + */ + @jakarta.annotation.Nullable + public Integer getShareCount() { + return this.backingStore.get("shareCount"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + writer.writeIntegerValue("commentCount", this.getCommentCount()); + writer.writeIntegerValue("likeCount", this.getLikeCount()); + writer.writeStringValue("@odata.type", this.getOdataType()); + writer.writeIntegerValue("shareCount", this.getShareCount()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { + this.backingStore.set("additionalData", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @param value Value to set for the backingStore property. + */ + public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { + Objects.requireNonNull(value); + this.backingStore = value; + } + /** + * Sets the commentCount property value. The commentCount property + * @param value Value to set for the commentCount property. + */ + public void setCommentCount(@jakarta.annotation.Nullable final Integer value) { + this.backingStore.set("commentCount", value); + } + /** + * Sets the likeCount property value. The likeCount property + * @param value Value to set for the likeCount property. + */ + public void setLikeCount(@jakarta.annotation.Nullable final Integer value) { + this.backingStore.set("likeCount", value); + } + /** + * Sets the @odata.type property value. The OdataType property + * @param value Value to set for the @odata.type property. + */ + public void setOdataType(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("odataType", value); + } + /** + * Sets the shareCount property value. The shareCount property + * @param value Value to set for the shareCount property. + */ + public void setShareCount(@jakarta.annotation.Nullable final Integer value) { + this.backingStore.set("shareCount", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/RiskDetail.java b/src/main/java/com/microsoft/graph/generated/models/RiskDetail.java index 280b063bfcd..e7c3232dd55 100644 --- a/src/main/java/com/microsoft/graph/generated/models/RiskDetail.java +++ b/src/main/java/com/microsoft/graph/generated/models/RiskDetail.java @@ -19,7 +19,10 @@ public enum RiskDetail implements ValuedEnum { UnknownFutureValue("unknownFutureValue"), M365DAdminDismissedDetection("m365DAdminDismissedDetection"), AdminConfirmedServicePrincipalCompromised("adminConfirmedServicePrincipalCompromised"), - AdminDismissedAllRiskForServicePrincipal("adminDismissedAllRiskForServicePrincipal"); + AdminDismissedAllRiskForServicePrincipal("adminDismissedAllRiskForServicePrincipal"), + UserChangedPasswordOnPremises("userChangedPasswordOnPremises"), + AdminDismissedRiskForSignIn("adminDismissedRiskForSignIn"), + AdminConfirmedAccountSafe("adminConfirmedAccountSafe"); public final String value; RiskDetail(final String value) { this.value = value; @@ -45,6 +48,9 @@ public static RiskDetail forValue(@jakarta.annotation.Nonnull final String searc case "m365DAdminDismissedDetection": return M365DAdminDismissedDetection; case "adminConfirmedServicePrincipalCompromised": return AdminConfirmedServicePrincipalCompromised; case "adminDismissedAllRiskForServicePrincipal": return AdminDismissedAllRiskForServicePrincipal; + case "userChangedPasswordOnPremises": return UserChangedPasswordOnPremises; + case "adminDismissedRiskForSignIn": return AdminDismissedRiskForSignIn; + case "adminConfirmedAccountSafe": return AdminConfirmedAccountSafe; default: return null; } } diff --git a/src/main/java/com/microsoft/graph/generated/models/RiskyUser.java b/src/main/java/com/microsoft/graph/generated/models/RiskyUser.java index 0e66057b5cb..05cf1b95e6b 100644 --- a/src/main/java/com/microsoft/graph/generated/models/RiskyUser.java +++ b/src/main/java/com/microsoft/graph/generated/models/RiskyUser.java @@ -67,7 +67,7 @@ public Boolean getIsDeleted() { return this.backingStore.get("isDeleted"); } /** - * Gets the isProcessing property value. Indicates whether a user's risky state is being processed by the backend. Supports $filter (eq). + * Gets the isProcessing property value. Indicates whether the backend is processing a user's risky state. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -75,7 +75,7 @@ public Boolean getIsProcessing() { return this.backingStore.get("isProcessing"); } /** - * Gets the riskDetail property value. Details of the detected risk. Possible values are: none, adminGeneratedTemporaryPassword, userPerformedSecuredPasswordChange, userPerformedSecuredPasswordReset, adminConfirmedSigninSafe, aiConfirmedSigninSafe, userPassedMFADrivenByRiskBasedPolicy, adminDismissedAllRiskForUser, adminConfirmedSigninCompromised, hidden, adminConfirmedUserCompromised, unknownFutureValue. + * Gets the riskDetail property value. The possible values are none, adminGeneratedTemporaryPassword, userPerformedSecuredPasswordChange, userPerformedSecuredPasswordReset, adminConfirmedSigninSafe, aiConfirmedSigninSafe, userPassedMFADrivenByRiskBasedPolicy, adminDismissedAllRiskForUser, adminConfirmedSigninCompromised, hidden, adminConfirmedUserCompromised, unknownFutureValue, adminConfirmedServicePrincipalCompromised, adminDismissedAllRiskForServicePrincipal, m365DAdminDismissedDetection, userChangedPasswordOnPremises, adminDismissedRiskForSignIn, adminConfirmedAccountSafe. You must use the Prefer: include-unknown-enum-members request header to get the following value or values in this evolvable enum: adminConfirmedServicePrincipalCompromised, adminDismissedAllRiskForServicePrincipal, m365DAdminDismissedDetection, userChangedPasswordOnPremises, adminDismissedRiskForSignIn, adminConfirmedAccountSafe. * @return a {@link RiskDetail} */ @jakarta.annotation.Nullable @@ -83,7 +83,7 @@ public RiskDetail getRiskDetail() { return this.backingStore.get("riskDetail"); } /** - * Gets the riskLastUpdatedDateTime property value. The date and time that the risky user was last updated. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Supports $filter (eq, gt, lt). + * Gets the riskLastUpdatedDateTime property value. The date and time that the risky user was last updated. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. * @return a {@link OffsetDateTime} */ @jakarta.annotation.Nullable @@ -91,7 +91,7 @@ public OffsetDateTime getRiskLastUpdatedDateTime() { return this.backingStore.get("riskLastUpdatedDateTime"); } /** - * Gets the riskLevel property value. Level of the detected risky user. Possible values are: low, medium, high, hidden, none, unknownFutureValue. Supports $filter (eq). + * Gets the riskLevel property value. Level of the detected risky user. Possible values are: low, medium, high, hidden, none, unknownFutureValue. * @return a {@link RiskLevel} */ @jakarta.annotation.Nullable @@ -99,7 +99,7 @@ public RiskLevel getRiskLevel() { return this.backingStore.get("riskLevel"); } /** - * Gets the riskState property value. State of the user's risk. Possible values are: none, confirmedSafe, remediated, dismissed, atRisk, confirmedCompromised, unknownFutureValue. Supports $filter (eq). + * Gets the riskState property value. State of the user's risk. Possible values are: none, confirmedSafe, remediated, dismissed, atRisk, confirmedCompromised, unknownFutureValue. * @return a {@link RiskState} */ @jakarta.annotation.Nullable @@ -154,35 +154,35 @@ public void setIsDeleted(@jakarta.annotation.Nullable final Boolean value) { this.backingStore.set("isDeleted", value); } /** - * Sets the isProcessing property value. Indicates whether a user's risky state is being processed by the backend. Supports $filter (eq). + * Sets the isProcessing property value. Indicates whether the backend is processing a user's risky state. * @param value Value to set for the isProcessing property. */ public void setIsProcessing(@jakarta.annotation.Nullable final Boolean value) { this.backingStore.set("isProcessing", value); } /** - * Sets the riskDetail property value. Details of the detected risk. Possible values are: none, adminGeneratedTemporaryPassword, userPerformedSecuredPasswordChange, userPerformedSecuredPasswordReset, adminConfirmedSigninSafe, aiConfirmedSigninSafe, userPassedMFADrivenByRiskBasedPolicy, adminDismissedAllRiskForUser, adminConfirmedSigninCompromised, hidden, adminConfirmedUserCompromised, unknownFutureValue. + * Sets the riskDetail property value. The possible values are none, adminGeneratedTemporaryPassword, userPerformedSecuredPasswordChange, userPerformedSecuredPasswordReset, adminConfirmedSigninSafe, aiConfirmedSigninSafe, userPassedMFADrivenByRiskBasedPolicy, adminDismissedAllRiskForUser, adminConfirmedSigninCompromised, hidden, adminConfirmedUserCompromised, unknownFutureValue, adminConfirmedServicePrincipalCompromised, adminDismissedAllRiskForServicePrincipal, m365DAdminDismissedDetection, userChangedPasswordOnPremises, adminDismissedRiskForSignIn, adminConfirmedAccountSafe. You must use the Prefer: include-unknown-enum-members request header to get the following value or values in this evolvable enum: adminConfirmedServicePrincipalCompromised, adminDismissedAllRiskForServicePrincipal, m365DAdminDismissedDetection, userChangedPasswordOnPremises, adminDismissedRiskForSignIn, adminConfirmedAccountSafe. * @param value Value to set for the riskDetail property. */ public void setRiskDetail(@jakarta.annotation.Nullable final RiskDetail value) { this.backingStore.set("riskDetail", value); } /** - * Sets the riskLastUpdatedDateTime property value. The date and time that the risky user was last updated. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Supports $filter (eq, gt, lt). + * Sets the riskLastUpdatedDateTime property value. The date and time that the risky user was last updated. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. * @param value Value to set for the riskLastUpdatedDateTime property. */ public void setRiskLastUpdatedDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) { this.backingStore.set("riskLastUpdatedDateTime", value); } /** - * Sets the riskLevel property value. Level of the detected risky user. Possible values are: low, medium, high, hidden, none, unknownFutureValue. Supports $filter (eq). + * Sets the riskLevel property value. Level of the detected risky user. Possible values are: low, medium, high, hidden, none, unknownFutureValue. * @param value Value to set for the riskLevel property. */ public void setRiskLevel(@jakarta.annotation.Nullable final RiskLevel value) { this.backingStore.set("riskLevel", value); } /** - * Sets the riskState property value. State of the user's risk. Possible values are: none, confirmedSafe, remediated, dismissed, atRisk, confirmedCompromised, unknownFutureValue. Supports $filter (eq). + * Sets the riskState property value. State of the user's risk. Possible values are: none, confirmedSafe, remediated, dismissed, atRisk, confirmedCompromised, unknownFutureValue. * @param value Value to set for the riskState property. */ public void setRiskState(@jakarta.annotation.Nullable final RiskState value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/Room.java b/src/main/java/com/microsoft/graph/generated/models/Room.java index a923e4faed4..6d489411efd 100644 --- a/src/main/java/com/microsoft/graph/generated/models/Room.java +++ b/src/main/java/com/microsoft/graph/generated/models/Room.java @@ -136,7 +136,7 @@ public String getNickname() { return this.backingStore.get("nickname"); } /** - * Gets the tags property value. Specifies additional features of the room, for example, details like the type of view or furniture type. + * Gets the tags property value. Specifies other features of the room, for example, details like the type of view or furniture type. * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -250,7 +250,7 @@ public void setNickname(@jakarta.annotation.Nullable final String value) { this.backingStore.set("nickname", value); } /** - * Sets the tags property value. Specifies additional features of the room, for example, details like the type of view or furniture type. + * Sets the tags property value. Specifies other features of the room, for example, details like the type of view or furniture type. * @param value Value to set for the tags property. */ public void setTags(@jakarta.annotation.Nullable final java.util.List value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/SearchEntity.java b/src/main/java/com/microsoft/graph/generated/models/SearchEntity.java index 160789d5615..12a026c5d26 100644 --- a/src/main/java/com/microsoft/graph/generated/models/SearchEntity.java +++ b/src/main/java/com/microsoft/graph/generated/models/SearchEntity.java @@ -1,5 +1,8 @@ package com.microsoft.graph.models; +import com.microsoft.graph.models.search.Acronym; +import com.microsoft.graph.models.search.Bookmark; +import com.microsoft.graph.models.search.Qna; import com.microsoft.kiota.serialization.Parsable; import com.microsoft.kiota.serialization.ParseNode; import com.microsoft.kiota.serialization.SerializationWriter; @@ -24,6 +27,22 @@ public static SearchEntity createFromDiscriminatorValue(@jakarta.annotation.Nonn Objects.requireNonNull(parseNode); return new SearchEntity(); } + /** + * Gets the acronyms property value. Administrative answer in Microsoft Search results to define common acronyms in an organization. + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getAcronyms() { + return this.backingStore.get("acronyms"); + } + /** + * Gets the bookmarks property value. Administrative answer in Microsoft Search results for common search queries in an organization. + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getBookmarks() { + return this.backingStore.get("bookmarks"); + } /** * The deserialization information for the current model * @return a {@link Map>} @@ -31,8 +50,19 @@ public static SearchEntity createFromDiscriminatorValue(@jakarta.annotation.Nonn @jakarta.annotation.Nonnull public Map> getFieldDeserializers() { final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("acronyms", (n) -> { this.setAcronyms(n.getCollectionOfObjectValues(Acronym::createFromDiscriminatorValue)); }); + deserializerMap.put("bookmarks", (n) -> { this.setBookmarks(n.getCollectionOfObjectValues(Bookmark::createFromDiscriminatorValue)); }); + deserializerMap.put("qnas", (n) -> { this.setQnas(n.getCollectionOfObjectValues(Qna::createFromDiscriminatorValue)); }); return deserializerMap; } + /** + * Gets the qnas property value. Administrative answer in Microsoft Search results that provide answers for specific search keywords in an organization. + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getQnas() { + return this.backingStore.get("qnas"); + } /** * Serializes information the current object * @param writer Serialization writer to use to serialize this model @@ -40,5 +70,29 @@ public Map> getFieldDeserializers public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); super.serialize(writer); + writer.writeCollectionOfObjectValues("acronyms", this.getAcronyms()); + writer.writeCollectionOfObjectValues("bookmarks", this.getBookmarks()); + writer.writeCollectionOfObjectValues("qnas", this.getQnas()); + } + /** + * Sets the acronyms property value. Administrative answer in Microsoft Search results to define common acronyms in an organization. + * @param value Value to set for the acronyms property. + */ + public void setAcronyms(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("acronyms", value); + } + /** + * Sets the bookmarks property value. Administrative answer in Microsoft Search results for common search queries in an organization. + * @param value Value to set for the bookmarks property. + */ + public void setBookmarks(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("bookmarks", value); + } + /** + * Sets the qnas property value. Administrative answer in Microsoft Search results that provide answers for specific search keywords in an organization. + * @param value Value to set for the qnas property. + */ + public void setQnas(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("qnas", value); } } diff --git a/src/main/java/com/microsoft/graph/generated/models/SectionEmphasisType.java b/src/main/java/com/microsoft/graph/generated/models/SectionEmphasisType.java new file mode 100644 index 00000000000..4bfefa3520b --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/SectionEmphasisType.java @@ -0,0 +1,31 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.ValuedEnum; +import java.util.Objects; + +@jakarta.annotation.Generated("com.microsoft.kiota") +public enum SectionEmphasisType implements ValuedEnum { + None("none"), + Neutral("neutral"), + Soft("soft"), + Strong("strong"), + UnknownFutureValue("unknownFutureValue"); + public final String value; + SectionEmphasisType(final String value) { + this.value = value; + } + @jakarta.annotation.Nonnull + public String getValue() { return this.value; } + @jakarta.annotation.Nullable + public static SectionEmphasisType forValue(@jakarta.annotation.Nonnull final String searchValue) { + Objects.requireNonNull(searchValue); + switch(searchValue) { + case "none": return None; + case "neutral": return Neutral; + case "soft": return Soft; + case "strong": return Strong; + case "unknownFutureValue": return UnknownFutureValue; + default: return null; + } + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/ServerProcessedContent.java b/src/main/java/com/microsoft/graph/generated/models/ServerProcessedContent.java new file mode 100644 index 00000000000..c9234be8fc8 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/ServerProcessedContent.java @@ -0,0 +1,175 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.AdditionalDataHolder; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import com.microsoft.kiota.store.BackedModel; +import com.microsoft.kiota.store.BackingStore; +import com.microsoft.kiota.store.BackingStoreFactorySingleton; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class ServerProcessedContent implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link ServerProcessedContent} and sets the default values. + */ + public ServerProcessedContent() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link ServerProcessedContent} + */ + @jakarta.annotation.Nonnull + public static ServerProcessedContent createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new ServerProcessedContent(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(5); + deserializerMap.put("htmlStrings", (n) -> { this.setHtmlStrings(n.getCollectionOfObjectValues(MetaDataKeyStringPair::createFromDiscriminatorValue)); }); + deserializerMap.put("imageSources", (n) -> { this.setImageSources(n.getCollectionOfObjectValues(MetaDataKeyStringPair::createFromDiscriminatorValue)); }); + deserializerMap.put("links", (n) -> { this.setLinks(n.getCollectionOfObjectValues(MetaDataKeyStringPair::createFromDiscriminatorValue)); }); + deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); }); + deserializerMap.put("searchablePlainTexts", (n) -> { this.setSearchablePlainTexts(n.getCollectionOfObjectValues(MetaDataKeyStringPair::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the htmlStrings property value. The htmlStrings property + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getHtmlStrings() { + return this.backingStore.get("htmlStrings"); + } + /** + * Gets the imageSources property value. The imageSources property + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getImageSources() { + return this.backingStore.get("imageSources"); + } + /** + * Gets the links property value. The links property + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getLinks() { + return this.backingStore.get("links"); + } + /** + * Gets the @odata.type property value. The OdataType property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getOdataType() { + return this.backingStore.get("odataType"); + } + /** + * Gets the searchablePlainTexts property value. The searchablePlainTexts property + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getSearchablePlainTexts() { + return this.backingStore.get("searchablePlainTexts"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + writer.writeCollectionOfObjectValues("htmlStrings", this.getHtmlStrings()); + writer.writeCollectionOfObjectValues("imageSources", this.getImageSources()); + writer.writeCollectionOfObjectValues("links", this.getLinks()); + writer.writeStringValue("@odata.type", this.getOdataType()); + writer.writeCollectionOfObjectValues("searchablePlainTexts", this.getSearchablePlainTexts()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { + this.backingStore.set("additionalData", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @param value Value to set for the backingStore property. + */ + public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { + Objects.requireNonNull(value); + this.backingStore = value; + } + /** + * Sets the htmlStrings property value. The htmlStrings property + * @param value Value to set for the htmlStrings property. + */ + public void setHtmlStrings(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("htmlStrings", value); + } + /** + * Sets the imageSources property value. The imageSources property + * @param value Value to set for the imageSources property. + */ + public void setImageSources(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("imageSources", value); + } + /** + * Sets the links property value. The links property + * @param value Value to set for the links property. + */ + public void setLinks(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("links", value); + } + /** + * Sets the @odata.type property value. The OdataType property + * @param value Value to set for the @odata.type property. + */ + public void setOdataType(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("odataType", value); + } + /** + * Sets the searchablePlainTexts property value. The searchablePlainTexts property + * @param value Value to set for the searchablePlainTexts property. + */ + public void setSearchablePlainTexts(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("searchablePlainTexts", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/ServicePrincipal.java b/src/main/java/com/microsoft/graph/generated/models/ServicePrincipal.java index 2eb925c581b..720706e3c14 100644 --- a/src/main/java/com/microsoft/graph/generated/models/ServicePrincipal.java +++ b/src/main/java/com/microsoft/graph/generated/models/ServicePrincipal.java @@ -27,7 +27,7 @@ public static ServicePrincipal createFromDiscriminatorValue(@jakarta.annotation. return new ServicePrincipal(); } /** - * Gets the accountEnabled property value. true if the service principal account is enabled; otherwise, false. If set to false, then no users will be able to sign in to this app, even if they are assigned to it. Supports $filter (eq, ne, not, in). + * Gets the accountEnabled property value. true if the service principal account is enabled; otherwise, false. If set to false, then no users are able to sign in to this app, even if they're assigned to it. Supports $filter (eq, ne, not, in). * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -35,7 +35,7 @@ public Boolean getAccountEnabled() { return this.backingStore.get("accountEnabled"); } /** - * Gets the addIns property value. Defines custom behavior that a consuming service can use to call an app in specific contexts. For example, applications that can render file streams may set the addIns property for its 'FileHandler' functionality. This will let services like Microsoft 365 call the application in the context of a document the user is working on. + * Gets the addIns property value. Defines custom behavior that a consuming service can use to call an app in specific contexts. For example, applications that can render file streams may set the addIns property for its 'FileHandler' functionality. This lets services like Microsoft 365 call the application in the context of a document the user is working on. * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -43,7 +43,7 @@ public java.util.List getAddIns() { return this.backingStore.get("addIns"); } /** - * Gets the alternativeNames property value. Used to retrieve service principals by subscription, identify resource group and full resource ids for managed identities. Supports $filter (eq, not, ge, le, startsWith). + * Gets the alternativeNames property value. Used to retrieve service principals by subscription, identify resource group and full resource IDs for managed identities. Supports $filter (eq, not, ge, le, startsWith). * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -75,7 +75,7 @@ public String getAppId() { return this.backingStore.get("appId"); } /** - * Gets the applicationTemplateId property value. Unique identifier of the applicationTemplate that the servicePrincipal was created from. Read-only. Supports $filter (eq, ne, NOT, startsWith). + * Gets the applicationTemplateId property value. Unique identifier of the applicationTemplate. Supports $filter (eq, not, ne). Read-only. null if the service principal wasn't created from an application template. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -91,7 +91,7 @@ public java.util.List getAppManagementPolicies() { return this.backingStore.get("appManagementPolicies"); } /** - * Gets the appOwnerOrganizationId property value. Contains the tenant id where the application is registered. This is applicable only to service principals backed by applications. Supports $filter (eq, ne, NOT, ge, le). + * Gets the appOwnerOrganizationId property value. Contains the tenant ID where the application is registered. This is applicable only to service principals backed by applications. Supports $filter (eq, ne, NOT, ge, le). * @return a {@link UUID} */ @jakarta.annotation.Nullable @@ -123,7 +123,7 @@ public java.util.List getAppRoleAssignments() { return this.backingStore.get("appRoleAssignments"); } /** - * Gets the appRoles property value. The roles exposed by the application which this service principal represents. For more information see the appRoles property definition on the application entity. Not nullable. + * Gets the appRoles property value. The roles exposed by the application that's linked to this service principal. For more information, see the appRoles property definition on the application entity. Not nullable. * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -163,7 +163,7 @@ public java.util.List getDelegatedPermissionC return this.backingStore.get("delegatedPermissionClassifications"); } /** - * Gets the description property value. Free text field to provide an internal end-user facing description of the service principal. End-user portals such MyApps will display the application description in this field. The maximum allowed size is 1024 characters. Supports $filter (eq, ne, not, ge, le, startsWith) and $search. + * Gets the description property value. Free text field to provide an internal end-user facing description of the service principal. End-user portals such MyApps displays the application description in this field. The maximum allowed size is 1,024 characters. Supports $filter (eq, ne, not, ge, le, startsWith) and $search. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -171,7 +171,7 @@ public String getDescription() { return this.backingStore.get("description"); } /** - * Gets the disabledByMicrosoftStatus property value. Specifies whether Microsoft has disabled the registered application. Possible values are: null (default value), NotDisabled, and DisabledDueToViolationOfServicesAgreement (reasons may include suspicious, abusive, or malicious activity, or a violation of the Microsoft Services Agreement). Supports $filter (eq, ne, not). + * Gets the disabledByMicrosoftStatus property value. Specifies whether Microsoft has disabled the registered application. Possible values are: null (default value), NotDisabled, and DisabledDueToViolationOfServicesAgreement (reasons include suspicious, abusive, or malicious activity, or a violation of the Microsoft Services Agreement). Supports $filter (eq, ne, not). * @return a {@link String} */ @jakarta.annotation.Nullable @@ -304,7 +304,7 @@ public String getLoginUrl() { return this.backingStore.get("loginUrl"); } /** - * Gets the logoutUrl property value. Specifies the URL that will be used by Microsoft's authorization service to logout an user using OpenId Connect front-channel, back-channel or SAML logout protocols. + * Gets the logoutUrl property value. Specifies the URL that the Microsoft's authorization service uses to sign out a user using OpenID Connect front-channel, back-channel, or SAML sign out protocols. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -320,7 +320,7 @@ public java.util.List getMemberOf() { return this.backingStore.get("memberOf"); } /** - * Gets the notes property value. Free text field to capture information about the service principal, typically used for operational purposes. Maximum allowed size is 1024 characters. + * Gets the notes property value. Free text field to capture information about the service principal, typically used for operational purposes. Maximum allowed size is 1,024 characters. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -344,7 +344,7 @@ public java.util.List getOauth2PermissionGrants() { return this.backingStore.get("oauth2PermissionGrants"); } /** - * Gets the oauth2PermissionScopes property value. The delegated permissions exposed by the application. For more information see the oauth2PermissionScopes property on the application entity's api property. Not nullable. + * Gets the oauth2PermissionScopes property value. The delegated permissions exposed by the application. For more information, see the oauth2PermissionScopes property on the application entity's api property. Not nullable. * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -352,7 +352,7 @@ public java.util.List getOauth2PermissionScopes() { return this.backingStore.get("oauth2PermissionScopes"); } /** - * Gets the ownedObjects property value. Directory objects that are owned by this service principal. Read-only. Nullable. Supports $expand, $select nested in $expand, and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). + * Gets the ownedObjects property value. Directory objects that this service principal owns. Read-only. Nullable. Supports $expand, $select nested in $expand, and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -360,7 +360,7 @@ public java.util.List getOwnedObjects() { return this.backingStore.get("ownedObjects"); } /** - * Gets the owners property value. Directory objects that are owners of this servicePrincipal. The owners are a set of non-admin users or servicePrincipals who are allowed to modify this object. Read-only. Nullable. Supports $expand, $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1), and $select nested in $expand. + * Gets the owners property value. Directory objects that are owners of this servicePrincipal. The owners are a set of nonadmin users or servicePrincipals who are allowed to modify this object. Read-only. Nullable. Supports $expand, $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1), and $select nested in $expand. * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -384,7 +384,7 @@ public String getPreferredSingleSignOnMode() { return this.backingStore.get("preferredSingleSignOnMode"); } /** - * Gets the preferredTokenSigningKeyThumbprint property value. This property can be used on SAML applications (apps that have preferredSingleSignOnMode set to saml) to control which certificate is used to sign the SAML responses. For applications that are not SAML, do not write or otherwise rely on this property. + * Gets the preferredTokenSigningKeyThumbprint property value. This property can be used on SAML applications (apps that have preferredSingleSignOnMode set to saml) to control which certificate is used to sign the SAML responses. For applications that aren't SAML, don't write or otherwise rely on this property. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -424,7 +424,7 @@ public SamlSingleSignOnSettings getSamlSingleSignOnSettings() { return this.backingStore.get("samlSingleSignOnSettings"); } /** - * Gets the servicePrincipalNames property value. Contains the list of identifiersUris, copied over from the associated application. Additional values can be added to hybrid applications. These values can be used to identify the permissions exposed by this app within Microsoft Entra ID. For example,Client apps can specify a resource URI which is based on the values of this property to acquire an access token, which is the URI returned in the 'aud' claim.The any operator is required for filter expressions on multi-valued properties. Not nullable. Supports $filter (eq, not, ge, le, startsWith). + * Gets the servicePrincipalNames property value. Contains the list of identifiersUris, copied over from the associated application. Additional values can be added to hybrid applications. These values can be used to identify the permissions exposed by this app within Microsoft Entra ID. For example,Client apps can specify a resource URI that is based on the values of this property to acquire an access token, which is the URI returned in the 'aud' claim.The any operator is required for filter expressions on multi-valued properties. Not nullable. Supports $filter (eq, not, ge, le, startsWith). * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -432,7 +432,7 @@ public java.util.List getServicePrincipalNames() { return this.backingStore.get("servicePrincipalNames"); } /** - * Gets the servicePrincipalType property value. Identifies whether the service principal represents an application, a managed identity, or a legacy application. This is set by Microsoft Entra ID internally. The servicePrincipalType property can be set to three different values: Application - A service principal that represents an application or service. The appId property identifies the associated app registration, and matches the appId of an application, possibly from a different tenant. If the associated app registration is missing, tokens are not issued for the service principal.ManagedIdentity - A service principal that represents a managed identity. Service principals representing managed identities can be granted access and permissions, but cannot be updated or modified directly.Legacy - A service principal that represents an app created before app registrations, or through legacy experiences. Legacy service principal can have credentials, service principal names, reply URLs, and other properties which are editable by an authorized user, but does not have an associated app registration. The appId value does not associate the service principal with an app registration. The service principal can only be used in the tenant where it was created.SocialIdp - For internal use. + * Gets the servicePrincipalType property value. Identifies whether the service principal represents an application, a managed identity, or a legacy application. This is set by Microsoft Entra ID internally. The servicePrincipalType property can be set to three different values: Application - A service principal that represents an application or service. The appId property identifies the associated app registration, and matches the appId of an application, possibly from a different tenant. If the associated app registration is missing, tokens aren't issued for the service principal.ManagedIdentity - A service principal that represents a managed identity. Service principals representing managed identities can be granted access and permissions, but can't be updated or modified directly.Legacy - A service principal that represents an app created before app registrations, or through legacy experiences. A legacy service principal can have credentials, service principal names, reply URLs, and other properties that are editable by an authorized user, but doesn't have an associated app registration. The appId value doesn't associate the service principal with an app registration. The service principal can only be used in the tenant where it was created.SocialIdp - For internal use. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -440,7 +440,7 @@ public String getServicePrincipalType() { return this.backingStore.get("servicePrincipalType"); } /** - * Gets the signInAudience property value. Specifies the Microsoft accounts that are supported for the current application. Read-only. Supported values are:AzureADMyOrg: Users with a Microsoft work or school account in my organization's Microsoft Entra tenant (single-tenant).AzureADMultipleOrgs: Users with a Microsoft work or school account in any organization's Microsoft Entra tenant (multi-tenant).AzureADandPersonalMicrosoftAccount: Users with a personal Microsoft account, or a work or school account in any organization's Microsoft Entra tenant.PersonalMicrosoftAccount: Users with a personal Microsoft account only. + * Gets the signInAudience property value. Specifies the Microsoft accounts that are supported for the current application. Read-only. Supported values are:AzureADMyOrg: Users with a Microsoft work or school account in my organization's Microsoft Entra tenant (single-tenant).AzureADMultipleOrgs: Users with a Microsoft work or school account in any organization's Microsoft Entra tenant (multitenant).AzureADandPersonalMicrosoftAccount: Users with a personal Microsoft account, or a work or school account in any organization's Microsoft Entra tenant.PersonalMicrosoftAccount: Users with a personal Microsoft account only. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -496,7 +496,7 @@ public java.util.List getTransitiveMemberOf() { return this.backingStore.get("transitiveMemberOf"); } /** - * Gets the verifiedPublisher property value. Specifies the verified publisher of the application which this service principal represents. + * Gets the verifiedPublisher property value. Specifies the verified publisher of the application that's linked to this service principal. * @return a {@link VerifiedPublisher} */ @jakarta.annotation.Nullable @@ -564,21 +564,21 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeObjectValue("verifiedPublisher", this.getVerifiedPublisher()); } /** - * Sets the accountEnabled property value. true if the service principal account is enabled; otherwise, false. If set to false, then no users will be able to sign in to this app, even if they are assigned to it. Supports $filter (eq, ne, not, in). + * Sets the accountEnabled property value. true if the service principal account is enabled; otherwise, false. If set to false, then no users are able to sign in to this app, even if they're assigned to it. Supports $filter (eq, ne, not, in). * @param value Value to set for the accountEnabled property. */ public void setAccountEnabled(@jakarta.annotation.Nullable final Boolean value) { this.backingStore.set("accountEnabled", value); } /** - * Sets the addIns property value. Defines custom behavior that a consuming service can use to call an app in specific contexts. For example, applications that can render file streams may set the addIns property for its 'FileHandler' functionality. This will let services like Microsoft 365 call the application in the context of a document the user is working on. + * Sets the addIns property value. Defines custom behavior that a consuming service can use to call an app in specific contexts. For example, applications that can render file streams may set the addIns property for its 'FileHandler' functionality. This lets services like Microsoft 365 call the application in the context of a document the user is working on. * @param value Value to set for the addIns property. */ public void setAddIns(@jakarta.annotation.Nullable final java.util.List value) { this.backingStore.set("addIns", value); } /** - * Sets the alternativeNames property value. Used to retrieve service principals by subscription, identify resource group and full resource ids for managed identities. Supports $filter (eq, not, ge, le, startsWith). + * Sets the alternativeNames property value. Used to retrieve service principals by subscription, identify resource group and full resource IDs for managed identities. Supports $filter (eq, not, ge, le, startsWith). * @param value Value to set for the alternativeNames property. */ public void setAlternativeNames(@jakarta.annotation.Nullable final java.util.List value) { @@ -606,7 +606,7 @@ public void setAppId(@jakarta.annotation.Nullable final String value) { this.backingStore.set("appId", value); } /** - * Sets the applicationTemplateId property value. Unique identifier of the applicationTemplate that the servicePrincipal was created from. Read-only. Supports $filter (eq, ne, NOT, startsWith). + * Sets the applicationTemplateId property value. Unique identifier of the applicationTemplate. Supports $filter (eq, not, ne). Read-only. null if the service principal wasn't created from an application template. * @param value Value to set for the applicationTemplateId property. */ public void setApplicationTemplateId(@jakarta.annotation.Nullable final String value) { @@ -620,7 +620,7 @@ public void setAppManagementPolicies(@jakarta.annotation.Nullable final java.uti this.backingStore.set("appManagementPolicies", value); } /** - * Sets the appOwnerOrganizationId property value. Contains the tenant id where the application is registered. This is applicable only to service principals backed by applications. Supports $filter (eq, ne, NOT, ge, le). + * Sets the appOwnerOrganizationId property value. Contains the tenant ID where the application is registered. This is applicable only to service principals backed by applications. Supports $filter (eq, ne, NOT, ge, le). * @param value Value to set for the appOwnerOrganizationId property. */ public void setAppOwnerOrganizationId(@jakarta.annotation.Nullable final UUID value) { @@ -648,7 +648,7 @@ public void setAppRoleAssignments(@jakarta.annotation.Nullable final java.util.L this.backingStore.set("appRoleAssignments", value); } /** - * Sets the appRoles property value. The roles exposed by the application which this service principal represents. For more information see the appRoles property definition on the application entity. Not nullable. + * Sets the appRoles property value. The roles exposed by the application that's linked to this service principal. For more information, see the appRoles property definition on the application entity. Not nullable. * @param value Value to set for the appRoles property. */ public void setAppRoles(@jakarta.annotation.Nullable final java.util.List value) { @@ -683,14 +683,14 @@ public void setDelegatedPermissionClassifications(@jakarta.annotation.Nullable f this.backingStore.set("delegatedPermissionClassifications", value); } /** - * Sets the description property value. Free text field to provide an internal end-user facing description of the service principal. End-user portals such MyApps will display the application description in this field. The maximum allowed size is 1024 characters. Supports $filter (eq, ne, not, ge, le, startsWith) and $search. + * Sets the description property value. Free text field to provide an internal end-user facing description of the service principal. End-user portals such MyApps displays the application description in this field. The maximum allowed size is 1,024 characters. Supports $filter (eq, ne, not, ge, le, startsWith) and $search. * @param value Value to set for the description property. */ public void setDescription(@jakarta.annotation.Nullable final String value) { this.backingStore.set("description", value); } /** - * Sets the disabledByMicrosoftStatus property value. Specifies whether Microsoft has disabled the registered application. Possible values are: null (default value), NotDisabled, and DisabledDueToViolationOfServicesAgreement (reasons may include suspicious, abusive, or malicious activity, or a violation of the Microsoft Services Agreement). Supports $filter (eq, ne, not). + * Sets the disabledByMicrosoftStatus property value. Specifies whether Microsoft has disabled the registered application. Possible values are: null (default value), NotDisabled, and DisabledDueToViolationOfServicesAgreement (reasons include suspicious, abusive, or malicious activity, or a violation of the Microsoft Services Agreement). Supports $filter (eq, ne, not). * @param value Value to set for the disabledByMicrosoftStatus property. */ public void setDisabledByMicrosoftStatus(@jakarta.annotation.Nullable final String value) { @@ -753,7 +753,7 @@ public void setLoginUrl(@jakarta.annotation.Nullable final String value) { this.backingStore.set("loginUrl", value); } /** - * Sets the logoutUrl property value. Specifies the URL that will be used by Microsoft's authorization service to logout an user using OpenId Connect front-channel, back-channel or SAML logout protocols. + * Sets the logoutUrl property value. Specifies the URL that the Microsoft's authorization service uses to sign out a user using OpenID Connect front-channel, back-channel, or SAML sign out protocols. * @param value Value to set for the logoutUrl property. */ public void setLogoutUrl(@jakarta.annotation.Nullable final String value) { @@ -767,7 +767,7 @@ public void setMemberOf(@jakarta.annotation.Nullable final java.util.List value) { this.backingStore.set("oauth2PermissionScopes", value); } /** - * Sets the ownedObjects property value. Directory objects that are owned by this service principal. Read-only. Nullable. Supports $expand, $select nested in $expand, and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). + * Sets the ownedObjects property value. Directory objects that this service principal owns. Read-only. Nullable. Supports $expand, $select nested in $expand, and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). * @param value Value to set for the ownedObjects property. */ public void setOwnedObjects(@jakarta.annotation.Nullable final java.util.List value) { this.backingStore.set("ownedObjects", value); } /** - * Sets the owners property value. Directory objects that are owners of this servicePrincipal. The owners are a set of non-admin users or servicePrincipals who are allowed to modify this object. Read-only. Nullable. Supports $expand, $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1), and $select nested in $expand. + * Sets the owners property value. Directory objects that are owners of this servicePrincipal. The owners are a set of nonadmin users or servicePrincipals who are allowed to modify this object. Read-only. Nullable. Supports $expand, $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1), and $select nested in $expand. * @param value Value to set for the owners property. */ public void setOwners(@jakarta.annotation.Nullable final java.util.List value) { @@ -823,7 +823,7 @@ public void setPreferredSingleSignOnMode(@jakarta.annotation.Nullable final Stri this.backingStore.set("preferredSingleSignOnMode", value); } /** - * Sets the preferredTokenSigningKeyThumbprint property value. This property can be used on SAML applications (apps that have preferredSingleSignOnMode set to saml) to control which certificate is used to sign the SAML responses. For applications that are not SAML, do not write or otherwise rely on this property. + * Sets the preferredTokenSigningKeyThumbprint property value. This property can be used on SAML applications (apps that have preferredSingleSignOnMode set to saml) to control which certificate is used to sign the SAML responses. For applications that aren't SAML, don't write or otherwise rely on this property. * @param value Value to set for the preferredTokenSigningKeyThumbprint property. */ public void setPreferredTokenSigningKeyThumbprint(@jakarta.annotation.Nullable final String value) { @@ -858,21 +858,21 @@ public void setSamlSingleSignOnSettings(@jakarta.annotation.Nullable final SamlS this.backingStore.set("samlSingleSignOnSettings", value); } /** - * Sets the servicePrincipalNames property value. Contains the list of identifiersUris, copied over from the associated application. Additional values can be added to hybrid applications. These values can be used to identify the permissions exposed by this app within Microsoft Entra ID. For example,Client apps can specify a resource URI which is based on the values of this property to acquire an access token, which is the URI returned in the 'aud' claim.The any operator is required for filter expressions on multi-valued properties. Not nullable. Supports $filter (eq, not, ge, le, startsWith). + * Sets the servicePrincipalNames property value. Contains the list of identifiersUris, copied over from the associated application. Additional values can be added to hybrid applications. These values can be used to identify the permissions exposed by this app within Microsoft Entra ID. For example,Client apps can specify a resource URI that is based on the values of this property to acquire an access token, which is the URI returned in the 'aud' claim.The any operator is required for filter expressions on multi-valued properties. Not nullable. Supports $filter (eq, not, ge, le, startsWith). * @param value Value to set for the servicePrincipalNames property. */ public void setServicePrincipalNames(@jakarta.annotation.Nullable final java.util.List value) { this.backingStore.set("servicePrincipalNames", value); } /** - * Sets the servicePrincipalType property value. Identifies whether the service principal represents an application, a managed identity, or a legacy application. This is set by Microsoft Entra ID internally. The servicePrincipalType property can be set to three different values: Application - A service principal that represents an application or service. The appId property identifies the associated app registration, and matches the appId of an application, possibly from a different tenant. If the associated app registration is missing, tokens are not issued for the service principal.ManagedIdentity - A service principal that represents a managed identity. Service principals representing managed identities can be granted access and permissions, but cannot be updated or modified directly.Legacy - A service principal that represents an app created before app registrations, or through legacy experiences. Legacy service principal can have credentials, service principal names, reply URLs, and other properties which are editable by an authorized user, but does not have an associated app registration. The appId value does not associate the service principal with an app registration. The service principal can only be used in the tenant where it was created.SocialIdp - For internal use. + * Sets the servicePrincipalType property value. Identifies whether the service principal represents an application, a managed identity, or a legacy application. This is set by Microsoft Entra ID internally. The servicePrincipalType property can be set to three different values: Application - A service principal that represents an application or service. The appId property identifies the associated app registration, and matches the appId of an application, possibly from a different tenant. If the associated app registration is missing, tokens aren't issued for the service principal.ManagedIdentity - A service principal that represents a managed identity. Service principals representing managed identities can be granted access and permissions, but can't be updated or modified directly.Legacy - A service principal that represents an app created before app registrations, or through legacy experiences. A legacy service principal can have credentials, service principal names, reply URLs, and other properties that are editable by an authorized user, but doesn't have an associated app registration. The appId value doesn't associate the service principal with an app registration. The service principal can only be used in the tenant where it was created.SocialIdp - For internal use. * @param value Value to set for the servicePrincipalType property. */ public void setServicePrincipalType(@jakarta.annotation.Nullable final String value) { this.backingStore.set("servicePrincipalType", value); } /** - * Sets the signInAudience property value. Specifies the Microsoft accounts that are supported for the current application. Read-only. Supported values are:AzureADMyOrg: Users with a Microsoft work or school account in my organization's Microsoft Entra tenant (single-tenant).AzureADMultipleOrgs: Users with a Microsoft work or school account in any organization's Microsoft Entra tenant (multi-tenant).AzureADandPersonalMicrosoftAccount: Users with a personal Microsoft account, or a work or school account in any organization's Microsoft Entra tenant.PersonalMicrosoftAccount: Users with a personal Microsoft account only. + * Sets the signInAudience property value. Specifies the Microsoft accounts that are supported for the current application. Read-only. Supported values are:AzureADMyOrg: Users with a Microsoft work or school account in my organization's Microsoft Entra tenant (single-tenant).AzureADMultipleOrgs: Users with a Microsoft work or school account in any organization's Microsoft Entra tenant (multitenant).AzureADandPersonalMicrosoftAccount: Users with a personal Microsoft account, or a work or school account in any organization's Microsoft Entra tenant.PersonalMicrosoftAccount: Users with a personal Microsoft account only. * @param value Value to set for the signInAudience property. */ public void setSignInAudience(@jakarta.annotation.Nullable final String value) { @@ -921,7 +921,7 @@ public void setTransitiveMemberOf(@jakarta.annotation.Nullable final java.util.L this.backingStore.set("transitiveMemberOf", value); } /** - * Sets the verifiedPublisher property value. Specifies the verified publisher of the application which this service principal represents. + * Sets the verifiedPublisher property value. Specifies the verified publisher of the application that's linked to this service principal. * @param value Value to set for the verifiedPublisher property. */ public void setVerifiedPublisher(@jakarta.annotation.Nullable final VerifiedPublisher value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/SignIn.java b/src/main/java/com/microsoft/graph/generated/models/SignIn.java index fcdf584e2df..c3732919cca 100644 --- a/src/main/java/com/microsoft/graph/generated/models/SignIn.java +++ b/src/main/java/com/microsoft/graph/generated/models/SignIn.java @@ -34,7 +34,7 @@ public String getAppDisplayName() { return this.backingStore.get("appDisplayName"); } /** - * Gets the appId property value. Unique GUID representing the app ID in the Microsoft Entra ID. Supports $filter (eq). + * Gets the appId property value. Unique GUID that represents the app ID in the Microsoft Entra ID. Supports $filter (eq). * @return a {@link String} */ @jakarta.annotation.Nullable @@ -42,7 +42,7 @@ public String getAppId() { return this.backingStore.get("appId"); } /** - * Gets the appliedConditionalAccessPolicies property value. Provides a list of conditional access policies that are triggered by the corresponding sign-in activity. Apps need additional Conditional Access-related privileges to read the details of this property. For more information, see Viewing applied conditional access (CA) policies in sign-ins. + * Gets the appliedConditionalAccessPolicies property value. Provides a list of conditional access policies that the corresponding sign-in activity triggers. Apps need more Conditional Access-related privileges to read the details of this property. For more information, see Viewing applied conditional access (CA) policies in sign-ins. * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -66,7 +66,7 @@ public ConditionalAccessStatus getConditionalAccessStatus() { return this.backingStore.get("conditionalAccessStatus"); } /** - * Gets the correlationId property value. The request ID sent from the client when the sign-in is initiated; used to troubleshoot sign-in activity. Supports $filter (eq). + * Gets the correlationId property value. The request ID sent from the client when the sign-in is initiated. Used to troubleshoot sign-in activity. Supports $filter (eq). * @return a {@link String} */ @jakarta.annotation.Nullable @@ -130,7 +130,7 @@ public String getIpAddress() { return this.backingStore.get("ipAddress"); } /** - * Gets the isInteractive property value. Indicates if a sign-in is interactive or not. + * Gets the isInteractive property value. Indicates whether a sign-in is interactive. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -162,7 +162,7 @@ public String getResourceId() { return this.backingStore.get("resourceId"); } /** - * Gets the riskDetail property value. Provides the 'reason' behind a specific state of a risky user, sign-in or a risk event. The possible values are: none, adminGeneratedTemporaryPassword, userPerformedSecuredPasswordChange, userPerformedSecuredPasswordReset, adminConfirmedSigninSafe, aiConfirmedSigninSafe, userPassedMFADrivenByRiskBasedPolicy, adminDismissedAllRiskForUser, adminConfirmedSigninCompromised, unknownFutureValue. The value none means that no action has been performed on the user or sign-in so far. Supports $filter (eq).Note: Details for this property require a Microsoft Entra ID P2 license. Other licenses return the value hidden. + * Gets the riskDetail property value. The reason behind a specific state of a risky user, sign-in, or a risk event. The possible values are none, adminGeneratedTemporaryPassword, userPerformedSecuredPasswordChange, userPerformedSecuredPasswordReset, adminConfirmedSigninSafe, aiConfirmedSigninSafe, userPassedMFADrivenByRiskBasedPolicy, adminDismissedAllRiskForUser, adminConfirmedSigninCompromised, hidden, adminConfirmedUserCompromised, unknownFutureValue, adminConfirmedServicePrincipalCompromised, adminDismissedAllRiskForServicePrincipal, m365DAdminDismissedDetection, userChangedPasswordOnPremises, adminDismissedRiskForSignIn, adminConfirmedAccountSafe. You must use the Prefer: include-unknown-enum-members request header to get the following value or values in this evolvable enum: adminConfirmedServicePrincipalCompromised, adminDismissedAllRiskForServicePrincipal, m365DAdminDismissedDetection, userChangedPasswordOnPremises, adminDismissedRiskForSignIn, adminConfirmedAccountSafe.The value none means that Microsoft Entra risk detection did not flag the user or the sign-in as a risky event so far. Supports $filter (eq). Note: Details for this property are only available for Microsoft Entra ID P2 customers. All other customers are returned hidden. * @return a {@link RiskDetail} */ @jakarta.annotation.Nullable @@ -170,7 +170,7 @@ public RiskDetail getRiskDetail() { return this.backingStore.get("riskDetail"); } /** - * Gets the riskEventTypes property value. Risk event types associated with the sign-in. The possible values are: unlikelyTravel, anonymizedIPAddress, maliciousIPAddress, unfamiliarFeatures, malwareInfectedIPAddress, suspiciousIPAddress, leakedCredentials, investigationsThreatIntelligence, generic, and unknownFutureValue. Supports $filter (eq). + * Gets the riskEventTypes property value. The riskEventTypes property * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -178,7 +178,7 @@ public java.util.List getRiskEventTypes() { return this.backingStore.get("riskEventTypes"); } /** - * Gets the riskEventTypes_v2 property value. The list of risk event types associated with the sign-in. Possible values: unlikelyTravel, anonymizedIPAddress, maliciousIPAddress, unfamiliarFeatures, malwareInfectedIPAddress, suspiciousIPAddress, leakedCredentials, investigationsThreatIntelligence, generic, or unknownFutureValue. Supports $filter (eq, startsWith). + * Gets the riskEventTypes_v2 property value. The list of risk event types associated with the sign-in. Possible values: unlikelyTravel, anonymizedIPAddress, maliciousIPAddress, unfamiliarFeatures, malwareInfectedIPAddress, suspiciousIPAddress, leakedCredentials, investigationsThreatIntelligence, generic, or unknownFutureValue. Supports $filter (eq, startsWith). * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -194,7 +194,7 @@ public RiskLevel getRiskLevelAggregated() { return this.backingStore.get("riskLevelAggregated"); } /** - * Gets the riskLevelDuringSignIn property value. Risk level during sign-in. The possible values are: none, low, medium, high, hidden, and unknownFutureValue. The value hidden means the user or sign-in wasn't enabled for Microsoft Entra ID Protection. Supports $filter (eq). Note: Details for this property are only available for Microsoft Entra ID P2 customers. All other customers are returned hidden. + * Gets the riskLevelDuringSignIn property value. Risk level during sign-in. The possible values are: none, low, medium, high, hidden, and unknownFutureValue. The value hidden means the user or sign-in wasn't enabled for Microsoft Entra ID Protection. Supports $filter (eq). Note: Details for this property are only available for Microsoft Entra ID P2 customers. All other customers are returned hidden. * @return a {@link RiskLevel} */ @jakarta.annotation.Nullable @@ -210,7 +210,7 @@ public RiskState getRiskState() { return this.backingStore.get("riskState"); } /** - * Gets the status property value. Sign-in status. Includes the error code and description of the error (if there's a sign-in failure). Supports $filter (eq) on errorCode property. + * Gets the status property value. Sign-in status. Includes the error code and description of the error (if a sign-in failure occurs). Supports $filter (eq) on errorCode property. * @return a {@link SignInStatus} */ @jakarta.annotation.Nullable @@ -280,14 +280,14 @@ public void setAppDisplayName(@jakarta.annotation.Nullable final String value) { this.backingStore.set("appDisplayName", value); } /** - * Sets the appId property value. Unique GUID representing the app ID in the Microsoft Entra ID. Supports $filter (eq). + * Sets the appId property value. Unique GUID that represents the app ID in the Microsoft Entra ID. Supports $filter (eq). * @param value Value to set for the appId property. */ public void setAppId(@jakarta.annotation.Nullable final String value) { this.backingStore.set("appId", value); } /** - * Sets the appliedConditionalAccessPolicies property value. Provides a list of conditional access policies that are triggered by the corresponding sign-in activity. Apps need additional Conditional Access-related privileges to read the details of this property. For more information, see Viewing applied conditional access (CA) policies in sign-ins. + * Sets the appliedConditionalAccessPolicies property value. Provides a list of conditional access policies that the corresponding sign-in activity triggers. Apps need more Conditional Access-related privileges to read the details of this property. For more information, see Viewing applied conditional access (CA) policies in sign-ins. * @param value Value to set for the appliedConditionalAccessPolicies property. */ public void setAppliedConditionalAccessPolicies(@jakarta.annotation.Nullable final java.util.List value) { @@ -308,7 +308,7 @@ public void setConditionalAccessStatus(@jakarta.annotation.Nullable final Condit this.backingStore.set("conditionalAccessStatus", value); } /** - * Sets the correlationId property value. The request ID sent from the client when the sign-in is initiated; used to troubleshoot sign-in activity. Supports $filter (eq). + * Sets the correlationId property value. The request ID sent from the client when the sign-in is initiated. Used to troubleshoot sign-in activity. Supports $filter (eq). * @param value Value to set for the correlationId property. */ public void setCorrelationId(@jakarta.annotation.Nullable final String value) { @@ -336,7 +336,7 @@ public void setIpAddress(@jakarta.annotation.Nullable final String value) { this.backingStore.set("ipAddress", value); } /** - * Sets the isInteractive property value. Indicates if a sign-in is interactive or not. + * Sets the isInteractive property value. Indicates whether a sign-in is interactive. * @param value Value to set for the isInteractive property. */ public void setIsInteractive(@jakarta.annotation.Nullable final Boolean value) { @@ -364,21 +364,21 @@ public void setResourceId(@jakarta.annotation.Nullable final String value) { this.backingStore.set("resourceId", value); } /** - * Sets the riskDetail property value. Provides the 'reason' behind a specific state of a risky user, sign-in or a risk event. The possible values are: none, adminGeneratedTemporaryPassword, userPerformedSecuredPasswordChange, userPerformedSecuredPasswordReset, adminConfirmedSigninSafe, aiConfirmedSigninSafe, userPassedMFADrivenByRiskBasedPolicy, adminDismissedAllRiskForUser, adminConfirmedSigninCompromised, unknownFutureValue. The value none means that no action has been performed on the user or sign-in so far. Supports $filter (eq).Note: Details for this property require a Microsoft Entra ID P2 license. Other licenses return the value hidden. + * Sets the riskDetail property value. The reason behind a specific state of a risky user, sign-in, or a risk event. The possible values are none, adminGeneratedTemporaryPassword, userPerformedSecuredPasswordChange, userPerformedSecuredPasswordReset, adminConfirmedSigninSafe, aiConfirmedSigninSafe, userPassedMFADrivenByRiskBasedPolicy, adminDismissedAllRiskForUser, adminConfirmedSigninCompromised, hidden, adminConfirmedUserCompromised, unknownFutureValue, adminConfirmedServicePrincipalCompromised, adminDismissedAllRiskForServicePrincipal, m365DAdminDismissedDetection, userChangedPasswordOnPremises, adminDismissedRiskForSignIn, adminConfirmedAccountSafe. You must use the Prefer: include-unknown-enum-members request header to get the following value or values in this evolvable enum: adminConfirmedServicePrincipalCompromised, adminDismissedAllRiskForServicePrincipal, m365DAdminDismissedDetection, userChangedPasswordOnPremises, adminDismissedRiskForSignIn, adminConfirmedAccountSafe.The value none means that Microsoft Entra risk detection did not flag the user or the sign-in as a risky event so far. Supports $filter (eq). Note: Details for this property are only available for Microsoft Entra ID P2 customers. All other customers are returned hidden. * @param value Value to set for the riskDetail property. */ public void setRiskDetail(@jakarta.annotation.Nullable final RiskDetail value) { this.backingStore.set("riskDetail", value); } /** - * Sets the riskEventTypes property value. Risk event types associated with the sign-in. The possible values are: unlikelyTravel, anonymizedIPAddress, maliciousIPAddress, unfamiliarFeatures, malwareInfectedIPAddress, suspiciousIPAddress, leakedCredentials, investigationsThreatIntelligence, generic, and unknownFutureValue. Supports $filter (eq). + * Sets the riskEventTypes property value. The riskEventTypes property * @param value Value to set for the riskEventTypes property. */ public void setRiskEventTypes(@jakarta.annotation.Nullable final java.util.List value) { this.backingStore.set("riskEventTypes", value); } /** - * Sets the riskEventTypes_v2 property value. The list of risk event types associated with the sign-in. Possible values: unlikelyTravel, anonymizedIPAddress, maliciousIPAddress, unfamiliarFeatures, malwareInfectedIPAddress, suspiciousIPAddress, leakedCredentials, investigationsThreatIntelligence, generic, or unknownFutureValue. Supports $filter (eq, startsWith). + * Sets the riskEventTypes_v2 property value. The list of risk event types associated with the sign-in. Possible values: unlikelyTravel, anonymizedIPAddress, maliciousIPAddress, unfamiliarFeatures, malwareInfectedIPAddress, suspiciousIPAddress, leakedCredentials, investigationsThreatIntelligence, generic, or unknownFutureValue. Supports $filter (eq, startsWith). * @param value Value to set for the riskEventTypes_v2 property. */ public void setRiskEventTypesV2(@jakarta.annotation.Nullable final java.util.List value) { @@ -392,7 +392,7 @@ public void setRiskLevelAggregated(@jakarta.annotation.Nullable final RiskLevel this.backingStore.set("riskLevelAggregated", value); } /** - * Sets the riskLevelDuringSignIn property value. Risk level during sign-in. The possible values are: none, low, medium, high, hidden, and unknownFutureValue. The value hidden means the user or sign-in wasn't enabled for Microsoft Entra ID Protection. Supports $filter (eq). Note: Details for this property are only available for Microsoft Entra ID P2 customers. All other customers are returned hidden. + * Sets the riskLevelDuringSignIn property value. Risk level during sign-in. The possible values are: none, low, medium, high, hidden, and unknownFutureValue. The value hidden means the user or sign-in wasn't enabled for Microsoft Entra ID Protection. Supports $filter (eq). Note: Details for this property are only available for Microsoft Entra ID P2 customers. All other customers are returned hidden. * @param value Value to set for the riskLevelDuringSignIn property. */ public void setRiskLevelDuringSignIn(@jakarta.annotation.Nullable final RiskLevel value) { @@ -406,7 +406,7 @@ public void setRiskState(@jakarta.annotation.Nullable final RiskState value) { this.backingStore.set("riskState", value); } /** - * Sets the status property value. Sign-in status. Includes the error code and description of the error (if there's a sign-in failure). Supports $filter (eq) on errorCode property. + * Sets the status property value. Sign-in status. Includes the error code and description of the error (if a sign-in failure occurs). Supports $filter (eq) on errorCode property. * @param value Value to set for the status property. */ public void setStatus(@jakarta.annotation.Nullable final SignInStatus value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/Site.java b/src/main/java/com/microsoft/graph/generated/models/Site.java index 27200ebc8ca..8dd6a39c109 100644 --- a/src/main/java/com/microsoft/graph/generated/models/Site.java +++ b/src/main/java/com/microsoft/graph/generated/models/Site.java @@ -27,7 +27,7 @@ public static Site createFromDiscriminatorValue(@jakarta.annotation.Nonnull fina return new Site(); } /** - * Gets the analytics property value. Analytics about the view activities that took place in this site. + * Gets the analytics property value. Analytics about the view activities that took place on this site. * @return a {@link ItemAnalytics} */ @jakarta.annotation.Nullable @@ -110,6 +110,7 @@ public Map> getFieldDeserializers deserializerMap.put("lists", (n) -> { this.setLists(n.getCollectionOfObjectValues(List::createFromDiscriminatorValue)); }); deserializerMap.put("onenote", (n) -> { this.setOnenote(n.getObjectValue(Onenote::createFromDiscriminatorValue)); }); deserializerMap.put("operations", (n) -> { this.setOperations(n.getCollectionOfObjectValues(RichLongRunningOperation::createFromDiscriminatorValue)); }); + deserializerMap.put("pages", (n) -> { this.setPages(n.getCollectionOfObjectValues(BaseSitePage::createFromDiscriminatorValue)); }); deserializerMap.put("permissions", (n) -> { this.setPermissions(n.getCollectionOfObjectValues(Permission::createFromDiscriminatorValue)); }); deserializerMap.put("root", (n) -> { this.setRoot(n.getObjectValue(Root::createFromDiscriminatorValue)); }); deserializerMap.put("sharepointIds", (n) -> { this.setSharepointIds(n.getObjectValue(SharepointIds::createFromDiscriminatorValue)); }); @@ -159,6 +160,14 @@ public Onenote getOnenote() { public java.util.List getOperations() { return this.backingStore.get("operations"); } + /** + * Gets the pages property value. The pages property + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getPages() { + return this.backingStore.get("pages"); + } /** * Gets the permissions property value. The permissions associated with the site. Nullable. * @return a {@link java.util.List} @@ -168,7 +177,7 @@ public java.util.List getPermissions() { return this.backingStore.get("permissions"); } /** - * Gets the root property value. If present, indicates that this is the root site in the site collection. Read-only. + * Gets the root property value. If present, provides the root site in the site collection. Read-only. * @return a {@link Root} */ @jakarta.annotation.Nullable @@ -235,6 +244,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeCollectionOfObjectValues("lists", this.getLists()); writer.writeObjectValue("onenote", this.getOnenote()); writer.writeCollectionOfObjectValues("operations", this.getOperations()); + writer.writeCollectionOfObjectValues("pages", this.getPages()); writer.writeCollectionOfObjectValues("permissions", this.getPermissions()); writer.writeObjectValue("root", this.getRoot()); writer.writeObjectValue("sharepointIds", this.getSharepointIds()); @@ -244,7 +254,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeCollectionOfObjectValues("termStores", this.getTermStores()); } /** - * Sets the analytics property value. Analytics about the view activities that took place in this site. + * Sets the analytics property value. Analytics about the view activities that took place on this site. * @param value Value to set for the analytics property. */ public void setAnalytics(@jakarta.annotation.Nullable final ItemAnalytics value) { @@ -334,6 +344,13 @@ public void setOnenote(@jakarta.annotation.Nullable final Onenote value) { public void setOperations(@jakarta.annotation.Nullable final java.util.List value) { this.backingStore.set("operations", value); } + /** + * Sets the pages property value. The pages property + * @param value Value to set for the pages property. + */ + public void setPages(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("pages", value); + } /** * Sets the permissions property value. The permissions associated with the site. Nullable. * @param value Value to set for the permissions property. @@ -342,7 +359,7 @@ public void setPermissions(@jakarta.annotation.Nullable final java.util.List>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("canvasLayout", (n) -> { this.setCanvasLayout(n.getObjectValue(CanvasLayout::createFromDiscriminatorValue)); }); + deserializerMap.put("promotionKind", (n) -> { this.setPromotionKind(n.getEnumValue(PagePromotionType::forValue)); }); + deserializerMap.put("reactions", (n) -> { this.setReactions(n.getObjectValue(ReactionsFacet::createFromDiscriminatorValue)); }); + deserializerMap.put("showComments", (n) -> { this.setShowComments(n.getBooleanValue()); }); + deserializerMap.put("showRecommendedPages", (n) -> { this.setShowRecommendedPages(n.getBooleanValue()); }); + deserializerMap.put("thumbnailWebUrl", (n) -> { this.setThumbnailWebUrl(n.getStringValue()); }); + deserializerMap.put("titleArea", (n) -> { this.setTitleArea(n.getObjectValue(TitleArea::createFromDiscriminatorValue)); }); + deserializerMap.put("webParts", (n) -> { this.setWebParts(n.getCollectionOfObjectValues(WebPart::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the promotionKind property value. The promotionKind property + * @return a {@link PagePromotionType} + */ + @jakarta.annotation.Nullable + public PagePromotionType getPromotionKind() { + return this.backingStore.get("promotionKind"); + } + /** + * Gets the reactions property value. The reactions property + * @return a {@link ReactionsFacet} + */ + @jakarta.annotation.Nullable + public ReactionsFacet getReactions() { + return this.backingStore.get("reactions"); + } + /** + * Gets the showComments property value. The showComments property + * @return a {@link Boolean} + */ + @jakarta.annotation.Nullable + public Boolean getShowComments() { + return this.backingStore.get("showComments"); + } + /** + * Gets the showRecommendedPages property value. The showRecommendedPages property + * @return a {@link Boolean} + */ + @jakarta.annotation.Nullable + public Boolean getShowRecommendedPages() { + return this.backingStore.get("showRecommendedPages"); + } + /** + * Gets the thumbnailWebUrl property value. The thumbnailWebUrl property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getThumbnailWebUrl() { + return this.backingStore.get("thumbnailWebUrl"); + } + /** + * Gets the titleArea property value. The titleArea property + * @return a {@link TitleArea} + */ + @jakarta.annotation.Nullable + public TitleArea getTitleArea() { + return this.backingStore.get("titleArea"); + } + /** + * Gets the webParts property value. The webParts property + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getWebParts() { + return this.backingStore.get("webParts"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + super.serialize(writer); + writer.writeObjectValue("canvasLayout", this.getCanvasLayout()); + writer.writeEnumValue("promotionKind", this.getPromotionKind()); + writer.writeObjectValue("reactions", this.getReactions()); + writer.writeBooleanValue("showComments", this.getShowComments()); + writer.writeBooleanValue("showRecommendedPages", this.getShowRecommendedPages()); + writer.writeStringValue("thumbnailWebUrl", this.getThumbnailWebUrl()); + writer.writeObjectValue("titleArea", this.getTitleArea()); + writer.writeCollectionOfObjectValues("webParts", this.getWebParts()); + } + /** + * Sets the canvasLayout property value. The canvasLayout property + * @param value Value to set for the canvasLayout property. + */ + public void setCanvasLayout(@jakarta.annotation.Nullable final CanvasLayout value) { + this.backingStore.set("canvasLayout", value); + } + /** + * Sets the promotionKind property value. The promotionKind property + * @param value Value to set for the promotionKind property. + */ + public void setPromotionKind(@jakarta.annotation.Nullable final PagePromotionType value) { + this.backingStore.set("promotionKind", value); + } + /** + * Sets the reactions property value. The reactions property + * @param value Value to set for the reactions property. + */ + public void setReactions(@jakarta.annotation.Nullable final ReactionsFacet value) { + this.backingStore.set("reactions", value); + } + /** + * Sets the showComments property value. The showComments property + * @param value Value to set for the showComments property. + */ + public void setShowComments(@jakarta.annotation.Nullable final Boolean value) { + this.backingStore.set("showComments", value); + } + /** + * Sets the showRecommendedPages property value. The showRecommendedPages property + * @param value Value to set for the showRecommendedPages property. + */ + public void setShowRecommendedPages(@jakarta.annotation.Nullable final Boolean value) { + this.backingStore.set("showRecommendedPages", value); + } + /** + * Sets the thumbnailWebUrl property value. The thumbnailWebUrl property + * @param value Value to set for the thumbnailWebUrl property. + */ + public void setThumbnailWebUrl(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("thumbnailWebUrl", value); + } + /** + * Sets the titleArea property value. The titleArea property + * @param value Value to set for the titleArea property. + */ + public void setTitleArea(@jakarta.annotation.Nullable final TitleArea value) { + this.backingStore.set("titleArea", value); + } + /** + * Sets the webParts property value. The webParts property + * @param value Value to set for the webParts property. + */ + public void setWebParts(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("webParts", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/SitePageCollectionResponse.java b/src/main/java/com/microsoft/graph/generated/models/SitePageCollectionResponse.java new file mode 100644 index 00000000000..24fdb9b77f5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/SitePageCollectionResponse.java @@ -0,0 +1,61 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class SitePageCollectionResponse extends BaseCollectionPaginationCountResponse implements Parsable { + /** + * Instantiates a new {@link SitePageCollectionResponse} and sets the default values. + */ + public SitePageCollectionResponse() { + super(); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link SitePageCollectionResponse} + */ + @jakarta.annotation.Nonnull + public static SitePageCollectionResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new SitePageCollectionResponse(); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("value", (n) -> { this.setValue(n.getCollectionOfObjectValues(SitePage::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the value property value. The value property + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getValue() { + return this.backingStore.get("value"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + super.serialize(writer); + writer.writeCollectionOfObjectValues("value", this.getValue()); + } + /** + * Sets the value property value. The value property + * @param value Value to set for the value property. + */ + public void setValue(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("value", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/StandardWebPart.java b/src/main/java/com/microsoft/graph/generated/models/StandardWebPart.java new file mode 100644 index 00000000000..f5f8348dce9 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/StandardWebPart.java @@ -0,0 +1,96 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class StandardWebPart extends WebPart implements Parsable { + /** + * Instantiates a new {@link StandardWebPart} and sets the default values. + */ + public StandardWebPart() { + super(); + this.setOdataType("#microsoft.graph.standardWebPart"); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link StandardWebPart} + */ + @jakarta.annotation.Nonnull + public static StandardWebPart createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new StandardWebPart(); + } + /** + * Gets the containerTextWebPartId property value. The containerTextWebPartId property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getContainerTextWebPartId() { + return this.backingStore.get("containerTextWebPartId"); + } + /** + * Gets the data property value. The data property + * @return a {@link WebPartData} + */ + @jakarta.annotation.Nullable + public WebPartData getData() { + return this.backingStore.get("data"); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("containerTextWebPartId", (n) -> { this.setContainerTextWebPartId(n.getStringValue()); }); + deserializerMap.put("data", (n) -> { this.setData(n.getObjectValue(WebPartData::createFromDiscriminatorValue)); }); + deserializerMap.put("webPartType", (n) -> { this.setWebPartType(n.getStringValue()); }); + return deserializerMap; + } + /** + * Gets the webPartType property value. The webPartType property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getWebPartType() { + return this.backingStore.get("webPartType"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + super.serialize(writer); + writer.writeStringValue("containerTextWebPartId", this.getContainerTextWebPartId()); + writer.writeObjectValue("data", this.getData()); + writer.writeStringValue("webPartType", this.getWebPartType()); + } + /** + * Sets the containerTextWebPartId property value. The containerTextWebPartId property + * @param value Value to set for the containerTextWebPartId property. + */ + public void setContainerTextWebPartId(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("containerTextWebPartId", value); + } + /** + * Sets the data property value. The data property + * @param value Value to set for the data property. + */ + public void setData(@jakarta.annotation.Nullable final WebPartData value) { + this.backingStore.set("data", value); + } + /** + * Sets the webPartType property value. The webPartType property + * @param value Value to set for the webPartType property. + */ + public void setWebPartType(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("webPartType", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/Subscription.java b/src/main/java/com/microsoft/graph/generated/models/Subscription.java index 3218906ee69..88eabd0947b 100644 --- a/src/main/java/com/microsoft/graph/generated/models/Subscription.java +++ b/src/main/java/com/microsoft/graph/generated/models/Subscription.java @@ -34,7 +34,7 @@ public String getApplicationId() { return this.backingStore.get("applicationId"); } /** - * Gets the changeType property value. Required. Indicates the type of change in the subscribed resource that will raise a change notification. The supported values are: created, updated, deleted. Multiple values can be combined using a comma-separated list. Note: Drive root item and list change notifications support only the updated changeType. User and group change notifications support updated and deleted changeType. Use updated to receive notifications when user or group is created, updated or soft deleted. Use deleted to receive notifications when user or group is permanently deleted. + * Gets the changeType property value. Required. Indicates the type of change in the subscribed resource that raises a change notification. The supported values are: created, updated, deleted. Multiple values can be combined using a comma-separated list. Note: Drive root item and list change notifications support only the updated changeType. User and group change notifications support updated and deleted changeType. Use updated to receive notifications when user or group is created, updated, or soft deleted. Use deleted to receive notifications when user or group is permanently deleted. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -50,7 +50,7 @@ public String getClientState() { return this.backingStore.get("clientState"); } /** - * Gets the creatorId property value. Optional. Identifier of the user or service principal that created the subscription. If the app used delegated permissions to create the subscription, this field contains the id of the signed-in user the app called on behalf of. If the app used application permissions, this field contains the id of the service principal corresponding to the app. Read-only. + * Gets the creatorId property value. Optional. Identifier of the user or service principal that created the subscription. If the app used delegated permissions to create the subscription, this field contains the ID of the signed-in user the app called on behalf of. If the app used application permissions, this field contains the ID of the service principal corresponding to the app. Read-only. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -74,7 +74,7 @@ public String getEncryptionCertificateId() { return this.backingStore.get("encryptionCertificateId"); } /** - * Gets the expirationDateTime property value. Required. Specifies the date and time when the webhook subscription expires. The time is in UTC, and can be an amount of time from subscription creation that varies for the resource subscribed to. For the maximum supported subscription length of time, see the table below. + * Gets the expirationDateTime property value. Required. Specifies the date and time when the webhook subscription expires. The time is in UTC, and can be an amount of time from subscription creation that varies for the resource subscribed to. For the maximum supported subscription length of time, see Subscription lifetime. * @return a {@link OffsetDateTime} */ @jakarta.annotation.Nullable @@ -129,7 +129,7 @@ public String getLifecycleNotificationUrl() { return this.backingStore.get("lifecycleNotificationUrl"); } /** - * Gets the notificationQueryOptions property value. Optional. OData query options for specifying value for the targeting resource. Clients receive notifications when resource reaches the state matching the query options provided here. With this new property in the subscription creation payload along with all existing properties, Webhooks will deliver notifications whenever a resource reaches the desired state mentioned in the notificationQueryOptions property. For example, when the print job is completed or when a print job resource isFetchable property value becomes true etc. Supported only for Universal Print Service. For more information, see Subscribe to change notifications from cloud printing APIs using Microsoft Graph. + * Gets the notificationQueryOptions property value. Optional. OData query options for specifying value for the targeting resource. Clients receive notifications when resource reaches the state matching the query options provided here. With this new property in the subscription creation payload along with all existing properties, Webhooks deliver notifications whenever a resource reaches the desired state mentioned in the notificationQueryOptions property. For example, when the print job is completed or when a print job resource isFetchable property value becomes true etc. Supported only for Universal Print Service. For more information, see Subscribe to change notifications from cloud printing APIs using Microsoft Graph. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -137,7 +137,7 @@ public String getNotificationQueryOptions() { return this.backingStore.get("notificationQueryOptions"); } /** - * Gets the notificationUrl property value. Required. The URL of the endpoint that will receive the change notifications. This URL must make use of the HTTPS protocol. Any query string parameter included in the notificationUrl property will be included in the HTTP POST request when Microsoft Graph sends the change notifications. + * Gets the notificationUrl property value. Required. The URL of the endpoint that receives the change notifications. This URL must make use of the HTTPS protocol. Any query string parameter included in the notificationUrl property is included in the HTTP POST request when Microsoft Graph sends the change notifications. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -145,7 +145,7 @@ public String getNotificationUrl() { return this.backingStore.get("notificationUrl"); } /** - * Gets the notificationUrlAppId property value. Optional. The app ID that the subscription service can use to generate the validation token. This allows the client to validate the authenticity of the notification received. + * Gets the notificationUrlAppId property value. Optional. The app ID that the subscription service can use to generate the validation token. The value allows the client to validate the authenticity of the notification received. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -153,7 +153,7 @@ public String getNotificationUrlAppId() { return this.backingStore.get("notificationUrlAppId"); } /** - * Gets the resource property value. Required. Specifies the resource that will be monitored for changes. Do not include the base URL (https://graph.microsoft.com/v1.0/). See the possible resource path values for each supported resource. + * Gets the resource property value. Required. Specifies the resource that is monitored for changes. Don't include the base URL (https://graph.microsoft.com/v1.0/). See the possible resource path values for each supported resource. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -190,7 +190,7 @@ public void setApplicationId(@jakarta.annotation.Nullable final String value) { this.backingStore.set("applicationId", value); } /** - * Sets the changeType property value. Required. Indicates the type of change in the subscribed resource that will raise a change notification. The supported values are: created, updated, deleted. Multiple values can be combined using a comma-separated list. Note: Drive root item and list change notifications support only the updated changeType. User and group change notifications support updated and deleted changeType. Use updated to receive notifications when user or group is created, updated or soft deleted. Use deleted to receive notifications when user or group is permanently deleted. + * Sets the changeType property value. Required. Indicates the type of change in the subscribed resource that raises a change notification. The supported values are: created, updated, deleted. Multiple values can be combined using a comma-separated list. Note: Drive root item and list change notifications support only the updated changeType. User and group change notifications support updated and deleted changeType. Use updated to receive notifications when user or group is created, updated, or soft deleted. Use deleted to receive notifications when user or group is permanently deleted. * @param value Value to set for the changeType property. */ public void setChangeType(@jakarta.annotation.Nullable final String value) { @@ -204,7 +204,7 @@ public void setClientState(@jakarta.annotation.Nullable final String value) { this.backingStore.set("clientState", value); } /** - * Sets the creatorId property value. Optional. Identifier of the user or service principal that created the subscription. If the app used delegated permissions to create the subscription, this field contains the id of the signed-in user the app called on behalf of. If the app used application permissions, this field contains the id of the service principal corresponding to the app. Read-only. + * Sets the creatorId property value. Optional. Identifier of the user or service principal that created the subscription. If the app used delegated permissions to create the subscription, this field contains the ID of the signed-in user the app called on behalf of. If the app used application permissions, this field contains the ID of the service principal corresponding to the app. Read-only. * @param value Value to set for the creatorId property. */ public void setCreatorId(@jakarta.annotation.Nullable final String value) { @@ -225,7 +225,7 @@ public void setEncryptionCertificateId(@jakarta.annotation.Nullable final String this.backingStore.set("encryptionCertificateId", value); } /** - * Sets the expirationDateTime property value. Required. Specifies the date and time when the webhook subscription expires. The time is in UTC, and can be an amount of time from subscription creation that varies for the resource subscribed to. For the maximum supported subscription length of time, see the table below. + * Sets the expirationDateTime property value. Required. Specifies the date and time when the webhook subscription expires. The time is in UTC, and can be an amount of time from subscription creation that varies for the resource subscribed to. For the maximum supported subscription length of time, see Subscription lifetime. * @param value Value to set for the expirationDateTime property. */ public void setExpirationDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) { @@ -253,28 +253,28 @@ public void setLifecycleNotificationUrl(@jakarta.annotation.Nullable final Strin this.backingStore.set("lifecycleNotificationUrl", value); } /** - * Sets the notificationQueryOptions property value. Optional. OData query options for specifying value for the targeting resource. Clients receive notifications when resource reaches the state matching the query options provided here. With this new property in the subscription creation payload along with all existing properties, Webhooks will deliver notifications whenever a resource reaches the desired state mentioned in the notificationQueryOptions property. For example, when the print job is completed or when a print job resource isFetchable property value becomes true etc. Supported only for Universal Print Service. For more information, see Subscribe to change notifications from cloud printing APIs using Microsoft Graph. + * Sets the notificationQueryOptions property value. Optional. OData query options for specifying value for the targeting resource. Clients receive notifications when resource reaches the state matching the query options provided here. With this new property in the subscription creation payload along with all existing properties, Webhooks deliver notifications whenever a resource reaches the desired state mentioned in the notificationQueryOptions property. For example, when the print job is completed or when a print job resource isFetchable property value becomes true etc. Supported only for Universal Print Service. For more information, see Subscribe to change notifications from cloud printing APIs using Microsoft Graph. * @param value Value to set for the notificationQueryOptions property. */ public void setNotificationQueryOptions(@jakarta.annotation.Nullable final String value) { this.backingStore.set("notificationQueryOptions", value); } /** - * Sets the notificationUrl property value. Required. The URL of the endpoint that will receive the change notifications. This URL must make use of the HTTPS protocol. Any query string parameter included in the notificationUrl property will be included in the HTTP POST request when Microsoft Graph sends the change notifications. + * Sets the notificationUrl property value. Required. The URL of the endpoint that receives the change notifications. This URL must make use of the HTTPS protocol. Any query string parameter included in the notificationUrl property is included in the HTTP POST request when Microsoft Graph sends the change notifications. * @param value Value to set for the notificationUrl property. */ public void setNotificationUrl(@jakarta.annotation.Nullable final String value) { this.backingStore.set("notificationUrl", value); } /** - * Sets the notificationUrlAppId property value. Optional. The app ID that the subscription service can use to generate the validation token. This allows the client to validate the authenticity of the notification received. + * Sets the notificationUrlAppId property value. Optional. The app ID that the subscription service can use to generate the validation token. The value allows the client to validate the authenticity of the notification received. * @param value Value to set for the notificationUrlAppId property. */ public void setNotificationUrlAppId(@jakarta.annotation.Nullable final String value) { this.backingStore.set("notificationUrlAppId", value); } /** - * Sets the resource property value. Required. Specifies the resource that will be monitored for changes. Do not include the base URL (https://graph.microsoft.com/v1.0/). See the possible resource path values for each supported resource. + * Sets the resource property value. Required. Specifies the resource that is monitored for changes. Don't include the base URL (https://graph.microsoft.com/v1.0/). See the possible resource path values for each supported resource. * @param value Value to set for the resource property. */ public void setResource(@jakarta.annotation.Nullable final String value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/SynchronizationJob.java b/src/main/java/com/microsoft/graph/generated/models/SynchronizationJob.java index dd0be0c69ad..b59149f7d5b 100644 --- a/src/main/java/com/microsoft/graph/generated/models/SynchronizationJob.java +++ b/src/main/java/com/microsoft/graph/generated/models/SynchronizationJob.java @@ -25,7 +25,7 @@ public static SynchronizationJob createFromDiscriminatorValue(@jakarta.annotatio return new SynchronizationJob(); } /** - * Gets the bulkUpload property value. The bulkUpload property + * Gets the bulkUpload property value. The bulk upload operation for the job. * @return a {@link BulkUpload} */ @jakarta.annotation.Nullable @@ -102,7 +102,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeStringValue("templateId", this.getTemplateId()); } /** - * Sets the bulkUpload property value. The bulkUpload property + * Sets the bulkUpload property value. The bulk upload operation for the job. * @param value Value to set for the bulkUpload property. */ public void setBulkUpload(@jakarta.annotation.Nullable final BulkUpload value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/Teamwork.java b/src/main/java/com/microsoft/graph/generated/models/Teamwork.java index 094830a54ca..82af986361b 100644 --- a/src/main/java/com/microsoft/graph/generated/models/Teamwork.java +++ b/src/main/java/com/microsoft/graph/generated/models/Teamwork.java @@ -25,7 +25,7 @@ public static Teamwork createFromDiscriminatorValue(@jakarta.annotation.Nonnull return new Teamwork(); } /** - * Gets the deletedChats property value. The deletedChats property + * Gets the deletedChats property value. A collection of deleted chats. * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -82,7 +82,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeCollectionOfObjectValues("workforceIntegrations", this.getWorkforceIntegrations()); } /** - * Sets the deletedChats property value. The deletedChats property + * Sets the deletedChats property value. A collection of deleted chats. * @param value Value to set for the deletedChats property. */ public void setDeletedChats(@jakarta.annotation.Nullable final java.util.List value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/TextWebPart.java b/src/main/java/com/microsoft/graph/generated/models/TextWebPart.java new file mode 100644 index 00000000000..78559ded184 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/TextWebPart.java @@ -0,0 +1,62 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class TextWebPart extends WebPart implements Parsable { + /** + * Instantiates a new {@link TextWebPart} and sets the default values. + */ + public TextWebPart() { + super(); + this.setOdataType("#microsoft.graph.textWebPart"); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link TextWebPart} + */ + @jakarta.annotation.Nonnull + public static TextWebPart createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new TextWebPart(); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("innerHtml", (n) -> { this.setInnerHtml(n.getStringValue()); }); + return deserializerMap; + } + /** + * Gets the innerHtml property value. The innerHtml property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getInnerHtml() { + return this.backingStore.get("innerHtml"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + super.serialize(writer); + writer.writeStringValue("innerHtml", this.getInnerHtml()); + } + /** + * Sets the innerHtml property value. The innerHtml property + * @param value Value to set for the innerHtml property. + */ + public void setInnerHtml(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("innerHtml", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/TitleArea.java b/src/main/java/com/microsoft/graph/generated/models/TitleArea.java new file mode 100644 index 00000000000..a2194b4103a --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/TitleArea.java @@ -0,0 +1,277 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.AdditionalDataHolder; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import com.microsoft.kiota.store.BackedModel; +import com.microsoft.kiota.store.BackingStore; +import com.microsoft.kiota.store.BackingStoreFactorySingleton; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class TitleArea implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link TitleArea} and sets the default values. + */ + public TitleArea() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link TitleArea} + */ + @jakarta.annotation.Nonnull + public static TitleArea createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new TitleArea(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the alternativeText property value. The alternativeText property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getAlternativeText() { + return this.backingStore.get("alternativeText"); + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * Gets the enableGradientEffect property value. The enableGradientEffect property + * @return a {@link Boolean} + */ + @jakarta.annotation.Nullable + public Boolean getEnableGradientEffect() { + return this.backingStore.get("enableGradientEffect"); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(11); + deserializerMap.put("alternativeText", (n) -> { this.setAlternativeText(n.getStringValue()); }); + deserializerMap.put("enableGradientEffect", (n) -> { this.setEnableGradientEffect(n.getBooleanValue()); }); + deserializerMap.put("imageWebUrl", (n) -> { this.setImageWebUrl(n.getStringValue()); }); + deserializerMap.put("layout", (n) -> { this.setLayout(n.getEnumValue(TitleAreaLayoutType::forValue)); }); + deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); }); + deserializerMap.put("serverProcessedContent", (n) -> { this.setServerProcessedContent(n.getObjectValue(ServerProcessedContent::createFromDiscriminatorValue)); }); + deserializerMap.put("showAuthor", (n) -> { this.setShowAuthor(n.getBooleanValue()); }); + deserializerMap.put("showPublishedDate", (n) -> { this.setShowPublishedDate(n.getBooleanValue()); }); + deserializerMap.put("showTextBlockAboveTitle", (n) -> { this.setShowTextBlockAboveTitle(n.getBooleanValue()); }); + deserializerMap.put("textAboveTitle", (n) -> { this.setTextAboveTitle(n.getStringValue()); }); + deserializerMap.put("textAlignment", (n) -> { this.setTextAlignment(n.getEnumValue(TitleAreaTextAlignmentType::forValue)); }); + return deserializerMap; + } + /** + * Gets the imageWebUrl property value. The imageWebUrl property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getImageWebUrl() { + return this.backingStore.get("imageWebUrl"); + } + /** + * Gets the layout property value. The layout property + * @return a {@link TitleAreaLayoutType} + */ + @jakarta.annotation.Nullable + public TitleAreaLayoutType getLayout() { + return this.backingStore.get("layout"); + } + /** + * Gets the @odata.type property value. The OdataType property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getOdataType() { + return this.backingStore.get("odataType"); + } + /** + * Gets the serverProcessedContent property value. The serverProcessedContent property + * @return a {@link ServerProcessedContent} + */ + @jakarta.annotation.Nullable + public ServerProcessedContent getServerProcessedContent() { + return this.backingStore.get("serverProcessedContent"); + } + /** + * Gets the showAuthor property value. The showAuthor property + * @return a {@link Boolean} + */ + @jakarta.annotation.Nullable + public Boolean getShowAuthor() { + return this.backingStore.get("showAuthor"); + } + /** + * Gets the showPublishedDate property value. The showPublishedDate property + * @return a {@link Boolean} + */ + @jakarta.annotation.Nullable + public Boolean getShowPublishedDate() { + return this.backingStore.get("showPublishedDate"); + } + /** + * Gets the showTextBlockAboveTitle property value. The showTextBlockAboveTitle property + * @return a {@link Boolean} + */ + @jakarta.annotation.Nullable + public Boolean getShowTextBlockAboveTitle() { + return this.backingStore.get("showTextBlockAboveTitle"); + } + /** + * Gets the textAboveTitle property value. The textAboveTitle property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getTextAboveTitle() { + return this.backingStore.get("textAboveTitle"); + } + /** + * Gets the textAlignment property value. The textAlignment property + * @return a {@link TitleAreaTextAlignmentType} + */ + @jakarta.annotation.Nullable + public TitleAreaTextAlignmentType getTextAlignment() { + return this.backingStore.get("textAlignment"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + writer.writeStringValue("alternativeText", this.getAlternativeText()); + writer.writeBooleanValue("enableGradientEffect", this.getEnableGradientEffect()); + writer.writeStringValue("imageWebUrl", this.getImageWebUrl()); + writer.writeEnumValue("layout", this.getLayout()); + writer.writeStringValue("@odata.type", this.getOdataType()); + writer.writeObjectValue("serverProcessedContent", this.getServerProcessedContent()); + writer.writeBooleanValue("showAuthor", this.getShowAuthor()); + writer.writeBooleanValue("showPublishedDate", this.getShowPublishedDate()); + writer.writeBooleanValue("showTextBlockAboveTitle", this.getShowTextBlockAboveTitle()); + writer.writeStringValue("textAboveTitle", this.getTextAboveTitle()); + writer.writeEnumValue("textAlignment", this.getTextAlignment()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { + this.backingStore.set("additionalData", value); + } + /** + * Sets the alternativeText property value. The alternativeText property + * @param value Value to set for the alternativeText property. + */ + public void setAlternativeText(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("alternativeText", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @param value Value to set for the backingStore property. + */ + public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { + Objects.requireNonNull(value); + this.backingStore = value; + } + /** + * Sets the enableGradientEffect property value. The enableGradientEffect property + * @param value Value to set for the enableGradientEffect property. + */ + public void setEnableGradientEffect(@jakarta.annotation.Nullable final Boolean value) { + this.backingStore.set("enableGradientEffect", value); + } + /** + * Sets the imageWebUrl property value. The imageWebUrl property + * @param value Value to set for the imageWebUrl property. + */ + public void setImageWebUrl(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("imageWebUrl", value); + } + /** + * Sets the layout property value. The layout property + * @param value Value to set for the layout property. + */ + public void setLayout(@jakarta.annotation.Nullable final TitleAreaLayoutType value) { + this.backingStore.set("layout", value); + } + /** + * Sets the @odata.type property value. The OdataType property + * @param value Value to set for the @odata.type property. + */ + public void setOdataType(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("odataType", value); + } + /** + * Sets the serverProcessedContent property value. The serverProcessedContent property + * @param value Value to set for the serverProcessedContent property. + */ + public void setServerProcessedContent(@jakarta.annotation.Nullable final ServerProcessedContent value) { + this.backingStore.set("serverProcessedContent", value); + } + /** + * Sets the showAuthor property value. The showAuthor property + * @param value Value to set for the showAuthor property. + */ + public void setShowAuthor(@jakarta.annotation.Nullable final Boolean value) { + this.backingStore.set("showAuthor", value); + } + /** + * Sets the showPublishedDate property value. The showPublishedDate property + * @param value Value to set for the showPublishedDate property. + */ + public void setShowPublishedDate(@jakarta.annotation.Nullable final Boolean value) { + this.backingStore.set("showPublishedDate", value); + } + /** + * Sets the showTextBlockAboveTitle property value. The showTextBlockAboveTitle property + * @param value Value to set for the showTextBlockAboveTitle property. + */ + public void setShowTextBlockAboveTitle(@jakarta.annotation.Nullable final Boolean value) { + this.backingStore.set("showTextBlockAboveTitle", value); + } + /** + * Sets the textAboveTitle property value. The textAboveTitle property + * @param value Value to set for the textAboveTitle property. + */ + public void setTextAboveTitle(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("textAboveTitle", value); + } + /** + * Sets the textAlignment property value. The textAlignment property + * @param value Value to set for the textAlignment property. + */ + public void setTextAlignment(@jakarta.annotation.Nullable final TitleAreaTextAlignmentType value) { + this.backingStore.set("textAlignment", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/TitleAreaLayoutType.java b/src/main/java/com/microsoft/graph/generated/models/TitleAreaLayoutType.java new file mode 100644 index 00000000000..1ea16feed61 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/TitleAreaLayoutType.java @@ -0,0 +1,31 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.ValuedEnum; +import java.util.Objects; + +@jakarta.annotation.Generated("com.microsoft.kiota") +public enum TitleAreaLayoutType implements ValuedEnum { + ImageAndTitle("imageAndTitle"), + Plain("plain"), + ColorBlock("colorBlock"), + Overlap("overlap"), + UnknownFutureValue("unknownFutureValue"); + public final String value; + TitleAreaLayoutType(final String value) { + this.value = value; + } + @jakarta.annotation.Nonnull + public String getValue() { return this.value; } + @jakarta.annotation.Nullable + public static TitleAreaLayoutType forValue(@jakarta.annotation.Nonnull final String searchValue) { + Objects.requireNonNull(searchValue); + switch(searchValue) { + case "imageAndTitle": return ImageAndTitle; + case "plain": return Plain; + case "colorBlock": return ColorBlock; + case "overlap": return Overlap; + case "unknownFutureValue": return UnknownFutureValue; + default: return null; + } + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/TitleAreaTextAlignmentType.java b/src/main/java/com/microsoft/graph/generated/models/TitleAreaTextAlignmentType.java new file mode 100644 index 00000000000..56b83e78854 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/TitleAreaTextAlignmentType.java @@ -0,0 +1,27 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.ValuedEnum; +import java.util.Objects; + +@jakarta.annotation.Generated("com.microsoft.kiota") +public enum TitleAreaTextAlignmentType implements ValuedEnum { + Left("left"), + Center("center"), + UnknownFutureValue("unknownFutureValue"); + public final String value; + TitleAreaTextAlignmentType(final String value) { + this.value = value; + } + @jakarta.annotation.Nonnull + public String getValue() { return this.value; } + @jakarta.annotation.Nullable + public static TitleAreaTextAlignmentType forValue(@jakarta.annotation.Nonnull final String searchValue) { + Objects.requireNonNull(searchValue); + switch(searchValue) { + case "left": return Left; + case "center": return Center; + case "unknownFutureValue": return UnknownFutureValue; + default: return null; + } + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/UnifiedRoleAssignmentSchedule.java b/src/main/java/com/microsoft/graph/generated/models/UnifiedRoleAssignmentSchedule.java index ba0a6b3906a..ae8c260621c 100644 --- a/src/main/java/com/microsoft/graph/generated/models/UnifiedRoleAssignmentSchedule.java +++ b/src/main/java/com/microsoft/graph/generated/models/UnifiedRoleAssignmentSchedule.java @@ -25,7 +25,7 @@ public static UnifiedRoleAssignmentSchedule createFromDiscriminatorValue(@jakart return new UnifiedRoleAssignmentSchedule(); } /** - * Gets the activatedUsing property value. If the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it is null. Supports $expand. + * Gets the activatedUsing property value. If the request is from an eligible administrator to activate a role, this parameter shows the related eligible assignment for that activation. Otherwise, it's null. Supports $expand. * @return a {@link UnifiedRoleEligibilitySchedule} */ @jakarta.annotation.Nullable @@ -33,7 +33,7 @@ public UnifiedRoleEligibilitySchedule getActivatedUsing() { return this.backingStore.get("activatedUsing"); } /** - * Gets the assignmentType property value. Type of the assignment which can either be Assigned or Activated. Supports $filter (eq, ne). + * Gets the assignmentType property value. The type of the assignment that can either be Assigned or Activated. Supports $filter (eq, ne). * @return a {@link String} */ @jakarta.annotation.Nullable @@ -54,7 +54,7 @@ public Map> getFieldDeserializers return deserializerMap; } /** - * Gets the memberType property value. How the assignments is inherited. It can either be Inherited, Direct, or Group. It can further imply whether the unifiedRoleAssignmentSchedule can be managed by the caller. Supports $filter (eq, ne). + * Gets the memberType property value. How the assignment is inherited. It can either be Inherited, Direct, or Group. It can further imply whether the unifiedRoleAssignmentSchedule can be managed by the caller. Supports $filter (eq, ne). * @return a {@link String} */ @jakarta.annotation.Nullable @@ -82,21 +82,21 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeObjectValue("scheduleInfo", this.getScheduleInfo()); } /** - * Sets the activatedUsing property value. If the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it is null. Supports $expand. + * Sets the activatedUsing property value. If the request is from an eligible administrator to activate a role, this parameter shows the related eligible assignment for that activation. Otherwise, it's null. Supports $expand. * @param value Value to set for the activatedUsing property. */ public void setActivatedUsing(@jakarta.annotation.Nullable final UnifiedRoleEligibilitySchedule value) { this.backingStore.set("activatedUsing", value); } /** - * Sets the assignmentType property value. Type of the assignment which can either be Assigned or Activated. Supports $filter (eq, ne). + * Sets the assignmentType property value. The type of the assignment that can either be Assigned or Activated. Supports $filter (eq, ne). * @param value Value to set for the assignmentType property. */ public void setAssignmentType(@jakarta.annotation.Nullable final String value) { this.backingStore.set("assignmentType", value); } /** - * Sets the memberType property value. How the assignments is inherited. It can either be Inherited, Direct, or Group. It can further imply whether the unifiedRoleAssignmentSchedule can be managed by the caller. Supports $filter (eq, ne). + * Sets the memberType property value. How the assignment is inherited. It can either be Inherited, Direct, or Group. It can further imply whether the unifiedRoleAssignmentSchedule can be managed by the caller. Supports $filter (eq, ne). * @param value Value to set for the memberType property. */ public void setMemberType(@jakarta.annotation.Nullable final String value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/UnifiedRoleAssignmentScheduleInstance.java b/src/main/java/com/microsoft/graph/generated/models/UnifiedRoleAssignmentScheduleInstance.java index 906573647ed..eb0b079608d 100644 --- a/src/main/java/com/microsoft/graph/generated/models/UnifiedRoleAssignmentScheduleInstance.java +++ b/src/main/java/com/microsoft/graph/generated/models/UnifiedRoleAssignmentScheduleInstance.java @@ -26,7 +26,7 @@ public static UnifiedRoleAssignmentScheduleInstance createFromDiscriminatorValue return new UnifiedRoleAssignmentScheduleInstance(); } /** - * Gets the activatedUsing property value. If the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it is null. Supports $expand. + * Gets the activatedUsing property value. If the request is from an eligible administrator to activate a role, this parameter shows the related eligible assignment for that activation. Otherwise, it's null. Supports $expand and $select nested in $expand. * @return a {@link UnifiedRoleEligibilityScheduleInstance} */ @jakarta.annotation.Nullable @@ -34,7 +34,7 @@ public UnifiedRoleEligibilityScheduleInstance getActivatedUsing() { return this.backingStore.get("activatedUsing"); } /** - * Gets the assignmentType property value. Type of the assignment which can either be Assigned or Activated. Supports $filter (eq, ne). + * Gets the assignmentType property value. The type of the assignment that can either be Assigned or Activated. Supports $filter (eq, ne). * @return a {@link String} */ @jakarta.annotation.Nullable @@ -66,7 +66,7 @@ public Map> getFieldDeserializers return deserializerMap; } /** - * Gets the memberType property value. How the assignments is inherited. It can either be Inherited, Direct, or Group. It can further imply whether the unifiedRoleAssignmentSchedule can be managed by the caller. Supports $filter (eq, ne). + * Gets the memberType property value. How the assignment is inherited. It can either be Inherited, Direct, or Group. It can further imply whether the unifiedRoleAssignmentSchedule can be managed by the caller. Supports $filter (eq, ne). * @return a {@link String} */ @jakarta.annotation.Nullable @@ -113,14 +113,14 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeOffsetDateTimeValue("startDateTime", this.getStartDateTime()); } /** - * Sets the activatedUsing property value. If the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it is null. Supports $expand. + * Sets the activatedUsing property value. If the request is from an eligible administrator to activate a role, this parameter shows the related eligible assignment for that activation. Otherwise, it's null. Supports $expand and $select nested in $expand. * @param value Value to set for the activatedUsing property. */ public void setActivatedUsing(@jakarta.annotation.Nullable final UnifiedRoleEligibilityScheduleInstance value) { this.backingStore.set("activatedUsing", value); } /** - * Sets the assignmentType property value. Type of the assignment which can either be Assigned or Activated. Supports $filter (eq, ne). + * Sets the assignmentType property value. The type of the assignment that can either be Assigned or Activated. Supports $filter (eq, ne). * @param value Value to set for the assignmentType property. */ public void setAssignmentType(@jakarta.annotation.Nullable final String value) { @@ -134,7 +134,7 @@ public void setEndDateTime(@jakarta.annotation.Nullable final OffsetDateTime val this.backingStore.set("endDateTime", value); } /** - * Sets the memberType property value. How the assignments is inherited. It can either be Inherited, Direct, or Group. It can further imply whether the unifiedRoleAssignmentSchedule can be managed by the caller. Supports $filter (eq, ne). + * Sets the memberType property value. How the assignment is inherited. It can either be Inherited, Direct, or Group. It can further imply whether the unifiedRoleAssignmentSchedule can be managed by the caller. Supports $filter (eq, ne). * @param value Value to set for the memberType property. */ public void setMemberType(@jakarta.annotation.Nullable final String value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/UnifiedRoleAssignmentScheduleRequest.java b/src/main/java/com/microsoft/graph/generated/models/UnifiedRoleAssignmentScheduleRequest.java index 6c4c6272bef..72c0c892d26 100644 --- a/src/main/java/com/microsoft/graph/generated/models/UnifiedRoleAssignmentScheduleRequest.java +++ b/src/main/java/com/microsoft/graph/generated/models/UnifiedRoleAssignmentScheduleRequest.java @@ -33,7 +33,7 @@ public UnifiedRoleScheduleRequestActions getAction() { return this.backingStore.get("action"); } /** - * Gets the activatedUsing property value. If the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it's null. Supports $expand. + * Gets the activatedUsing property value. If the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it's null. Supports $expand and $select nested in $expand. * @return a {@link UnifiedRoleEligibilitySchedule} */ @jakarta.annotation.Nullable @@ -114,7 +114,7 @@ public String getJustification() { return this.backingStore.get("justification"); } /** - * Gets the principal property value. The principal that's getting a role assignment through the request. Supports $expand. + * Gets the principal property value. The principal that's getting a role assignment through the request. Supports $expand and $select nested in $expand for id only. * @return a {@link DirectoryObject} */ @jakarta.annotation.Nullable @@ -130,7 +130,7 @@ public String getPrincipalId() { return this.backingStore.get("principalId"); } /** - * Gets the roleDefinition property value. Detailed information for the unifiedRoleDefinition object that is referenced through the roleDefinitionId property. Supports $expand. + * Gets the roleDefinition property value. Detailed information for the unifiedRoleDefinition object that is referenced through the roleDefinitionId property. Supports $expand and $select nested in $expand. * @return a {@link UnifiedRoleDefinition} */ @jakarta.annotation.Nullable @@ -154,7 +154,7 @@ public RequestSchedule getScheduleInfo() { return this.backingStore.get("scheduleInfo"); } /** - * Gets the targetSchedule property value. The schedule for an eligible role assignment that is referenced through the targetScheduleId property. Supports $expand. + * Gets the targetSchedule property value. The schedule for an eligible role assignment that is referenced through the targetScheduleId property. Supports $expand and $select nested in $expand. * @return a {@link UnifiedRoleAssignmentSchedule} */ @jakarta.annotation.Nullable @@ -209,7 +209,7 @@ public void setAction(@jakarta.annotation.Nullable final UnifiedRoleScheduleRequ this.backingStore.set("action", value); } /** - * Sets the activatedUsing property value. If the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it's null. Supports $expand. + * Sets the activatedUsing property value. If the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it's null. Supports $expand and $select nested in $expand. * @param value Value to set for the activatedUsing property. */ public void setActivatedUsing(@jakarta.annotation.Nullable final UnifiedRoleEligibilitySchedule value) { @@ -258,7 +258,7 @@ public void setJustification(@jakarta.annotation.Nullable final String value) { this.backingStore.set("justification", value); } /** - * Sets the principal property value. The principal that's getting a role assignment through the request. Supports $expand. + * Sets the principal property value. The principal that's getting a role assignment through the request. Supports $expand and $select nested in $expand for id only. * @param value Value to set for the principal property. */ public void setPrincipal(@jakarta.annotation.Nullable final DirectoryObject value) { @@ -272,7 +272,7 @@ public void setPrincipalId(@jakarta.annotation.Nullable final String value) { this.backingStore.set("principalId", value); } /** - * Sets the roleDefinition property value. Detailed information for the unifiedRoleDefinition object that is referenced through the roleDefinitionId property. Supports $expand. + * Sets the roleDefinition property value. Detailed information for the unifiedRoleDefinition object that is referenced through the roleDefinitionId property. Supports $expand and $select nested in $expand. * @param value Value to set for the roleDefinition property. */ public void setRoleDefinition(@jakarta.annotation.Nullable final UnifiedRoleDefinition value) { @@ -293,7 +293,7 @@ public void setScheduleInfo(@jakarta.annotation.Nullable final RequestSchedule v this.backingStore.set("scheduleInfo", value); } /** - * Sets the targetSchedule property value. The schedule for an eligible role assignment that is referenced through the targetScheduleId property. Supports $expand. + * Sets the targetSchedule property value. The schedule for an eligible role assignment that is referenced through the targetScheduleId property. Supports $expand and $select nested in $expand. * @param value Value to set for the targetSchedule property. */ public void setTargetSchedule(@jakarta.annotation.Nullable final UnifiedRoleAssignmentSchedule value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/User.java b/src/main/java/com/microsoft/graph/generated/models/User.java index f29a31b295a..9a73a325815 100644 --- a/src/main/java/com/microsoft/graph/generated/models/User.java +++ b/src/main/java/com/microsoft/graph/generated/models/User.java @@ -518,6 +518,7 @@ public Map> getFieldDeserializers deserializerMap.put("signInActivity", (n) -> { this.setSignInActivity(n.getObjectValue(SignInActivity::createFromDiscriminatorValue)); }); deserializerMap.put("signInSessionsValidFromDateTime", (n) -> { this.setSignInSessionsValidFromDateTime(n.getOffsetDateTimeValue()); }); deserializerMap.put("skills", (n) -> { this.setSkills(n.getCollectionOfPrimitiveValues(String.class)); }); + deserializerMap.put("sponsors", (n) -> { this.setSponsors(n.getCollectionOfObjectValues(DirectoryObject::createFromDiscriminatorValue)); }); deserializerMap.put("state", (n) -> { this.setState(n.getStringValue()); }); deserializerMap.put("streetAddress", (n) -> { this.setStreetAddress(n.getStringValue()); }); deserializerMap.put("surname", (n) -> { this.setSurname(n.getStringValue()); }); @@ -1097,6 +1098,14 @@ public OffsetDateTime getSignInSessionsValidFromDateTime() { public java.util.List getSkills() { return this.backingStore.get("skills"); } + /** + * Gets the sponsors property value. The sponsors property + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getSponsors() { + return this.backingStore.get("sponsors"); + } /** * Gets the state property value. The state or province in the user's address. Maximum length is 128 characters. Returned only on $select. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values). * @return a {@link String} @@ -1293,6 +1302,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeObjectValue("signInActivity", this.getSignInActivity()); writer.writeOffsetDateTimeValue("signInSessionsValidFromDateTime", this.getSignInSessionsValidFromDateTime()); writer.writeCollectionOfPrimitiveValues("skills", this.getSkills()); + writer.writeCollectionOfObjectValues("sponsors", this.getSponsors()); writer.writeStringValue("state", this.getState()); writer.writeStringValue("streetAddress", this.getStreetAddress()); writer.writeStringValue("surname", this.getSurname()); @@ -2122,6 +2132,13 @@ public void setSignInSessionsValidFromDateTime(@jakarta.annotation.Nullable fina public void setSkills(@jakarta.annotation.Nullable final java.util.List value) { this.backingStore.set("skills", value); } + /** + * Sets the sponsors property value. The sponsors property + * @param value Value to set for the sponsors property. + */ + public void setSponsors(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("sponsors", value); + } /** * Sets the state property value. The state or province in the user's address. Maximum length is 128 characters. Returned only on $select. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values). * @param value Value to set for the state property. diff --git a/src/main/java/com/microsoft/graph/generated/models/VerticalSection.java b/src/main/java/com/microsoft/graph/generated/models/VerticalSection.java new file mode 100644 index 00000000000..a3bb2cb0ca6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/VerticalSection.java @@ -0,0 +1,78 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class VerticalSection extends Entity implements Parsable { + /** + * Instantiates a new {@link VerticalSection} and sets the default values. + */ + public VerticalSection() { + super(); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link VerticalSection} + */ + @jakarta.annotation.Nonnull + public static VerticalSection createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new VerticalSection(); + } + /** + * Gets the emphasis property value. The emphasis property + * @return a {@link SectionEmphasisType} + */ + @jakarta.annotation.Nullable + public SectionEmphasisType getEmphasis() { + return this.backingStore.get("emphasis"); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("emphasis", (n) -> { this.setEmphasis(n.getEnumValue(SectionEmphasisType::forValue)); }); + deserializerMap.put("webparts", (n) -> { this.setWebparts(n.getCollectionOfObjectValues(WebPart::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the webparts property value. The webparts property + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getWebparts() { + return this.backingStore.get("webparts"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + super.serialize(writer); + writer.writeEnumValue("emphasis", this.getEmphasis()); + writer.writeCollectionOfObjectValues("webparts", this.getWebparts()); + } + /** + * Sets the emphasis property value. The emphasis property + * @param value Value to set for the emphasis property. + */ + public void setEmphasis(@jakarta.annotation.Nullable final SectionEmphasisType value) { + this.backingStore.set("emphasis", value); + } + /** + * Sets the webparts property value. The webparts property + * @param value Value to set for the webparts property. + */ + public void setWebparts(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("webparts", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/VirtualEndpoint.java b/src/main/java/com/microsoft/graph/generated/models/VirtualEndpoint.java index 1fac8c92e50..6947238bb84 100644 --- a/src/main/java/com/microsoft/graph/generated/models/VirtualEndpoint.java +++ b/src/main/java/com/microsoft/graph/generated/models/VirtualEndpoint.java @@ -24,6 +24,30 @@ public static VirtualEndpoint createFromDiscriminatorValue(@jakarta.annotation.N Objects.requireNonNull(parseNode); return new VirtualEndpoint(); } + /** + * Gets the auditEvents property value. A collection of Cloud PC audit events. + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getAuditEvents() { + return this.backingStore.get("auditEvents"); + } + /** + * Gets the cloudPCs property value. A collection of cloud-managed virtual desktops. + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getCloudPCs() { + return this.backingStore.get("cloudPCs"); + } + /** + * Gets the deviceImages property value. A collection of device image resources on Cloud PC. + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getDeviceImages() { + return this.backingStore.get("deviceImages"); + } /** * The deserialization information for the current model * @return a {@link Map>} @@ -31,8 +55,47 @@ public static VirtualEndpoint createFromDiscriminatorValue(@jakarta.annotation.N @jakarta.annotation.Nonnull public Map> getFieldDeserializers() { final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("auditEvents", (n) -> { this.setAuditEvents(n.getCollectionOfObjectValues(CloudPcAuditEvent::createFromDiscriminatorValue)); }); + deserializerMap.put("cloudPCs", (n) -> { this.setCloudPCs(n.getCollectionOfObjectValues(CloudPC::createFromDiscriminatorValue)); }); + deserializerMap.put("deviceImages", (n) -> { this.setDeviceImages(n.getCollectionOfObjectValues(CloudPcDeviceImage::createFromDiscriminatorValue)); }); + deserializerMap.put("galleryImages", (n) -> { this.setGalleryImages(n.getCollectionOfObjectValues(CloudPcGalleryImage::createFromDiscriminatorValue)); }); + deserializerMap.put("onPremisesConnections", (n) -> { this.setOnPremisesConnections(n.getCollectionOfObjectValues(CloudPcOnPremisesConnection::createFromDiscriminatorValue)); }); + deserializerMap.put("provisioningPolicies", (n) -> { this.setProvisioningPolicies(n.getCollectionOfObjectValues(CloudPcProvisioningPolicy::createFromDiscriminatorValue)); }); + deserializerMap.put("userSettings", (n) -> { this.setUserSettings(n.getCollectionOfObjectValues(CloudPcUserSetting::createFromDiscriminatorValue)); }); return deserializerMap; } + /** + * Gets the galleryImages property value. A collection of gallery image resources on Cloud PC. + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getGalleryImages() { + return this.backingStore.get("galleryImages"); + } + /** + * Gets the onPremisesConnections property value. A defined collection of Azure resource information that can be used to establish Azure network connections for Cloud PCs. + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getOnPremisesConnections() { + return this.backingStore.get("onPremisesConnections"); + } + /** + * Gets the provisioningPolicies property value. A collection of Cloud PC provisioning policies. + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getProvisioningPolicies() { + return this.backingStore.get("provisioningPolicies"); + } + /** + * Gets the userSettings property value. A collection of Cloud PC user settings. + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getUserSettings() { + return this.backingStore.get("userSettings"); + } /** * Serializes information the current object * @param writer Serialization writer to use to serialize this model @@ -40,5 +103,61 @@ public Map> getFieldDeserializers public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); super.serialize(writer); + writer.writeCollectionOfObjectValues("auditEvents", this.getAuditEvents()); + writer.writeCollectionOfObjectValues("cloudPCs", this.getCloudPCs()); + writer.writeCollectionOfObjectValues("deviceImages", this.getDeviceImages()); + writer.writeCollectionOfObjectValues("galleryImages", this.getGalleryImages()); + writer.writeCollectionOfObjectValues("onPremisesConnections", this.getOnPremisesConnections()); + writer.writeCollectionOfObjectValues("provisioningPolicies", this.getProvisioningPolicies()); + writer.writeCollectionOfObjectValues("userSettings", this.getUserSettings()); + } + /** + * Sets the auditEvents property value. A collection of Cloud PC audit events. + * @param value Value to set for the auditEvents property. + */ + public void setAuditEvents(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("auditEvents", value); + } + /** + * Sets the cloudPCs property value. A collection of cloud-managed virtual desktops. + * @param value Value to set for the cloudPCs property. + */ + public void setCloudPCs(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("cloudPCs", value); + } + /** + * Sets the deviceImages property value. A collection of device image resources on Cloud PC. + * @param value Value to set for the deviceImages property. + */ + public void setDeviceImages(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("deviceImages", value); + } + /** + * Sets the galleryImages property value. A collection of gallery image resources on Cloud PC. + * @param value Value to set for the galleryImages property. + */ + public void setGalleryImages(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("galleryImages", value); + } + /** + * Sets the onPremisesConnections property value. A defined collection of Azure resource information that can be used to establish Azure network connections for Cloud PCs. + * @param value Value to set for the onPremisesConnections property. + */ + public void setOnPremisesConnections(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("onPremisesConnections", value); + } + /** + * Sets the provisioningPolicies property value. A collection of Cloud PC provisioning policies. + * @param value Value to set for the provisioningPolicies property. + */ + public void setProvisioningPolicies(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("provisioningPolicies", value); + } + /** + * Sets the userSettings property value. A collection of Cloud PC user settings. + * @param value Value to set for the userSettings property. + */ + public void setUserSettings(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("userSettings", value); } } diff --git a/src/main/java/com/microsoft/graph/generated/models/WebPart.java b/src/main/java/com/microsoft/graph/generated/models/WebPart.java new file mode 100644 index 00000000000..62ae42f0597 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/WebPart.java @@ -0,0 +1,52 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class WebPart extends Entity implements Parsable { + /** + * Instantiates a new {@link WebPart} and sets the default values. + */ + public WebPart() { + super(); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link WebPart} + */ + @jakarta.annotation.Nonnull + public static WebPart createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + final ParseNode mappingValueNode = parseNode.getChildNode("@odata.type"); + if (mappingValueNode != null) { + final String mappingValue = mappingValueNode.getStringValue(); + switch (mappingValue) { + case "#microsoft.graph.standardWebPart": return new StandardWebPart(); + case "#microsoft.graph.textWebPart": return new TextWebPart(); + } + } + return new WebPart(); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + return deserializerMap; + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + super.serialize(writer); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/WebPartCollectionResponse.java b/src/main/java/com/microsoft/graph/generated/models/WebPartCollectionResponse.java new file mode 100644 index 00000000000..7d24b29ddc7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/WebPartCollectionResponse.java @@ -0,0 +1,61 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class WebPartCollectionResponse extends BaseCollectionPaginationCountResponse implements Parsable { + /** + * Instantiates a new {@link WebPartCollectionResponse} and sets the default values. + */ + public WebPartCollectionResponse() { + super(); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link WebPartCollectionResponse} + */ + @jakarta.annotation.Nonnull + public static WebPartCollectionResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new WebPartCollectionResponse(); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("value", (n) -> { this.setValue(n.getCollectionOfObjectValues(WebPart::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the value property value. The value property + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getValue() { + return this.backingStore.get("value"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + super.serialize(writer); + writer.writeCollectionOfObjectValues("value", this.getValue()); + } + /** + * Sets the value property value. The value property + * @param value Value to set for the value property. + */ + public void setValue(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("value", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/WebPartData.java b/src/main/java/com/microsoft/graph/generated/models/WebPartData.java new file mode 100644 index 00000000000..519e8857727 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/WebPartData.java @@ -0,0 +1,192 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.AdditionalDataHolder; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import com.microsoft.kiota.store.BackedModel; +import com.microsoft.kiota.store.BackingStore; +import com.microsoft.kiota.store.BackingStoreFactorySingleton; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class WebPartData implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link WebPartData} and sets the default values. + */ + public WebPartData() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link WebPartData} + */ + @jakarta.annotation.Nonnull + public static WebPartData createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new WebPartData(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * Gets the dataVersion property value. The dataVersion property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getDataVersion() { + return this.backingStore.get("dataVersion"); + } + /** + * Gets the description property value. The description property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getDescription() { + return this.backingStore.get("description"); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(6); + deserializerMap.put("dataVersion", (n) -> { this.setDataVersion(n.getStringValue()); }); + deserializerMap.put("description", (n) -> { this.setDescription(n.getStringValue()); }); + deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); }); + deserializerMap.put("properties", (n) -> { this.setProperties(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("serverProcessedContent", (n) -> { this.setServerProcessedContent(n.getObjectValue(ServerProcessedContent::createFromDiscriminatorValue)); }); + deserializerMap.put("title", (n) -> { this.setTitle(n.getStringValue()); }); + return deserializerMap; + } + /** + * Gets the @odata.type property value. The OdataType property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getOdataType() { + return this.backingStore.get("odataType"); + } + /** + * Gets the properties property value. The properties property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getProperties() { + return this.backingStore.get("properties"); + } + /** + * Gets the serverProcessedContent property value. The serverProcessedContent property + * @return a {@link ServerProcessedContent} + */ + @jakarta.annotation.Nullable + public ServerProcessedContent getServerProcessedContent() { + return this.backingStore.get("serverProcessedContent"); + } + /** + * Gets the title property value. The title property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getTitle() { + return this.backingStore.get("title"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + writer.writeStringValue("dataVersion", this.getDataVersion()); + writer.writeStringValue("description", this.getDescription()); + writer.writeStringValue("@odata.type", this.getOdataType()); + writer.writeObjectValue("properties", this.getProperties()); + writer.writeObjectValue("serverProcessedContent", this.getServerProcessedContent()); + writer.writeStringValue("title", this.getTitle()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { + this.backingStore.set("additionalData", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @param value Value to set for the backingStore property. + */ + public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { + Objects.requireNonNull(value); + this.backingStore = value; + } + /** + * Sets the dataVersion property value. The dataVersion property + * @param value Value to set for the dataVersion property. + */ + public void setDataVersion(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("dataVersion", value); + } + /** + * Sets the description property value. The description property + * @param value Value to set for the description property. + */ + public void setDescription(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("description", value); + } + /** + * Sets the @odata.type property value. The OdataType property + * @param value Value to set for the @odata.type property. + */ + public void setOdataType(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("odataType", value); + } + /** + * Sets the properties property value. The properties property + * @param value Value to set for the properties property. + */ + public void setProperties(@jakarta.annotation.Nullable final Json value) { + this.backingStore.set("properties", value); + } + /** + * Sets the serverProcessedContent property value. The serverProcessedContent property + * @param value Value to set for the serverProcessedContent property. + */ + public void setServerProcessedContent(@jakarta.annotation.Nullable final ServerProcessedContent value) { + this.backingStore.set("serverProcessedContent", value); + } + /** + * Sets the title property value. The title property + * @param value Value to set for the title property. + */ + public void setTitle(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("title", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/WebPartPosition.java b/src/main/java/com/microsoft/graph/generated/models/WebPartPosition.java new file mode 100644 index 00000000000..14509fc4ed5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/WebPartPosition.java @@ -0,0 +1,175 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.AdditionalDataHolder; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import com.microsoft.kiota.store.BackedModel; +import com.microsoft.kiota.store.BackingStore; +import com.microsoft.kiota.store.BackingStoreFactorySingleton; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class WebPartPosition implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link WebPartPosition} and sets the default values. + */ + public WebPartPosition() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link WebPartPosition} + */ + @jakarta.annotation.Nonnull + public static WebPartPosition createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new WebPartPosition(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * Gets the columnId property value. The columnId property + * @return a {@link Double} + */ + @jakarta.annotation.Nullable + public Double getColumnId() { + return this.backingStore.get("columnId"); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(5); + deserializerMap.put("columnId", (n) -> { this.setColumnId(n.getDoubleValue()); }); + deserializerMap.put("horizontalSectionId", (n) -> { this.setHorizontalSectionId(n.getDoubleValue()); }); + deserializerMap.put("isInVerticalSection", (n) -> { this.setIsInVerticalSection(n.getBooleanValue()); }); + deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); }); + deserializerMap.put("webPartIndex", (n) -> { this.setWebPartIndex(n.getDoubleValue()); }); + return deserializerMap; + } + /** + * Gets the horizontalSectionId property value. The horizontalSectionId property + * @return a {@link Double} + */ + @jakarta.annotation.Nullable + public Double getHorizontalSectionId() { + return this.backingStore.get("horizontalSectionId"); + } + /** + * Gets the isInVerticalSection property value. The isInVerticalSection property + * @return a {@link Boolean} + */ + @jakarta.annotation.Nullable + public Boolean getIsInVerticalSection() { + return this.backingStore.get("isInVerticalSection"); + } + /** + * Gets the @odata.type property value. The OdataType property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getOdataType() { + return this.backingStore.get("odataType"); + } + /** + * Gets the webPartIndex property value. The webPartIndex property + * @return a {@link Double} + */ + @jakarta.annotation.Nullable + public Double getWebPartIndex() { + return this.backingStore.get("webPartIndex"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + writer.writeDoubleValue("columnId", this.getColumnId()); + writer.writeDoubleValue("horizontalSectionId", this.getHorizontalSectionId()); + writer.writeBooleanValue("isInVerticalSection", this.getIsInVerticalSection()); + writer.writeStringValue("@odata.type", this.getOdataType()); + writer.writeDoubleValue("webPartIndex", this.getWebPartIndex()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { + this.backingStore.set("additionalData", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @param value Value to set for the backingStore property. + */ + public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { + Objects.requireNonNull(value); + this.backingStore = value; + } + /** + * Sets the columnId property value. The columnId property + * @param value Value to set for the columnId property. + */ + public void setColumnId(@jakarta.annotation.Nullable final Double value) { + this.backingStore.set("columnId", value); + } + /** + * Sets the horizontalSectionId property value. The horizontalSectionId property + * @param value Value to set for the horizontalSectionId property. + */ + public void setHorizontalSectionId(@jakarta.annotation.Nullable final Double value) { + this.backingStore.set("horizontalSectionId", value); + } + /** + * Sets the isInVerticalSection property value. The isInVerticalSection property + * @param value Value to set for the isInVerticalSection property. + */ + public void setIsInVerticalSection(@jakarta.annotation.Nullable final Boolean value) { + this.backingStore.set("isInVerticalSection", value); + } + /** + * Sets the @odata.type property value. The OdataType property + * @param value Value to set for the @odata.type property. + */ + public void setOdataType(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("odataType", value); + } + /** + * Sets the webPartIndex property value. The webPartIndex property + * @param value Value to set for the webPartIndex property. + */ + public void setWebPartIndex(@jakarta.annotation.Nullable final Double value) { + this.backingStore.set("webPartIndex", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/Win32LobAppFileSystemOperationType.java b/src/main/java/com/microsoft/graph/generated/models/Win32LobAppFileSystemOperationType.java index de10e319743..18adc8098f1 100644 --- a/src/main/java/com/microsoft/graph/generated/models/Win32LobAppFileSystemOperationType.java +++ b/src/main/java/com/microsoft/graph/generated/models/Win32LobAppFileSystemOperationType.java @@ -4,21 +4,21 @@ import java.util.Objects; /** - * Contains all supported file system detection type. + * A list of possible operations for rules used to make determinations about an application based on files or folders. Unless noted, can be used with either detection or requirement rules. */ @jakarta.annotation.Generated("com.microsoft.kiota") public enum Win32LobAppFileSystemOperationType implements ValuedEnum { - /** Not configured. */ + /** Default. Indicates that the rule does not have the operation type configured. */ NotConfigured("notConfigured"), - /** Whether the specified file or folder exists. */ + /** Indicates that the rule evaluates whether the specified file or folder exists. */ Exists("exists"), - /** Last modified date. */ + /** Indicates that the rule compares the modified date of the specified file against a provided comparison value by DateTime comparison. */ ModifiedDate("modifiedDate"), - /** Created date. */ + /** Indicates that the rule compares the created date of the specified file against a provided comparison value by DateTime comparison. */ CreatedDate("createdDate"), - /** Version value type. */ + /** Indicates that the rule compares the detected version of the specified file against a provided comparison value via version semantics (both operand values will be parsed as versions and directly compared). If the value read at the given registry value is not discovered to be in version-compatible format, a string comparison will be used instead. */ Version("version"), - /** Size detection type. */ + /** Indicates that the rule compares the size of the file in MiB (rounded down) against a provided comparison value by integer comparison. */ SizeInMB("sizeInMB"); public final String value; Win32LobAppFileSystemOperationType(final String value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/Win32LobAppFileSystemRule.java b/src/main/java/com/microsoft/graph/generated/models/Win32LobAppFileSystemRule.java index af48b5748cc..a999676eb0b 100644 --- a/src/main/java/com/microsoft/graph/generated/models/Win32LobAppFileSystemRule.java +++ b/src/main/java/com/microsoft/graph/generated/models/Win32LobAppFileSystemRule.java @@ -68,7 +68,7 @@ public String getFileOrFolderName() { return this.backingStore.get("fileOrFolderName"); } /** - * Gets the operationType property value. Contains all supported file system detection type. + * Gets the operationType property value. A list of possible operations for rules used to make determinations about an application based on files or folders. Unless noted, can be used with either detection or requirement rules. * @return a {@link Win32LobAppFileSystemOperationType} */ @jakarta.annotation.Nullable @@ -127,7 +127,7 @@ public void setFileOrFolderName(@jakarta.annotation.Nullable final String value) this.backingStore.set("fileOrFolderName", value); } /** - * Sets the operationType property value. Contains all supported file system detection type. + * Sets the operationType property value. A list of possible operations for rules used to make determinations about an application based on files or folders. Unless noted, can be used with either detection or requirement rules. * @param value Value to set for the operationType property. */ public void setOperationType(@jakarta.annotation.Nullable final Win32LobAppFileSystemOperationType value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/Win32LobAppRegistryRule.java b/src/main/java/com/microsoft/graph/generated/models/Win32LobAppRegistryRule.java index ba1b5744465..ddd3367e986 100644 --- a/src/main/java/com/microsoft/graph/generated/models/Win32LobAppRegistryRule.java +++ b/src/main/java/com/microsoft/graph/generated/models/Win32LobAppRegistryRule.java @@ -68,7 +68,7 @@ public String getKeyPath() { return this.backingStore.get("keyPath"); } /** - * Gets the operationType property value. Contains all supported registry data detection type. + * Gets the operationType property value. A list of possible operations for rules used to make determinations about an application based on registry keys or values. Unless noted, the values can be used with either detection or requirement rules. * @return a {@link Win32LobAppRegistryRuleOperationType} */ @jakarta.annotation.Nullable @@ -127,7 +127,7 @@ public void setKeyPath(@jakarta.annotation.Nullable final String value) { this.backingStore.set("keyPath", value); } /** - * Sets the operationType property value. Contains all supported registry data detection type. + * Sets the operationType property value. A list of possible operations for rules used to make determinations about an application based on registry keys or values. Unless noted, the values can be used with either detection or requirement rules. * @param value Value to set for the operationType property. */ public void setOperationType(@jakarta.annotation.Nullable final Win32LobAppRegistryRuleOperationType value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/Win32LobAppRegistryRuleOperationType.java b/src/main/java/com/microsoft/graph/generated/models/Win32LobAppRegistryRuleOperationType.java index fe384a534dd..824aa3d2e09 100644 --- a/src/main/java/com/microsoft/graph/generated/models/Win32LobAppRegistryRuleOperationType.java +++ b/src/main/java/com/microsoft/graph/generated/models/Win32LobAppRegistryRuleOperationType.java @@ -4,21 +4,21 @@ import java.util.Objects; /** - * Contains all supported registry data detection type. + * A list of possible operations for rules used to make determinations about an application based on registry keys or values. Unless noted, the values can be used with either detection or requirement rules. */ @jakarta.annotation.Generated("com.microsoft.kiota") public enum Win32LobAppRegistryRuleOperationType implements ValuedEnum { - /** Not configured. */ + /** Default. Indicates that the rule does not have the operation type configured. */ NotConfigured("notConfigured"), - /** The specified registry key or value exists. */ + /** Indicates that the rule evaluates whether the specified registry key or value exists. */ Exists("exists"), - /** The specified registry key or value does not exist. */ + /** Indicates that the rule evaluates whether the specified registry key or value does not exist. It is the functional inverse of an equivalent rule that uses operation type `exists`. */ DoesNotExist("doesNotExist"), - /** String value type. */ + /** Indicates that the rule compares the value read at the given registry value against a provided comparison value by string comparison. */ String("string"), - /** Integer value type. */ + /** Indicates that the rule compares the value read at the given registry value against a provided comparison value by integer comparison. */ Integer("integer"), - /** Version value type. */ + /** Indicates that the rule compares the value read at the given registry value against a provided comparison value via version semantics (both operand values will be parsed as versions and directly compared). If the value read at the given registry value is not discovered to be in version-compatible format, a string comparison will be used instead. */ Version("version"); public final String value; Win32LobAppRegistryRuleOperationType(final String value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/Windows10EnrollmentCompletionPageConfiguration.java b/src/main/java/com/microsoft/graph/generated/models/Windows10EnrollmentCompletionPageConfiguration.java new file mode 100644 index 00000000000..b27dee2af6a --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/Windows10EnrollmentCompletionPageConfiguration.java @@ -0,0 +1,65 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Windows 10 Enrollment Status Page Configuration + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class Windows10EnrollmentCompletionPageConfiguration extends DeviceEnrollmentConfiguration implements Parsable { + /** + * Instantiates a new {@link Windows10EnrollmentCompletionPageConfiguration} and sets the default values. + */ + public Windows10EnrollmentCompletionPageConfiguration() { + super(); + this.setOdataType("#microsoft.graph.windows10EnrollmentCompletionPageConfiguration"); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link Windows10EnrollmentCompletionPageConfiguration} + */ + @jakarta.annotation.Nonnull + public static Windows10EnrollmentCompletionPageConfiguration createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new Windows10EnrollmentCompletionPageConfiguration(); + } + /** + * Gets the allowNonBlockingAppInstallation property value. When TRUE, ESP (Enrollment Status Page) installs all required apps targeted during technician phase and ignores any failures for non-blocking apps. When FALSE, ESP fails on any error during app install. The default is false. + * @return a {@link Boolean} + */ + @jakarta.annotation.Nullable + public Boolean getAllowNonBlockingAppInstallation() { + return this.backingStore.get("allowNonBlockingAppInstallation"); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("allowNonBlockingAppInstallation", (n) -> { this.setAllowNonBlockingAppInstallation(n.getBooleanValue()); }); + return deserializerMap; + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + super.serialize(writer); + writer.writeBooleanValue("allowNonBlockingAppInstallation", this.getAllowNonBlockingAppInstallation()); + } + /** + * Sets the allowNonBlockingAppInstallation property value. When TRUE, ESP (Enrollment Status Page) installs all required apps targeted during technician phase and ignores any failures for non-blocking apps. When FALSE, ESP fails on any error during app install. The default is false. + * @param value Value to set for the allowNonBlockingAppInstallation property. + */ + public void setAllowNonBlockingAppInstallation(@jakarta.annotation.Nullable final Boolean value) { + this.backingStore.set("allowNonBlockingAppInstallation", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/WindowsSetting.java b/src/main/java/com/microsoft/graph/generated/models/WindowsSetting.java index a4a94682711..67a6219dfce 100644 --- a/src/main/java/com/microsoft/graph/generated/models/WindowsSetting.java +++ b/src/main/java/com/microsoft/graph/generated/models/WindowsSetting.java @@ -38,7 +38,7 @@ public Map> getFieldDeserializers return deserializerMap; } /** - * Gets the instances property value. The instances property + * Gets the instances property value. A collection of setting values for a given windowsSetting. * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -46,7 +46,7 @@ public java.util.List getInstances() { return this.backingStore.get("instances"); } /** - * Gets the payloadType property value. The payloadType property + * Gets the payloadType property value. The type of setting payloads contained in the instances navigation property. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -62,7 +62,7 @@ public WindowsSettingType getSettingType() { return this.backingStore.get("settingType"); } /** - * Gets the windowsDeviceId property value. The windowsDeviceId property + * Gets the windowsDeviceId property value. A unique identifier for the device the setting might belong to if it is of the settingType backup. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -82,14 +82,14 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeStringValue("windowsDeviceId", this.getWindowsDeviceId()); } /** - * Sets the instances property value. The instances property + * Sets the instances property value. A collection of setting values for a given windowsSetting. * @param value Value to set for the instances property. */ public void setInstances(@jakarta.annotation.Nullable final java.util.List value) { this.backingStore.set("instances", value); } /** - * Sets the payloadType property value. The payloadType property + * Sets the payloadType property value. The type of setting payloads contained in the instances navigation property. * @param value Value to set for the payloadType property. */ public void setPayloadType(@jakarta.annotation.Nullable final String value) { @@ -103,7 +103,7 @@ public void setSettingType(@jakarta.annotation.Nullable final WindowsSettingType this.backingStore.set("settingType", value); } /** - * Sets the windowsDeviceId property value. The windowsDeviceId property + * Sets the windowsDeviceId property value. A unique identifier for the device the setting might belong to if it is of the settingType backup. * @param value Value to set for the windowsDeviceId property. */ public void setWindowsDeviceId(@jakarta.annotation.Nullable final String value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/WindowsSettingInstance.java b/src/main/java/com/microsoft/graph/generated/models/WindowsSettingInstance.java index a517ba7a95f..da77bf69f49 100644 --- a/src/main/java/com/microsoft/graph/generated/models/WindowsSettingInstance.java +++ b/src/main/java/com/microsoft/graph/generated/models/WindowsSettingInstance.java @@ -26,7 +26,7 @@ public static WindowsSettingInstance createFromDiscriminatorValue(@jakarta.annot return new WindowsSettingInstance(); } /** - * Gets the createdDateTime property value. The createdDateTime property + * Gets the createdDateTime property value. Set by the server. Represents the dateTime in UTC when the object was created on the server. * @return a {@link OffsetDateTime} */ @jakarta.annotation.Nullable @@ -34,7 +34,7 @@ public OffsetDateTime getCreatedDateTime() { return this.backingStore.get("createdDateTime"); } /** - * Gets the expirationDateTime property value. The expirationDateTime property + * Gets the expirationDateTime property value. Set by the server. The object expires at the specified dateTime in UTC, making it unavailable after that time. * @return a {@link OffsetDateTime} */ @jakarta.annotation.Nullable @@ -55,7 +55,7 @@ public Map> getFieldDeserializers return deserializerMap; } /** - * Gets the lastModifiedDateTime property value. The lastModifiedDateTime property + * Gets the lastModifiedDateTime property value. Set by the server if not provided in the request from the Windows client device. Refers to the user's Windows device that modified the object at the specified dateTime in UTC. * @return a {@link OffsetDateTime} */ @jakarta.annotation.Nullable @@ -63,7 +63,7 @@ public OffsetDateTime getLastModifiedDateTime() { return this.backingStore.get("lastModifiedDateTime"); } /** - * Gets the payload property value. The payload property + * Gets the payload property value. Base64-encoded JSON setting value. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -83,28 +83,28 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeStringValue("payload", this.getPayload()); } /** - * Sets the createdDateTime property value. The createdDateTime property + * Sets the createdDateTime property value. Set by the server. Represents the dateTime in UTC when the object was created on the server. * @param value Value to set for the createdDateTime property. */ public void setCreatedDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) { this.backingStore.set("createdDateTime", value); } /** - * Sets the expirationDateTime property value. The expirationDateTime property + * Sets the expirationDateTime property value. Set by the server. The object expires at the specified dateTime in UTC, making it unavailable after that time. * @param value Value to set for the expirationDateTime property. */ public void setExpirationDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) { this.backingStore.set("expirationDateTime", value); } /** - * Sets the lastModifiedDateTime property value. The lastModifiedDateTime property + * Sets the lastModifiedDateTime property value. Set by the server if not provided in the request from the Windows client device. Refers to the user's Windows device that modified the object at the specified dateTime in UTC. * @param value Value to set for the lastModifiedDateTime property. */ public void setLastModifiedDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) { this.backingStore.set("lastModifiedDateTime", value); } /** - * Sets the payload property value. The payload property + * Sets the payload property value. Base64-encoded JSON setting value. * @param value Value to set for the payload property. */ public void setPayload(@jakarta.annotation.Nullable final String value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/callrecords/DirectRoutingLogRow.java b/src/main/java/com/microsoft/graph/generated/models/callrecords/DirectRoutingLogRow.java index 5e75a4b4bf0..7509bdad03d 100644 --- a/src/main/java/com/microsoft/graph/generated/models/callrecords/DirectRoutingLogRow.java +++ b/src/main/java/com/microsoft/graph/generated/models/callrecords/DirectRoutingLogRow.java @@ -152,7 +152,7 @@ public Map> getFieldDeserializers return deserializerMap; } /** - * Gets the finalSipCode property value. The code with which the call ended. For more information, see RFC 3261. + * Gets the finalSipCode property value. The final response code with which the call ended. For more information, see RFC 3261. * @return a {@link Integer} */ @jakarta.annotation.Nullable @@ -176,7 +176,7 @@ public String getId() { return this.backingStore.get("id"); } /** - * Gets the inviteDateTime property value. When the initial invite was sent. + * Gets the inviteDateTime property value. The date and time when the initial invite was sent. * @return a {@link OffsetDateTime} */ @jakarta.annotation.Nullable @@ -216,7 +216,7 @@ public String getSignalingLocation() { return this.backingStore.get("signalingLocation"); } /** - * Gets the startDateTime property value. Call start time.For failed and unanswered calls, this can be equal to the invite or failure time. + * Gets the startDateTime property value. Call start time.For failed and unanswered calls, this value can be equal to the invite or failure time. * @return a {@link OffsetDateTime} */ @jakarta.annotation.Nullable @@ -256,7 +256,7 @@ public String getUserId() { return this.backingStore.get("userId"); } /** - * Gets the userPrincipalName property value. UserPrincipalName (sign-in name) in Microsoft Entra ID. This is usually the same as the user's SIP Address, and can be the same as the user's email address. + * Gets the userPrincipalName property value. UserPrincipalName (sign-in name) in Microsoft Entra ID. This value is usually the same as the user's SIP Address, and can be the same as the user's email address. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -365,7 +365,7 @@ public void setFailureDateTime(@jakarta.annotation.Nullable final OffsetDateTime this.backingStore.set("failureDateTime", value); } /** - * Sets the finalSipCode property value. The code with which the call ended. For more information, see RFC 3261. + * Sets the finalSipCode property value. The final response code with which the call ended. For more information, see RFC 3261. * @param value Value to set for the finalSipCode property. */ public void setFinalSipCode(@jakarta.annotation.Nullable final Integer value) { @@ -386,7 +386,7 @@ public void setId(@jakarta.annotation.Nullable final String value) { this.backingStore.set("id", value); } /** - * Sets the inviteDateTime property value. When the initial invite was sent. + * Sets the inviteDateTime property value. The date and time when the initial invite was sent. * @param value Value to set for the inviteDateTime property. */ public void setInviteDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) { @@ -421,7 +421,7 @@ public void setSignalingLocation(@jakarta.annotation.Nullable final String value this.backingStore.set("signalingLocation", value); } /** - * Sets the startDateTime property value. Call start time.For failed and unanswered calls, this can be equal to the invite or failure time. + * Sets the startDateTime property value. Call start time.For failed and unanswered calls, this value can be equal to the invite or failure time. * @param value Value to set for the startDateTime property. */ public void setStartDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) { @@ -456,7 +456,7 @@ public void setUserId(@jakarta.annotation.Nullable final String value) { this.backingStore.set("userId", value); } /** - * Sets the userPrincipalName property value. UserPrincipalName (sign-in name) in Microsoft Entra ID. This is usually the same as the user's SIP Address, and can be the same as the user's email address. + * Sets the userPrincipalName property value. UserPrincipalName (sign-in name) in Microsoft Entra ID. This value is usually the same as the user's SIP Address, and can be the same as the user's email address. * @param value Value to set for the userPrincipalName property. */ public void setUserPrincipalName(@jakarta.annotation.Nullable final String value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/identitygovernance/Task.java b/src/main/java/com/microsoft/graph/generated/models/identitygovernance/Task.java index 30c63d44046..42cbc85350d 100644 --- a/src/main/java/com/microsoft/graph/generated/models/identitygovernance/Task.java +++ b/src/main/java/com/microsoft/graph/generated/models/identitygovernance/Task.java @@ -44,7 +44,7 @@ public EnumSet getCategory() { return this.backingStore.get("category"); } /** - * Gets the continueOnError property value. A boolean value that specifies whether, if this task fails, the workflow will stop, and subsequent tasks will not run. Optional. + * Gets the continueOnError property value. A boolean value that specifies whether, if this task fails, the workflow stops, and subsequent tasks aren't run. Optional. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -68,7 +68,7 @@ public String getDisplayName() { return this.backingStore.get("displayName"); } /** - * Gets the executionSequence property value. An integer that states in what order the task will run in a workflow.Supports $orderby. + * Gets the executionSequence property value. An integer that states in what order the task runs in a workflow.Supports $orderby. * @return a {@link Integer} */ @jakarta.annotation.Nullable @@ -102,7 +102,7 @@ public Boolean getIsEnabled() { return this.backingStore.get("isEnabled"); } /** - * Gets the taskDefinitionId property value. A unique template identifier for the task. For more information about the tasks that Lifecycle Workflows currently supports and their unique identifiers, see supported tasks. Required.Supports $filter(eq, ne). + * Gets the taskDefinitionId property value. A unique template identifier for the task. For more information about the tasks that Lifecycle Workflows currently supports and their unique identifiers, see Configure the arguments for built-in Lifecycle Workflow tasks. Required.Supports $filter(eq, ne). * @return a {@link String} */ @jakarta.annotation.Nullable @@ -149,7 +149,7 @@ public void setCategory(@jakarta.annotation.Nullable final EnumSet>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + return deserializerMap; + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + super.serialize(writer); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/partners/billing/Billing.java b/src/main/java/com/microsoft/graph/generated/models/partners/billing/Billing.java index e9f548bae53..bca491a13ec 100644 --- a/src/main/java/com/microsoft/graph/generated/models/partners/billing/Billing.java +++ b/src/main/java/com/microsoft/graph/generated/models/partners/billing/Billing.java @@ -34,6 +34,7 @@ public Map> getFieldDeserializers final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); deserializerMap.put("manifests", (n) -> { this.setManifests(n.getCollectionOfObjectValues(Manifest::createFromDiscriminatorValue)); }); deserializerMap.put("operations", (n) -> { this.setOperations(n.getCollectionOfObjectValues(Operation::createFromDiscriminatorValue)); }); + deserializerMap.put("reconciliation", (n) -> { this.setReconciliation(n.getObjectValue(BillingReconciliation::createFromDiscriminatorValue)); }); deserializerMap.put("usage", (n) -> { this.setUsage(n.getObjectValue(AzureUsage::createFromDiscriminatorValue)); }); return deserializerMap; } @@ -53,6 +54,14 @@ public java.util.List getManifests() { public java.util.List getOperations() { return this.backingStore.get("operations"); } + /** + * Gets the reconciliation property value. The reconciliation property + * @return a {@link BillingReconciliation} + */ + @jakarta.annotation.Nullable + public BillingReconciliation getReconciliation() { + return this.backingStore.get("reconciliation"); + } /** * Gets the usage property value. The usage property * @return a {@link AzureUsage} @@ -70,6 +79,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ super.serialize(writer); writer.writeCollectionOfObjectValues("manifests", this.getManifests()); writer.writeCollectionOfObjectValues("operations", this.getOperations()); + writer.writeObjectValue("reconciliation", this.getReconciliation()); writer.writeObjectValue("usage", this.getUsage()); } /** @@ -86,6 +96,13 @@ public void setManifests(@jakarta.annotation.Nullable final java.util.List value) { this.backingStore.set("operations", value); } + /** + * Sets the reconciliation property value. The reconciliation property + * @param value Value to set for the reconciliation property. + */ + public void setReconciliation(@jakarta.annotation.Nullable final BillingReconciliation value) { + this.backingStore.set("reconciliation", value); + } /** * Sets the usage property value. The usage property * @param value Value to set for the usage property. diff --git a/src/main/java/com/microsoft/graph/generated/models/partners/billing/BillingReconciliation.java b/src/main/java/com/microsoft/graph/generated/models/partners/billing/BillingReconciliation.java new file mode 100644 index 00000000000..78eba7d1e56 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/partners/billing/BillingReconciliation.java @@ -0,0 +1,62 @@ +package com.microsoft.graph.models.partners.billing; + +import com.microsoft.graph.models.Entity; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class BillingReconciliation extends Entity implements Parsable { + /** + * Instantiates a new {@link BillingReconciliation} and sets the default values. + */ + public BillingReconciliation() { + super(); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link BillingReconciliation} + */ + @jakarta.annotation.Nonnull + public static BillingReconciliation createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new BillingReconciliation(); + } + /** + * Gets the billed property value. The billed property + * @return a {@link BilledReconciliation} + */ + @jakarta.annotation.Nullable + public BilledReconciliation getBilled() { + return this.backingStore.get("billed"); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("billed", (n) -> { this.setBilled(n.getObjectValue(BilledReconciliation::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + super.serialize(writer); + writer.writeObjectValue("billed", this.getBilled()); + } + /** + * Sets the billed property value. The billed property + * @param value Value to set for the billed property. + */ + public void setBilled(@jakarta.annotation.Nullable final BilledReconciliation value) { + this.backingStore.set("billed", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/search/Acronym.java b/src/main/java/com/microsoft/graph/generated/models/search/Acronym.java new file mode 100644 index 00000000000..4636df4ef1e --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/search/Acronym.java @@ -0,0 +1,78 @@ +package com.microsoft.graph.models.search; + +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class Acronym extends SearchAnswer implements Parsable { + /** + * Instantiates a new {@link Acronym} and sets the default values. + */ + public Acronym() { + super(); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link Acronym} + */ + @jakarta.annotation.Nonnull + public static Acronym createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new Acronym(); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("standsFor", (n) -> { this.setStandsFor(n.getStringValue()); }); + deserializerMap.put("state", (n) -> { this.setState(n.getEnumValue(AnswerState::forValue)); }); + return deserializerMap; + } + /** + * Gets the standsFor property value. What the acronym stands for. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getStandsFor() { + return this.backingStore.get("standsFor"); + } + /** + * Gets the state property value. The state property + * @return a {@link AnswerState} + */ + @jakarta.annotation.Nullable + public AnswerState getState() { + return this.backingStore.get("state"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + super.serialize(writer); + writer.writeStringValue("standsFor", this.getStandsFor()); + writer.writeEnumValue("state", this.getState()); + } + /** + * Sets the standsFor property value. What the acronym stands for. + * @param value Value to set for the standsFor property. + */ + public void setStandsFor(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("standsFor", value); + } + /** + * Sets the state property value. The state property + * @param value Value to set for the state property. + */ + public void setState(@jakarta.annotation.Nullable final AnswerState value) { + this.backingStore.set("state", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/search/AcronymCollectionResponse.java b/src/main/java/com/microsoft/graph/generated/models/search/AcronymCollectionResponse.java new file mode 100644 index 00000000000..143b4155c21 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/search/AcronymCollectionResponse.java @@ -0,0 +1,62 @@ +package com.microsoft.graph.models.search; + +import com.microsoft.graph.models.BaseCollectionPaginationCountResponse; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class AcronymCollectionResponse extends BaseCollectionPaginationCountResponse implements Parsable { + /** + * Instantiates a new {@link AcronymCollectionResponse} and sets the default values. + */ + public AcronymCollectionResponse() { + super(); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link AcronymCollectionResponse} + */ + @jakarta.annotation.Nonnull + public static AcronymCollectionResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new AcronymCollectionResponse(); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("value", (n) -> { this.setValue(n.getCollectionOfObjectValues(Acronym::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the value property value. The value property + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getValue() { + return this.backingStore.get("value"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + super.serialize(writer); + writer.writeCollectionOfObjectValues("value", this.getValue()); + } + /** + * Sets the value property value. The value property + * @param value Value to set for the value property. + */ + public void setValue(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("value", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/search/AnswerKeyword.java b/src/main/java/com/microsoft/graph/generated/models/search/AnswerKeyword.java new file mode 100644 index 00000000000..cc85d50ddf3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/search/AnswerKeyword.java @@ -0,0 +1,158 @@ +package com.microsoft.graph.models.search; + +import com.microsoft.kiota.serialization.AdditionalDataHolder; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import com.microsoft.kiota.store.BackedModel; +import com.microsoft.kiota.store.BackingStore; +import com.microsoft.kiota.store.BackingStoreFactorySingleton; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class AnswerKeyword implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link AnswerKeyword} and sets the default values. + */ + public AnswerKeyword() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link AnswerKeyword} + */ + @jakarta.annotation.Nonnull + public static AnswerKeyword createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new AnswerKeyword(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(4); + deserializerMap.put("keywords", (n) -> { this.setKeywords(n.getCollectionOfPrimitiveValues(String.class)); }); + deserializerMap.put("matchSimilarKeywords", (n) -> { this.setMatchSimilarKeywords(n.getBooleanValue()); }); + deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); }); + deserializerMap.put("reservedKeywords", (n) -> { this.setReservedKeywords(n.getCollectionOfPrimitiveValues(String.class)); }); + return deserializerMap; + } + /** + * Gets the keywords property value. A collection of keywords used to trigger the search answer. + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getKeywords() { + return this.backingStore.get("keywords"); + } + /** + * Gets the matchSimilarKeywords property value. If true, indicates that the search term contains similar words to the keywords that should trigger the search answer. + * @return a {@link Boolean} + */ + @jakarta.annotation.Nullable + public Boolean getMatchSimilarKeywords() { + return this.backingStore.get("matchSimilarKeywords"); + } + /** + * Gets the @odata.type property value. The OdataType property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getOdataType() { + return this.backingStore.get("odataType"); + } + /** + * Gets the reservedKeywords property value. Unique keywords that guarantee the search answer is triggered. + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getReservedKeywords() { + return this.backingStore.get("reservedKeywords"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + writer.writeCollectionOfPrimitiveValues("keywords", this.getKeywords()); + writer.writeBooleanValue("matchSimilarKeywords", this.getMatchSimilarKeywords()); + writer.writeStringValue("@odata.type", this.getOdataType()); + writer.writeCollectionOfPrimitiveValues("reservedKeywords", this.getReservedKeywords()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { + this.backingStore.set("additionalData", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @param value Value to set for the backingStore property. + */ + public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { + Objects.requireNonNull(value); + this.backingStore = value; + } + /** + * Sets the keywords property value. A collection of keywords used to trigger the search answer. + * @param value Value to set for the keywords property. + */ + public void setKeywords(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("keywords", value); + } + /** + * Sets the matchSimilarKeywords property value. If true, indicates that the search term contains similar words to the keywords that should trigger the search answer. + * @param value Value to set for the matchSimilarKeywords property. + */ + public void setMatchSimilarKeywords(@jakarta.annotation.Nullable final Boolean value) { + this.backingStore.set("matchSimilarKeywords", value); + } + /** + * Sets the @odata.type property value. The OdataType property + * @param value Value to set for the @odata.type property. + */ + public void setOdataType(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("odataType", value); + } + /** + * Sets the reservedKeywords property value. Unique keywords that guarantee the search answer is triggered. + * @param value Value to set for the reservedKeywords property. + */ + public void setReservedKeywords(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("reservedKeywords", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/search/AnswerState.java b/src/main/java/com/microsoft/graph/generated/models/search/AnswerState.java new file mode 100644 index 00000000000..5a0f01a462a --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/search/AnswerState.java @@ -0,0 +1,29 @@ +package com.microsoft.graph.models.search; + +import com.microsoft.kiota.serialization.ValuedEnum; +import java.util.Objects; + +@jakarta.annotation.Generated("com.microsoft.kiota") +public enum AnswerState implements ValuedEnum { + Published("published"), + Draft("draft"), + Excluded("excluded"), + UnknownFutureValue("unknownFutureValue"); + public final String value; + AnswerState(final String value) { + this.value = value; + } + @jakarta.annotation.Nonnull + public String getValue() { return this.value; } + @jakarta.annotation.Nullable + public static AnswerState forValue(@jakarta.annotation.Nonnull final String searchValue) { + Objects.requireNonNull(searchValue); + switch(searchValue) { + case "published": return Published; + case "draft": return Draft; + case "excluded": return Excluded; + case "unknownFutureValue": return UnknownFutureValue; + default: return null; + } + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/search/AnswerVariant.java b/src/main/java/com/microsoft/graph/generated/models/search/AnswerVariant.java new file mode 100644 index 00000000000..f31b5a5a2c7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/search/AnswerVariant.java @@ -0,0 +1,193 @@ +package com.microsoft.graph.models.search; + +import com.microsoft.graph.models.DevicePlatformType; +import com.microsoft.kiota.serialization.AdditionalDataHolder; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import com.microsoft.kiota.store.BackedModel; +import com.microsoft.kiota.store.BackingStore; +import com.microsoft.kiota.store.BackingStoreFactorySingleton; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class AnswerVariant implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link AnswerVariant} and sets the default values. + */ + public AnswerVariant() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link AnswerVariant} + */ + @jakarta.annotation.Nonnull + public static AnswerVariant createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new AnswerVariant(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * Gets the description property value. The answer variation description that is shown on the search results page. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getDescription() { + return this.backingStore.get("description"); + } + /** + * Gets the displayName property value. The answer variation name that is displayed in search results. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getDisplayName() { + return this.backingStore.get("displayName"); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(6); + deserializerMap.put("description", (n) -> { this.setDescription(n.getStringValue()); }); + deserializerMap.put("displayName", (n) -> { this.setDisplayName(n.getStringValue()); }); + deserializerMap.put("languageTag", (n) -> { this.setLanguageTag(n.getStringValue()); }); + deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); }); + deserializerMap.put("platform", (n) -> { this.setPlatform(n.getEnumValue(DevicePlatformType::forValue)); }); + deserializerMap.put("webUrl", (n) -> { this.setWebUrl(n.getStringValue()); }); + return deserializerMap; + } + /** + * Gets the languageTag property value. The country or region that can view this answer variation. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getLanguageTag() { + return this.backingStore.get("languageTag"); + } + /** + * Gets the @odata.type property value. The OdataType property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getOdataType() { + return this.backingStore.get("odataType"); + } + /** + * Gets the platform property value. The device or operating system that can view this answer variation. Possible values are: android, androidForWork, ios, macOS, windowsPhone81, windowsPhone81AndLater, windows10AndLater, androidWorkProfile, unknown, androidASOP, androidMobileApplicationManagement, iOSMobileApplicationManagement, unknownFutureValue. + * @return a {@link DevicePlatformType} + */ + @jakarta.annotation.Nullable + public DevicePlatformType getPlatform() { + return this.backingStore.get("platform"); + } + /** + * Gets the webUrl property value. The URL link for the answer variation. When users select this answer variation from the search results, they're directed to the specified URL. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getWebUrl() { + return this.backingStore.get("webUrl"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + writer.writeStringValue("description", this.getDescription()); + writer.writeStringValue("displayName", this.getDisplayName()); + writer.writeStringValue("languageTag", this.getLanguageTag()); + writer.writeStringValue("@odata.type", this.getOdataType()); + writer.writeEnumValue("platform", this.getPlatform()); + writer.writeStringValue("webUrl", this.getWebUrl()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { + this.backingStore.set("additionalData", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @param value Value to set for the backingStore property. + */ + public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { + Objects.requireNonNull(value); + this.backingStore = value; + } + /** + * Sets the description property value. The answer variation description that is shown on the search results page. + * @param value Value to set for the description property. + */ + public void setDescription(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("description", value); + } + /** + * Sets the displayName property value. The answer variation name that is displayed in search results. + * @param value Value to set for the displayName property. + */ + public void setDisplayName(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("displayName", value); + } + /** + * Sets the languageTag property value. The country or region that can view this answer variation. + * @param value Value to set for the languageTag property. + */ + public void setLanguageTag(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("languageTag", value); + } + /** + * Sets the @odata.type property value. The OdataType property + * @param value Value to set for the @odata.type property. + */ + public void setOdataType(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("odataType", value); + } + /** + * Sets the platform property value. The device or operating system that can view this answer variation. Possible values are: android, androidForWork, ios, macOS, windowsPhone81, windowsPhone81AndLater, windows10AndLater, androidWorkProfile, unknown, androidASOP, androidMobileApplicationManagement, iOSMobileApplicationManagement, unknownFutureValue. + * @param value Value to set for the platform property. + */ + public void setPlatform(@jakarta.annotation.Nullable final DevicePlatformType value) { + this.backingStore.set("platform", value); + } + /** + * Sets the webUrl property value. The URL link for the answer variation. When users select this answer variation from the search results, they're directed to the specified URL. + * @param value Value to set for the webUrl property. + */ + public void setWebUrl(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("webUrl", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/search/Bookmark.java b/src/main/java/com/microsoft/graph/generated/models/search/Bookmark.java new file mode 100644 index 00000000000..ff01ee669da --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/search/Bookmark.java @@ -0,0 +1,233 @@ +package com.microsoft.graph.models.search; + +import com.microsoft.graph.models.DevicePlatformType; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class Bookmark extends SearchAnswer implements Parsable { + /** + * Instantiates a new {@link Bookmark} and sets the default values. + */ + public Bookmark() { + super(); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link Bookmark} + */ + @jakarta.annotation.Nonnull + public static Bookmark createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new Bookmark(); + } + /** + * Gets the availabilityEndDateTime property value. Date and time when the bookmark stops appearing as a search result. Set as null for always available. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * @return a {@link OffsetDateTime} + */ + @jakarta.annotation.Nullable + public OffsetDateTime getAvailabilityEndDateTime() { + return this.backingStore.get("availabilityEndDateTime"); + } + /** + * Gets the availabilityStartDateTime property value. Date and time when the bookmark starts to appear as a search result. Set as null for always available. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * @return a {@link OffsetDateTime} + */ + @jakarta.annotation.Nullable + public OffsetDateTime getAvailabilityStartDateTime() { + return this.backingStore.get("availabilityStartDateTime"); + } + /** + * Gets the categories property value. Categories commonly used to describe this bookmark. For example, IT and HR. + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getCategories() { + return this.backingStore.get("categories"); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("availabilityEndDateTime", (n) -> { this.setAvailabilityEndDateTime(n.getOffsetDateTimeValue()); }); + deserializerMap.put("availabilityStartDateTime", (n) -> { this.setAvailabilityStartDateTime(n.getOffsetDateTimeValue()); }); + deserializerMap.put("categories", (n) -> { this.setCategories(n.getCollectionOfPrimitiveValues(String.class)); }); + deserializerMap.put("groupIds", (n) -> { this.setGroupIds(n.getCollectionOfPrimitiveValues(String.class)); }); + deserializerMap.put("isSuggested", (n) -> { this.setIsSuggested(n.getBooleanValue()); }); + deserializerMap.put("keywords", (n) -> { this.setKeywords(n.getObjectValue(AnswerKeyword::createFromDiscriminatorValue)); }); + deserializerMap.put("languageTags", (n) -> { this.setLanguageTags(n.getCollectionOfPrimitiveValues(String.class)); }); + deserializerMap.put("platforms", (n) -> { this.setPlatforms(n.getCollectionOfEnumValues(DevicePlatformType::forValue)); }); + deserializerMap.put("powerAppIds", (n) -> { this.setPowerAppIds(n.getCollectionOfPrimitiveValues(String.class)); }); + deserializerMap.put("state", (n) -> { this.setState(n.getEnumValue(AnswerState::forValue)); }); + deserializerMap.put("targetedVariations", (n) -> { this.setTargetedVariations(n.getCollectionOfObjectValues(AnswerVariant::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the groupIds property value. The list of security groups that are able to view this bookmark. + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getGroupIds() { + return this.backingStore.get("groupIds"); + } + /** + * Gets the isSuggested property value. True if this bookmark was suggested to the admin, by a user, or was mined and suggested by Microsoft. Read-only. + * @return a {@link Boolean} + */ + @jakarta.annotation.Nullable + public Boolean getIsSuggested() { + return this.backingStore.get("isSuggested"); + } + /** + * Gets the keywords property value. Keywords that trigger this bookmark to appear in search results. + * @return a {@link AnswerKeyword} + */ + @jakarta.annotation.Nullable + public AnswerKeyword getKeywords() { + return this.backingStore.get("keywords"); + } + /** + * Gets the languageTags property value. A list of geographically specific language names in which this bookmark can be viewed. Each language tag value follows the pattern {language}-{region}. For example, en-us is English as used in the United States. For the list of possible values, see Supported language tags. + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getLanguageTags() { + return this.backingStore.get("languageTags"); + } + /** + * Gets the platforms property value. List of devices and operating systems that are able to view this bookmark. Possible values are: android, androidForWork, ios, macOS, windowsPhone81, windowsPhone81AndLater, windows10AndLater, androidWorkProfile, unknown, androidASOP, androidMobileApplicationManagement, iOSMobileApplicationManagement, unknownFutureValue. + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getPlatforms() { + return this.backingStore.get("platforms"); + } + /** + * Gets the powerAppIds property value. List of Power Apps associated with this bookmark. If users add existing Power Apps to a bookmark, they can complete tasks directly on the search results page, such as entering vacation time or reporting expenses. + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getPowerAppIds() { + return this.backingStore.get("powerAppIds"); + } + /** + * Gets the state property value. The state property + * @return a {@link AnswerState} + */ + @jakarta.annotation.Nullable + public AnswerState getState() { + return this.backingStore.get("state"); + } + /** + * Gets the targetedVariations property value. Variations of a bookmark for different countries or devices. Use when you need to show different content to users based on their device, country/region, or both. The date and group settings apply to all variations. + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getTargetedVariations() { + return this.backingStore.get("targetedVariations"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + super.serialize(writer); + writer.writeOffsetDateTimeValue("availabilityEndDateTime", this.getAvailabilityEndDateTime()); + writer.writeOffsetDateTimeValue("availabilityStartDateTime", this.getAvailabilityStartDateTime()); + writer.writeCollectionOfPrimitiveValues("categories", this.getCategories()); + writer.writeCollectionOfPrimitiveValues("groupIds", this.getGroupIds()); + writer.writeBooleanValue("isSuggested", this.getIsSuggested()); + writer.writeObjectValue("keywords", this.getKeywords()); + writer.writeCollectionOfPrimitiveValues("languageTags", this.getLanguageTags()); + writer.writeCollectionOfEnumValues("platforms", this.getPlatforms()); + writer.writeCollectionOfPrimitiveValues("powerAppIds", this.getPowerAppIds()); + writer.writeEnumValue("state", this.getState()); + writer.writeCollectionOfObjectValues("targetedVariations", this.getTargetedVariations()); + } + /** + * Sets the availabilityEndDateTime property value. Date and time when the bookmark stops appearing as a search result. Set as null for always available. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * @param value Value to set for the availabilityEndDateTime property. + */ + public void setAvailabilityEndDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) { + this.backingStore.set("availabilityEndDateTime", value); + } + /** + * Sets the availabilityStartDateTime property value. Date and time when the bookmark starts to appear as a search result. Set as null for always available. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * @param value Value to set for the availabilityStartDateTime property. + */ + public void setAvailabilityStartDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) { + this.backingStore.set("availabilityStartDateTime", value); + } + /** + * Sets the categories property value. Categories commonly used to describe this bookmark. For example, IT and HR. + * @param value Value to set for the categories property. + */ + public void setCategories(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("categories", value); + } + /** + * Sets the groupIds property value. The list of security groups that are able to view this bookmark. + * @param value Value to set for the groupIds property. + */ + public void setGroupIds(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("groupIds", value); + } + /** + * Sets the isSuggested property value. True if this bookmark was suggested to the admin, by a user, or was mined and suggested by Microsoft. Read-only. + * @param value Value to set for the isSuggested property. + */ + public void setIsSuggested(@jakarta.annotation.Nullable final Boolean value) { + this.backingStore.set("isSuggested", value); + } + /** + * Sets the keywords property value. Keywords that trigger this bookmark to appear in search results. + * @param value Value to set for the keywords property. + */ + public void setKeywords(@jakarta.annotation.Nullable final AnswerKeyword value) { + this.backingStore.set("keywords", value); + } + /** + * Sets the languageTags property value. A list of geographically specific language names in which this bookmark can be viewed. Each language tag value follows the pattern {language}-{region}. For example, en-us is English as used in the United States. For the list of possible values, see Supported language tags. + * @param value Value to set for the languageTags property. + */ + public void setLanguageTags(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("languageTags", value); + } + /** + * Sets the platforms property value. List of devices and operating systems that are able to view this bookmark. Possible values are: android, androidForWork, ios, macOS, windowsPhone81, windowsPhone81AndLater, windows10AndLater, androidWorkProfile, unknown, androidASOP, androidMobileApplicationManagement, iOSMobileApplicationManagement, unknownFutureValue. + * @param value Value to set for the platforms property. + */ + public void setPlatforms(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("platforms", value); + } + /** + * Sets the powerAppIds property value. List of Power Apps associated with this bookmark. If users add existing Power Apps to a bookmark, they can complete tasks directly on the search results page, such as entering vacation time or reporting expenses. + * @param value Value to set for the powerAppIds property. + */ + public void setPowerAppIds(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("powerAppIds", value); + } + /** + * Sets the state property value. The state property + * @param value Value to set for the state property. + */ + public void setState(@jakarta.annotation.Nullable final AnswerState value) { + this.backingStore.set("state", value); + } + /** + * Sets the targetedVariations property value. Variations of a bookmark for different countries or devices. Use when you need to show different content to users based on their device, country/region, or both. The date and group settings apply to all variations. + * @param value Value to set for the targetedVariations property. + */ + public void setTargetedVariations(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("targetedVariations", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/search/BookmarkCollectionResponse.java b/src/main/java/com/microsoft/graph/generated/models/search/BookmarkCollectionResponse.java new file mode 100644 index 00000000000..632f0f0b55c --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/search/BookmarkCollectionResponse.java @@ -0,0 +1,62 @@ +package com.microsoft.graph.models.search; + +import com.microsoft.graph.models.BaseCollectionPaginationCountResponse; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class BookmarkCollectionResponse extends BaseCollectionPaginationCountResponse implements Parsable { + /** + * Instantiates a new {@link BookmarkCollectionResponse} and sets the default values. + */ + public BookmarkCollectionResponse() { + super(); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link BookmarkCollectionResponse} + */ + @jakarta.annotation.Nonnull + public static BookmarkCollectionResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new BookmarkCollectionResponse(); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("value", (n) -> { this.setValue(n.getCollectionOfObjectValues(Bookmark::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the value property value. The value property + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getValue() { + return this.backingStore.get("value"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + super.serialize(writer); + writer.writeCollectionOfObjectValues("value", this.getValue()); + } + /** + * Sets the value property value. The value property + * @param value Value to set for the value property. + */ + public void setValue(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("value", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/search/Identity.java b/src/main/java/com/microsoft/graph/generated/models/search/Identity.java new file mode 100644 index 00000000000..d77dea0b557 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/search/Identity.java @@ -0,0 +1,141 @@ +package com.microsoft.graph.models.search; + +import com.microsoft.kiota.serialization.AdditionalDataHolder; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import com.microsoft.kiota.store.BackedModel; +import com.microsoft.kiota.store.BackingStore; +import com.microsoft.kiota.store.BackingStoreFactorySingleton; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class Identity implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link Identity} and sets the default values. + */ + public Identity() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link Identity} + */ + @jakarta.annotation.Nonnull + public static Identity createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new Identity(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * Gets the displayName property value. The displayName property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getDisplayName() { + return this.backingStore.get("displayName"); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(3); + deserializerMap.put("displayName", (n) -> { this.setDisplayName(n.getStringValue()); }); + deserializerMap.put("id", (n) -> { this.setId(n.getStringValue()); }); + deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); }); + return deserializerMap; + } + /** + * Gets the id property value. The id property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getId() { + return this.backingStore.get("id"); + } + /** + * Gets the @odata.type property value. The OdataType property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getOdataType() { + return this.backingStore.get("odataType"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + writer.writeStringValue("displayName", this.getDisplayName()); + writer.writeStringValue("id", this.getId()); + writer.writeStringValue("@odata.type", this.getOdataType()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { + this.backingStore.set("additionalData", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @param value Value to set for the backingStore property. + */ + public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { + Objects.requireNonNull(value); + this.backingStore = value; + } + /** + * Sets the displayName property value. The displayName property + * @param value Value to set for the displayName property. + */ + public void setDisplayName(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("displayName", value); + } + /** + * Sets the id property value. The id property + * @param value Value to set for the id property. + */ + public void setId(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("id", value); + } + /** + * Sets the @odata.type property value. The OdataType property + * @param value Value to set for the @odata.type property. + */ + public void setOdataType(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("odataType", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/search/IdentitySet.java b/src/main/java/com/microsoft/graph/generated/models/search/IdentitySet.java new file mode 100644 index 00000000000..3d9dc2d43e0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/search/IdentitySet.java @@ -0,0 +1,158 @@ +package com.microsoft.graph.models.search; + +import com.microsoft.kiota.serialization.AdditionalDataHolder; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import com.microsoft.kiota.store.BackedModel; +import com.microsoft.kiota.store.BackingStore; +import com.microsoft.kiota.store.BackingStoreFactorySingleton; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class IdentitySet implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link IdentitySet} and sets the default values. + */ + public IdentitySet() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link IdentitySet} + */ + @jakarta.annotation.Nonnull + public static IdentitySet createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new IdentitySet(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the application property value. The application property + * @return a {@link Identity} + */ + @jakarta.annotation.Nullable + public Identity getApplication() { + return this.backingStore.get("application"); + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * Gets the device property value. The device property + * @return a {@link Identity} + */ + @jakarta.annotation.Nullable + public Identity getDevice() { + return this.backingStore.get("device"); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(4); + deserializerMap.put("application", (n) -> { this.setApplication(n.getObjectValue(Identity::createFromDiscriminatorValue)); }); + deserializerMap.put("device", (n) -> { this.setDevice(n.getObjectValue(Identity::createFromDiscriminatorValue)); }); + deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); }); + deserializerMap.put("user", (n) -> { this.setUser(n.getObjectValue(Identity::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the @odata.type property value. The OdataType property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getOdataType() { + return this.backingStore.get("odataType"); + } + /** + * Gets the user property value. The user property + * @return a {@link Identity} + */ + @jakarta.annotation.Nullable + public Identity getUser() { + return this.backingStore.get("user"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + writer.writeObjectValue("application", this.getApplication()); + writer.writeObjectValue("device", this.getDevice()); + writer.writeStringValue("@odata.type", this.getOdataType()); + writer.writeObjectValue("user", this.getUser()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { + this.backingStore.set("additionalData", value); + } + /** + * Sets the application property value. The application property + * @param value Value to set for the application property. + */ + public void setApplication(@jakarta.annotation.Nullable final Identity value) { + this.backingStore.set("application", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @param value Value to set for the backingStore property. + */ + public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { + Objects.requireNonNull(value); + this.backingStore = value; + } + /** + * Sets the device property value. The device property + * @param value Value to set for the device property. + */ + public void setDevice(@jakarta.annotation.Nullable final Identity value) { + this.backingStore.set("device", value); + } + /** + * Sets the @odata.type property value. The OdataType property + * @param value Value to set for the @odata.type property. + */ + public void setOdataType(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("odataType", value); + } + /** + * Sets the user property value. The user property + * @param value Value to set for the user property. + */ + public void setUser(@jakarta.annotation.Nullable final Identity value) { + this.backingStore.set("user", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/search/Qna.java b/src/main/java/com/microsoft/graph/generated/models/search/Qna.java new file mode 100644 index 00000000000..8b7aa061024 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/search/Qna.java @@ -0,0 +1,199 @@ +package com.microsoft.graph.models.search; + +import com.microsoft.graph.models.DevicePlatformType; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class Qna extends SearchAnswer implements Parsable { + /** + * Instantiates a new {@link Qna} and sets the default values. + */ + public Qna() { + super(); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link Qna} + */ + @jakarta.annotation.Nonnull + public static Qna createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new Qna(); + } + /** + * Gets the availabilityEndDateTime property value. Date and time when the QnA stops appearing as a search result. Set as null for always available. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * @return a {@link OffsetDateTime} + */ + @jakarta.annotation.Nullable + public OffsetDateTime getAvailabilityEndDateTime() { + return this.backingStore.get("availabilityEndDateTime"); + } + /** + * Gets the availabilityStartDateTime property value. Date and time when the QnA starts to appear as a search result. Set as null for always available. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * @return a {@link OffsetDateTime} + */ + @jakarta.annotation.Nullable + public OffsetDateTime getAvailabilityStartDateTime() { + return this.backingStore.get("availabilityStartDateTime"); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("availabilityEndDateTime", (n) -> { this.setAvailabilityEndDateTime(n.getOffsetDateTimeValue()); }); + deserializerMap.put("availabilityStartDateTime", (n) -> { this.setAvailabilityStartDateTime(n.getOffsetDateTimeValue()); }); + deserializerMap.put("groupIds", (n) -> { this.setGroupIds(n.getCollectionOfPrimitiveValues(String.class)); }); + deserializerMap.put("isSuggested", (n) -> { this.setIsSuggested(n.getBooleanValue()); }); + deserializerMap.put("keywords", (n) -> { this.setKeywords(n.getObjectValue(AnswerKeyword::createFromDiscriminatorValue)); }); + deserializerMap.put("languageTags", (n) -> { this.setLanguageTags(n.getCollectionOfPrimitiveValues(String.class)); }); + deserializerMap.put("platforms", (n) -> { this.setPlatforms(n.getCollectionOfEnumValues(DevicePlatformType::forValue)); }); + deserializerMap.put("state", (n) -> { this.setState(n.getEnumValue(AnswerState::forValue)); }); + deserializerMap.put("targetedVariations", (n) -> { this.setTargetedVariations(n.getCollectionOfObjectValues(AnswerVariant::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the groupIds property value. The list of security groups that are able to view this QnA. + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getGroupIds() { + return this.backingStore.get("groupIds"); + } + /** + * Gets the isSuggested property value. True if a user or Microsoft suggested this QnA to the admin. Read-only. + * @return a {@link Boolean} + */ + @jakarta.annotation.Nullable + public Boolean getIsSuggested() { + return this.backingStore.get("isSuggested"); + } + /** + * Gets the keywords property value. Keywords that trigger this QnA to appear in search results. + * @return a {@link AnswerKeyword} + */ + @jakarta.annotation.Nullable + public AnswerKeyword getKeywords() { + return this.backingStore.get("keywords"); + } + /** + * Gets the languageTags property value. A list of geographically specific language names in which this QnA can be viewed. Each language tag value follows the pattern {language}-{region}. For example, en-us is English as used in the United States. For the list of possible values, see Supported language tags. + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getLanguageTags() { + return this.backingStore.get("languageTags"); + } + /** + * Gets the platforms property value. List of devices and operating systems that are able to view this QnA. Possible values are: android, androidForWork, ios, macOS, windowsPhone81, windowsPhone81AndLater, windows10AndLater, androidWorkProfile, unknown, androidASOP, androidMobileApplicationManagement, iOSMobileApplicationManagement, unknownFutureValue. + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getPlatforms() { + return this.backingStore.get("platforms"); + } + /** + * Gets the state property value. The state property + * @return a {@link AnswerState} + */ + @jakarta.annotation.Nullable + public AnswerState getState() { + return this.backingStore.get("state"); + } + /** + * Gets the targetedVariations property value. Variations of a QnA for different countries or devices. Use when you need to show different content to users based on their device, country/region, or both. The date and group settings apply to all variations. + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getTargetedVariations() { + return this.backingStore.get("targetedVariations"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + super.serialize(writer); + writer.writeOffsetDateTimeValue("availabilityEndDateTime", this.getAvailabilityEndDateTime()); + writer.writeOffsetDateTimeValue("availabilityStartDateTime", this.getAvailabilityStartDateTime()); + writer.writeCollectionOfPrimitiveValues("groupIds", this.getGroupIds()); + writer.writeBooleanValue("isSuggested", this.getIsSuggested()); + writer.writeObjectValue("keywords", this.getKeywords()); + writer.writeCollectionOfPrimitiveValues("languageTags", this.getLanguageTags()); + writer.writeCollectionOfEnumValues("platforms", this.getPlatforms()); + writer.writeEnumValue("state", this.getState()); + writer.writeCollectionOfObjectValues("targetedVariations", this.getTargetedVariations()); + } + /** + * Sets the availabilityEndDateTime property value. Date and time when the QnA stops appearing as a search result. Set as null for always available. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * @param value Value to set for the availabilityEndDateTime property. + */ + public void setAvailabilityEndDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) { + this.backingStore.set("availabilityEndDateTime", value); + } + /** + * Sets the availabilityStartDateTime property value. Date and time when the QnA starts to appear as a search result. Set as null for always available. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * @param value Value to set for the availabilityStartDateTime property. + */ + public void setAvailabilityStartDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) { + this.backingStore.set("availabilityStartDateTime", value); + } + /** + * Sets the groupIds property value. The list of security groups that are able to view this QnA. + * @param value Value to set for the groupIds property. + */ + public void setGroupIds(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("groupIds", value); + } + /** + * Sets the isSuggested property value. True if a user or Microsoft suggested this QnA to the admin. Read-only. + * @param value Value to set for the isSuggested property. + */ + public void setIsSuggested(@jakarta.annotation.Nullable final Boolean value) { + this.backingStore.set("isSuggested", value); + } + /** + * Sets the keywords property value. Keywords that trigger this QnA to appear in search results. + * @param value Value to set for the keywords property. + */ + public void setKeywords(@jakarta.annotation.Nullable final AnswerKeyword value) { + this.backingStore.set("keywords", value); + } + /** + * Sets the languageTags property value. A list of geographically specific language names in which this QnA can be viewed. Each language tag value follows the pattern {language}-{region}. For example, en-us is English as used in the United States. For the list of possible values, see Supported language tags. + * @param value Value to set for the languageTags property. + */ + public void setLanguageTags(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("languageTags", value); + } + /** + * Sets the platforms property value. List of devices and operating systems that are able to view this QnA. Possible values are: android, androidForWork, ios, macOS, windowsPhone81, windowsPhone81AndLater, windows10AndLater, androidWorkProfile, unknown, androidASOP, androidMobileApplicationManagement, iOSMobileApplicationManagement, unknownFutureValue. + * @param value Value to set for the platforms property. + */ + public void setPlatforms(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("platforms", value); + } + /** + * Sets the state property value. The state property + * @param value Value to set for the state property. + */ + public void setState(@jakarta.annotation.Nullable final AnswerState value) { + this.backingStore.set("state", value); + } + /** + * Sets the targetedVariations property value. Variations of a QnA for different countries or devices. Use when you need to show different content to users based on their device, country/region, or both. The date and group settings apply to all variations. + * @param value Value to set for the targetedVariations property. + */ + public void setTargetedVariations(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("targetedVariations", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/search/QnaCollectionResponse.java b/src/main/java/com/microsoft/graph/generated/models/search/QnaCollectionResponse.java new file mode 100644 index 00000000000..8e863e513a4 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/search/QnaCollectionResponse.java @@ -0,0 +1,62 @@ +package com.microsoft.graph.models.search; + +import com.microsoft.graph.models.BaseCollectionPaginationCountResponse; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class QnaCollectionResponse extends BaseCollectionPaginationCountResponse implements Parsable { + /** + * Instantiates a new {@link QnaCollectionResponse} and sets the default values. + */ + public QnaCollectionResponse() { + super(); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link QnaCollectionResponse} + */ + @jakarta.annotation.Nonnull + public static QnaCollectionResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new QnaCollectionResponse(); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("value", (n) -> { this.setValue(n.getCollectionOfObjectValues(Qna::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the value property value. The value property + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getValue() { + return this.backingStore.get("value"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + super.serialize(writer); + writer.writeCollectionOfObjectValues("value", this.getValue()); + } + /** + * Sets the value property value. The value property + * @param value Value to set for the value property. + */ + public void setValue(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("value", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/search/SearchAnswer.java b/src/main/java/com/microsoft/graph/generated/models/search/SearchAnswer.java new file mode 100644 index 00000000000..306e9a1d6e4 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/search/SearchAnswer.java @@ -0,0 +1,140 @@ +package com.microsoft.graph.models.search; + +import com.microsoft.graph.models.Entity; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class SearchAnswer extends Entity implements Parsable { + /** + * Instantiates a new {@link SearchAnswer} and sets the default values. + */ + public SearchAnswer() { + super(); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link SearchAnswer} + */ + @jakarta.annotation.Nonnull + public static SearchAnswer createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + final ParseNode mappingValueNode = parseNode.getChildNode("@odata.type"); + if (mappingValueNode != null) { + final String mappingValue = mappingValueNode.getStringValue(); + switch (mappingValue) { + case "#microsoft.graph.search.acronym": return new Acronym(); + case "#microsoft.graph.search.bookmark": return new Bookmark(); + case "#microsoft.graph.search.qna": return new Qna(); + } + } + return new SearchAnswer(); + } + /** + * Gets the description property value. The search answer description that is shown on the search results page. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getDescription() { + return this.backingStore.get("description"); + } + /** + * Gets the displayName property value. The search answer name that is displayed in search results. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getDisplayName() { + return this.backingStore.get("displayName"); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("description", (n) -> { this.setDescription(n.getStringValue()); }); + deserializerMap.put("displayName", (n) -> { this.setDisplayName(n.getStringValue()); }); + deserializerMap.put("lastModifiedBy", (n) -> { this.setLastModifiedBy(n.getObjectValue(IdentitySet::createFromDiscriminatorValue)); }); + deserializerMap.put("lastModifiedDateTime", (n) -> { this.setLastModifiedDateTime(n.getOffsetDateTimeValue()); }); + deserializerMap.put("webUrl", (n) -> { this.setWebUrl(n.getStringValue()); }); + return deserializerMap; + } + /** + * Gets the lastModifiedBy property value. Details of the user who created or last modified the search answer. Read-only. + * @return a {@link IdentitySet} + */ + @jakarta.annotation.Nullable + public IdentitySet getLastModifiedBy() { + return this.backingStore.get("lastModifiedBy"); + } + /** + * Gets the lastModifiedDateTime property value. Date and time when the search answer was created or last edited. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. + * @return a {@link OffsetDateTime} + */ + @jakarta.annotation.Nullable + public OffsetDateTime getLastModifiedDateTime() { + return this.backingStore.get("lastModifiedDateTime"); + } + /** + * Gets the webUrl property value. The URL link for the search answer. When users select this search answer from the search results, they are directed to the specified URL. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getWebUrl() { + return this.backingStore.get("webUrl"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + super.serialize(writer); + writer.writeStringValue("description", this.getDescription()); + writer.writeStringValue("displayName", this.getDisplayName()); + writer.writeObjectValue("lastModifiedBy", this.getLastModifiedBy()); + writer.writeOffsetDateTimeValue("lastModifiedDateTime", this.getLastModifiedDateTime()); + writer.writeStringValue("webUrl", this.getWebUrl()); + } + /** + * Sets the description property value. The search answer description that is shown on the search results page. + * @param value Value to set for the description property. + */ + public void setDescription(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("description", value); + } + /** + * Sets the displayName property value. The search answer name that is displayed in search results. + * @param value Value to set for the displayName property. + */ + public void setDisplayName(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("displayName", value); + } + /** + * Sets the lastModifiedBy property value. Details of the user who created or last modified the search answer. Read-only. + * @param value Value to set for the lastModifiedBy property. + */ + public void setLastModifiedBy(@jakarta.annotation.Nullable final IdentitySet value) { + this.backingStore.set("lastModifiedBy", value); + } + /** + * Sets the lastModifiedDateTime property value. Date and time when the search answer was created or last edited. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. + * @param value Value to set for the lastModifiedDateTime property. + */ + public void setLastModifiedDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) { + this.backingStore.set("lastModifiedDateTime", value); + } + /** + * Sets the webUrl property value. The URL link for the search answer. When users select this search answer from the search results, they are directed to the specified URL. + * @param value Value to set for the webUrl property. + */ + public void setWebUrl(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("webUrl", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/security/Alert.java b/src/main/java/com/microsoft/graph/generated/models/security/Alert.java index 5062dc41006..587ed229f86 100644 --- a/src/main/java/com/microsoft/graph/generated/models/security/Alert.java +++ b/src/main/java/com/microsoft/graph/generated/models/security/Alert.java @@ -34,6 +34,14 @@ public static Alert createFromDiscriminatorValue(@jakarta.annotation.Nonnull fin public String getActorDisplayName() { return this.backingStore.get("actorDisplayName"); } + /** + * Gets the additionalData property value. A collection of other alert properties, including user-defined properties. Any custom details defined in the alert, and any dynamic content in the alert details, are stored here. + * @return a {@link Dictionary} + */ + @jakarta.annotation.Nullable + public Dictionary getAdditionalDataProperty() { + return this.backingStore.get("additionalDataProperty"); + } /** * Gets the alertPolicyId property value. The ID of the policy that generated the alert, and populated when there is a specific policy that generated the alert, whether configured by a customer or a built-in policy. * @return a {@link String} @@ -138,6 +146,7 @@ public java.util.List getEvidence() { public Map> getFieldDeserializers() { final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); deserializerMap.put("actorDisplayName", (n) -> { this.setActorDisplayName(n.getStringValue()); }); + deserializerMap.put("additionalData", (n) -> { this.setAdditionalDataProperty(n.getObjectValue(Dictionary::createFromDiscriminatorValue)); }); deserializerMap.put("alertPolicyId", (n) -> { this.setAlertPolicyId(n.getStringValue()); }); deserializerMap.put("alertWebUrl", (n) -> { this.setAlertWebUrl(n.getStringValue()); }); deserializerMap.put("assignedTo", (n) -> { this.setAssignedTo(n.getStringValue()); }); @@ -322,6 +331,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ Objects.requireNonNull(writer); super.serialize(writer); writer.writeStringValue("actorDisplayName", this.getActorDisplayName()); + writer.writeObjectValue("additionalData", this.getAdditionalDataProperty()); writer.writeStringValue("alertPolicyId", this.getAlertPolicyId()); writer.writeStringValue("alertWebUrl", this.getAlertWebUrl()); writer.writeStringValue("assignedTo", this.getAssignedTo()); @@ -360,6 +370,13 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ public void setActorDisplayName(@jakarta.annotation.Nullable final String value) { this.backingStore.set("actorDisplayName", value); } + /** + * Sets the additionalData property value. A collection of other alert properties, including user-defined properties. Any custom details defined in the alert, and any dynamic content in the alert details, are stored here. + * @param value Value to set for the additionalData property. + */ + public void setAdditionalDataProperty(@jakarta.annotation.Nullable final Dictionary value) { + this.backingStore.set("additionalDataProperty", value); + } /** * Sets the alertPolicyId property value. The ID of the policy that generated the alert, and populated when there is a specific policy that generated the alert, whether configured by a customer or a built-in policy. * @param value Value to set for the alertPolicyId property. diff --git a/src/main/java/com/microsoft/graph/generated/models/security/AlertEvidence.java b/src/main/java/com/microsoft/graph/generated/models/security/AlertEvidence.java index be98ec0edf7..d950171638d 100644 --- a/src/main/java/com/microsoft/graph/generated/models/security/AlertEvidence.java +++ b/src/main/java/com/microsoft/graph/generated/models/security/AlertEvidence.java @@ -64,6 +64,7 @@ public static AlertEvidence createFromDiscriminatorValue(@jakarta.annotation.Non case "#microsoft.graph.security.kubernetesSecretEvidence": return new KubernetesSecretEvidence(); case "#microsoft.graph.security.kubernetesServiceAccountEvidence": return new KubernetesServiceAccountEvidence(); case "#microsoft.graph.security.kubernetesServiceEvidence": return new KubernetesServiceEvidence(); + case "#microsoft.graph.security.mailboxConfigurationEvidence": return new MailboxConfigurationEvidence(); case "#microsoft.graph.security.mailboxEvidence": return new MailboxEvidence(); case "#microsoft.graph.security.mailClusterEvidence": return new MailClusterEvidence(); case "#microsoft.graph.security.malwareEvidence": return new MalwareEvidence(); diff --git a/src/main/java/com/microsoft/graph/generated/models/security/CloudApplicationEvidence.java b/src/main/java/com/microsoft/graph/generated/models/security/CloudApplicationEvidence.java index 879ad34cca5..d4d55d7ee54 100644 --- a/src/main/java/com/microsoft/graph/generated/models/security/CloudApplicationEvidence.java +++ b/src/main/java/com/microsoft/graph/generated/models/security/CloudApplicationEvidence.java @@ -53,6 +53,7 @@ public Map> getFieldDeserializers deserializerMap.put("instanceId", (n) -> { this.setInstanceId(n.getLongValue()); }); deserializerMap.put("instanceName", (n) -> { this.setInstanceName(n.getStringValue()); }); deserializerMap.put("saasAppId", (n) -> { this.setSaasAppId(n.getLongValue()); }); + deserializerMap.put("stream", (n) -> { this.setStream(n.getObjectValue(Stream::createFromDiscriminatorValue)); }); return deserializerMap; } /** @@ -79,6 +80,14 @@ public String getInstanceName() { public Long getSaasAppId() { return this.backingStore.get("saasAppId"); } + /** + * Gets the stream property value. The stream property + * @return a {@link Stream} + */ + @jakarta.annotation.Nullable + public Stream getStream() { + return this.backingStore.get("stream"); + } /** * Serializes information the current object * @param writer Serialization writer to use to serialize this model @@ -91,6 +100,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeLongValue("instanceId", this.getInstanceId()); writer.writeStringValue("instanceName", this.getInstanceName()); writer.writeLongValue("saasAppId", this.getSaasAppId()); + writer.writeObjectValue("stream", this.getStream()); } /** * Sets the appId property value. Unique identifier of the application. @@ -127,4 +137,11 @@ public void setInstanceName(@jakarta.annotation.Nullable final String value) { public void setSaasAppId(@jakarta.annotation.Nullable final Long value) { this.backingStore.set("saasAppId", value); } + /** + * Sets the stream property value. The stream property + * @param value Value to set for the stream property. + */ + public void setStream(@jakarta.annotation.Nullable final Stream value) { + this.backingStore.set("stream", value); + } } diff --git a/src/main/java/com/microsoft/graph/generated/models/security/GoogleCloudResourceEvidence.java b/src/main/java/com/microsoft/graph/generated/models/security/GoogleCloudResourceEvidence.java index e06bf752fcb..062ea4c2112 100644 --- a/src/main/java/com/microsoft/graph/generated/models/security/GoogleCloudResourceEvidence.java +++ b/src/main/java/com/microsoft/graph/generated/models/security/GoogleCloudResourceEvidence.java @@ -32,6 +32,7 @@ public static GoogleCloudResourceEvidence createFromDiscriminatorValue(@jakarta. @jakarta.annotation.Nonnull public Map> getFieldDeserializers() { final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("fullResourceName", (n) -> { this.setFullResourceName(n.getStringValue()); }); deserializerMap.put("location", (n) -> { this.setLocation(n.getStringValue()); }); deserializerMap.put("locationType", (n) -> { this.setLocationType(n.getEnumValue(GoogleCloudLocationType::forValue)); }); deserializerMap.put("projectId", (n) -> { this.setProjectId(n.getStringValue()); }); @@ -40,6 +41,14 @@ public Map> getFieldDeserializers deserializerMap.put("resourceType", (n) -> { this.setResourceType(n.getStringValue()); }); return deserializerMap; } + /** + * Gets the fullResourceName property value. The fullResourceName property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getFullResourceName() { + return this.backingStore.get("fullResourceName"); + } /** * Gets the location property value. The zone or region where the resource is located. * @return a {@link String} @@ -95,6 +104,7 @@ public String getResourceType() { public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); super.serialize(writer); + writer.writeStringValue("fullResourceName", this.getFullResourceName()); writer.writeStringValue("location", this.getLocation()); writer.writeEnumValue("locationType", this.getLocationType()); writer.writeStringValue("projectId", this.getProjectId()); @@ -102,6 +112,13 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeStringValue("resourceName", this.getResourceName()); writer.writeStringValue("resourceType", this.getResourceType()); } + /** + * Sets the fullResourceName property value. The fullResourceName property + * @param value Value to set for the fullResourceName property. + */ + public void setFullResourceName(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("fullResourceName", value); + } /** * Sets the location property value. The zone or region where the resource is located. * @param value Value to set for the location property. diff --git a/src/main/java/com/microsoft/graph/generated/models/security/Incident.java b/src/main/java/com/microsoft/graph/generated/models/security/Incident.java index 1f6dd68f829..26b3d005cbe 100644 --- a/src/main/java/com/microsoft/graph/generated/models/security/Incident.java +++ b/src/main/java/com/microsoft/graph/generated/models/security/Incident.java @@ -118,6 +118,7 @@ public Map> getFieldDeserializers deserializerMap.put("lastModifiedBy", (n) -> { this.setLastModifiedBy(n.getStringValue()); }); deserializerMap.put("lastUpdateDateTime", (n) -> { this.setLastUpdateDateTime(n.getOffsetDateTimeValue()); }); deserializerMap.put("redirectIncidentId", (n) -> { this.setRedirectIncidentId(n.getStringValue()); }); + deserializerMap.put("resolvingComment", (n) -> { this.setResolvingComment(n.getStringValue()); }); deserializerMap.put("severity", (n) -> { this.setSeverity(n.getEnumValue(AlertSeverity::forValue)); }); deserializerMap.put("status", (n) -> { this.setStatus(n.getEnumValue(IncidentStatus::forValue)); }); deserializerMap.put("systemTags", (n) -> { this.setSystemTags(n.getCollectionOfPrimitiveValues(String.class)); }); @@ -156,6 +157,14 @@ public OffsetDateTime getLastUpdateDateTime() { public String getRedirectIncidentId() { return this.backingStore.get("redirectIncidentId"); } + /** + * Gets the resolvingComment property value. The resolvingComment property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getResolvingComment() { + return this.backingStore.get("resolvingComment"); + } /** * Gets the severity property value. The severity property * @return a {@link AlertSeverity} @@ -208,6 +217,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeStringValue("lastModifiedBy", this.getLastModifiedBy()); writer.writeOffsetDateTimeValue("lastUpdateDateTime", this.getLastUpdateDateTime()); writer.writeStringValue("redirectIncidentId", this.getRedirectIncidentId()); + writer.writeStringValue("resolvingComment", this.getResolvingComment()); writer.writeEnumValue("severity", this.getSeverity()); writer.writeEnumValue("status", this.getStatus()); writer.writeCollectionOfPrimitiveValues("systemTags", this.getSystemTags()); @@ -304,6 +314,13 @@ public void setLastUpdateDateTime(@jakarta.annotation.Nullable final OffsetDateT public void setRedirectIncidentId(@jakarta.annotation.Nullable final String value) { this.backingStore.set("redirectIncidentId", value); } + /** + * Sets the resolvingComment property value. The resolvingComment property + * @param value Value to set for the resolvingComment property. + */ + public void setResolvingComment(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("resolvingComment", value); + } /** * Sets the severity property value. The severity property * @param value Value to set for the severity property. diff --git a/src/main/java/com/microsoft/graph/generated/models/security/IpEvidence.java b/src/main/java/com/microsoft/graph/generated/models/security/IpEvidence.java index 1d946b6dbb8..cdf4623a805 100644 --- a/src/main/java/com/microsoft/graph/generated/models/security/IpEvidence.java +++ b/src/main/java/com/microsoft/graph/generated/models/security/IpEvidence.java @@ -42,6 +42,7 @@ public Map> getFieldDeserializers final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); deserializerMap.put("countryLetterCode", (n) -> { this.setCountryLetterCode(n.getStringValue()); }); deserializerMap.put("ipAddress", (n) -> { this.setIpAddress(n.getStringValue()); }); + deserializerMap.put("stream", (n) -> { this.setStream(n.getObjectValue(Stream::createFromDiscriminatorValue)); }); return deserializerMap; } /** @@ -52,6 +53,14 @@ public Map> getFieldDeserializers public String getIpAddress() { return this.backingStore.get("ipAddress"); } + /** + * Gets the stream property value. The stream property + * @return a {@link Stream} + */ + @jakarta.annotation.Nullable + public Stream getStream() { + return this.backingStore.get("stream"); + } /** * Serializes information the current object * @param writer Serialization writer to use to serialize this model @@ -61,6 +70,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ super.serialize(writer); writer.writeStringValue("countryLetterCode", this.getCountryLetterCode()); writer.writeStringValue("ipAddress", this.getIpAddress()); + writer.writeObjectValue("stream", this.getStream()); } /** * Sets the countryLetterCode property value. The two-letter country code according to ISO 3166 format, for example: US, UK, CA, etc. @@ -76,4 +86,11 @@ public void setCountryLetterCode(@jakarta.annotation.Nullable final String value public void setIpAddress(@jakarta.annotation.Nullable final String value) { this.backingStore.set("ipAddress", value); } + /** + * Sets the stream property value. The stream property + * @param value Value to set for the stream property. + */ + public void setStream(@jakarta.annotation.Nullable final Stream value) { + this.backingStore.set("stream", value); + } } diff --git a/src/main/java/com/microsoft/graph/generated/models/security/MailboxConfigurationEvidence.java b/src/main/java/com/microsoft/graph/generated/models/security/MailboxConfigurationEvidence.java new file mode 100644 index 00000000000..29d0bef9c01 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/security/MailboxConfigurationEvidence.java @@ -0,0 +1,148 @@ +package com.microsoft.graph.models.security; + +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.UUID; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class MailboxConfigurationEvidence extends AlertEvidence implements Parsable { + /** + * Instantiates a new {@link MailboxConfigurationEvidence} and sets the default values. + */ + public MailboxConfigurationEvidence() { + super(); + this.setOdataType("#microsoft.graph.security.mailboxConfigurationEvidence"); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link MailboxConfigurationEvidence} + */ + @jakarta.annotation.Nonnull + public static MailboxConfigurationEvidence createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new MailboxConfigurationEvidence(); + } + /** + * Gets the configurationId property value. The configurationId property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getConfigurationId() { + return this.backingStore.get("configurationId"); + } + /** + * Gets the configurationType property value. The configurationType property + * @return a {@link MailboxConfigurationType} + */ + @jakarta.annotation.Nullable + public MailboxConfigurationType getConfigurationType() { + return this.backingStore.get("configurationType"); + } + /** + * Gets the displayName property value. The displayName property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getDisplayName() { + return this.backingStore.get("displayName"); + } + /** + * Gets the externalDirectoryObjectId property value. The externalDirectoryObjectId property + * @return a {@link UUID} + */ + @jakarta.annotation.Nullable + public UUID getExternalDirectoryObjectId() { + return this.backingStore.get("externalDirectoryObjectId"); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("configurationId", (n) -> { this.setConfigurationId(n.getStringValue()); }); + deserializerMap.put("configurationType", (n) -> { this.setConfigurationType(n.getEnumValue(MailboxConfigurationType::forValue)); }); + deserializerMap.put("displayName", (n) -> { this.setDisplayName(n.getStringValue()); }); + deserializerMap.put("externalDirectoryObjectId", (n) -> { this.setExternalDirectoryObjectId(n.getUUIDValue()); }); + deserializerMap.put("mailboxPrimaryAddress", (n) -> { this.setMailboxPrimaryAddress(n.getStringValue()); }); + deserializerMap.put("upn", (n) -> { this.setUpn(n.getStringValue()); }); + return deserializerMap; + } + /** + * Gets the mailboxPrimaryAddress property value. The mailboxPrimaryAddress property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getMailboxPrimaryAddress() { + return this.backingStore.get("mailboxPrimaryAddress"); + } + /** + * Gets the upn property value. The upn property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getUpn() { + return this.backingStore.get("upn"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + super.serialize(writer); + writer.writeStringValue("configurationId", this.getConfigurationId()); + writer.writeEnumValue("configurationType", this.getConfigurationType()); + writer.writeStringValue("displayName", this.getDisplayName()); + writer.writeUUIDValue("externalDirectoryObjectId", this.getExternalDirectoryObjectId()); + writer.writeStringValue("mailboxPrimaryAddress", this.getMailboxPrimaryAddress()); + writer.writeStringValue("upn", this.getUpn()); + } + /** + * Sets the configurationId property value. The configurationId property + * @param value Value to set for the configurationId property. + */ + public void setConfigurationId(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("configurationId", value); + } + /** + * Sets the configurationType property value. The configurationType property + * @param value Value to set for the configurationType property. + */ + public void setConfigurationType(@jakarta.annotation.Nullable final MailboxConfigurationType value) { + this.backingStore.set("configurationType", value); + } + /** + * Sets the displayName property value. The displayName property + * @param value Value to set for the displayName property. + */ + public void setDisplayName(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("displayName", value); + } + /** + * Sets the externalDirectoryObjectId property value. The externalDirectoryObjectId property + * @param value Value to set for the externalDirectoryObjectId property. + */ + public void setExternalDirectoryObjectId(@jakarta.annotation.Nullable final UUID value) { + this.backingStore.set("externalDirectoryObjectId", value); + } + /** + * Sets the mailboxPrimaryAddress property value. The mailboxPrimaryAddress property + * @param value Value to set for the mailboxPrimaryAddress property. + */ + public void setMailboxPrimaryAddress(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("mailboxPrimaryAddress", value); + } + /** + * Sets the upn property value. The upn property + * @param value Value to set for the upn property. + */ + public void setUpn(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("upn", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/security/MailboxConfigurationType.java b/src/main/java/com/microsoft/graph/generated/models/security/MailboxConfigurationType.java new file mode 100644 index 00000000000..502cedd7bed --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/security/MailboxConfigurationType.java @@ -0,0 +1,33 @@ +package com.microsoft.graph.models.security; + +import com.microsoft.kiota.serialization.ValuedEnum; +import java.util.Objects; + +@jakarta.annotation.Generated("com.microsoft.kiota") +public enum MailboxConfigurationType implements ValuedEnum { + MailForwardingRule("mailForwardingRule"), + OwaSettings("owaSettings"), + EwsSettings("ewsSettings"), + MailDelegation("mailDelegation"), + UserInboxRule("userInboxRule"), + UnknownFutureValue("unknownFutureValue"); + public final String value; + MailboxConfigurationType(final String value) { + this.value = value; + } + @jakarta.annotation.Nonnull + public String getValue() { return this.value; } + @jakarta.annotation.Nullable + public static MailboxConfigurationType forValue(@jakarta.annotation.Nonnull final String searchValue) { + Objects.requireNonNull(searchValue); + switch(searchValue) { + case "mailForwardingRule": return MailForwardingRule; + case "owaSettings": return OwaSettings; + case "ewsSettings": return EwsSettings; + case "mailDelegation": return MailDelegation; + case "userInboxRule": return UserInboxRule; + case "unknownFutureValue": return UnknownFutureValue; + default: return null; + } + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/security/Stream.java b/src/main/java/com/microsoft/graph/generated/models/security/Stream.java new file mode 100644 index 00000000000..67fea875dda --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/security/Stream.java @@ -0,0 +1,124 @@ +package com.microsoft.graph.models.security; + +import com.microsoft.kiota.serialization.AdditionalDataHolder; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import com.microsoft.kiota.store.BackedModel; +import com.microsoft.kiota.store.BackingStore; +import com.microsoft.kiota.store.BackingStoreFactorySingleton; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class Stream implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link Stream} and sets the default values. + */ + public Stream() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link Stream} + */ + @jakarta.annotation.Nonnull + public static Stream createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new Stream(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(2); + deserializerMap.put("name", (n) -> { this.setName(n.getStringValue()); }); + deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); }); + return deserializerMap; + } + /** + * Gets the name property value. The name property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getName() { + return this.backingStore.get("name"); + } + /** + * Gets the @odata.type property value. The OdataType property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getOdataType() { + return this.backingStore.get("odataType"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + writer.writeStringValue("name", this.getName()); + writer.writeStringValue("@odata.type", this.getOdataType()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { + this.backingStore.set("additionalData", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @param value Value to set for the backingStore property. + */ + public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { + Objects.requireNonNull(value); + this.backingStore = value; + } + /** + * Sets the name property value. The name property + * @param value Value to set for the name property. + */ + public void setName(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("name", value); + } + /** + * Sets the @odata.type property value. The OdataType property + * @param value Value to set for the @odata.type property. + */ + public void setOdataType(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("odataType", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/security/UserEvidence.java b/src/main/java/com/microsoft/graph/generated/models/security/UserEvidence.java index a1be54f11c7..1c6fe849e4e 100644 --- a/src/main/java/com/microsoft/graph/generated/models/security/UserEvidence.java +++ b/src/main/java/com/microsoft/graph/generated/models/security/UserEvidence.java @@ -32,9 +32,18 @@ public static UserEvidence createFromDiscriminatorValue(@jakarta.annotation.Nonn @jakarta.annotation.Nonnull public Map> getFieldDeserializers() { final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("stream", (n) -> { this.setStream(n.getObjectValue(Stream::createFromDiscriminatorValue)); }); deserializerMap.put("userAccount", (n) -> { this.setUserAccount(n.getObjectValue(UserAccount::createFromDiscriminatorValue)); }); return deserializerMap; } + /** + * Gets the stream property value. The stream property + * @return a {@link Stream} + */ + @jakarta.annotation.Nullable + public Stream getStream() { + return this.backingStore.get("stream"); + } /** * Gets the userAccount property value. The user account details. * @return a {@link UserAccount} @@ -50,8 +59,16 @@ public UserAccount getUserAccount() { public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); super.serialize(writer); + writer.writeObjectValue("stream", this.getStream()); writer.writeObjectValue("userAccount", this.getUserAccount()); } + /** + * Sets the stream property value. The stream property + * @param value Value to set for the stream property. + */ + public void setStream(@jakarta.annotation.Nullable final Stream value) { + this.backingStore.set("stream", value); + } /** * Sets the userAccount property value. The user account details. * @param value Value to set for the userAccount property. diff --git a/src/main/java/com/microsoft/graph/generated/organization/OrganizationRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/organization/OrganizationRequestBuilder.java index 8d0a7026921..a1ba5fbd0fa 100644 --- a/src/main/java/com/microsoft/graph/generated/organization/OrganizationRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/organization/OrganizationRequestBuilder.java @@ -96,21 +96,21 @@ public OrganizationRequestBuilder(@jakarta.annotation.Nonnull final String rawUr super(requestAdapter, "{+baseurl}/organization{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * List properties and relationships of the organization objects. + * Retrieve a list of organization objects. There's only one organization object in the collection. * @return a {@link OrganizationCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public OrganizationCollectionResponse get() { return get(null); } /** - * List properties and relationships of the organization objects. + * Retrieve a list of organization objects. There's only one organization object in the collection. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link OrganizationCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public OrganizationCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -145,7 +145,7 @@ public Organization post(@jakarta.annotation.Nonnull final Organization body, @j return this.requestAdapter.send(requestInfo, errorMapping, Organization::createFromDiscriminatorValue); } /** - * List properties and relationships of the organization objects. + * Retrieve a list of organization objects. There's only one organization object in the collection. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -153,7 +153,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * List properties and relationships of the organization objects. + * Retrieve a list of organization objects. There's only one organization object in the collection. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -199,7 +199,7 @@ public OrganizationRequestBuilder withUrl(@jakarta.annotation.Nonnull final Stri return new OrganizationRequestBuilder(rawUrl, requestAdapter); } /** - * List properties and relationships of the organization objects. + * Retrieve a list of organization objects. There's only one organization object in the collection. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/organization/item/OrganizationItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/organization/item/OrganizationItemRequestBuilder.java index 1c4b90204d8..4ae2049a7b8 100644 --- a/src/main/java/com/microsoft/graph/generated/organization/item/OrganizationItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/organization/item/OrganizationItemRequestBuilder.java @@ -136,21 +136,21 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Get the properties and relationships of the currently authenticated organization. Since the organization resource supports extensions, you can also use the GET operation to get custom properties and extension data in an organization instance. + * Read properties and relationships of the organization object. * @return a {@link Organization} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public Organization get() { return get(null); } /** - * Get the properties and relationships of the currently authenticated organization. Since the organization resource supports extensions, you can also use the GET operation to get custom properties and extension data in an organization instance. + * Read properties and relationships of the organization object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link Organization} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public Organization get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -160,23 +160,23 @@ public Organization get(@jakarta.annotation.Nullable final java.util.function.Co return this.requestAdapter.send(requestInfo, errorMapping, Organization::createFromDiscriminatorValue); } /** - * Update the properties of a organization object. + * Update the properties of the currently authenticated organization. In this case, organization is defined as a collection of exactly one record, and so its ID must be specified in the request. The ID is also known as the tenantId of the organization. * @param body The request body * @return a {@link Organization} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public Organization patch(@jakarta.annotation.Nonnull final Organization body) { return patch(body, null); } /** - * Update the properties of a organization object. + * Update the properties of the currently authenticated organization. In this case, organization is defined as a collection of exactly one record, and so its ID must be specified in the request. The ID is also known as the tenantId of the organization. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link Organization} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public Organization patch(@jakarta.annotation.Nonnull final Organization body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -207,7 +207,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Get the properties and relationships of the currently authenticated organization. Since the organization resource supports extensions, you can also use the GET operation to get custom properties and extension data in an organization instance. + * Read properties and relationships of the organization object. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -215,7 +215,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Get the properties and relationships of the currently authenticated organization. Since the organization resource supports extensions, you can also use the GET operation to get custom properties and extension data in an organization instance. + * Read properties and relationships of the organization object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -227,7 +227,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Update the properties of a organization object. + * Update the properties of the currently authenticated organization. In this case, organization is defined as a collection of exactly one record, and so its ID must be specified in the request. The ID is also known as the tenantId of the organization. * @param body The request body * @return a {@link RequestInformation} */ @@ -236,7 +236,7 @@ public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull return toPatchRequestInformation(body, null); } /** - * Update the properties of a organization object. + * Update the properties of the currently authenticated organization. In this case, organization is defined as a collection of exactly one record, and so its ID must be specified in the request. The ID is also known as the tenantId of the organization. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} @@ -267,7 +267,7 @@ public OrganizationItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Get the properties and relationships of the currently authenticated organization. Since the organization resource supports extensions, you can also use the GET operation to get custom properties and extension data in an organization instance. + * Read properties and relationships of the organization object. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/reports/partners/billing/BillingRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/reports/partners/billing/BillingRequestBuilder.java index 4fa7e94efec..ebba9a7378f 100644 --- a/src/main/java/com/microsoft/graph/generated/reports/partners/billing/BillingRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/reports/partners/billing/BillingRequestBuilder.java @@ -4,6 +4,7 @@ import com.microsoft.graph.models.partners.billing.Billing; import com.microsoft.graph.reports.partners.billing.manifests.ManifestsRequestBuilder; import com.microsoft.graph.reports.partners.billing.operations.OperationsRequestBuilder; +import com.microsoft.graph.reports.partners.billing.reconciliation.ReconciliationRequestBuilder; import com.microsoft.graph.reports.partners.billing.usage.UsageRequestBuilder; import com.microsoft.kiota.BaseRequestBuilder; import com.microsoft.kiota.BaseRequestConfiguration; @@ -39,6 +40,14 @@ public ManifestsRequestBuilder manifests() { public OperationsRequestBuilder operations() { return new OperationsRequestBuilder(pathParameters, requestAdapter); } + /** + * Provides operations to manage the reconciliation property of the microsoft.graph.partners.billing.billing entity. + * @return a {@link ReconciliationRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ReconciliationRequestBuilder reconciliation() { + return new ReconciliationRequestBuilder(pathParameters, requestAdapter); + } /** * Provides operations to manage the usage property of the microsoft.graph.partners.billing.billing entity. * @return a {@link UsageRequestBuilder} diff --git a/src/main/java/com/microsoft/graph/generated/reports/partners/billing/reconciliation/ReconciliationRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/reports/partners/billing/reconciliation/ReconciliationRequestBuilder.java new file mode 100644 index 00000000000..873676cd678 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/reports/partners/billing/reconciliation/ReconciliationRequestBuilder.java @@ -0,0 +1,237 @@ +package com.microsoft.graph.reports.partners.billing.reconciliation; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.partners.billing.BillingReconciliation; +import com.microsoft.graph.reports.partners.billing.reconciliation.billed.BilledRequestBuilder; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the reconciliation property of the microsoft.graph.partners.billing.billing entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class ReconciliationRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to manage the billed property of the microsoft.graph.partners.billing.billingReconciliation entity. + * @return a {@link BilledRequestBuilder} + */ + @jakarta.annotation.Nonnull + public BilledRequestBuilder billed() { + return new BilledRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link ReconciliationRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public ReconciliationRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/reports/partners/billing/reconciliation{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link ReconciliationRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public ReconciliationRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/reports/partners/billing/reconciliation{?%24expand,%24select}", rawUrl); + } + /** + * Delete navigation property reconciliation for reports + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete() { + delete(null); + } + /** + * Delete navigation property reconciliation for reports + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * Represents details for billed invoice reconciliation data. + * @return a {@link BillingReconciliation} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public BillingReconciliation get() { + return get(null); + } + /** + * Represents details for billed invoice reconciliation data. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link BillingReconciliation} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public BillingReconciliation get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, BillingReconciliation::createFromDiscriminatorValue); + } + /** + * Update the navigation property reconciliation in reports + * @param body The request body + * @return a {@link BillingReconciliation} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public BillingReconciliation patch(@jakarta.annotation.Nonnull final BillingReconciliation body) { + return patch(body, null); + } + /** + * Update the navigation property reconciliation in reports + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link BillingReconciliation} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public BillingReconciliation patch(@jakarta.annotation.Nonnull final BillingReconciliation body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, BillingReconciliation::createFromDiscriminatorValue); + } + /** + * Delete navigation property reconciliation for reports + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation() { + return toDeleteRequestInformation(null); + } + /** + * Delete navigation property reconciliation for reports + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, "{+baseurl}/reports/partners/billing/reconciliation", pathParameters); + requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Represents details for billed invoice reconciliation data. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Represents details for billed invoice reconciliation data. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update the navigation property reconciliation in reports + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final BillingReconciliation body) { + return toPatchRequestInformation(body, null); + } + /** + * Update the navigation property reconciliation in reports + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final BillingReconciliation body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, "{+baseurl}/reports/partners/billing/reconciliation", pathParameters); + requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link ReconciliationRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ReconciliationRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new ReconciliationRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class DeleteRequestConfiguration extends BaseRequestConfiguration { + } + /** + * Represents details for billed invoice reconciliation data. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PatchRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/reports/partners/billing/reconciliation/billed/BilledRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/reports/partners/billing/reconciliation/billed/BilledRequestBuilder.java new file mode 100644 index 00000000000..e952de8d210 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/reports/partners/billing/reconciliation/billed/BilledRequestBuilder.java @@ -0,0 +1,237 @@ +package com.microsoft.graph.reports.partners.billing.reconciliation.billed; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.partners.billing.BilledReconciliation; +import com.microsoft.graph.reports.partners.billing.reconciliation.billed.microsoftgraphpartnersbillingexport.MicrosoftGraphPartnersBillingExportRequestBuilder; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the billed property of the microsoft.graph.partners.billing.billingReconciliation entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class BilledRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to call the export method. + * @return a {@link MicrosoftGraphPartnersBillingExportRequestBuilder} + */ + @jakarta.annotation.Nonnull + public MicrosoftGraphPartnersBillingExportRequestBuilder microsoftGraphPartnersBillingExport() { + return new MicrosoftGraphPartnersBillingExportRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link BilledRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public BilledRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/reports/partners/billing/reconciliation/billed{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link BilledRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public BilledRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/reports/partners/billing/reconciliation/billed{?%24expand,%24select}", rawUrl); + } + /** + * Delete navigation property billed for reports + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete() { + delete(null); + } + /** + * Delete navigation property billed for reports + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * Represents details for billed invoice reconciliation data. + * @return a {@link BilledReconciliation} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public BilledReconciliation get() { + return get(null); + } + /** + * Represents details for billed invoice reconciliation data. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link BilledReconciliation} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public BilledReconciliation get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, BilledReconciliation::createFromDiscriminatorValue); + } + /** + * Update the navigation property billed in reports + * @param body The request body + * @return a {@link BilledReconciliation} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public BilledReconciliation patch(@jakarta.annotation.Nonnull final BilledReconciliation body) { + return patch(body, null); + } + /** + * Update the navigation property billed in reports + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link BilledReconciliation} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public BilledReconciliation patch(@jakarta.annotation.Nonnull final BilledReconciliation body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, BilledReconciliation::createFromDiscriminatorValue); + } + /** + * Delete navigation property billed for reports + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation() { + return toDeleteRequestInformation(null); + } + /** + * Delete navigation property billed for reports + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, "{+baseurl}/reports/partners/billing/reconciliation/billed", pathParameters); + requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Represents details for billed invoice reconciliation data. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Represents details for billed invoice reconciliation data. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update the navigation property billed in reports + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final BilledReconciliation body) { + return toPatchRequestInformation(body, null); + } + /** + * Update the navigation property billed in reports + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final BilledReconciliation body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, "{+baseurl}/reports/partners/billing/reconciliation/billed", pathParameters); + requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link BilledRequestBuilder} + */ + @jakarta.annotation.Nonnull + public BilledRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new BilledRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class DeleteRequestConfiguration extends BaseRequestConfiguration { + } + /** + * Represents details for billed invoice reconciliation data. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PatchRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/reports/partners/billing/reconciliation/billed/microsoftgraphpartnersbillingexport/ExportPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/reports/partners/billing/reconciliation/billed/microsoftgraphpartnersbillingexport/ExportPostRequestBody.java new file mode 100644 index 00000000000..d69d5261f3d --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/reports/partners/billing/reconciliation/billed/microsoftgraphpartnersbillingexport/ExportPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.reports.partners.billing.reconciliation.billed.microsoftgraphpartnersbillingexport; + +import com.microsoft.graph.models.partners.billing.AttributeSet; +import com.microsoft.kiota.serialization.AdditionalDataHolder; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import com.microsoft.kiota.store.BackedModel; +import com.microsoft.kiota.store.BackingStore; +import com.microsoft.kiota.store.BackingStoreFactorySingleton; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class ExportPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link ExportPostRequestBody} and sets the default values. + */ + public ExportPostRequestBody() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link ExportPostRequestBody} + */ + @jakarta.annotation.Nonnull + public static ExportPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new ExportPostRequestBody(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the attributeSet property value. The attributeSet property + * @return a {@link AttributeSet} + */ + @jakarta.annotation.Nullable + public AttributeSet getAttributeSet() { + return this.backingStore.get("attributeSet"); + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(2); + deserializerMap.put("attributeSet", (n) -> { this.setAttributeSet(n.getEnumValue(AttributeSet::forValue)); }); + deserializerMap.put("invoiceId", (n) -> { this.setInvoiceId(n.getStringValue()); }); + return deserializerMap; + } + /** + * Gets the invoiceId property value. The invoiceId property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getInvoiceId() { + return this.backingStore.get("invoiceId"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + writer.writeEnumValue("attributeSet", this.getAttributeSet()); + writer.writeStringValue("invoiceId", this.getInvoiceId()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { + this.backingStore.set("additionalData", value); + } + /** + * Sets the attributeSet property value. The attributeSet property + * @param value Value to set for the attributeSet property. + */ + public void setAttributeSet(@jakarta.annotation.Nullable final AttributeSet value) { + this.backingStore.set("attributeSet", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @param value Value to set for the backingStore property. + */ + public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { + Objects.requireNonNull(value); + this.backingStore = value; + } + /** + * Sets the invoiceId property value. The invoiceId property + * @param value Value to set for the invoiceId property. + */ + public void setInvoiceId(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("invoiceId", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/reports/partners/billing/reconciliation/billed/microsoftgraphpartnersbillingexport/MicrosoftGraphPartnersBillingExportRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/reports/partners/billing/reconciliation/billed/microsoftgraphpartnersbillingexport/MicrosoftGraphPartnersBillingExportRequestBuilder.java new file mode 100644 index 00000000000..e8f970d8882 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/reports/partners/billing/reconciliation/billed/microsoftgraphpartnersbillingexport/MicrosoftGraphPartnersBillingExportRequestBuilder.java @@ -0,0 +1,105 @@ +package com.microsoft.graph.reports.partners.billing.reconciliation.billed.microsoftgraphpartnersbillingexport; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.partners.billing.Operation; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to call the export method. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class MicrosoftGraphPartnersBillingExportRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link MicrosoftGraphPartnersBillingExportRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public MicrosoftGraphPartnersBillingExportRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/reports/partners/billing/reconciliation/billed/microsoft.graph.partners.billing.export", pathParameters); + } + /** + * Instantiates a new {@link MicrosoftGraphPartnersBillingExportRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public MicrosoftGraphPartnersBillingExportRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/reports/partners/billing/reconciliation/billed/microsoft.graph.partners.billing.export", rawUrl); + } + /** + * Export the billed invoice reconciliation data. + * @param body The request body + * @return a {@link Operation} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public Operation post(@jakarta.annotation.Nonnull final ExportPostRequestBody body) { + return post(body, null); + } + /** + * Export the billed invoice reconciliation data. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link Operation} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public Operation post(@jakarta.annotation.Nonnull final ExportPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, Operation::createFromDiscriminatorValue); + } + /** + * Export the billed invoice reconciliation data. + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ExportPostRequestBody body) { + return toPostRequestInformation(body, null); + } + /** + * Export the billed invoice reconciliation data. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ExportPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link MicrosoftGraphPartnersBillingExportRequestBuilder} + */ + @jakarta.annotation.Nonnull + public MicrosoftGraphPartnersBillingExportRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new MicrosoftGraphPartnersBillingExportRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/reports/partners/billing/usage/unbilled/microsoftgraphpartnersbillingexport/MicrosoftGraphPartnersBillingExportRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/reports/partners/billing/usage/unbilled/microsoftgraphpartnersbillingexport/MicrosoftGraphPartnersBillingExportRequestBuilder.java index 178c0a667a9..6e0da6f7807 100644 --- a/src/main/java/com/microsoft/graph/generated/reports/partners/billing/usage/unbilled/microsoftgraphpartnersbillingexport/MicrosoftGraphPartnersBillingExportRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/reports/partners/billing/usage/unbilled/microsoftgraphpartnersbillingexport/MicrosoftGraphPartnersBillingExportRequestBuilder.java @@ -36,7 +36,7 @@ public MicrosoftGraphPartnersBillingExportRequestBuilder(@jakarta.annotation.Non super(requestAdapter, "{+baseurl}/reports/partners/billing/usage/unbilled/microsoft.graph.partners.billing.export", rawUrl); } /** - * Export the unbilled Azure usage data for a specific billing period and a given currency. + * Export unbilled Azure usage data for a specific billing period and currency. * @param body The request body * @return a {@link Operation} * @throws ODataError When receiving a 4XX or 5XX status code @@ -47,7 +47,7 @@ public Operation post(@jakarta.annotation.Nonnull final ExportPostRequestBody bo return post(body, null); } /** - * Export the unbilled Azure usage data for a specific billing period and a given currency. + * Export unbilled Azure usage data for a specific billing period and currency. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link Operation} @@ -63,7 +63,7 @@ public Operation post(@jakarta.annotation.Nonnull final ExportPostRequestBody bo return this.requestAdapter.send(requestInfo, errorMapping, Operation::createFromDiscriminatorValue); } /** - * Export the unbilled Azure usage data for a specific billing period and a given currency. + * Export unbilled Azure usage data for a specific billing period and currency. * @param body The request body * @return a {@link RequestInformation} */ @@ -72,7 +72,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Export the unbilled Azure usage data for a specific billing period and a given currency. + * Export unbilled Azure usage data for a specific billing period and currency. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/generated/rolemanagement/directory/roleassignmentscheduleinstances/item/activatedusing/ActivatedUsingRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/rolemanagement/directory/roleassignmentscheduleinstances/item/activatedusing/ActivatedUsingRequestBuilder.java index 965df67356a..ccb37555445 100644 --- a/src/main/java/com/microsoft/graph/generated/rolemanagement/directory/roleassignmentscheduleinstances/item/activatedusing/ActivatedUsingRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/rolemanagement/directory/roleassignmentscheduleinstances/item/activatedusing/ActivatedUsingRequestBuilder.java @@ -37,7 +37,7 @@ public ActivatedUsingRequestBuilder(@jakarta.annotation.Nonnull final String raw super(requestAdapter, "{+baseurl}/roleManagement/directory/roleAssignmentScheduleInstances/{unifiedRoleAssignmentScheduleInstance%2Did}/activatedUsing{?%24expand,%24select}", rawUrl); } /** - * If the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it is null. Supports $expand. + * If the request is from an eligible administrator to activate a role, this parameter shows the related eligible assignment for that activation. Otherwise, it's null. Supports $expand and $select nested in $expand. * @return a {@link UnifiedRoleEligibilityScheduleInstance} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -46,7 +46,7 @@ public UnifiedRoleEligibilityScheduleInstance get() { return get(null); } /** - * If the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it is null. Supports $expand. + * If the request is from an eligible administrator to activate a role, this parameter shows the related eligible assignment for that activation. Otherwise, it's null. Supports $expand and $select nested in $expand. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link UnifiedRoleEligibilityScheduleInstance} * @throws ODataError When receiving a 4XX or 5XX status code @@ -59,7 +59,7 @@ public UnifiedRoleEligibilityScheduleInstance get(@jakarta.annotation.Nullable f return this.requestAdapter.send(requestInfo, errorMapping, UnifiedRoleEligibilityScheduleInstance::createFromDiscriminatorValue); } /** - * If the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it is null. Supports $expand. + * If the request is from an eligible administrator to activate a role, this parameter shows the related eligible assignment for that activation. Otherwise, it's null. Supports $expand and $select nested in $expand. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -67,7 +67,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * If the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it is null. Supports $expand. + * If the request is from an eligible administrator to activate a role, this parameter shows the related eligible assignment for that activation. Otherwise, it's null. Supports $expand and $select nested in $expand. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -89,7 +89,7 @@ public ActivatedUsingRequestBuilder withUrl(@jakarta.annotation.Nonnull final St return new ActivatedUsingRequestBuilder(rawUrl, requestAdapter); } /** - * If the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it is null. Supports $expand. + * If the request is from an eligible administrator to activate a role, this parameter shows the related eligible assignment for that activation. Otherwise, it's null. Supports $expand and $select nested in $expand. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/rolemanagement/directory/roleassignmentschedulerequests/item/activatedusing/ActivatedUsingRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/rolemanagement/directory/roleassignmentschedulerequests/item/activatedusing/ActivatedUsingRequestBuilder.java index b99a4ed51ae..599dc9f1e28 100644 --- a/src/main/java/com/microsoft/graph/generated/rolemanagement/directory/roleassignmentschedulerequests/item/activatedusing/ActivatedUsingRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/rolemanagement/directory/roleassignmentschedulerequests/item/activatedusing/ActivatedUsingRequestBuilder.java @@ -37,7 +37,7 @@ public ActivatedUsingRequestBuilder(@jakarta.annotation.Nonnull final String raw super(requestAdapter, "{+baseurl}/roleManagement/directory/roleAssignmentScheduleRequests/{unifiedRoleAssignmentScheduleRequest%2Did}/activatedUsing{?%24expand,%24select}", rawUrl); } /** - * If the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it's null. Supports $expand. + * If the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it's null. Supports $expand and $select nested in $expand. * @return a {@link UnifiedRoleEligibilitySchedule} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -46,7 +46,7 @@ public UnifiedRoleEligibilitySchedule get() { return get(null); } /** - * If the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it's null. Supports $expand. + * If the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it's null. Supports $expand and $select nested in $expand. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link UnifiedRoleEligibilitySchedule} * @throws ODataError When receiving a 4XX or 5XX status code @@ -59,7 +59,7 @@ public UnifiedRoleEligibilitySchedule get(@jakarta.annotation.Nullable final jav return this.requestAdapter.send(requestInfo, errorMapping, UnifiedRoleEligibilitySchedule::createFromDiscriminatorValue); } /** - * If the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it's null. Supports $expand. + * If the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it's null. Supports $expand and $select nested in $expand. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -67,7 +67,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * If the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it's null. Supports $expand. + * If the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it's null. Supports $expand and $select nested in $expand. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -89,7 +89,7 @@ public ActivatedUsingRequestBuilder withUrl(@jakarta.annotation.Nonnull final St return new ActivatedUsingRequestBuilder(rawUrl, requestAdapter); } /** - * If the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it's null. Supports $expand. + * If the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it's null. Supports $expand and $select nested in $expand. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/rolemanagement/directory/roleassignmentschedulerequests/item/principal/PrincipalRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/rolemanagement/directory/roleassignmentschedulerequests/item/principal/PrincipalRequestBuilder.java index b5798c87229..0b3d37d0bf8 100644 --- a/src/main/java/com/microsoft/graph/generated/rolemanagement/directory/roleassignmentschedulerequests/item/principal/PrincipalRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/rolemanagement/directory/roleassignmentschedulerequests/item/principal/PrincipalRequestBuilder.java @@ -37,7 +37,7 @@ public PrincipalRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, super(requestAdapter, "{+baseurl}/roleManagement/directory/roleAssignmentScheduleRequests/{unifiedRoleAssignmentScheduleRequest%2Did}/principal{?%24expand,%24select}", rawUrl); } /** - * The principal that's getting a role assignment through the request. Supports $expand. + * The principal that's getting a role assignment through the request. Supports $expand and $select nested in $expand for id only. * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -46,7 +46,7 @@ public DirectoryObject get() { return get(null); } /** - * The principal that's getting a role assignment through the request. Supports $expand. + * The principal that's getting a role assignment through the request. Supports $expand and $select nested in $expand for id only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code @@ -59,7 +59,7 @@ public DirectoryObject get(@jakarta.annotation.Nullable final java.util.function return this.requestAdapter.send(requestInfo, errorMapping, DirectoryObject::createFromDiscriminatorValue); } /** - * The principal that's getting a role assignment through the request. Supports $expand. + * The principal that's getting a role assignment through the request. Supports $expand and $select nested in $expand for id only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -67,7 +67,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * The principal that's getting a role assignment through the request. Supports $expand. + * The principal that's getting a role assignment through the request. Supports $expand and $select nested in $expand for id only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -89,7 +89,7 @@ public PrincipalRequestBuilder withUrl(@jakarta.annotation.Nonnull final String return new PrincipalRequestBuilder(rawUrl, requestAdapter); } /** - * The principal that's getting a role assignment through the request. Supports $expand. + * The principal that's getting a role assignment through the request. Supports $expand and $select nested in $expand for id only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/rolemanagement/directory/roleassignmentschedulerequests/item/roledefinition/RoleDefinitionRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/rolemanagement/directory/roleassignmentschedulerequests/item/roledefinition/RoleDefinitionRequestBuilder.java index b92d0edecd3..5973029a0e9 100644 --- a/src/main/java/com/microsoft/graph/generated/rolemanagement/directory/roleassignmentschedulerequests/item/roledefinition/RoleDefinitionRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/rolemanagement/directory/roleassignmentschedulerequests/item/roledefinition/RoleDefinitionRequestBuilder.java @@ -37,7 +37,7 @@ public RoleDefinitionRequestBuilder(@jakarta.annotation.Nonnull final String raw super(requestAdapter, "{+baseurl}/roleManagement/directory/roleAssignmentScheduleRequests/{unifiedRoleAssignmentScheduleRequest%2Did}/roleDefinition{?%24expand,%24select}", rawUrl); } /** - * Detailed information for the unifiedRoleDefinition object that is referenced through the roleDefinitionId property. Supports $expand. + * Detailed information for the unifiedRoleDefinition object that is referenced through the roleDefinitionId property. Supports $expand and $select nested in $expand. * @return a {@link UnifiedRoleDefinition} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -46,7 +46,7 @@ public UnifiedRoleDefinition get() { return get(null); } /** - * Detailed information for the unifiedRoleDefinition object that is referenced through the roleDefinitionId property. Supports $expand. + * Detailed information for the unifiedRoleDefinition object that is referenced through the roleDefinitionId property. Supports $expand and $select nested in $expand. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link UnifiedRoleDefinition} * @throws ODataError When receiving a 4XX or 5XX status code @@ -59,7 +59,7 @@ public UnifiedRoleDefinition get(@jakarta.annotation.Nullable final java.util.fu return this.requestAdapter.send(requestInfo, errorMapping, UnifiedRoleDefinition::createFromDiscriminatorValue); } /** - * Detailed information for the unifiedRoleDefinition object that is referenced through the roleDefinitionId property. Supports $expand. + * Detailed information for the unifiedRoleDefinition object that is referenced through the roleDefinitionId property. Supports $expand and $select nested in $expand. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -67,7 +67,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Detailed information for the unifiedRoleDefinition object that is referenced through the roleDefinitionId property. Supports $expand. + * Detailed information for the unifiedRoleDefinition object that is referenced through the roleDefinitionId property. Supports $expand and $select nested in $expand. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -89,7 +89,7 @@ public RoleDefinitionRequestBuilder withUrl(@jakarta.annotation.Nonnull final St return new RoleDefinitionRequestBuilder(rawUrl, requestAdapter); } /** - * Detailed information for the unifiedRoleDefinition object that is referenced through the roleDefinitionId property. Supports $expand. + * Detailed information for the unifiedRoleDefinition object that is referenced through the roleDefinitionId property. Supports $expand and $select nested in $expand. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/rolemanagement/directory/roleassignmentschedulerequests/item/targetschedule/TargetScheduleRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/rolemanagement/directory/roleassignmentschedulerequests/item/targetschedule/TargetScheduleRequestBuilder.java index 58fd49e1dab..33045f2b145 100644 --- a/src/main/java/com/microsoft/graph/generated/rolemanagement/directory/roleassignmentschedulerequests/item/targetschedule/TargetScheduleRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/rolemanagement/directory/roleassignmentschedulerequests/item/targetschedule/TargetScheduleRequestBuilder.java @@ -37,7 +37,7 @@ public TargetScheduleRequestBuilder(@jakarta.annotation.Nonnull final String raw super(requestAdapter, "{+baseurl}/roleManagement/directory/roleAssignmentScheduleRequests/{unifiedRoleAssignmentScheduleRequest%2Did}/targetSchedule{?%24expand,%24select}", rawUrl); } /** - * The schedule for an eligible role assignment that is referenced through the targetScheduleId property. Supports $expand. + * The schedule for an eligible role assignment that is referenced through the targetScheduleId property. Supports $expand and $select nested in $expand. * @return a {@link UnifiedRoleAssignmentSchedule} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -46,7 +46,7 @@ public UnifiedRoleAssignmentSchedule get() { return get(null); } /** - * The schedule for an eligible role assignment that is referenced through the targetScheduleId property. Supports $expand. + * The schedule for an eligible role assignment that is referenced through the targetScheduleId property. Supports $expand and $select nested in $expand. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link UnifiedRoleAssignmentSchedule} * @throws ODataError When receiving a 4XX or 5XX status code @@ -59,7 +59,7 @@ public UnifiedRoleAssignmentSchedule get(@jakarta.annotation.Nullable final java return this.requestAdapter.send(requestInfo, errorMapping, UnifiedRoleAssignmentSchedule::createFromDiscriminatorValue); } /** - * The schedule for an eligible role assignment that is referenced through the targetScheduleId property. Supports $expand. + * The schedule for an eligible role assignment that is referenced through the targetScheduleId property. Supports $expand and $select nested in $expand. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -67,7 +67,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * The schedule for an eligible role assignment that is referenced through the targetScheduleId property. Supports $expand. + * The schedule for an eligible role assignment that is referenced through the targetScheduleId property. Supports $expand and $select nested in $expand. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -89,7 +89,7 @@ public TargetScheduleRequestBuilder withUrl(@jakarta.annotation.Nonnull final St return new TargetScheduleRequestBuilder(rawUrl, requestAdapter); } /** - * The schedule for an eligible role assignment that is referenced through the targetScheduleId property. Supports $expand. + * The schedule for an eligible role assignment that is referenced through the targetScheduleId property. Supports $expand and $select nested in $expand. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/rolemanagement/directory/roleassignmentschedules/item/activatedusing/ActivatedUsingRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/rolemanagement/directory/roleassignmentschedules/item/activatedusing/ActivatedUsingRequestBuilder.java index 55103fac7b1..0bbb37f3a03 100644 --- a/src/main/java/com/microsoft/graph/generated/rolemanagement/directory/roleassignmentschedules/item/activatedusing/ActivatedUsingRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/rolemanagement/directory/roleassignmentschedules/item/activatedusing/ActivatedUsingRequestBuilder.java @@ -37,7 +37,7 @@ public ActivatedUsingRequestBuilder(@jakarta.annotation.Nonnull final String raw super(requestAdapter, "{+baseurl}/roleManagement/directory/roleAssignmentSchedules/{unifiedRoleAssignmentSchedule%2Did}/activatedUsing{?%24expand,%24select}", rawUrl); } /** - * If the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it is null. Supports $expand. + * If the request is from an eligible administrator to activate a role, this parameter shows the related eligible assignment for that activation. Otherwise, it's null. Supports $expand. * @return a {@link UnifiedRoleEligibilitySchedule} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -46,7 +46,7 @@ public UnifiedRoleEligibilitySchedule get() { return get(null); } /** - * If the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it is null. Supports $expand. + * If the request is from an eligible administrator to activate a role, this parameter shows the related eligible assignment for that activation. Otherwise, it's null. Supports $expand. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link UnifiedRoleEligibilitySchedule} * @throws ODataError When receiving a 4XX or 5XX status code @@ -59,7 +59,7 @@ public UnifiedRoleEligibilitySchedule get(@jakarta.annotation.Nullable final jav return this.requestAdapter.send(requestInfo, errorMapping, UnifiedRoleEligibilitySchedule::createFromDiscriminatorValue); } /** - * If the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it is null. Supports $expand. + * If the request is from an eligible administrator to activate a role, this parameter shows the related eligible assignment for that activation. Otherwise, it's null. Supports $expand. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -67,7 +67,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * If the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it is null. Supports $expand. + * If the request is from an eligible administrator to activate a role, this parameter shows the related eligible assignment for that activation. Otherwise, it's null. Supports $expand. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -89,7 +89,7 @@ public ActivatedUsingRequestBuilder withUrl(@jakarta.annotation.Nonnull final St return new ActivatedUsingRequestBuilder(rawUrl, requestAdapter); } /** - * If the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it is null. Supports $expand. + * If the request is from an eligible administrator to activate a role, this parameter shows the related eligible assignment for that activation. Otherwise, it's null. Supports $expand. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/rolemanagement/entitlementmanagement/roleassignmentscheduleinstances/item/activatedusing/ActivatedUsingRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/rolemanagement/entitlementmanagement/roleassignmentscheduleinstances/item/activatedusing/ActivatedUsingRequestBuilder.java index 7cd8b0a22c2..fbb43d1941f 100644 --- a/src/main/java/com/microsoft/graph/generated/rolemanagement/entitlementmanagement/roleassignmentscheduleinstances/item/activatedusing/ActivatedUsingRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/rolemanagement/entitlementmanagement/roleassignmentscheduleinstances/item/activatedusing/ActivatedUsingRequestBuilder.java @@ -37,7 +37,7 @@ public ActivatedUsingRequestBuilder(@jakarta.annotation.Nonnull final String raw super(requestAdapter, "{+baseurl}/roleManagement/entitlementManagement/roleAssignmentScheduleInstances/{unifiedRoleAssignmentScheduleInstance%2Did}/activatedUsing{?%24expand,%24select}", rawUrl); } /** - * If the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it is null. Supports $expand. + * If the request is from an eligible administrator to activate a role, this parameter shows the related eligible assignment for that activation. Otherwise, it's null. Supports $expand and $select nested in $expand. * @return a {@link UnifiedRoleEligibilityScheduleInstance} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -46,7 +46,7 @@ public UnifiedRoleEligibilityScheduleInstance get() { return get(null); } /** - * If the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it is null. Supports $expand. + * If the request is from an eligible administrator to activate a role, this parameter shows the related eligible assignment for that activation. Otherwise, it's null. Supports $expand and $select nested in $expand. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link UnifiedRoleEligibilityScheduleInstance} * @throws ODataError When receiving a 4XX or 5XX status code @@ -59,7 +59,7 @@ public UnifiedRoleEligibilityScheduleInstance get(@jakarta.annotation.Nullable f return this.requestAdapter.send(requestInfo, errorMapping, UnifiedRoleEligibilityScheduleInstance::createFromDiscriminatorValue); } /** - * If the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it is null. Supports $expand. + * If the request is from an eligible administrator to activate a role, this parameter shows the related eligible assignment for that activation. Otherwise, it's null. Supports $expand and $select nested in $expand. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -67,7 +67,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * If the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it is null. Supports $expand. + * If the request is from an eligible administrator to activate a role, this parameter shows the related eligible assignment for that activation. Otherwise, it's null. Supports $expand and $select nested in $expand. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -89,7 +89,7 @@ public ActivatedUsingRequestBuilder withUrl(@jakarta.annotation.Nonnull final St return new ActivatedUsingRequestBuilder(rawUrl, requestAdapter); } /** - * If the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it is null. Supports $expand. + * If the request is from an eligible administrator to activate a role, this parameter shows the related eligible assignment for that activation. Otherwise, it's null. Supports $expand and $select nested in $expand. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/rolemanagement/entitlementmanagement/roleassignmentschedulerequests/item/activatedusing/ActivatedUsingRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/rolemanagement/entitlementmanagement/roleassignmentschedulerequests/item/activatedusing/ActivatedUsingRequestBuilder.java index 4e3e30d9273..b6f6203a463 100644 --- a/src/main/java/com/microsoft/graph/generated/rolemanagement/entitlementmanagement/roleassignmentschedulerequests/item/activatedusing/ActivatedUsingRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/rolemanagement/entitlementmanagement/roleassignmentschedulerequests/item/activatedusing/ActivatedUsingRequestBuilder.java @@ -37,7 +37,7 @@ public ActivatedUsingRequestBuilder(@jakarta.annotation.Nonnull final String raw super(requestAdapter, "{+baseurl}/roleManagement/entitlementManagement/roleAssignmentScheduleRequests/{unifiedRoleAssignmentScheduleRequest%2Did}/activatedUsing{?%24expand,%24select}", rawUrl); } /** - * If the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it's null. Supports $expand. + * If the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it's null. Supports $expand and $select nested in $expand. * @return a {@link UnifiedRoleEligibilitySchedule} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -46,7 +46,7 @@ public UnifiedRoleEligibilitySchedule get() { return get(null); } /** - * If the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it's null. Supports $expand. + * If the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it's null. Supports $expand and $select nested in $expand. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link UnifiedRoleEligibilitySchedule} * @throws ODataError When receiving a 4XX or 5XX status code @@ -59,7 +59,7 @@ public UnifiedRoleEligibilitySchedule get(@jakarta.annotation.Nullable final jav return this.requestAdapter.send(requestInfo, errorMapping, UnifiedRoleEligibilitySchedule::createFromDiscriminatorValue); } /** - * If the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it's null. Supports $expand. + * If the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it's null. Supports $expand and $select nested in $expand. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -67,7 +67,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * If the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it's null. Supports $expand. + * If the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it's null. Supports $expand and $select nested in $expand. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -89,7 +89,7 @@ public ActivatedUsingRequestBuilder withUrl(@jakarta.annotation.Nonnull final St return new ActivatedUsingRequestBuilder(rawUrl, requestAdapter); } /** - * If the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it's null. Supports $expand. + * If the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it's null. Supports $expand and $select nested in $expand. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/rolemanagement/entitlementmanagement/roleassignmentschedulerequests/item/principal/PrincipalRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/rolemanagement/entitlementmanagement/roleassignmentschedulerequests/item/principal/PrincipalRequestBuilder.java index b5ea6b0dd23..b99ddd91dc3 100644 --- a/src/main/java/com/microsoft/graph/generated/rolemanagement/entitlementmanagement/roleassignmentschedulerequests/item/principal/PrincipalRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/rolemanagement/entitlementmanagement/roleassignmentschedulerequests/item/principal/PrincipalRequestBuilder.java @@ -37,7 +37,7 @@ public PrincipalRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, super(requestAdapter, "{+baseurl}/roleManagement/entitlementManagement/roleAssignmentScheduleRequests/{unifiedRoleAssignmentScheduleRequest%2Did}/principal{?%24expand,%24select}", rawUrl); } /** - * The principal that's getting a role assignment through the request. Supports $expand. + * The principal that's getting a role assignment through the request. Supports $expand and $select nested in $expand for id only. * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -46,7 +46,7 @@ public DirectoryObject get() { return get(null); } /** - * The principal that's getting a role assignment through the request. Supports $expand. + * The principal that's getting a role assignment through the request. Supports $expand and $select nested in $expand for id only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code @@ -59,7 +59,7 @@ public DirectoryObject get(@jakarta.annotation.Nullable final java.util.function return this.requestAdapter.send(requestInfo, errorMapping, DirectoryObject::createFromDiscriminatorValue); } /** - * The principal that's getting a role assignment through the request. Supports $expand. + * The principal that's getting a role assignment through the request. Supports $expand and $select nested in $expand for id only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -67,7 +67,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * The principal that's getting a role assignment through the request. Supports $expand. + * The principal that's getting a role assignment through the request. Supports $expand and $select nested in $expand for id only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -89,7 +89,7 @@ public PrincipalRequestBuilder withUrl(@jakarta.annotation.Nonnull final String return new PrincipalRequestBuilder(rawUrl, requestAdapter); } /** - * The principal that's getting a role assignment through the request. Supports $expand. + * The principal that's getting a role assignment through the request. Supports $expand and $select nested in $expand for id only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/rolemanagement/entitlementmanagement/roleassignmentschedulerequests/item/roledefinition/RoleDefinitionRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/rolemanagement/entitlementmanagement/roleassignmentschedulerequests/item/roledefinition/RoleDefinitionRequestBuilder.java index 34608af4fbf..f759238c82e 100644 --- a/src/main/java/com/microsoft/graph/generated/rolemanagement/entitlementmanagement/roleassignmentschedulerequests/item/roledefinition/RoleDefinitionRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/rolemanagement/entitlementmanagement/roleassignmentschedulerequests/item/roledefinition/RoleDefinitionRequestBuilder.java @@ -37,7 +37,7 @@ public RoleDefinitionRequestBuilder(@jakarta.annotation.Nonnull final String raw super(requestAdapter, "{+baseurl}/roleManagement/entitlementManagement/roleAssignmentScheduleRequests/{unifiedRoleAssignmentScheduleRequest%2Did}/roleDefinition{?%24expand,%24select}", rawUrl); } /** - * Detailed information for the unifiedRoleDefinition object that is referenced through the roleDefinitionId property. Supports $expand. + * Detailed information for the unifiedRoleDefinition object that is referenced through the roleDefinitionId property. Supports $expand and $select nested in $expand. * @return a {@link UnifiedRoleDefinition} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -46,7 +46,7 @@ public UnifiedRoleDefinition get() { return get(null); } /** - * Detailed information for the unifiedRoleDefinition object that is referenced through the roleDefinitionId property. Supports $expand. + * Detailed information for the unifiedRoleDefinition object that is referenced through the roleDefinitionId property. Supports $expand and $select nested in $expand. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link UnifiedRoleDefinition} * @throws ODataError When receiving a 4XX or 5XX status code @@ -59,7 +59,7 @@ public UnifiedRoleDefinition get(@jakarta.annotation.Nullable final java.util.fu return this.requestAdapter.send(requestInfo, errorMapping, UnifiedRoleDefinition::createFromDiscriminatorValue); } /** - * Detailed information for the unifiedRoleDefinition object that is referenced through the roleDefinitionId property. Supports $expand. + * Detailed information for the unifiedRoleDefinition object that is referenced through the roleDefinitionId property. Supports $expand and $select nested in $expand. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -67,7 +67,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Detailed information for the unifiedRoleDefinition object that is referenced through the roleDefinitionId property. Supports $expand. + * Detailed information for the unifiedRoleDefinition object that is referenced through the roleDefinitionId property. Supports $expand and $select nested in $expand. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -89,7 +89,7 @@ public RoleDefinitionRequestBuilder withUrl(@jakarta.annotation.Nonnull final St return new RoleDefinitionRequestBuilder(rawUrl, requestAdapter); } /** - * Detailed information for the unifiedRoleDefinition object that is referenced through the roleDefinitionId property. Supports $expand. + * Detailed information for the unifiedRoleDefinition object that is referenced through the roleDefinitionId property. Supports $expand and $select nested in $expand. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/rolemanagement/entitlementmanagement/roleassignmentschedulerequests/item/targetschedule/TargetScheduleRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/rolemanagement/entitlementmanagement/roleassignmentschedulerequests/item/targetschedule/TargetScheduleRequestBuilder.java index d120290e690..0e6bf7ce615 100644 --- a/src/main/java/com/microsoft/graph/generated/rolemanagement/entitlementmanagement/roleassignmentschedulerequests/item/targetschedule/TargetScheduleRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/rolemanagement/entitlementmanagement/roleassignmentschedulerequests/item/targetschedule/TargetScheduleRequestBuilder.java @@ -37,7 +37,7 @@ public TargetScheduleRequestBuilder(@jakarta.annotation.Nonnull final String raw super(requestAdapter, "{+baseurl}/roleManagement/entitlementManagement/roleAssignmentScheduleRequests/{unifiedRoleAssignmentScheduleRequest%2Did}/targetSchedule{?%24expand,%24select}", rawUrl); } /** - * The schedule for an eligible role assignment that is referenced through the targetScheduleId property. Supports $expand. + * The schedule for an eligible role assignment that is referenced through the targetScheduleId property. Supports $expand and $select nested in $expand. * @return a {@link UnifiedRoleAssignmentSchedule} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -46,7 +46,7 @@ public UnifiedRoleAssignmentSchedule get() { return get(null); } /** - * The schedule for an eligible role assignment that is referenced through the targetScheduleId property. Supports $expand. + * The schedule for an eligible role assignment that is referenced through the targetScheduleId property. Supports $expand and $select nested in $expand. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link UnifiedRoleAssignmentSchedule} * @throws ODataError When receiving a 4XX or 5XX status code @@ -59,7 +59,7 @@ public UnifiedRoleAssignmentSchedule get(@jakarta.annotation.Nullable final java return this.requestAdapter.send(requestInfo, errorMapping, UnifiedRoleAssignmentSchedule::createFromDiscriminatorValue); } /** - * The schedule for an eligible role assignment that is referenced through the targetScheduleId property. Supports $expand. + * The schedule for an eligible role assignment that is referenced through the targetScheduleId property. Supports $expand and $select nested in $expand. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -67,7 +67,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * The schedule for an eligible role assignment that is referenced through the targetScheduleId property. Supports $expand. + * The schedule for an eligible role assignment that is referenced through the targetScheduleId property. Supports $expand and $select nested in $expand. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -89,7 +89,7 @@ public TargetScheduleRequestBuilder withUrl(@jakarta.annotation.Nonnull final St return new TargetScheduleRequestBuilder(rawUrl, requestAdapter); } /** - * The schedule for an eligible role assignment that is referenced through the targetScheduleId property. Supports $expand. + * The schedule for an eligible role assignment that is referenced through the targetScheduleId property. Supports $expand and $select nested in $expand. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/rolemanagement/entitlementmanagement/roleassignmentschedules/item/activatedusing/ActivatedUsingRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/rolemanagement/entitlementmanagement/roleassignmentschedules/item/activatedusing/ActivatedUsingRequestBuilder.java index 316f23b6ffe..7f3ef77c495 100644 --- a/src/main/java/com/microsoft/graph/generated/rolemanagement/entitlementmanagement/roleassignmentschedules/item/activatedusing/ActivatedUsingRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/rolemanagement/entitlementmanagement/roleassignmentschedules/item/activatedusing/ActivatedUsingRequestBuilder.java @@ -37,7 +37,7 @@ public ActivatedUsingRequestBuilder(@jakarta.annotation.Nonnull final String raw super(requestAdapter, "{+baseurl}/roleManagement/entitlementManagement/roleAssignmentSchedules/{unifiedRoleAssignmentSchedule%2Did}/activatedUsing{?%24expand,%24select}", rawUrl); } /** - * If the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it is null. Supports $expand. + * If the request is from an eligible administrator to activate a role, this parameter shows the related eligible assignment for that activation. Otherwise, it's null. Supports $expand. * @return a {@link UnifiedRoleEligibilitySchedule} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -46,7 +46,7 @@ public UnifiedRoleEligibilitySchedule get() { return get(null); } /** - * If the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it is null. Supports $expand. + * If the request is from an eligible administrator to activate a role, this parameter shows the related eligible assignment for that activation. Otherwise, it's null. Supports $expand. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link UnifiedRoleEligibilitySchedule} * @throws ODataError When receiving a 4XX or 5XX status code @@ -59,7 +59,7 @@ public UnifiedRoleEligibilitySchedule get(@jakarta.annotation.Nullable final jav return this.requestAdapter.send(requestInfo, errorMapping, UnifiedRoleEligibilitySchedule::createFromDiscriminatorValue); } /** - * If the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it is null. Supports $expand. + * If the request is from an eligible administrator to activate a role, this parameter shows the related eligible assignment for that activation. Otherwise, it's null. Supports $expand. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -67,7 +67,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * If the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it is null. Supports $expand. + * If the request is from an eligible administrator to activate a role, this parameter shows the related eligible assignment for that activation. Otherwise, it's null. Supports $expand. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -89,7 +89,7 @@ public ActivatedUsingRequestBuilder withUrl(@jakarta.annotation.Nonnull final St return new ActivatedUsingRequestBuilder(rawUrl, requestAdapter); } /** - * If the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it is null. Supports $expand. + * If the request is from an eligible administrator to activate a role, this parameter shows the related eligible assignment for that activation. Otherwise, it's null. Supports $expand. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/search/SearchRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/search/SearchRequestBuilder.java index c04b2af9089..6e048c9ab97 100644 --- a/src/main/java/com/microsoft/graph/generated/search/SearchRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/search/SearchRequestBuilder.java @@ -2,6 +2,9 @@ import com.microsoft.graph.models.odataerrors.ODataError; import com.microsoft.graph.models.SearchEntity; +import com.microsoft.graph.search.acronyms.AcronymsRequestBuilder; +import com.microsoft.graph.search.bookmarks.BookmarksRequestBuilder; +import com.microsoft.graph.search.qnas.QnasRequestBuilder; import com.microsoft.graph.search.query.QueryRequestBuilder; import com.microsoft.kiota.BaseRequestBuilder; import com.microsoft.kiota.BaseRequestConfiguration; @@ -21,6 +24,30 @@ */ @jakarta.annotation.Generated("com.microsoft.kiota") public class SearchRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to manage the acronyms property of the microsoft.graph.searchEntity entity. + * @return a {@link AcronymsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public AcronymsRequestBuilder acronyms() { + return new AcronymsRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to manage the bookmarks property of the microsoft.graph.searchEntity entity. + * @return a {@link BookmarksRequestBuilder} + */ + @jakarta.annotation.Nonnull + public BookmarksRequestBuilder bookmarks() { + return new BookmarksRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to manage the qnas property of the microsoft.graph.searchEntity entity. + * @return a {@link QnasRequestBuilder} + */ + @jakarta.annotation.Nonnull + public QnasRequestBuilder qnas() { + return new QnasRequestBuilder(pathParameters, requestAdapter); + } /** * Provides operations to call the query method. * @return a {@link QueryRequestBuilder} diff --git a/src/main/java/com/microsoft/graph/generated/search/acronyms/AcronymsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/search/acronyms/AcronymsRequestBuilder.java new file mode 100644 index 00000000000..2e54db74e55 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/search/acronyms/AcronymsRequestBuilder.java @@ -0,0 +1,247 @@ +package com.microsoft.graph.search.acronyms; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.search.Acronym; +import com.microsoft.graph.models.search.AcronymCollectionResponse; +import com.microsoft.graph.search.acronyms.count.CountRequestBuilder; +import com.microsoft.graph.search.acronyms.item.AcronymItemRequestBuilder; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the acronyms property of the microsoft.graph.searchEntity entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class AcronymsRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to count the resources in the collection. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder count() { + return new CountRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to manage the acronyms property of the microsoft.graph.searchEntity entity. + * @param acronymId The unique identifier of acronym + * @return a {@link AcronymItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public AcronymItemRequestBuilder byAcronymId(@jakarta.annotation.Nonnull final String acronymId) { + Objects.requireNonNull(acronymId); + final HashMap urlTplParams = new HashMap(this.pathParameters); + urlTplParams.put("acronym%2Did", acronymId); + return new AcronymItemRequestBuilder(urlTplParams, requestAdapter); + } + /** + * Instantiates a new {@link AcronymsRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public AcronymsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/search/acronyms{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link AcronymsRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public AcronymsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/search/acronyms{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * Get a list of the acronym objects and their properties. + * @return a {@link AcronymCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public AcronymCollectionResponse get() { + return get(null); + } + /** + * Get a list of the acronym objects and their properties. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link AcronymCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public AcronymCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, AcronymCollectionResponse::createFromDiscriminatorValue); + } + /** + * Create a new acronym object. + * @param body The request body + * @return a {@link Acronym} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public Acronym post(@jakarta.annotation.Nonnull final Acronym body) { + return post(body, null); + } + /** + * Create a new acronym object. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link Acronym} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public Acronym post(@jakarta.annotation.Nonnull final Acronym body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, Acronym::createFromDiscriminatorValue); + } + /** + * Get a list of the acronym objects and their properties. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get a list of the acronym objects and their properties. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Create a new acronym object. + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final Acronym body) { + return toPostRequestInformation(body, null); + } + /** + * Create a new acronym object. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final Acronym body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, "{+baseurl}/search/acronyms", pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link AcronymsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public AcronymsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new AcronymsRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get a list of the acronym objects and their properties. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Include count of items + */ + @jakarta.annotation.Nullable + public Boolean count; + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Order items by property values + */ + @jakarta.annotation.Nullable + public String[] orderby; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Skip the first n items + */ + @jakarta.annotation.Nullable + public Integer skip; + /** + * Show only the first n items + */ + @jakarta.annotation.Nullable + public Integer top; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24count", count); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + allQueryParams.put("%24skip", skip); + allQueryParams.put("%24top", top); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24orderby", orderby); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/search/acronyms/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/search/acronyms/count/CountRequestBuilder.java new file mode 100644 index 00000000000..00b5853c2cf --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/search/acronyms/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +package com.microsoft.graph.search.acronyms.count; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to count the resources in the collection. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CountRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/search/acronyms/$count{?%24filter,%24search}", pathParameters); + } + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/search/acronyms/$count{?%24filter,%24search}", rawUrl); + } + /** + * Get the number of the resource + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get() { + return get(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); + } + /** + * Get the number of the resource + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new CountRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get the number of the resource + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/search/acronyms/item/AcronymItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/search/acronyms/item/AcronymItemRequestBuilder.java new file mode 100644 index 00000000000..0e133d72c06 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/search/acronyms/item/AcronymItemRequestBuilder.java @@ -0,0 +1,234 @@ +package com.microsoft.graph.search.acronyms.item; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.search.Acronym; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the acronyms property of the microsoft.graph.searchEntity entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class AcronymItemRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link AcronymItemRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public AcronymItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/search/acronyms/{acronym%2Did}{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link AcronymItemRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public AcronymItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/search/acronyms/{acronym%2Did}{?%24expand,%24select}", rawUrl); + } + /** + * Delete an acronym object. + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + public void delete() { + delete(null); + } + /** + * Delete an acronym object. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * Read the properties and relationships of an acronym object. + * @return a {@link Acronym} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public Acronym get() { + return get(null); + } + /** + * Read the properties and relationships of an acronym object. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link Acronym} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public Acronym get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, Acronym::createFromDiscriminatorValue); + } + /** + * Update the properties of an acronym object. + * @param body The request body + * @return a {@link Acronym} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public Acronym patch(@jakarta.annotation.Nonnull final Acronym body) { + return patch(body, null); + } + /** + * Update the properties of an acronym object. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link Acronym} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public Acronym patch(@jakarta.annotation.Nonnull final Acronym body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, Acronym::createFromDiscriminatorValue); + } + /** + * Delete an acronym object. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation() { + return toDeleteRequestInformation(null); + } + /** + * Delete an acronym object. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, "{+baseurl}/search/acronyms/{acronym%2Did}", pathParameters); + requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Read the properties and relationships of an acronym object. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Read the properties and relationships of an acronym object. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update the properties of an acronym object. + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final Acronym body) { + return toPatchRequestInformation(body, null); + } + /** + * Update the properties of an acronym object. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final Acronym body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, "{+baseurl}/search/acronyms/{acronym%2Did}", pathParameters); + requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link AcronymItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public AcronymItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new AcronymItemRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class DeleteRequestConfiguration extends BaseRequestConfiguration { + } + /** + * Read the properties and relationships of an acronym object. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PatchRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/search/bookmarks/BookmarksRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/search/bookmarks/BookmarksRequestBuilder.java new file mode 100644 index 00000000000..f6150e5011c --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/search/bookmarks/BookmarksRequestBuilder.java @@ -0,0 +1,247 @@ +package com.microsoft.graph.search.bookmarks; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.search.Bookmark; +import com.microsoft.graph.models.search.BookmarkCollectionResponse; +import com.microsoft.graph.search.bookmarks.count.CountRequestBuilder; +import com.microsoft.graph.search.bookmarks.item.BookmarkItemRequestBuilder; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the bookmarks property of the microsoft.graph.searchEntity entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class BookmarksRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to count the resources in the collection. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder count() { + return new CountRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to manage the bookmarks property of the microsoft.graph.searchEntity entity. + * @param bookmarkId The unique identifier of bookmark + * @return a {@link BookmarkItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public BookmarkItemRequestBuilder byBookmarkId(@jakarta.annotation.Nonnull final String bookmarkId) { + Objects.requireNonNull(bookmarkId); + final HashMap urlTplParams = new HashMap(this.pathParameters); + urlTplParams.put("bookmark%2Did", bookmarkId); + return new BookmarkItemRequestBuilder(urlTplParams, requestAdapter); + } + /** + * Instantiates a new {@link BookmarksRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public BookmarksRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/search/bookmarks{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link BookmarksRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public BookmarksRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/search/bookmarks{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * Get a list of bookmark objects and their properties. + * @return a {@link BookmarkCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public BookmarkCollectionResponse get() { + return get(null); + } + /** + * Get a list of bookmark objects and their properties. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link BookmarkCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public BookmarkCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, BookmarkCollectionResponse::createFromDiscriminatorValue); + } + /** + * Create a new bookmark object. + * @param body The request body + * @return a {@link Bookmark} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public Bookmark post(@jakarta.annotation.Nonnull final Bookmark body) { + return post(body, null); + } + /** + * Create a new bookmark object. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link Bookmark} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public Bookmark post(@jakarta.annotation.Nonnull final Bookmark body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, Bookmark::createFromDiscriminatorValue); + } + /** + * Get a list of bookmark objects and their properties. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get a list of bookmark objects and their properties. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Create a new bookmark object. + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final Bookmark body) { + return toPostRequestInformation(body, null); + } + /** + * Create a new bookmark object. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final Bookmark body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, "{+baseurl}/search/bookmarks", pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link BookmarksRequestBuilder} + */ + @jakarta.annotation.Nonnull + public BookmarksRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new BookmarksRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get a list of bookmark objects and their properties. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Include count of items + */ + @jakarta.annotation.Nullable + public Boolean count; + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Order items by property values + */ + @jakarta.annotation.Nullable + public String[] orderby; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Skip the first n items + */ + @jakarta.annotation.Nullable + public Integer skip; + /** + * Show only the first n items + */ + @jakarta.annotation.Nullable + public Integer top; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24count", count); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + allQueryParams.put("%24skip", skip); + allQueryParams.put("%24top", top); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24orderby", orderby); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/search/bookmarks/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/search/bookmarks/count/CountRequestBuilder.java new file mode 100644 index 00000000000..0b60690a507 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/search/bookmarks/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +package com.microsoft.graph.search.bookmarks.count; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to count the resources in the collection. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CountRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/search/bookmarks/$count{?%24filter,%24search}", pathParameters); + } + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/search/bookmarks/$count{?%24filter,%24search}", rawUrl); + } + /** + * Get the number of the resource + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get() { + return get(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); + } + /** + * Get the number of the resource + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new CountRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get the number of the resource + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/search/bookmarks/item/BookmarkItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/search/bookmarks/item/BookmarkItemRequestBuilder.java new file mode 100644 index 00000000000..3718cff7092 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/search/bookmarks/item/BookmarkItemRequestBuilder.java @@ -0,0 +1,234 @@ +package com.microsoft.graph.search.bookmarks.item; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.search.Bookmark; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the bookmarks property of the microsoft.graph.searchEntity entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class BookmarkItemRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link BookmarkItemRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public BookmarkItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/search/bookmarks/{bookmark%2Did}{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link BookmarkItemRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public BookmarkItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/search/bookmarks/{bookmark%2Did}{?%24expand,%24select}", rawUrl); + } + /** + * Delete a bookmark object. + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + public void delete() { + delete(null); + } + /** + * Delete a bookmark object. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * Read the properties and relationships of a bookmark object. + * @return a {@link Bookmark} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public Bookmark get() { + return get(null); + } + /** + * Read the properties and relationships of a bookmark object. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link Bookmark} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public Bookmark get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, Bookmark::createFromDiscriminatorValue); + } + /** + * Update the properties of a bookmark object. + * @param body The request body + * @return a {@link Bookmark} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public Bookmark patch(@jakarta.annotation.Nonnull final Bookmark body) { + return patch(body, null); + } + /** + * Update the properties of a bookmark object. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link Bookmark} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public Bookmark patch(@jakarta.annotation.Nonnull final Bookmark body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, Bookmark::createFromDiscriminatorValue); + } + /** + * Delete a bookmark object. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation() { + return toDeleteRequestInformation(null); + } + /** + * Delete a bookmark object. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, "{+baseurl}/search/bookmarks/{bookmark%2Did}", pathParameters); + requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Read the properties and relationships of a bookmark object. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Read the properties and relationships of a bookmark object. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update the properties of a bookmark object. + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final Bookmark body) { + return toPatchRequestInformation(body, null); + } + /** + * Update the properties of a bookmark object. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final Bookmark body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, "{+baseurl}/search/bookmarks/{bookmark%2Did}", pathParameters); + requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link BookmarkItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public BookmarkItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new BookmarkItemRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class DeleteRequestConfiguration extends BaseRequestConfiguration { + } + /** + * Read the properties and relationships of a bookmark object. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PatchRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/search/qnas/QnasRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/search/qnas/QnasRequestBuilder.java new file mode 100644 index 00000000000..37c8fcb4d16 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/search/qnas/QnasRequestBuilder.java @@ -0,0 +1,247 @@ +package com.microsoft.graph.search.qnas; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.search.Qna; +import com.microsoft.graph.models.search.QnaCollectionResponse; +import com.microsoft.graph.search.qnas.count.CountRequestBuilder; +import com.microsoft.graph.search.qnas.item.QnaItemRequestBuilder; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the qnas property of the microsoft.graph.searchEntity entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class QnasRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to count the resources in the collection. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder count() { + return new CountRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to manage the qnas property of the microsoft.graph.searchEntity entity. + * @param qnaId The unique identifier of qna + * @return a {@link QnaItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public QnaItemRequestBuilder byQnaId(@jakarta.annotation.Nonnull final String qnaId) { + Objects.requireNonNull(qnaId); + final HashMap urlTplParams = new HashMap(this.pathParameters); + urlTplParams.put("qna%2Did", qnaId); + return new QnaItemRequestBuilder(urlTplParams, requestAdapter); + } + /** + * Instantiates a new {@link QnasRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public QnasRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/search/qnas{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link QnasRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public QnasRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/search/qnas{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * Get a list of the qna objects and their properties. + * @return a {@link QnaCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public QnaCollectionResponse get() { + return get(null); + } + /** + * Get a list of the qna objects and their properties. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link QnaCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public QnaCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, QnaCollectionResponse::createFromDiscriminatorValue); + } + /** + * Create a new qna object. + * @param body The request body + * @return a {@link Qna} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public Qna post(@jakarta.annotation.Nonnull final Qna body) { + return post(body, null); + } + /** + * Create a new qna object. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link Qna} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public Qna post(@jakarta.annotation.Nonnull final Qna body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, Qna::createFromDiscriminatorValue); + } + /** + * Get a list of the qna objects and their properties. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get a list of the qna objects and their properties. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Create a new qna object. + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final Qna body) { + return toPostRequestInformation(body, null); + } + /** + * Create a new qna object. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final Qna body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, "{+baseurl}/search/qnas", pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link QnasRequestBuilder} + */ + @jakarta.annotation.Nonnull + public QnasRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new QnasRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get a list of the qna objects and their properties. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Include count of items + */ + @jakarta.annotation.Nullable + public Boolean count; + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Order items by property values + */ + @jakarta.annotation.Nullable + public String[] orderby; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Skip the first n items + */ + @jakarta.annotation.Nullable + public Integer skip; + /** + * Show only the first n items + */ + @jakarta.annotation.Nullable + public Integer top; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24count", count); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + allQueryParams.put("%24skip", skip); + allQueryParams.put("%24top", top); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24orderby", orderby); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/search/qnas/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/search/qnas/count/CountRequestBuilder.java new file mode 100644 index 00000000000..cd9520e19ed --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/search/qnas/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +package com.microsoft.graph.search.qnas.count; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to count the resources in the collection. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CountRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/search/qnas/$count{?%24filter,%24search}", pathParameters); + } + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/search/qnas/$count{?%24filter,%24search}", rawUrl); + } + /** + * Get the number of the resource + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get() { + return get(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); + } + /** + * Get the number of the resource + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new CountRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get the number of the resource + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/search/qnas/item/QnaItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/search/qnas/item/QnaItemRequestBuilder.java new file mode 100644 index 00000000000..9900612eb64 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/search/qnas/item/QnaItemRequestBuilder.java @@ -0,0 +1,234 @@ +package com.microsoft.graph.search.qnas.item; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.search.Qna; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the qnas property of the microsoft.graph.searchEntity entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class QnaItemRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link QnaItemRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public QnaItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/search/qnas/{qna%2Did}{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link QnaItemRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public QnaItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/search/qnas/{qna%2Did}{?%24expand,%24select}", rawUrl); + } + /** + * Delete a qna object. + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + public void delete() { + delete(null); + } + /** + * Delete a qna object. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * Read the properties and relationships of a qna object. + * @return a {@link Qna} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public Qna get() { + return get(null); + } + /** + * Read the properties and relationships of a qna object. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link Qna} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public Qna get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, Qna::createFromDiscriminatorValue); + } + /** + * Update the properties of a qna object. + * @param body The request body + * @return a {@link Qna} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public Qna patch(@jakarta.annotation.Nonnull final Qna body) { + return patch(body, null); + } + /** + * Update the properties of a qna object. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link Qna} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public Qna patch(@jakarta.annotation.Nonnull final Qna body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, Qna::createFromDiscriminatorValue); + } + /** + * Delete a qna object. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation() { + return toDeleteRequestInformation(null); + } + /** + * Delete a qna object. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, "{+baseurl}/search/qnas/{qna%2Did}", pathParameters); + requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Read the properties and relationships of a qna object. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Read the properties and relationships of a qna object. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update the properties of a qna object. + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final Qna body) { + return toPatchRequestInformation(body, null); + } + /** + * Update the properties of a qna object. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final Qna body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, "{+baseurl}/search/qnas/{qna%2Did}", pathParameters); + requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link QnaItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public QnaItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new QnaItemRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class DeleteRequestConfiguration extends BaseRequestConfiguration { + } + /** + * Read the properties and relationships of a qna object. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PatchRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/serviceprincipals/item/ownedobjects/OwnedObjectsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/serviceprincipals/item/ownedobjects/OwnedObjectsRequestBuilder.java index ea967f050bb..0b838665bbf 100644 --- a/src/main/java/com/microsoft/graph/generated/serviceprincipals/item/ownedobjects/OwnedObjectsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/serviceprincipals/item/ownedobjects/OwnedObjectsRequestBuilder.java @@ -104,7 +104,7 @@ public OwnedObjectsRequestBuilder(@jakarta.annotation.Nonnull final String rawUr super(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/ownedObjects{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * Directory objects that are owned by this service principal. Read-only. Nullable. Supports $expand, $select nested in $expand, and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). + * Directory objects that this service principal owns. Read-only. Nullable. Supports $expand, $select nested in $expand, and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). * @return a {@link DirectoryObjectCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -113,7 +113,7 @@ public DirectoryObjectCollectionResponse get() { return get(null); } /** - * Directory objects that are owned by this service principal. Read-only. Nullable. Supports $expand, $select nested in $expand, and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). + * Directory objects that this service principal owns. Read-only. Nullable. Supports $expand, $select nested in $expand, and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link DirectoryObjectCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -126,7 +126,7 @@ public DirectoryObjectCollectionResponse get(@jakarta.annotation.Nullable final return this.requestAdapter.send(requestInfo, errorMapping, DirectoryObjectCollectionResponse::createFromDiscriminatorValue); } /** - * Directory objects that are owned by this service principal. Read-only. Nullable. Supports $expand, $select nested in $expand, and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). + * Directory objects that this service principal owns. Read-only. Nullable. Supports $expand, $select nested in $expand, and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -134,7 +134,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Directory objects that are owned by this service principal. Read-only. Nullable. Supports $expand, $select nested in $expand, and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). + * Directory objects that this service principal owns. Read-only. Nullable. Supports $expand, $select nested in $expand, and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -156,7 +156,7 @@ public OwnedObjectsRequestBuilder withUrl(@jakarta.annotation.Nonnull final Stri return new OwnedObjectsRequestBuilder(rawUrl, requestAdapter); } /** - * Directory objects that are owned by this service principal. Read-only. Nullable. Supports $expand, $select nested in $expand, and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). + * Directory objects that this service principal owns. Read-only. Nullable. Supports $expand, $select nested in $expand, and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/serviceprincipals/item/ownedobjects/item/DirectoryObjectItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/serviceprincipals/item/ownedobjects/item/DirectoryObjectItemRequestBuilder.java index 9c33470c069..4fa0a45bc8d 100644 --- a/src/main/java/com/microsoft/graph/generated/serviceprincipals/item/ownedobjects/item/DirectoryObjectItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/serviceprincipals/item/ownedobjects/item/DirectoryObjectItemRequestBuilder.java @@ -82,7 +82,7 @@ public DirectoryObjectItemRequestBuilder(@jakarta.annotation.Nonnull final Strin super(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/ownedObjects/{directoryObject%2Did}{?%24expand,%24select}", rawUrl); } /** - * Directory objects that are owned by this service principal. Read-only. Nullable. Supports $expand, $select nested in $expand, and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). + * Directory objects that this service principal owns. Read-only. Nullable. Supports $expand, $select nested in $expand, and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -91,7 +91,7 @@ public DirectoryObject get() { return get(null); } /** - * Directory objects that are owned by this service principal. Read-only. Nullable. Supports $expand, $select nested in $expand, and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). + * Directory objects that this service principal owns. Read-only. Nullable. Supports $expand, $select nested in $expand, and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code @@ -104,7 +104,7 @@ public DirectoryObject get(@jakarta.annotation.Nullable final java.util.function return this.requestAdapter.send(requestInfo, errorMapping, DirectoryObject::createFromDiscriminatorValue); } /** - * Directory objects that are owned by this service principal. Read-only. Nullable. Supports $expand, $select nested in $expand, and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). + * Directory objects that this service principal owns. Read-only. Nullable. Supports $expand, $select nested in $expand, and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -112,7 +112,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Directory objects that are owned by this service principal. Read-only. Nullable. Supports $expand, $select nested in $expand, and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). + * Directory objects that this service principal owns. Read-only. Nullable. Supports $expand, $select nested in $expand, and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -134,7 +134,7 @@ public DirectoryObjectItemRequestBuilder withUrl(@jakarta.annotation.Nonnull fin return new DirectoryObjectItemRequestBuilder(rawUrl, requestAdapter); } /** - * Directory objects that are owned by this service principal. Read-only. Nullable. Supports $expand, $select nested in $expand, and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). + * Directory objects that this service principal owns. Read-only. Nullable. Supports $expand, $select nested in $expand, and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/serviceprincipals/item/owners/OwnersRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/serviceprincipals/item/owners/OwnersRequestBuilder.java index 181a8cdfdf2..69b000ee64a 100644 --- a/src/main/java/com/microsoft/graph/generated/serviceprincipals/item/owners/OwnersRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/serviceprincipals/item/owners/OwnersRequestBuilder.java @@ -104,7 +104,7 @@ public OwnersRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @ja super(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/owners{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * Directory objects that are owners of this servicePrincipal. The owners are a set of non-admin users or servicePrincipals who are allowed to modify this object. Read-only. Nullable. Supports $expand, $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1), and $select nested in $expand. + * Directory objects that are owners of this servicePrincipal. The owners are a set of nonadmin users or servicePrincipals who are allowed to modify this object. Read-only. Nullable. Supports $expand, $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1), and $select nested in $expand. * @return a {@link DirectoryObjectCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code * @see Find more info here @@ -114,7 +114,7 @@ public DirectoryObjectCollectionResponse get() { return get(null); } /** - * Directory objects that are owners of this servicePrincipal. The owners are a set of non-admin users or servicePrincipals who are allowed to modify this object. Read-only. Nullable. Supports $expand, $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1), and $select nested in $expand. + * Directory objects that are owners of this servicePrincipal. The owners are a set of nonadmin users or servicePrincipals who are allowed to modify this object. Read-only. Nullable. Supports $expand, $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1), and $select nested in $expand. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link DirectoryObjectCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -128,7 +128,7 @@ public DirectoryObjectCollectionResponse get(@jakarta.annotation.Nullable final return this.requestAdapter.send(requestInfo, errorMapping, DirectoryObjectCollectionResponse::createFromDiscriminatorValue); } /** - * Directory objects that are owners of this servicePrincipal. The owners are a set of non-admin users or servicePrincipals who are allowed to modify this object. Read-only. Nullable. Supports $expand, $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1), and $select nested in $expand. + * Directory objects that are owners of this servicePrincipal. The owners are a set of nonadmin users or servicePrincipals who are allowed to modify this object. Read-only. Nullable. Supports $expand, $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1), and $select nested in $expand. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -136,7 +136,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Directory objects that are owners of this servicePrincipal. The owners are a set of non-admin users or servicePrincipals who are allowed to modify this object. Read-only. Nullable. Supports $expand, $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1), and $select nested in $expand. + * Directory objects that are owners of this servicePrincipal. The owners are a set of nonadmin users or servicePrincipals who are allowed to modify this object. Read-only. Nullable. Supports $expand, $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1), and $select nested in $expand. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -158,7 +158,7 @@ public OwnersRequestBuilder withUrl(@jakarta.annotation.Nonnull final String raw return new OwnersRequestBuilder(rawUrl, requestAdapter); } /** - * Directory objects that are owners of this servicePrincipal. The owners are a set of non-admin users or servicePrincipals who are allowed to modify this object. Read-only. Nullable. Supports $expand, $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1), and $select nested in $expand. + * Directory objects that are owners of this servicePrincipal. The owners are a set of nonadmin users or servicePrincipals who are allowed to modify this object. Read-only. Nullable. Supports $expand, $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1), and $select nested in $expand. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/serviceprincipals/item/owners/ref/RefRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/serviceprincipals/item/owners/ref/RefRequestBuilder.java index 7284ca25a0f..62de5b8eba3 100644 --- a/src/main/java/com/microsoft/graph/generated/serviceprincipals/item/owners/ref/RefRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/serviceprincipals/item/owners/ref/RefRequestBuilder.java @@ -58,7 +58,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Directory objects that are owners of this servicePrincipal. The owners are a set of non-admin users or servicePrincipals who are allowed to modify this object. Read-only. Nullable. Supports $expand, $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1), and $select nested in $expand. + * Directory objects that are owners of this servicePrincipal. The owners are a set of nonadmin users or servicePrincipals who are allowed to modify this object. Read-only. Nullable. Supports $expand, $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1), and $select nested in $expand. * @return a {@link StringCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code * @see Find more info here @@ -68,7 +68,7 @@ public StringCollectionResponse get() { return get(null); } /** - * Directory objects that are owners of this servicePrincipal. The owners are a set of non-admin users or servicePrincipals who are allowed to modify this object. Read-only. Nullable. Supports $expand, $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1), and $select nested in $expand. + * Directory objects that are owners of this servicePrincipal. The owners are a set of nonadmin users or servicePrincipals who are allowed to modify this object. Read-only. Nullable. Supports $expand, $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1), and $select nested in $expand. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link StringCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -125,7 +125,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Directory objects that are owners of this servicePrincipal. The owners are a set of non-admin users or servicePrincipals who are allowed to modify this object. Read-only. Nullable. Supports $expand, $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1), and $select nested in $expand. + * Directory objects that are owners of this servicePrincipal. The owners are a set of nonadmin users or servicePrincipals who are allowed to modify this object. Read-only. Nullable. Supports $expand, $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1), and $select nested in $expand. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -133,7 +133,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Directory objects that are owners of this servicePrincipal. The owners are a set of non-admin users or servicePrincipals who are allowed to modify this object. Read-only. Nullable. Supports $expand, $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1), and $select nested in $expand. + * Directory objects that are owners of this servicePrincipal. The owners are a set of nonadmin users or servicePrincipals who are allowed to modify this object. Read-only. Nullable. Supports $expand, $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1), and $select nested in $expand. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -211,7 +211,7 @@ public class DeleteRequestConfiguration extends BaseRequestConfiguration { public DeleteQueryParameters queryParameters = new DeleteQueryParameters(); } /** - * Directory objects that are owners of this servicePrincipal. The owners are a set of non-admin users or servicePrincipals who are allowed to modify this object. Read-only. Nullable. Supports $expand, $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1), and $select nested in $expand. + * Directory objects that are owners of this servicePrincipal. The owners are a set of nonadmin users or servicePrincipals who are allowed to modify this object. Read-only. Nullable. Supports $expand, $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1), and $select nested in $expand. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/serviceprincipals/item/synchronization/jobs/item/bulkupload/BulkUploadRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/serviceprincipals/item/synchronization/jobs/item/bulkupload/BulkUploadRequestBuilder.java index f0e6f0d2dd9..a7b3aba8aeb 100644 --- a/src/main/java/com/microsoft/graph/generated/serviceprincipals/item/synchronization/jobs/item/bulkupload/BulkUploadRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/serviceprincipals/item/synchronization/jobs/item/bulkupload/BulkUploadRequestBuilder.java @@ -64,7 +64,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Get bulkUpload from servicePrincipals + * The bulk upload operation for the job. * @return a {@link BulkUpload} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -73,7 +73,7 @@ public BulkUpload get() { return get(null); } /** - * Get bulkUpload from servicePrincipals + * The bulk upload operation for the job. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link BulkUpload} * @throws ODataError When receiving a 4XX or 5XX status code @@ -131,7 +131,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Get bulkUpload from servicePrincipals + * The bulk upload operation for the job. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -139,7 +139,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Get bulkUpload from servicePrincipals + * The bulk upload operation for the job. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -191,7 +191,7 @@ public BulkUploadRequestBuilder withUrl(@jakarta.annotation.Nonnull final String public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Get bulkUpload from servicePrincipals + * The bulk upload operation for the job. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/sites/item/SiteItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/sites/item/SiteItemRequestBuilder.java index 56577581c9f..b4fc18b197b 100644 --- a/src/main/java/com/microsoft/graph/generated/sites/item/SiteItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/sites/item/SiteItemRequestBuilder.java @@ -18,6 +18,7 @@ import com.microsoft.graph.sites.item.lists.ListsRequestBuilder; import com.microsoft.graph.sites.item.onenote.OnenoteRequestBuilder; import com.microsoft.graph.sites.item.operations.OperationsRequestBuilder; +import com.microsoft.graph.sites.item.pages.PagesRequestBuilder; import com.microsoft.graph.sites.item.permissions.PermissionsRequestBuilder; import com.microsoft.graph.sites.item.sites.SitesRequestBuilder; import com.microsoft.graph.sites.item.termstore.TermStoreRequestBuilder; @@ -144,6 +145,14 @@ public OnenoteRequestBuilder onenote() { public OperationsRequestBuilder operations() { return new OperationsRequestBuilder(pathParameters, requestAdapter); } + /** + * Provides operations to manage the pages property of the microsoft.graph.site entity. + * @return a {@link PagesRequestBuilder} + */ + @jakarta.annotation.Nonnull + public PagesRequestBuilder pages() { + return new PagesRequestBuilder(pathParameters, requestAdapter); + } /** * Provides operations to manage the permissions property of the microsoft.graph.site entity. * @return a {@link PermissionsRequestBuilder} diff --git a/src/main/java/com/microsoft/graph/generated/sites/item/analytics/AnalyticsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/sites/item/analytics/AnalyticsRequestBuilder.java index 1eea0e9fc96..4a593d89b29 100644 --- a/src/main/java/com/microsoft/graph/generated/sites/item/analytics/AnalyticsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/sites/item/analytics/AnalyticsRequestBuilder.java @@ -82,7 +82,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Analytics about the view activities that took place in this site. + * Analytics about the view activities that took place on this site. * @return a {@link ItemAnalytics} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -91,7 +91,7 @@ public ItemAnalytics get() { return get(null); } /** - * Analytics about the view activities that took place in this site. + * Analytics about the view activities that took place on this site. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link ItemAnalytics} * @throws ODataError When receiving a 4XX or 5XX status code @@ -149,7 +149,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Analytics about the view activities that took place in this site. + * Analytics about the view activities that took place on this site. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -157,7 +157,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Analytics about the view activities that took place in this site. + * Analytics about the view activities that took place on this site. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -209,7 +209,7 @@ public AnalyticsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Analytics about the view activities that took place in this site. + * Analytics about the view activities that took place on this site. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/sites/item/getbypathwithpath/GetByPathWithPathRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/sites/item/getbypathwithpath/GetByPathWithPathRequestBuilder.java index bf494dfd030..f260ce14ff4 100644 --- a/src/main/java/com/microsoft/graph/generated/sites/item/getbypathwithpath/GetByPathWithPathRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/sites/item/getbypathwithpath/GetByPathWithPathRequestBuilder.java @@ -18,6 +18,7 @@ import com.microsoft.graph.sites.item.getbypathwithpath.lists.ListsRequestBuilder; import com.microsoft.graph.sites.item.getbypathwithpath.onenote.OnenoteRequestBuilder; import com.microsoft.graph.sites.item.getbypathwithpath.operations.OperationsRequestBuilder; +import com.microsoft.graph.sites.item.getbypathwithpath.pages.PagesRequestBuilder; import com.microsoft.graph.sites.item.getbypathwithpath.permissions.PermissionsRequestBuilder; import com.microsoft.graph.sites.item.getbypathwithpath.sites.SitesRequestBuilder; import com.microsoft.graph.sites.item.getbypathwithpath.termstore.TermStoreRequestBuilder; @@ -143,6 +144,14 @@ public OnenoteRequestBuilder onenote() { public OperationsRequestBuilder operations() { return new OperationsRequestBuilder(pathParameters, requestAdapter); } + /** + * Provides operations to manage the pages property of the microsoft.graph.site entity. + * @return a {@link PagesRequestBuilder} + */ + @jakarta.annotation.Nonnull + public PagesRequestBuilder pages() { + return new PagesRequestBuilder(pathParameters, requestAdapter); + } /** * Provides operations to manage the permissions property of the microsoft.graph.site entity. * @return a {@link PermissionsRequestBuilder} diff --git a/src/main/java/com/microsoft/graph/generated/sites/item/getbypathwithpath/analytics/AnalyticsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/sites/item/getbypathwithpath/analytics/AnalyticsRequestBuilder.java index c03bcc3ffee..7c78dee924a 100644 --- a/src/main/java/com/microsoft/graph/generated/sites/item/getbypathwithpath/analytics/AnalyticsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/sites/item/getbypathwithpath/analytics/AnalyticsRequestBuilder.java @@ -55,7 +55,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Analytics about the view activities that took place in this site. + * Analytics about the view activities that took place on this site. * @return a {@link ItemAnalytics} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -64,7 +64,7 @@ public ItemAnalytics get() { return get(null); } /** - * Analytics about the view activities that took place in this site. + * Analytics about the view activities that took place on this site. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link ItemAnalytics} * @throws ODataError When receiving a 4XX or 5XX status code @@ -122,7 +122,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Analytics about the view activities that took place in this site. + * Analytics about the view activities that took place on this site. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -130,7 +130,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Analytics about the view activities that took place in this site. + * Analytics about the view activities that took place on this site. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -182,7 +182,7 @@ public AnalyticsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Analytics about the view activities that took place in this site. + * Analytics about the view activities that took place on this site. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/sites/item/getbypathwithpath/getbypathwithpath1/GetByPathWithPath1RequestBuilder.java b/src/main/java/com/microsoft/graph/generated/sites/item/getbypathwithpath/getbypathwithpath1/GetByPathWithPath1RequestBuilder.java index ca73e533eab..feaca7bf13f 100644 --- a/src/main/java/com/microsoft/graph/generated/sites/item/getbypathwithpath/getbypathwithpath1/GetByPathWithPath1RequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/sites/item/getbypathwithpath/getbypathwithpath1/GetByPathWithPath1RequestBuilder.java @@ -14,6 +14,7 @@ import com.microsoft.graph.sites.item.getbypathwithpath.getbypathwithpath1.lists.ListsRequestBuilder; import com.microsoft.graph.sites.item.getbypathwithpath.getbypathwithpath1.onenote.OnenoteRequestBuilder; import com.microsoft.graph.sites.item.getbypathwithpath.getbypathwithpath1.operations.OperationsRequestBuilder; +import com.microsoft.graph.sites.item.getbypathwithpath.getbypathwithpath1.pages.PagesRequestBuilder; import com.microsoft.graph.sites.item.getbypathwithpath.getbypathwithpath1.permissions.PermissionsRequestBuilder; import com.microsoft.graph.sites.item.getbypathwithpath.getbypathwithpath1.sites.SitesRequestBuilder; import com.microsoft.graph.sites.item.getbypathwithpath.getbypathwithpath1.termstore.TermStoreRequestBuilder; @@ -131,6 +132,14 @@ public OnenoteRequestBuilder onenote() { public OperationsRequestBuilder operations() { return new OperationsRequestBuilder(pathParameters, requestAdapter); } + /** + * Provides operations to manage the pages property of the microsoft.graph.site entity. + * @return a {@link PagesRequestBuilder} + */ + @jakarta.annotation.Nonnull + public PagesRequestBuilder pages() { + return new PagesRequestBuilder(pathParameters, requestAdapter); + } /** * Provides operations to manage the permissions property of the microsoft.graph.site entity. * @return a {@link PermissionsRequestBuilder} diff --git a/src/main/java/com/microsoft/graph/generated/sites/item/getbypathwithpath/getbypathwithpath1/analytics/AnalyticsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/sites/item/getbypathwithpath/getbypathwithpath1/analytics/AnalyticsRequestBuilder.java index 814bc4243ba..56deb159ee8 100644 --- a/src/main/java/com/microsoft/graph/generated/sites/item/getbypathwithpath/getbypathwithpath1/analytics/AnalyticsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/sites/item/getbypathwithpath/getbypathwithpath1/analytics/AnalyticsRequestBuilder.java @@ -55,7 +55,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Analytics about the view activities that took place in this site. + * Analytics about the view activities that took place on this site. * @return a {@link ItemAnalytics} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -64,7 +64,7 @@ public ItemAnalytics get() { return get(null); } /** - * Analytics about the view activities that took place in this site. + * Analytics about the view activities that took place on this site. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link ItemAnalytics} * @throws ODataError When receiving a 4XX or 5XX status code @@ -122,7 +122,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Analytics about the view activities that took place in this site. + * Analytics about the view activities that took place on this site. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -130,7 +130,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Analytics about the view activities that took place in this site. + * Analytics about the view activities that took place on this site. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -182,7 +182,7 @@ public AnalyticsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Analytics about the view activities that took place in this site. + * Analytics about the view activities that took place on this site. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/sites/item/getbypathwithpath/getbypathwithpath1/pages/PagesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/sites/item/getbypathwithpath/getbypathwithpath1/pages/PagesRequestBuilder.java new file mode 100644 index 00000000000..b065482bed2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/sites/item/getbypathwithpath/getbypathwithpath1/pages/PagesRequestBuilder.java @@ -0,0 +1,221 @@ +package com.microsoft.graph.sites.item.getbypathwithpath.getbypathwithpath1.pages; + +import com.microsoft.graph.models.BaseSitePage; +import com.microsoft.graph.models.BaseSitePageCollectionResponse; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the pages property of the microsoft.graph.site entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class PagesRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link PagesRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public PagesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/pages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link PagesRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public PagesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/pages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * Get pages from sites + * @return a {@link BaseSitePageCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public BaseSitePageCollectionResponse get() { + return get(null); + } + /** + * Get pages from sites + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link BaseSitePageCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public BaseSitePageCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, BaseSitePageCollectionResponse::createFromDiscriminatorValue); + } + /** + * Create new navigation property to pages for sites + * @param body The request body + * @return a {@link BaseSitePage} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public BaseSitePage post(@jakarta.annotation.Nonnull final BaseSitePage body) { + return post(body, null); + } + /** + * Create new navigation property to pages for sites + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link BaseSitePage} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public BaseSitePage post(@jakarta.annotation.Nonnull final BaseSitePage body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, BaseSitePage::createFromDiscriminatorValue); + } + /** + * Get pages from sites + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get pages from sites + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Create new navigation property to pages for sites + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final BaseSitePage body) { + return toPostRequestInformation(body, null); + } + /** + * Create new navigation property to pages for sites + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final BaseSitePage body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/pages", pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link PagesRequestBuilder} + */ + @jakarta.annotation.Nonnull + public PagesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new PagesRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get pages from sites + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Include count of items + */ + @jakarta.annotation.Nullable + public Boolean count; + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Order items by property values + */ + @jakarta.annotation.Nullable + public String[] orderby; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Skip the first n items + */ + @jakarta.annotation.Nullable + public Integer skip; + /** + * Show only the first n items + */ + @jakarta.annotation.Nullable + public Integer top; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24count", count); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + allQueryParams.put("%24skip", skip); + allQueryParams.put("%24top", top); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24orderby", orderby); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/sites/item/getbypathwithpath/pages/PagesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/sites/item/getbypathwithpath/pages/PagesRequestBuilder.java new file mode 100644 index 00000000000..d585d406b9c --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/sites/item/getbypathwithpath/pages/PagesRequestBuilder.java @@ -0,0 +1,221 @@ +package com.microsoft.graph.sites.item.getbypathwithpath.pages; + +import com.microsoft.graph.models.BaseSitePage; +import com.microsoft.graph.models.BaseSitePageCollectionResponse; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the pages property of the microsoft.graph.site entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class PagesRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link PagesRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public PagesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/pages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link PagesRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public PagesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/pages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * Get pages from sites + * @return a {@link BaseSitePageCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public BaseSitePageCollectionResponse get() { + return get(null); + } + /** + * Get pages from sites + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link BaseSitePageCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public BaseSitePageCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, BaseSitePageCollectionResponse::createFromDiscriminatorValue); + } + /** + * Create new navigation property to pages for sites + * @param body The request body + * @return a {@link BaseSitePage} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public BaseSitePage post(@jakarta.annotation.Nonnull final BaseSitePage body) { + return post(body, null); + } + /** + * Create new navigation property to pages for sites + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link BaseSitePage} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public BaseSitePage post(@jakarta.annotation.Nonnull final BaseSitePage body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, BaseSitePage::createFromDiscriminatorValue); + } + /** + * Get pages from sites + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get pages from sites + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Create new navigation property to pages for sites + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final BaseSitePage body) { + return toPostRequestInformation(body, null); + } + /** + * Create new navigation property to pages for sites + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final BaseSitePage body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/pages", pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link PagesRequestBuilder} + */ + @jakarta.annotation.Nonnull + public PagesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new PagesRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get pages from sites + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Include count of items + */ + @jakarta.annotation.Nullable + public Boolean count; + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Order items by property values + */ + @jakarta.annotation.Nullable + public String[] orderby; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Skip the first n items + */ + @jakarta.annotation.Nullable + public Integer skip; + /** + * Show only the first n items + */ + @jakarta.annotation.Nullable + public Integer top; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24count", count); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + allQueryParams.put("%24skip", skip); + allQueryParams.put("%24top", top); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24orderby", orderby); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/sites/item/pages/PagesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/sites/item/pages/PagesRequestBuilder.java new file mode 100644 index 00000000000..d66cdeb8a13 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/sites/item/pages/PagesRequestBuilder.java @@ -0,0 +1,252 @@ +package com.microsoft.graph.sites.item.pages; + +import com.microsoft.graph.models.BaseSitePage; +import com.microsoft.graph.models.BaseSitePageCollectionResponse; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.sites.item.pages.count.CountRequestBuilder; +import com.microsoft.graph.sites.item.pages.graphsitepage.GraphSitePageRequestBuilder; +import com.microsoft.graph.sites.item.pages.item.BaseSitePageItemRequestBuilder; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the pages property of the microsoft.graph.site entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class PagesRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to count the resources in the collection. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder count() { + return new CountRequestBuilder(pathParameters, requestAdapter); + } + /** + * Casts the previous resource to sitePage. + * @return a {@link GraphSitePageRequestBuilder} + */ + @jakarta.annotation.Nonnull + public GraphSitePageRequestBuilder graphSitePage() { + return new GraphSitePageRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to manage the pages property of the microsoft.graph.site entity. + * @param baseSitePageId The unique identifier of baseSitePage + * @return a {@link BaseSitePageItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public BaseSitePageItemRequestBuilder byBaseSitePageId(@jakarta.annotation.Nonnull final String baseSitePageId) { + Objects.requireNonNull(baseSitePageId); + final HashMap urlTplParams = new HashMap(this.pathParameters); + urlTplParams.put("baseSitePage%2Did", baseSitePageId); + return new BaseSitePageItemRequestBuilder(urlTplParams, requestAdapter); + } + /** + * Instantiates a new {@link PagesRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public PagesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link PagesRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public PagesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * Get pages from sites + * @return a {@link BaseSitePageCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public BaseSitePageCollectionResponse get() { + return get(null); + } + /** + * Get pages from sites + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link BaseSitePageCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public BaseSitePageCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, BaseSitePageCollectionResponse::createFromDiscriminatorValue); + } + /** + * Create new navigation property to pages for sites + * @param body The request body + * @return a {@link BaseSitePage} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public BaseSitePage post(@jakarta.annotation.Nonnull final BaseSitePage body) { + return post(body, null); + } + /** + * Create new navigation property to pages for sites + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link BaseSitePage} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public BaseSitePage post(@jakarta.annotation.Nonnull final BaseSitePage body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, BaseSitePage::createFromDiscriminatorValue); + } + /** + * Get pages from sites + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get pages from sites + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Create new navigation property to pages for sites + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final BaseSitePage body) { + return toPostRequestInformation(body, null); + } + /** + * Create new navigation property to pages for sites + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final BaseSitePage body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, "{+baseurl}/sites/{site%2Did}/pages", pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link PagesRequestBuilder} + */ + @jakarta.annotation.Nonnull + public PagesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new PagesRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get pages from sites + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Include count of items + */ + @jakarta.annotation.Nullable + public Boolean count; + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Order items by property values + */ + @jakarta.annotation.Nullable + public String[] orderby; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Skip the first n items + */ + @jakarta.annotation.Nullable + public Integer skip; + /** + * Show only the first n items + */ + @jakarta.annotation.Nullable + public Integer top; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24count", count); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + allQueryParams.put("%24skip", skip); + allQueryParams.put("%24top", top); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24orderby", orderby); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/sites/item/pages/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/sites/item/pages/count/CountRequestBuilder.java new file mode 100644 index 00000000000..b4a214ca96a --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/sites/item/pages/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +package com.microsoft.graph.sites.item.pages.count; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to count the resources in the collection. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CountRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/$count{?%24filter,%24search}", pathParameters); + } + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/$count{?%24filter,%24search}", rawUrl); + } + /** + * Get the number of the resource + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get() { + return get(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); + } + /** + * Get the number of the resource + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new CountRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get the number of the resource + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/sites/item/pages/graphsitepage/GraphSitePageRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/sites/item/pages/graphsitepage/GraphSitePageRequestBuilder.java new file mode 100644 index 00000000000..adcdd529ed9 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/sites/item/pages/graphsitepage/GraphSitePageRequestBuilder.java @@ -0,0 +1,174 @@ +package com.microsoft.graph.sites.item.pages.graphsitepage; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.SitePageCollectionResponse; +import com.microsoft.graph.sites.item.pages.graphsitepage.count.CountRequestBuilder; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Casts the previous resource to sitePage. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class GraphSitePageRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to count the resources in the collection. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder count() { + return new CountRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link GraphSitePageRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public GraphSitePageRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/graph.sitePage{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link GraphSitePageRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public GraphSitePageRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/graph.sitePage{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * Get the items of type microsoft.graph.sitePage in the microsoft.graph.baseSitePage collection + * @return a {@link SitePageCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public SitePageCollectionResponse get() { + return get(null); + } + /** + * Get the items of type microsoft.graph.sitePage in the microsoft.graph.baseSitePage collection + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link SitePageCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public SitePageCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, SitePageCollectionResponse::createFromDiscriminatorValue); + } + /** + * Get the items of type microsoft.graph.sitePage in the microsoft.graph.baseSitePage collection + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get the items of type microsoft.graph.sitePage in the microsoft.graph.baseSitePage collection + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link GraphSitePageRequestBuilder} + */ + @jakarta.annotation.Nonnull + public GraphSitePageRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new GraphSitePageRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get the items of type microsoft.graph.sitePage in the microsoft.graph.baseSitePage collection + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Include count of items + */ + @jakarta.annotation.Nullable + public Boolean count; + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Order items by property values + */ + @jakarta.annotation.Nullable + public String[] orderby; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Skip the first n items + */ + @jakarta.annotation.Nullable + public Integer skip; + /** + * Show only the first n items + */ + @jakarta.annotation.Nullable + public Integer top; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24count", count); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + allQueryParams.put("%24skip", skip); + allQueryParams.put("%24top", top); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24orderby", orderby); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/sites/item/pages/graphsitepage/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/sites/item/pages/graphsitepage/count/CountRequestBuilder.java new file mode 100644 index 00000000000..f5c2baff929 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/sites/item/pages/graphsitepage/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +package com.microsoft.graph.sites.item.pages.graphsitepage.count; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to count the resources in the collection. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CountRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/graph.sitePage/$count{?%24filter,%24search}", pathParameters); + } + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/graph.sitePage/$count{?%24filter,%24search}", rawUrl); + } + /** + * Get the number of the resource + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get() { + return get(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); + } + /** + * Get the number of the resource + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new CountRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get the number of the resource + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/BaseSitePageItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/BaseSitePageItemRequestBuilder.java new file mode 100644 index 00000000000..11e0a1bcc86 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/BaseSitePageItemRequestBuilder.java @@ -0,0 +1,255 @@ +package com.microsoft.graph.sites.item.pages.item; + +import com.microsoft.graph.models.BaseSitePage; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.sites.item.pages.item.createdbyuser.CreatedByUserRequestBuilder; +import com.microsoft.graph.sites.item.pages.item.graphsitepage.GraphSitePageRequestBuilder; +import com.microsoft.graph.sites.item.pages.item.lastmodifiedbyuser.LastModifiedByUserRequestBuilder; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the pages property of the microsoft.graph.site entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class BaseSitePageItemRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity. + * @return a {@link CreatedByUserRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CreatedByUserRequestBuilder createdByUser() { + return new CreatedByUserRequestBuilder(pathParameters, requestAdapter); + } + /** + * Casts the previous resource to sitePage. + * @return a {@link GraphSitePageRequestBuilder} + */ + @jakarta.annotation.Nonnull + public GraphSitePageRequestBuilder graphSitePage() { + return new GraphSitePageRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to manage the lastModifiedByUser property of the microsoft.graph.baseItem entity. + * @return a {@link LastModifiedByUserRequestBuilder} + */ + @jakarta.annotation.Nonnull + public LastModifiedByUserRequestBuilder lastModifiedByUser() { + return new LastModifiedByUserRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link BaseSitePageItemRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public BaseSitePageItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link BaseSitePageItemRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public BaseSitePageItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}{?%24expand,%24select}", rawUrl); + } + /** + * Delete navigation property pages for sites + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete() { + delete(null); + } + /** + * Delete navigation property pages for sites + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * Get pages from sites + * @return a {@link BaseSitePage} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public BaseSitePage get() { + return get(null); + } + /** + * Get pages from sites + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link BaseSitePage} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public BaseSitePage get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, BaseSitePage::createFromDiscriminatorValue); + } + /** + * Update the navigation property pages in sites + * @param body The request body + * @return a {@link BaseSitePage} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public BaseSitePage patch(@jakarta.annotation.Nonnull final BaseSitePage body) { + return patch(body, null); + } + /** + * Update the navigation property pages in sites + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link BaseSitePage} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public BaseSitePage patch(@jakarta.annotation.Nonnull final BaseSitePage body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, BaseSitePage::createFromDiscriminatorValue); + } + /** + * Delete navigation property pages for sites + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation() { + return toDeleteRequestInformation(null); + } + /** + * Delete navigation property pages for sites + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}", pathParameters); + requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Get pages from sites + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get pages from sites + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update the navigation property pages in sites + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final BaseSitePage body) { + return toPatchRequestInformation(body, null); + } + /** + * Update the navigation property pages in sites + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final BaseSitePage body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}", pathParameters); + requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link BaseSitePageItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public BaseSitePageItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new BaseSitePageItemRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class DeleteRequestConfiguration extends BaseRequestConfiguration { + } + /** + * Get pages from sites + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PatchRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/createdbyuser/CreatedByUserRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/createdbyuser/CreatedByUserRequestBuilder.java new file mode 100644 index 00000000000..1a632f5ade2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/createdbyuser/CreatedByUserRequestBuilder.java @@ -0,0 +1,147 @@ +package com.microsoft.graph.sites.item.pages.item.createdbyuser; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.User; +import com.microsoft.graph.sites.item.pages.item.createdbyuser.mailboxsettings.MailboxSettingsRequestBuilder; +import com.microsoft.graph.sites.item.pages.item.createdbyuser.serviceprovisioningerrors.ServiceProvisioningErrorsRequestBuilder; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CreatedByUserRequestBuilder extends BaseRequestBuilder { + /** + * The mailboxSettings property + * @return a {@link MailboxSettingsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public MailboxSettingsRequestBuilder mailboxSettings() { + return new MailboxSettingsRequestBuilder(pathParameters, requestAdapter); + } + /** + * The serviceProvisioningErrors property + * @return a {@link ServiceProvisioningErrorsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ServiceProvisioningErrorsRequestBuilder serviceProvisioningErrors() { + return new ServiceProvisioningErrorsRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link CreatedByUserRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CreatedByUserRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/createdByUser{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link CreatedByUserRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CreatedByUserRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/createdByUser{?%24expand,%24select}", rawUrl); + } + /** + * Identity of the user who created the item. Read-only. + * @return a {@link User} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public User get() { + return get(null); + } + /** + * Identity of the user who created the item. Read-only. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link User} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public User get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, User::createFromDiscriminatorValue); + } + /** + * Identity of the user who created the item. Read-only. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Identity of the user who created the item. Read-only. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link CreatedByUserRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CreatedByUserRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new CreatedByUserRequestBuilder(rawUrl, requestAdapter); + } + /** + * Identity of the user who created the item. Read-only. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/createdbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/createdbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java new file mode 100644 index 00000000000..2d6e3904d41 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/createdbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java @@ -0,0 +1,184 @@ +package com.microsoft.graph.sites.item.pages.item.createdbyuser.mailboxsettings; + +import com.microsoft.graph.models.MailboxSettings; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Builds and executes requests for operations under /sites/{site-id}/pages/{baseSitePage-id}/createdByUser/mailboxSettings + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class MailboxSettingsRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link MailboxSettingsRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public MailboxSettingsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/createdByUser/mailboxSettings{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link MailboxSettingsRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public MailboxSettingsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/createdByUser/mailboxSettings{?%24expand,%24select}", rawUrl); + } + /** + * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. + * @return a {@link MailboxSettings} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public MailboxSettings get() { + return get(null); + } + /** + * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link MailboxSettings} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public MailboxSettings get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, MailboxSettings::createFromDiscriminatorValue); + } + /** + * Update property mailboxSettings value. + * @param body The request body + * @return a {@link MailboxSettings} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public MailboxSettings patch(@jakarta.annotation.Nonnull final MailboxSettings body) { + return patch(body, null); + } + /** + * Update property mailboxSettings value. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link MailboxSettings} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public MailboxSettings patch(@jakarta.annotation.Nonnull final MailboxSettings body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, MailboxSettings::createFromDiscriminatorValue); + } + /** + * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update property mailboxSettings value. + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final MailboxSettings body) { + return toPatchRequestInformation(body, null); + } + /** + * Update property mailboxSettings value. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final MailboxSettings body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/createdByUser/mailboxSettings", pathParameters); + requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link MailboxSettingsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public MailboxSettingsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new MailboxSettingsRequestBuilder(rawUrl, requestAdapter); + } + /** + * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PatchRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/createdbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/createdbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java new file mode 100644 index 00000000000..2dc5d0dcf99 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/createdbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java @@ -0,0 +1,174 @@ +package com.microsoft.graph.sites.item.pages.item.createdbyuser.serviceprovisioningerrors; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.ServiceProvisioningErrorCollectionResponse; +import com.microsoft.graph.sites.item.pages.item.createdbyuser.serviceprovisioningerrors.count.CountRequestBuilder; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Builds and executes requests for operations under /sites/{site-id}/pages/{baseSitePage-id}/createdByUser/serviceProvisioningErrors + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class ServiceProvisioningErrorsRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to count the resources in the collection. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder count() { + return new CountRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link ServiceProvisioningErrorsRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public ServiceProvisioningErrorsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/createdByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link ServiceProvisioningErrorsRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public ServiceProvisioningErrorsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/createdByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + * @return a {@link ServiceProvisioningErrorCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public ServiceProvisioningErrorCollectionResponse get() { + return get(null); + } + /** + * Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link ServiceProvisioningErrorCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public ServiceProvisioningErrorCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, ServiceProvisioningErrorCollectionResponse::createFromDiscriminatorValue); + } + /** + * Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link ServiceProvisioningErrorsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ServiceProvisioningErrorsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, requestAdapter); + } + /** + * Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Include count of items + */ + @jakarta.annotation.Nullable + public Boolean count; + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Order items by property values + */ + @jakarta.annotation.Nullable + public String[] orderby; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Skip the first n items + */ + @jakarta.annotation.Nullable + public Integer skip; + /** + * Show only the first n items + */ + @jakarta.annotation.Nullable + public Integer top; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24count", count); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + allQueryParams.put("%24skip", skip); + allQueryParams.put("%24top", top); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24orderby", orderby); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/createdbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/createdbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java new file mode 100644 index 00000000000..96771e5fc78 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/createdbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +package com.microsoft.graph.sites.item.pages.item.createdbyuser.serviceprovisioningerrors.count; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to count the resources in the collection. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CountRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/createdByUser/serviceProvisioningErrors/$count{?%24filter,%24search}", pathParameters); + } + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/createdByUser/serviceProvisioningErrors/$count{?%24filter,%24search}", rawUrl); + } + /** + * Get the number of the resource + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get() { + return get(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); + } + /** + * Get the number of the resource + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new CountRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get the number of the resource + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/GraphSitePageRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/GraphSitePageRequestBuilder.java new file mode 100644 index 00000000000..1165ebbc278 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/GraphSitePageRequestBuilder.java @@ -0,0 +1,165 @@ +package com.microsoft.graph.sites.item.pages.item.graphsitepage; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.SitePage; +import com.microsoft.graph.sites.item.pages.item.graphsitepage.canvaslayout.CanvasLayoutRequestBuilder; +import com.microsoft.graph.sites.item.pages.item.graphsitepage.createdbyuser.CreatedByUserRequestBuilder; +import com.microsoft.graph.sites.item.pages.item.graphsitepage.lastmodifiedbyuser.LastModifiedByUserRequestBuilder; +import com.microsoft.graph.sites.item.pages.item.graphsitepage.webparts.WebPartsRequestBuilder; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Casts the previous resource to sitePage. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class GraphSitePageRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to manage the canvasLayout property of the microsoft.graph.sitePage entity. + * @return a {@link CanvasLayoutRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CanvasLayoutRequestBuilder canvasLayout() { + return new CanvasLayoutRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity. + * @return a {@link CreatedByUserRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CreatedByUserRequestBuilder createdByUser() { + return new CreatedByUserRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to manage the lastModifiedByUser property of the microsoft.graph.baseItem entity. + * @return a {@link LastModifiedByUserRequestBuilder} + */ + @jakarta.annotation.Nonnull + public LastModifiedByUserRequestBuilder lastModifiedByUser() { + return new LastModifiedByUserRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to manage the webParts property of the microsoft.graph.sitePage entity. + * @return a {@link WebPartsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public WebPartsRequestBuilder webParts() { + return new WebPartsRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link GraphSitePageRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public GraphSitePageRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link GraphSitePageRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public GraphSitePageRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage{?%24expand,%24select}", rawUrl); + } + /** + * Get the item of type microsoft.graph.baseSitePage as microsoft.graph.sitePage + * @return a {@link SitePage} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public SitePage get() { + return get(null); + } + /** + * Get the item of type microsoft.graph.baseSitePage as microsoft.graph.sitePage + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link SitePage} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public SitePage get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, SitePage::createFromDiscriminatorValue); + } + /** + * Get the item of type microsoft.graph.baseSitePage as microsoft.graph.sitePage + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get the item of type microsoft.graph.baseSitePage as microsoft.graph.sitePage + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link GraphSitePageRequestBuilder} + */ + @jakarta.annotation.Nonnull + public GraphSitePageRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new GraphSitePageRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get the item of type microsoft.graph.baseSitePage as microsoft.graph.sitePage + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/canvaslayout/CanvasLayoutRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/canvaslayout/CanvasLayoutRequestBuilder.java new file mode 100644 index 00000000000..77281264890 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/canvaslayout/CanvasLayoutRequestBuilder.java @@ -0,0 +1,246 @@ +package com.microsoft.graph.sites.item.pages.item.graphsitepage.canvaslayout; + +import com.microsoft.graph.models.CanvasLayout; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.sites.item.pages.item.graphsitepage.canvaslayout.horizontalsections.HorizontalSectionsRequestBuilder; +import com.microsoft.graph.sites.item.pages.item.graphsitepage.canvaslayout.verticalsection.VerticalSectionRequestBuilder; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the canvasLayout property of the microsoft.graph.sitePage entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CanvasLayoutRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to manage the horizontalSections property of the microsoft.graph.canvasLayout entity. + * @return a {@link HorizontalSectionsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public HorizontalSectionsRequestBuilder horizontalSections() { + return new HorizontalSectionsRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to manage the verticalSection property of the microsoft.graph.canvasLayout entity. + * @return a {@link VerticalSectionRequestBuilder} + */ + @jakarta.annotation.Nonnull + public VerticalSectionRequestBuilder verticalSection() { + return new VerticalSectionRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link CanvasLayoutRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CanvasLayoutRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link CanvasLayoutRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CanvasLayoutRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout{?%24expand,%24select}", rawUrl); + } + /** + * Delete navigation property canvasLayout for sites + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete() { + delete(null); + } + /** + * Delete navigation property canvasLayout for sites + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * Get canvasLayout from sites + * @return a {@link CanvasLayout} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public CanvasLayout get() { + return get(null); + } + /** + * Get canvasLayout from sites + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link CanvasLayout} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public CanvasLayout get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, CanvasLayout::createFromDiscriminatorValue); + } + /** + * Update the navigation property canvasLayout in sites + * @param body The request body + * @return a {@link CanvasLayout} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public CanvasLayout patch(@jakarta.annotation.Nonnull final CanvasLayout body) { + return patch(body, null); + } + /** + * Update the navigation property canvasLayout in sites + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link CanvasLayout} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public CanvasLayout patch(@jakarta.annotation.Nonnull final CanvasLayout body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, CanvasLayout::createFromDiscriminatorValue); + } + /** + * Delete navigation property canvasLayout for sites + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation() { + return toDeleteRequestInformation(null); + } + /** + * Delete navigation property canvasLayout for sites + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout", pathParameters); + requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Get canvasLayout from sites + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get canvasLayout from sites + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update the navigation property canvasLayout in sites + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final CanvasLayout body) { + return toPatchRequestInformation(body, null); + } + /** + * Update the navigation property canvasLayout in sites + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final CanvasLayout body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout", pathParameters); + requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link CanvasLayoutRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CanvasLayoutRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new CanvasLayoutRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class DeleteRequestConfiguration extends BaseRequestConfiguration { + } + /** + * Get canvasLayout from sites + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PatchRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/canvaslayout/horizontalsections/HorizontalSectionsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/canvaslayout/horizontalsections/HorizontalSectionsRequestBuilder.java new file mode 100644 index 00000000000..bd923a27a19 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/canvaslayout/horizontalsections/HorizontalSectionsRequestBuilder.java @@ -0,0 +1,243 @@ +package com.microsoft.graph.sites.item.pages.item.graphsitepage.canvaslayout.horizontalsections; + +import com.microsoft.graph.models.HorizontalSection; +import com.microsoft.graph.models.HorizontalSectionCollectionResponse; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.sites.item.pages.item.graphsitepage.canvaslayout.horizontalsections.count.CountRequestBuilder; +import com.microsoft.graph.sites.item.pages.item.graphsitepage.canvaslayout.horizontalsections.item.HorizontalSectionItemRequestBuilder; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the horizontalSections property of the microsoft.graph.canvasLayout entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class HorizontalSectionsRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to count the resources in the collection. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder count() { + return new CountRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to manage the horizontalSections property of the microsoft.graph.canvasLayout entity. + * @param horizontalSectionId The unique identifier of horizontalSection + * @return a {@link HorizontalSectionItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public HorizontalSectionItemRequestBuilder byHorizontalSectionId(@jakarta.annotation.Nonnull final String horizontalSectionId) { + Objects.requireNonNull(horizontalSectionId); + final HashMap urlTplParams = new HashMap(this.pathParameters); + urlTplParams.put("horizontalSection%2Did", horizontalSectionId); + return new HorizontalSectionItemRequestBuilder(urlTplParams, requestAdapter); + } + /** + * Instantiates a new {@link HorizontalSectionsRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public HorizontalSectionsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link HorizontalSectionsRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public HorizontalSectionsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * Get horizontalSections from sites + * @return a {@link HorizontalSectionCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public HorizontalSectionCollectionResponse get() { + return get(null); + } + /** + * Get horizontalSections from sites + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link HorizontalSectionCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public HorizontalSectionCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, HorizontalSectionCollectionResponse::createFromDiscriminatorValue); + } + /** + * Create new navigation property to horizontalSections for sites + * @param body The request body + * @return a {@link HorizontalSection} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public HorizontalSection post(@jakarta.annotation.Nonnull final HorizontalSection body) { + return post(body, null); + } + /** + * Create new navigation property to horizontalSections for sites + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link HorizontalSection} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public HorizontalSection post(@jakarta.annotation.Nonnull final HorizontalSection body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, HorizontalSection::createFromDiscriminatorValue); + } + /** + * Get horizontalSections from sites + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get horizontalSections from sites + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Create new navigation property to horizontalSections for sites + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final HorizontalSection body) { + return toPostRequestInformation(body, null); + } + /** + * Create new navigation property to horizontalSections for sites + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final HorizontalSection body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections", pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link HorizontalSectionsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public HorizontalSectionsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new HorizontalSectionsRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get horizontalSections from sites + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Include count of items + */ + @jakarta.annotation.Nullable + public Boolean count; + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Order items by property values + */ + @jakarta.annotation.Nullable + public String[] orderby; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Skip the first n items + */ + @jakarta.annotation.Nullable + public Integer skip; + /** + * Show only the first n items + */ + @jakarta.annotation.Nullable + public Integer top; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24count", count); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + allQueryParams.put("%24skip", skip); + allQueryParams.put("%24top", top); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24orderby", orderby); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/canvaslayout/horizontalsections/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/canvaslayout/horizontalsections/count/CountRequestBuilder.java new file mode 100644 index 00000000000..2d7bcb2865e --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/canvaslayout/horizontalsections/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +package com.microsoft.graph.sites.item.pages.item.graphsitepage.canvaslayout.horizontalsections.count; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to count the resources in the collection. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CountRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/$count{?%24filter,%24search}", pathParameters); + } + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/$count{?%24filter,%24search}", rawUrl); + } + /** + * Get the number of the resource + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get() { + return get(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); + } + /** + * Get the number of the resource + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new CountRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get the number of the resource + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/canvaslayout/horizontalsections/item/HorizontalSectionItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/canvaslayout/horizontalsections/item/HorizontalSectionItemRequestBuilder.java new file mode 100644 index 00000000000..6f398100832 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/canvaslayout/horizontalsections/item/HorizontalSectionItemRequestBuilder.java @@ -0,0 +1,237 @@ +package com.microsoft.graph.sites.item.pages.item.graphsitepage.canvaslayout.horizontalsections.item; + +import com.microsoft.graph.models.HorizontalSection; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.sites.item.pages.item.graphsitepage.canvaslayout.horizontalsections.item.columns.ColumnsRequestBuilder; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the horizontalSections property of the microsoft.graph.canvasLayout entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class HorizontalSectionItemRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to manage the columns property of the microsoft.graph.horizontalSection entity. + * @return a {@link ColumnsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ColumnsRequestBuilder columns() { + return new ColumnsRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link HorizontalSectionItemRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public HorizontalSectionItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/{horizontalSection%2Did}{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link HorizontalSectionItemRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public HorizontalSectionItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/{horizontalSection%2Did}{?%24expand,%24select}", rawUrl); + } + /** + * Delete navigation property horizontalSections for sites + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete() { + delete(null); + } + /** + * Delete navigation property horizontalSections for sites + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * Get horizontalSections from sites + * @return a {@link HorizontalSection} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public HorizontalSection get() { + return get(null); + } + /** + * Get horizontalSections from sites + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link HorizontalSection} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public HorizontalSection get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, HorizontalSection::createFromDiscriminatorValue); + } + /** + * Update the navigation property horizontalSections in sites + * @param body The request body + * @return a {@link HorizontalSection} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public HorizontalSection patch(@jakarta.annotation.Nonnull final HorizontalSection body) { + return patch(body, null); + } + /** + * Update the navigation property horizontalSections in sites + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link HorizontalSection} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public HorizontalSection patch(@jakarta.annotation.Nonnull final HorizontalSection body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, HorizontalSection::createFromDiscriminatorValue); + } + /** + * Delete navigation property horizontalSections for sites + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation() { + return toDeleteRequestInformation(null); + } + /** + * Delete navigation property horizontalSections for sites + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/{horizontalSection%2Did}", pathParameters); + requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Get horizontalSections from sites + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get horizontalSections from sites + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update the navigation property horizontalSections in sites + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final HorizontalSection body) { + return toPatchRequestInformation(body, null); + } + /** + * Update the navigation property horizontalSections in sites + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final HorizontalSection body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/{horizontalSection%2Did}", pathParameters); + requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link HorizontalSectionItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public HorizontalSectionItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new HorizontalSectionItemRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class DeleteRequestConfiguration extends BaseRequestConfiguration { + } + /** + * Get horizontalSections from sites + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PatchRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/canvaslayout/horizontalsections/item/columns/ColumnsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/canvaslayout/horizontalsections/item/columns/ColumnsRequestBuilder.java new file mode 100644 index 00000000000..8bfc2c86788 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/canvaslayout/horizontalsections/item/columns/ColumnsRequestBuilder.java @@ -0,0 +1,243 @@ +package com.microsoft.graph.sites.item.pages.item.graphsitepage.canvaslayout.horizontalsections.item.columns; + +import com.microsoft.graph.models.HorizontalSectionColumn; +import com.microsoft.graph.models.HorizontalSectionColumnCollectionResponse; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.sites.item.pages.item.graphsitepage.canvaslayout.horizontalsections.item.columns.count.CountRequestBuilder; +import com.microsoft.graph.sites.item.pages.item.graphsitepage.canvaslayout.horizontalsections.item.columns.item.HorizontalSectionColumnItemRequestBuilder; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the columns property of the microsoft.graph.horizontalSection entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class ColumnsRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to count the resources in the collection. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder count() { + return new CountRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to manage the columns property of the microsoft.graph.horizontalSection entity. + * @param horizontalSectionColumnId The unique identifier of horizontalSectionColumn + * @return a {@link HorizontalSectionColumnItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public HorizontalSectionColumnItemRequestBuilder byHorizontalSectionColumnId(@jakarta.annotation.Nonnull final String horizontalSectionColumnId) { + Objects.requireNonNull(horizontalSectionColumnId); + final HashMap urlTplParams = new HashMap(this.pathParameters); + urlTplParams.put("horizontalSectionColumn%2Did", horizontalSectionColumnId); + return new HorizontalSectionColumnItemRequestBuilder(urlTplParams, requestAdapter); + } + /** + * Instantiates a new {@link ColumnsRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public ColumnsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/{horizontalSection%2Did}/columns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link ColumnsRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public ColumnsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/{horizontalSection%2Did}/columns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * Get columns from sites + * @return a {@link HorizontalSectionColumnCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public HorizontalSectionColumnCollectionResponse get() { + return get(null); + } + /** + * Get columns from sites + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link HorizontalSectionColumnCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public HorizontalSectionColumnCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, HorizontalSectionColumnCollectionResponse::createFromDiscriminatorValue); + } + /** + * Create new navigation property to columns for sites + * @param body The request body + * @return a {@link HorizontalSectionColumn} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public HorizontalSectionColumn post(@jakarta.annotation.Nonnull final HorizontalSectionColumn body) { + return post(body, null); + } + /** + * Create new navigation property to columns for sites + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link HorizontalSectionColumn} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public HorizontalSectionColumn post(@jakarta.annotation.Nonnull final HorizontalSectionColumn body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, HorizontalSectionColumn::createFromDiscriminatorValue); + } + /** + * Get columns from sites + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get columns from sites + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Create new navigation property to columns for sites + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final HorizontalSectionColumn body) { + return toPostRequestInformation(body, null); + } + /** + * Create new navigation property to columns for sites + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final HorizontalSectionColumn body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/{horizontalSection%2Did}/columns", pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link ColumnsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ColumnsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new ColumnsRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get columns from sites + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Include count of items + */ + @jakarta.annotation.Nullable + public Boolean count; + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Order items by property values + */ + @jakarta.annotation.Nullable + public String[] orderby; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Skip the first n items + */ + @jakarta.annotation.Nullable + public Integer skip; + /** + * Show only the first n items + */ + @jakarta.annotation.Nullable + public Integer top; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24count", count); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + allQueryParams.put("%24skip", skip); + allQueryParams.put("%24top", top); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24orderby", orderby); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/canvaslayout/horizontalsections/item/columns/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/canvaslayout/horizontalsections/item/columns/count/CountRequestBuilder.java new file mode 100644 index 00000000000..4a93e944b0c --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/canvaslayout/horizontalsections/item/columns/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +package com.microsoft.graph.sites.item.pages.item.graphsitepage.canvaslayout.horizontalsections.item.columns.count; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to count the resources in the collection. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CountRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/{horizontalSection%2Did}/columns/$count{?%24filter,%24search}", pathParameters); + } + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/{horizontalSection%2Did}/columns/$count{?%24filter,%24search}", rawUrl); + } + /** + * Get the number of the resource + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get() { + return get(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); + } + /** + * Get the number of the resource + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new CountRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get the number of the resource + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/canvaslayout/horizontalsections/item/columns/item/HorizontalSectionColumnItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/canvaslayout/horizontalsections/item/columns/item/HorizontalSectionColumnItemRequestBuilder.java new file mode 100644 index 00000000000..56432c6435d --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/canvaslayout/horizontalsections/item/columns/item/HorizontalSectionColumnItemRequestBuilder.java @@ -0,0 +1,237 @@ +package com.microsoft.graph.sites.item.pages.item.graphsitepage.canvaslayout.horizontalsections.item.columns.item; + +import com.microsoft.graph.models.HorizontalSectionColumn; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.sites.item.pages.item.graphsitepage.canvaslayout.horizontalsections.item.columns.item.webparts.WebpartsRequestBuilder; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the columns property of the microsoft.graph.horizontalSection entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class HorizontalSectionColumnItemRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to manage the webparts property of the microsoft.graph.horizontalSectionColumn entity. + * @return a {@link WebpartsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public WebpartsRequestBuilder webparts() { + return new WebpartsRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link HorizontalSectionColumnItemRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public HorizontalSectionColumnItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/{horizontalSection%2Did}/columns/{horizontalSectionColumn%2Did}{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link HorizontalSectionColumnItemRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public HorizontalSectionColumnItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/{horizontalSection%2Did}/columns/{horizontalSectionColumn%2Did}{?%24expand,%24select}", rawUrl); + } + /** + * Delete navigation property columns for sites + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete() { + delete(null); + } + /** + * Delete navigation property columns for sites + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * Get columns from sites + * @return a {@link HorizontalSectionColumn} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public HorizontalSectionColumn get() { + return get(null); + } + /** + * Get columns from sites + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link HorizontalSectionColumn} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public HorizontalSectionColumn get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, HorizontalSectionColumn::createFromDiscriminatorValue); + } + /** + * Update the navigation property columns in sites + * @param body The request body + * @return a {@link HorizontalSectionColumn} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public HorizontalSectionColumn patch(@jakarta.annotation.Nonnull final HorizontalSectionColumn body) { + return patch(body, null); + } + /** + * Update the navigation property columns in sites + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link HorizontalSectionColumn} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public HorizontalSectionColumn patch(@jakarta.annotation.Nonnull final HorizontalSectionColumn body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, HorizontalSectionColumn::createFromDiscriminatorValue); + } + /** + * Delete navigation property columns for sites + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation() { + return toDeleteRequestInformation(null); + } + /** + * Delete navigation property columns for sites + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/{horizontalSection%2Did}/columns/{horizontalSectionColumn%2Did}", pathParameters); + requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Get columns from sites + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get columns from sites + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update the navigation property columns in sites + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final HorizontalSectionColumn body) { + return toPatchRequestInformation(body, null); + } + /** + * Update the navigation property columns in sites + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final HorizontalSectionColumn body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/{horizontalSection%2Did}/columns/{horizontalSectionColumn%2Did}", pathParameters); + requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link HorizontalSectionColumnItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public HorizontalSectionColumnItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new HorizontalSectionColumnItemRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class DeleteRequestConfiguration extends BaseRequestConfiguration { + } + /** + * Get columns from sites + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PatchRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/canvaslayout/horizontalsections/item/columns/item/webparts/WebpartsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/canvaslayout/horizontalsections/item/columns/item/webparts/WebpartsRequestBuilder.java new file mode 100644 index 00000000000..ceb46b4eb10 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/canvaslayout/horizontalsections/item/columns/item/webparts/WebpartsRequestBuilder.java @@ -0,0 +1,243 @@ +package com.microsoft.graph.sites.item.pages.item.graphsitepage.canvaslayout.horizontalsections.item.columns.item.webparts; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.WebPart; +import com.microsoft.graph.models.WebPartCollectionResponse; +import com.microsoft.graph.sites.item.pages.item.graphsitepage.canvaslayout.horizontalsections.item.columns.item.webparts.count.CountRequestBuilder; +import com.microsoft.graph.sites.item.pages.item.graphsitepage.canvaslayout.horizontalsections.item.columns.item.webparts.item.WebPartItemRequestBuilder; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the webparts property of the microsoft.graph.horizontalSectionColumn entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class WebpartsRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to count the resources in the collection. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder count() { + return new CountRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to manage the webparts property of the microsoft.graph.horizontalSectionColumn entity. + * @param webPartId The unique identifier of webPart + * @return a {@link WebPartItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public WebPartItemRequestBuilder byWebPartId(@jakarta.annotation.Nonnull final String webPartId) { + Objects.requireNonNull(webPartId); + final HashMap urlTplParams = new HashMap(this.pathParameters); + urlTplParams.put("webPart%2Did", webPartId); + return new WebPartItemRequestBuilder(urlTplParams, requestAdapter); + } + /** + * Instantiates a new {@link WebpartsRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public WebpartsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/{horizontalSection%2Did}/columns/{horizontalSectionColumn%2Did}/webparts{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link WebpartsRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public WebpartsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/{horizontalSection%2Did}/columns/{horizontalSectionColumn%2Did}/webparts{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * Get webparts from sites + * @return a {@link WebPartCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public WebPartCollectionResponse get() { + return get(null); + } + /** + * Get webparts from sites + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link WebPartCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public WebPartCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, WebPartCollectionResponse::createFromDiscriminatorValue); + } + /** + * Create new navigation property to webparts for sites + * @param body The request body + * @return a {@link WebPart} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public WebPart post(@jakarta.annotation.Nonnull final WebPart body) { + return post(body, null); + } + /** + * Create new navigation property to webparts for sites + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link WebPart} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public WebPart post(@jakarta.annotation.Nonnull final WebPart body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, WebPart::createFromDiscriminatorValue); + } + /** + * Get webparts from sites + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get webparts from sites + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Create new navigation property to webparts for sites + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WebPart body) { + return toPostRequestInformation(body, null); + } + /** + * Create new navigation property to webparts for sites + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WebPart body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/{horizontalSection%2Did}/columns/{horizontalSectionColumn%2Did}/webparts", pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link WebpartsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public WebpartsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new WebpartsRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get webparts from sites + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Include count of items + */ + @jakarta.annotation.Nullable + public Boolean count; + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Order items by property values + */ + @jakarta.annotation.Nullable + public String[] orderby; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Skip the first n items + */ + @jakarta.annotation.Nullable + public Integer skip; + /** + * Show only the first n items + */ + @jakarta.annotation.Nullable + public Integer top; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24count", count); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + allQueryParams.put("%24skip", skip); + allQueryParams.put("%24top", top); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24orderby", orderby); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/canvaslayout/horizontalsections/item/columns/item/webparts/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/canvaslayout/horizontalsections/item/columns/item/webparts/count/CountRequestBuilder.java new file mode 100644 index 00000000000..dfcc79db157 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/canvaslayout/horizontalsections/item/columns/item/webparts/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +package com.microsoft.graph.sites.item.pages.item.graphsitepage.canvaslayout.horizontalsections.item.columns.item.webparts.count; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to count the resources in the collection. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CountRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/{horizontalSection%2Did}/columns/{horizontalSectionColumn%2Did}/webparts/$count{?%24filter,%24search}", pathParameters); + } + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/{horizontalSection%2Did}/columns/{horizontalSectionColumn%2Did}/webparts/$count{?%24filter,%24search}", rawUrl); + } + /** + * Get the number of the resource + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get() { + return get(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); + } + /** + * Get the number of the resource + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new CountRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get the number of the resource + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/canvaslayout/horizontalsections/item/columns/item/webparts/item/WebPartItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/canvaslayout/horizontalsections/item/columns/item/webparts/item/WebPartItemRequestBuilder.java new file mode 100644 index 00000000000..f3747116785 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/canvaslayout/horizontalsections/item/columns/item/webparts/item/WebPartItemRequestBuilder.java @@ -0,0 +1,237 @@ +package com.microsoft.graph.sites.item.pages.item.graphsitepage.canvaslayout.horizontalsections.item.columns.item.webparts.item; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.WebPart; +import com.microsoft.graph.sites.item.pages.item.graphsitepage.canvaslayout.horizontalsections.item.columns.item.webparts.item.getpositionofwebpart.GetPositionOfWebPartRequestBuilder; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the webparts property of the microsoft.graph.horizontalSectionColumn entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class WebPartItemRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to call the getPositionOfWebPart method. + * @return a {@link GetPositionOfWebPartRequestBuilder} + */ + @jakarta.annotation.Nonnull + public GetPositionOfWebPartRequestBuilder getPositionOfWebPart() { + return new GetPositionOfWebPartRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link WebPartItemRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public WebPartItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/{horizontalSection%2Did}/columns/{horizontalSectionColumn%2Did}/webparts/{webPart%2Did}{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link WebPartItemRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public WebPartItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/{horizontalSection%2Did}/columns/{horizontalSectionColumn%2Did}/webparts/{webPart%2Did}{?%24expand,%24select}", rawUrl); + } + /** + * Delete navigation property webparts for sites + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete() { + delete(null); + } + /** + * Delete navigation property webparts for sites + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * Get webparts from sites + * @return a {@link WebPart} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public WebPart get() { + return get(null); + } + /** + * Get webparts from sites + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link WebPart} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public WebPart get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, WebPart::createFromDiscriminatorValue); + } + /** + * Update the navigation property webparts in sites + * @param body The request body + * @return a {@link WebPart} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public WebPart patch(@jakarta.annotation.Nonnull final WebPart body) { + return patch(body, null); + } + /** + * Update the navigation property webparts in sites + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link WebPart} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public WebPart patch(@jakarta.annotation.Nonnull final WebPart body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, WebPart::createFromDiscriminatorValue); + } + /** + * Delete navigation property webparts for sites + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation() { + return toDeleteRequestInformation(null); + } + /** + * Delete navigation property webparts for sites + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/{horizontalSection%2Did}/columns/{horizontalSectionColumn%2Did}/webparts/{webPart%2Did}", pathParameters); + requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Get webparts from sites + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get webparts from sites + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update the navigation property webparts in sites + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WebPart body) { + return toPatchRequestInformation(body, null); + } + /** + * Update the navigation property webparts in sites + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WebPart body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/{horizontalSection%2Did}/columns/{horizontalSectionColumn%2Did}/webparts/{webPart%2Did}", pathParameters); + requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link WebPartItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public WebPartItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new WebPartItemRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class DeleteRequestConfiguration extends BaseRequestConfiguration { + } + /** + * Get webparts from sites + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PatchRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/canvaslayout/horizontalsections/item/columns/item/webparts/item/getpositionofwebpart/GetPositionOfWebPartRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/canvaslayout/horizontalsections/item/columns/item/webparts/item/getpositionofwebpart/GetPositionOfWebPartRequestBuilder.java new file mode 100644 index 00000000000..f1329669eb3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/canvaslayout/horizontalsections/item/columns/item/webparts/item/getpositionofwebpart/GetPositionOfWebPartRequestBuilder.java @@ -0,0 +1,96 @@ +package com.microsoft.graph.sites.item.pages.item.graphsitepage.canvaslayout.horizontalsections.item.columns.item.webparts.item.getpositionofwebpart; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.WebPartPosition; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to call the getPositionOfWebPart method. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class GetPositionOfWebPartRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link GetPositionOfWebPartRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public GetPositionOfWebPartRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/{horizontalSection%2Did}/columns/{horizontalSectionColumn%2Did}/webparts/{webPart%2Did}/getPositionOfWebPart", pathParameters); + } + /** + * Instantiates a new {@link GetPositionOfWebPartRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public GetPositionOfWebPartRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/{horizontalSection%2Did}/columns/{horizontalSectionColumn%2Did}/webparts/{webPart%2Did}/getPositionOfWebPart", rawUrl); + } + /** + * Invoke action getPositionOfWebPart + * @return a {@link WebPartPosition} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public WebPartPosition post() { + return post(null); + } + /** + * Invoke action getPositionOfWebPart + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link WebPartPosition} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public WebPartPosition post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, WebPartPosition::createFromDiscriminatorValue); + } + /** + * Invoke action getPositionOfWebPart + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation() { + return toPostRequestInformation(null); + } + /** + * Invoke action getPositionOfWebPart + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link GetPositionOfWebPartRequestBuilder} + */ + @jakarta.annotation.Nonnull + public GetPositionOfWebPartRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new GetPositionOfWebPartRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/canvaslayout/verticalsection/VerticalSectionRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/canvaslayout/verticalsection/VerticalSectionRequestBuilder.java new file mode 100644 index 00000000000..243eb02167e --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/canvaslayout/verticalsection/VerticalSectionRequestBuilder.java @@ -0,0 +1,237 @@ +package com.microsoft.graph.sites.item.pages.item.graphsitepage.canvaslayout.verticalsection; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.VerticalSection; +import com.microsoft.graph.sites.item.pages.item.graphsitepage.canvaslayout.verticalsection.webparts.WebpartsRequestBuilder; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the verticalSection property of the microsoft.graph.canvasLayout entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class VerticalSectionRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to manage the webparts property of the microsoft.graph.verticalSection entity. + * @return a {@link WebpartsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public WebpartsRequestBuilder webparts() { + return new WebpartsRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link VerticalSectionRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public VerticalSectionRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/verticalSection{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link VerticalSectionRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public VerticalSectionRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/verticalSection{?%24expand,%24select}", rawUrl); + } + /** + * Delete navigation property verticalSection for sites + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete() { + delete(null); + } + /** + * Delete navigation property verticalSection for sites + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * Get verticalSection from sites + * @return a {@link VerticalSection} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public VerticalSection get() { + return get(null); + } + /** + * Get verticalSection from sites + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link VerticalSection} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public VerticalSection get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, VerticalSection::createFromDiscriminatorValue); + } + /** + * Update the navigation property verticalSection in sites + * @param body The request body + * @return a {@link VerticalSection} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public VerticalSection patch(@jakarta.annotation.Nonnull final VerticalSection body) { + return patch(body, null); + } + /** + * Update the navigation property verticalSection in sites + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link VerticalSection} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public VerticalSection patch(@jakarta.annotation.Nonnull final VerticalSection body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, VerticalSection::createFromDiscriminatorValue); + } + /** + * Delete navigation property verticalSection for sites + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation() { + return toDeleteRequestInformation(null); + } + /** + * Delete navigation property verticalSection for sites + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/verticalSection", pathParameters); + requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Get verticalSection from sites + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get verticalSection from sites + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update the navigation property verticalSection in sites + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final VerticalSection body) { + return toPatchRequestInformation(body, null); + } + /** + * Update the navigation property verticalSection in sites + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final VerticalSection body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/verticalSection", pathParameters); + requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link VerticalSectionRequestBuilder} + */ + @jakarta.annotation.Nonnull + public VerticalSectionRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new VerticalSectionRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class DeleteRequestConfiguration extends BaseRequestConfiguration { + } + /** + * Get verticalSection from sites + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PatchRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/canvaslayout/verticalsection/webparts/WebpartsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/canvaslayout/verticalsection/webparts/WebpartsRequestBuilder.java new file mode 100644 index 00000000000..fcae49f0065 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/canvaslayout/verticalsection/webparts/WebpartsRequestBuilder.java @@ -0,0 +1,243 @@ +package com.microsoft.graph.sites.item.pages.item.graphsitepage.canvaslayout.verticalsection.webparts; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.WebPart; +import com.microsoft.graph.models.WebPartCollectionResponse; +import com.microsoft.graph.sites.item.pages.item.graphsitepage.canvaslayout.verticalsection.webparts.count.CountRequestBuilder; +import com.microsoft.graph.sites.item.pages.item.graphsitepage.canvaslayout.verticalsection.webparts.item.WebPartItemRequestBuilder; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the webparts property of the microsoft.graph.verticalSection entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class WebpartsRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to count the resources in the collection. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder count() { + return new CountRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to manage the webparts property of the microsoft.graph.verticalSection entity. + * @param webPartId The unique identifier of webPart + * @return a {@link WebPartItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public WebPartItemRequestBuilder byWebPartId(@jakarta.annotation.Nonnull final String webPartId) { + Objects.requireNonNull(webPartId); + final HashMap urlTplParams = new HashMap(this.pathParameters); + urlTplParams.put("webPart%2Did", webPartId); + return new WebPartItemRequestBuilder(urlTplParams, requestAdapter); + } + /** + * Instantiates a new {@link WebpartsRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public WebpartsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/verticalSection/webparts{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link WebpartsRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public WebpartsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/verticalSection/webparts{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * Get webparts from sites + * @return a {@link WebPartCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public WebPartCollectionResponse get() { + return get(null); + } + /** + * Get webparts from sites + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link WebPartCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public WebPartCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, WebPartCollectionResponse::createFromDiscriminatorValue); + } + /** + * Create new navigation property to webparts for sites + * @param body The request body + * @return a {@link WebPart} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public WebPart post(@jakarta.annotation.Nonnull final WebPart body) { + return post(body, null); + } + /** + * Create new navigation property to webparts for sites + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link WebPart} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public WebPart post(@jakarta.annotation.Nonnull final WebPart body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, WebPart::createFromDiscriminatorValue); + } + /** + * Get webparts from sites + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get webparts from sites + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Create new navigation property to webparts for sites + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WebPart body) { + return toPostRequestInformation(body, null); + } + /** + * Create new navigation property to webparts for sites + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WebPart body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/verticalSection/webparts", pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link WebpartsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public WebpartsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new WebpartsRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get webparts from sites + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Include count of items + */ + @jakarta.annotation.Nullable + public Boolean count; + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Order items by property values + */ + @jakarta.annotation.Nullable + public String[] orderby; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Skip the first n items + */ + @jakarta.annotation.Nullable + public Integer skip; + /** + * Show only the first n items + */ + @jakarta.annotation.Nullable + public Integer top; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24count", count); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + allQueryParams.put("%24skip", skip); + allQueryParams.put("%24top", top); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24orderby", orderby); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/canvaslayout/verticalsection/webparts/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/canvaslayout/verticalsection/webparts/count/CountRequestBuilder.java new file mode 100644 index 00000000000..78e48e1641f --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/canvaslayout/verticalsection/webparts/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +package com.microsoft.graph.sites.item.pages.item.graphsitepage.canvaslayout.verticalsection.webparts.count; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to count the resources in the collection. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CountRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/verticalSection/webparts/$count{?%24filter,%24search}", pathParameters); + } + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/verticalSection/webparts/$count{?%24filter,%24search}", rawUrl); + } + /** + * Get the number of the resource + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get() { + return get(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); + } + /** + * Get the number of the resource + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new CountRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get the number of the resource + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/canvaslayout/verticalsection/webparts/item/WebPartItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/canvaslayout/verticalsection/webparts/item/WebPartItemRequestBuilder.java new file mode 100644 index 00000000000..a9bbb1c600f --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/canvaslayout/verticalsection/webparts/item/WebPartItemRequestBuilder.java @@ -0,0 +1,237 @@ +package com.microsoft.graph.sites.item.pages.item.graphsitepage.canvaslayout.verticalsection.webparts.item; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.WebPart; +import com.microsoft.graph.sites.item.pages.item.graphsitepage.canvaslayout.verticalsection.webparts.item.getpositionofwebpart.GetPositionOfWebPartRequestBuilder; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the webparts property of the microsoft.graph.verticalSection entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class WebPartItemRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to call the getPositionOfWebPart method. + * @return a {@link GetPositionOfWebPartRequestBuilder} + */ + @jakarta.annotation.Nonnull + public GetPositionOfWebPartRequestBuilder getPositionOfWebPart() { + return new GetPositionOfWebPartRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link WebPartItemRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public WebPartItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/verticalSection/webparts/{webPart%2Did}{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link WebPartItemRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public WebPartItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/verticalSection/webparts/{webPart%2Did}{?%24expand,%24select}", rawUrl); + } + /** + * Delete navigation property webparts for sites + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete() { + delete(null); + } + /** + * Delete navigation property webparts for sites + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * Get webparts from sites + * @return a {@link WebPart} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public WebPart get() { + return get(null); + } + /** + * Get webparts from sites + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link WebPart} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public WebPart get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, WebPart::createFromDiscriminatorValue); + } + /** + * Update the navigation property webparts in sites + * @param body The request body + * @return a {@link WebPart} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public WebPart patch(@jakarta.annotation.Nonnull final WebPart body) { + return patch(body, null); + } + /** + * Update the navigation property webparts in sites + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link WebPart} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public WebPart patch(@jakarta.annotation.Nonnull final WebPart body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, WebPart::createFromDiscriminatorValue); + } + /** + * Delete navigation property webparts for sites + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation() { + return toDeleteRequestInformation(null); + } + /** + * Delete navigation property webparts for sites + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/verticalSection/webparts/{webPart%2Did}", pathParameters); + requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Get webparts from sites + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get webparts from sites + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update the navigation property webparts in sites + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WebPart body) { + return toPatchRequestInformation(body, null); + } + /** + * Update the navigation property webparts in sites + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WebPart body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/verticalSection/webparts/{webPart%2Did}", pathParameters); + requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link WebPartItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public WebPartItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new WebPartItemRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class DeleteRequestConfiguration extends BaseRequestConfiguration { + } + /** + * Get webparts from sites + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PatchRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/canvaslayout/verticalsection/webparts/item/getpositionofwebpart/GetPositionOfWebPartRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/canvaslayout/verticalsection/webparts/item/getpositionofwebpart/GetPositionOfWebPartRequestBuilder.java new file mode 100644 index 00000000000..49e1dab58cb --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/canvaslayout/verticalsection/webparts/item/getpositionofwebpart/GetPositionOfWebPartRequestBuilder.java @@ -0,0 +1,96 @@ +package com.microsoft.graph.sites.item.pages.item.graphsitepage.canvaslayout.verticalsection.webparts.item.getpositionofwebpart; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.WebPartPosition; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to call the getPositionOfWebPart method. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class GetPositionOfWebPartRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link GetPositionOfWebPartRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public GetPositionOfWebPartRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/verticalSection/webparts/{webPart%2Did}/getPositionOfWebPart", pathParameters); + } + /** + * Instantiates a new {@link GetPositionOfWebPartRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public GetPositionOfWebPartRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/verticalSection/webparts/{webPart%2Did}/getPositionOfWebPart", rawUrl); + } + /** + * Invoke action getPositionOfWebPart + * @return a {@link WebPartPosition} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public WebPartPosition post() { + return post(null); + } + /** + * Invoke action getPositionOfWebPart + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link WebPartPosition} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public WebPartPosition post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, WebPartPosition::createFromDiscriminatorValue); + } + /** + * Invoke action getPositionOfWebPart + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation() { + return toPostRequestInformation(null); + } + /** + * Invoke action getPositionOfWebPart + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link GetPositionOfWebPartRequestBuilder} + */ + @jakarta.annotation.Nonnull + public GetPositionOfWebPartRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new GetPositionOfWebPartRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/createdbyuser/CreatedByUserRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/createdbyuser/CreatedByUserRequestBuilder.java new file mode 100644 index 00000000000..07b44b7fb4f --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/createdbyuser/CreatedByUserRequestBuilder.java @@ -0,0 +1,147 @@ +package com.microsoft.graph.sites.item.pages.item.graphsitepage.createdbyuser; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.User; +import com.microsoft.graph.sites.item.pages.item.graphsitepage.createdbyuser.mailboxsettings.MailboxSettingsRequestBuilder; +import com.microsoft.graph.sites.item.pages.item.graphsitepage.createdbyuser.serviceprovisioningerrors.ServiceProvisioningErrorsRequestBuilder; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CreatedByUserRequestBuilder extends BaseRequestBuilder { + /** + * The mailboxSettings property + * @return a {@link MailboxSettingsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public MailboxSettingsRequestBuilder mailboxSettings() { + return new MailboxSettingsRequestBuilder(pathParameters, requestAdapter); + } + /** + * The serviceProvisioningErrors property + * @return a {@link ServiceProvisioningErrorsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ServiceProvisioningErrorsRequestBuilder serviceProvisioningErrors() { + return new ServiceProvisioningErrorsRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link CreatedByUserRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CreatedByUserRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/createdByUser{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link CreatedByUserRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CreatedByUserRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/createdByUser{?%24expand,%24select}", rawUrl); + } + /** + * Identity of the user who created the item. Read-only. + * @return a {@link User} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public User get() { + return get(null); + } + /** + * Identity of the user who created the item. Read-only. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link User} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public User get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, User::createFromDiscriminatorValue); + } + /** + * Identity of the user who created the item. Read-only. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Identity of the user who created the item. Read-only. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link CreatedByUserRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CreatedByUserRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new CreatedByUserRequestBuilder(rawUrl, requestAdapter); + } + /** + * Identity of the user who created the item. Read-only. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/createdbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/createdbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java new file mode 100644 index 00000000000..58985a530ef --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/createdbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java @@ -0,0 +1,184 @@ +package com.microsoft.graph.sites.item.pages.item.graphsitepage.createdbyuser.mailboxsettings; + +import com.microsoft.graph.models.MailboxSettings; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Builds and executes requests for operations under /sites/{site-id}/pages/{baseSitePage-id}/graph.sitePage/createdByUser/mailboxSettings + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class MailboxSettingsRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link MailboxSettingsRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public MailboxSettingsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/createdByUser/mailboxSettings{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link MailboxSettingsRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public MailboxSettingsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/createdByUser/mailboxSettings{?%24expand,%24select}", rawUrl); + } + /** + * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. + * @return a {@link MailboxSettings} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public MailboxSettings get() { + return get(null); + } + /** + * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link MailboxSettings} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public MailboxSettings get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, MailboxSettings::createFromDiscriminatorValue); + } + /** + * Update property mailboxSettings value. + * @param body The request body + * @return a {@link MailboxSettings} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public MailboxSettings patch(@jakarta.annotation.Nonnull final MailboxSettings body) { + return patch(body, null); + } + /** + * Update property mailboxSettings value. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link MailboxSettings} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public MailboxSettings patch(@jakarta.annotation.Nonnull final MailboxSettings body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, MailboxSettings::createFromDiscriminatorValue); + } + /** + * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update property mailboxSettings value. + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final MailboxSettings body) { + return toPatchRequestInformation(body, null); + } + /** + * Update property mailboxSettings value. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final MailboxSettings body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/createdByUser/mailboxSettings", pathParameters); + requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link MailboxSettingsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public MailboxSettingsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new MailboxSettingsRequestBuilder(rawUrl, requestAdapter); + } + /** + * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PatchRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/createdbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/createdbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java new file mode 100644 index 00000000000..d586890ad25 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/createdbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java @@ -0,0 +1,174 @@ +package com.microsoft.graph.sites.item.pages.item.graphsitepage.createdbyuser.serviceprovisioningerrors; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.ServiceProvisioningErrorCollectionResponse; +import com.microsoft.graph.sites.item.pages.item.graphsitepage.createdbyuser.serviceprovisioningerrors.count.CountRequestBuilder; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Builds and executes requests for operations under /sites/{site-id}/pages/{baseSitePage-id}/graph.sitePage/createdByUser/serviceProvisioningErrors + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class ServiceProvisioningErrorsRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to count the resources in the collection. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder count() { + return new CountRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link ServiceProvisioningErrorsRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public ServiceProvisioningErrorsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/createdByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link ServiceProvisioningErrorsRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public ServiceProvisioningErrorsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/createdByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + * @return a {@link ServiceProvisioningErrorCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public ServiceProvisioningErrorCollectionResponse get() { + return get(null); + } + /** + * Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link ServiceProvisioningErrorCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public ServiceProvisioningErrorCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, ServiceProvisioningErrorCollectionResponse::createFromDiscriminatorValue); + } + /** + * Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link ServiceProvisioningErrorsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ServiceProvisioningErrorsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, requestAdapter); + } + /** + * Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Include count of items + */ + @jakarta.annotation.Nullable + public Boolean count; + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Order items by property values + */ + @jakarta.annotation.Nullable + public String[] orderby; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Skip the first n items + */ + @jakarta.annotation.Nullable + public Integer skip; + /** + * Show only the first n items + */ + @jakarta.annotation.Nullable + public Integer top; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24count", count); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + allQueryParams.put("%24skip", skip); + allQueryParams.put("%24top", top); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24orderby", orderby); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/createdbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/createdbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java new file mode 100644 index 00000000000..e3cb6923996 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/createdbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +package com.microsoft.graph.sites.item.pages.item.graphsitepage.createdbyuser.serviceprovisioningerrors.count; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to count the resources in the collection. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CountRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/createdByUser/serviceProvisioningErrors/$count{?%24filter,%24search}", pathParameters); + } + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/createdByUser/serviceProvisioningErrors/$count{?%24filter,%24search}", rawUrl); + } + /** + * Get the number of the resource + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get() { + return get(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); + } + /** + * Get the number of the resource + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new CountRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get the number of the resource + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/lastmodifiedbyuser/LastModifiedByUserRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/lastmodifiedbyuser/LastModifiedByUserRequestBuilder.java new file mode 100644 index 00000000000..6f716dd4908 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/lastmodifiedbyuser/LastModifiedByUserRequestBuilder.java @@ -0,0 +1,147 @@ +package com.microsoft.graph.sites.item.pages.item.graphsitepage.lastmodifiedbyuser; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.User; +import com.microsoft.graph.sites.item.pages.item.graphsitepage.lastmodifiedbyuser.mailboxsettings.MailboxSettingsRequestBuilder; +import com.microsoft.graph.sites.item.pages.item.graphsitepage.lastmodifiedbyuser.serviceprovisioningerrors.ServiceProvisioningErrorsRequestBuilder; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the lastModifiedByUser property of the microsoft.graph.baseItem entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class LastModifiedByUserRequestBuilder extends BaseRequestBuilder { + /** + * The mailboxSettings property + * @return a {@link MailboxSettingsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public MailboxSettingsRequestBuilder mailboxSettings() { + return new MailboxSettingsRequestBuilder(pathParameters, requestAdapter); + } + /** + * The serviceProvisioningErrors property + * @return a {@link ServiceProvisioningErrorsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ServiceProvisioningErrorsRequestBuilder serviceProvisioningErrors() { + return new ServiceProvisioningErrorsRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link LastModifiedByUserRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public LastModifiedByUserRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/lastModifiedByUser{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link LastModifiedByUserRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public LastModifiedByUserRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/lastModifiedByUser{?%24expand,%24select}", rawUrl); + } + /** + * Identity of the user who last modified the item. Read-only. + * @return a {@link User} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public User get() { + return get(null); + } + /** + * Identity of the user who last modified the item. Read-only. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link User} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public User get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, User::createFromDiscriminatorValue); + } + /** + * Identity of the user who last modified the item. Read-only. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Identity of the user who last modified the item. Read-only. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link LastModifiedByUserRequestBuilder} + */ + @jakarta.annotation.Nonnull + public LastModifiedByUserRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new LastModifiedByUserRequestBuilder(rawUrl, requestAdapter); + } + /** + * Identity of the user who last modified the item. Read-only. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/lastmodifiedbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/lastmodifiedbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java new file mode 100644 index 00000000000..717e7d00948 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/lastmodifiedbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java @@ -0,0 +1,184 @@ +package com.microsoft.graph.sites.item.pages.item.graphsitepage.lastmodifiedbyuser.mailboxsettings; + +import com.microsoft.graph.models.MailboxSettings; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Builds and executes requests for operations under /sites/{site-id}/pages/{baseSitePage-id}/graph.sitePage/lastModifiedByUser/mailboxSettings + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class MailboxSettingsRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link MailboxSettingsRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public MailboxSettingsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/lastModifiedByUser/mailboxSettings{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link MailboxSettingsRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public MailboxSettingsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/lastModifiedByUser/mailboxSettings{?%24expand,%24select}", rawUrl); + } + /** + * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. + * @return a {@link MailboxSettings} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public MailboxSettings get() { + return get(null); + } + /** + * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link MailboxSettings} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public MailboxSettings get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, MailboxSettings::createFromDiscriminatorValue); + } + /** + * Update property mailboxSettings value. + * @param body The request body + * @return a {@link MailboxSettings} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public MailboxSettings patch(@jakarta.annotation.Nonnull final MailboxSettings body) { + return patch(body, null); + } + /** + * Update property mailboxSettings value. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link MailboxSettings} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public MailboxSettings patch(@jakarta.annotation.Nonnull final MailboxSettings body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, MailboxSettings::createFromDiscriminatorValue); + } + /** + * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update property mailboxSettings value. + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final MailboxSettings body) { + return toPatchRequestInformation(body, null); + } + /** + * Update property mailboxSettings value. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final MailboxSettings body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/lastModifiedByUser/mailboxSettings", pathParameters); + requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link MailboxSettingsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public MailboxSettingsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new MailboxSettingsRequestBuilder(rawUrl, requestAdapter); + } + /** + * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PatchRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/lastmodifiedbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/lastmodifiedbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java new file mode 100644 index 00000000000..f9163ae8c0c --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/lastmodifiedbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java @@ -0,0 +1,174 @@ +package com.microsoft.graph.sites.item.pages.item.graphsitepage.lastmodifiedbyuser.serviceprovisioningerrors; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.ServiceProvisioningErrorCollectionResponse; +import com.microsoft.graph.sites.item.pages.item.graphsitepage.lastmodifiedbyuser.serviceprovisioningerrors.count.CountRequestBuilder; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Builds and executes requests for operations under /sites/{site-id}/pages/{baseSitePage-id}/graph.sitePage/lastModifiedByUser/serviceProvisioningErrors + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class ServiceProvisioningErrorsRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to count the resources in the collection. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder count() { + return new CountRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link ServiceProvisioningErrorsRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public ServiceProvisioningErrorsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/lastModifiedByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link ServiceProvisioningErrorsRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public ServiceProvisioningErrorsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/lastModifiedByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + * @return a {@link ServiceProvisioningErrorCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public ServiceProvisioningErrorCollectionResponse get() { + return get(null); + } + /** + * Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link ServiceProvisioningErrorCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public ServiceProvisioningErrorCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, ServiceProvisioningErrorCollectionResponse::createFromDiscriminatorValue); + } + /** + * Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link ServiceProvisioningErrorsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ServiceProvisioningErrorsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, requestAdapter); + } + /** + * Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Include count of items + */ + @jakarta.annotation.Nullable + public Boolean count; + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Order items by property values + */ + @jakarta.annotation.Nullable + public String[] orderby; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Skip the first n items + */ + @jakarta.annotation.Nullable + public Integer skip; + /** + * Show only the first n items + */ + @jakarta.annotation.Nullable + public Integer top; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24count", count); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + allQueryParams.put("%24skip", skip); + allQueryParams.put("%24top", top); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24orderby", orderby); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/lastmodifiedbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/lastmodifiedbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java new file mode 100644 index 00000000000..8f65060a90f --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/lastmodifiedbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +package com.microsoft.graph.sites.item.pages.item.graphsitepage.lastmodifiedbyuser.serviceprovisioningerrors.count; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to count the resources in the collection. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CountRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/lastModifiedByUser/serviceProvisioningErrors/$count{?%24filter,%24search}", pathParameters); + } + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/lastModifiedByUser/serviceProvisioningErrors/$count{?%24filter,%24search}", rawUrl); + } + /** + * Get the number of the resource + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get() { + return get(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); + } + /** + * Get the number of the resource + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new CountRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get the number of the resource + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/webparts/WebPartsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/webparts/WebPartsRequestBuilder.java new file mode 100644 index 00000000000..66df53c988f --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/webparts/WebPartsRequestBuilder.java @@ -0,0 +1,243 @@ +package com.microsoft.graph.sites.item.pages.item.graphsitepage.webparts; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.WebPart; +import com.microsoft.graph.models.WebPartCollectionResponse; +import com.microsoft.graph.sites.item.pages.item.graphsitepage.webparts.count.CountRequestBuilder; +import com.microsoft.graph.sites.item.pages.item.graphsitepage.webparts.item.WebPartItemRequestBuilder; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the webParts property of the microsoft.graph.sitePage entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class WebPartsRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to count the resources in the collection. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder count() { + return new CountRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to manage the webParts property of the microsoft.graph.sitePage entity. + * @param webPartId The unique identifier of webPart + * @return a {@link WebPartItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public WebPartItemRequestBuilder byWebPartId(@jakarta.annotation.Nonnull final String webPartId) { + Objects.requireNonNull(webPartId); + final HashMap urlTplParams = new HashMap(this.pathParameters); + urlTplParams.put("webPart%2Did", webPartId); + return new WebPartItemRequestBuilder(urlTplParams, requestAdapter); + } + /** + * Instantiates a new {@link WebPartsRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public WebPartsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/webParts{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link WebPartsRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public WebPartsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/webParts{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * Get webParts from sites + * @return a {@link WebPartCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public WebPartCollectionResponse get() { + return get(null); + } + /** + * Get webParts from sites + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link WebPartCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public WebPartCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, WebPartCollectionResponse::createFromDiscriminatorValue); + } + /** + * Create new navigation property to webParts for sites + * @param body The request body + * @return a {@link WebPart} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public WebPart post(@jakarta.annotation.Nonnull final WebPart body) { + return post(body, null); + } + /** + * Create new navigation property to webParts for sites + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link WebPart} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public WebPart post(@jakarta.annotation.Nonnull final WebPart body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, WebPart::createFromDiscriminatorValue); + } + /** + * Get webParts from sites + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get webParts from sites + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Create new navigation property to webParts for sites + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WebPart body) { + return toPostRequestInformation(body, null); + } + /** + * Create new navigation property to webParts for sites + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WebPart body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/webParts", pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link WebPartsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public WebPartsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new WebPartsRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get webParts from sites + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Include count of items + */ + @jakarta.annotation.Nullable + public Boolean count; + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Order items by property values + */ + @jakarta.annotation.Nullable + public String[] orderby; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Skip the first n items + */ + @jakarta.annotation.Nullable + public Integer skip; + /** + * Show only the first n items + */ + @jakarta.annotation.Nullable + public Integer top; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24count", count); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + allQueryParams.put("%24skip", skip); + allQueryParams.put("%24top", top); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24orderby", orderby); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/webparts/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/webparts/count/CountRequestBuilder.java new file mode 100644 index 00000000000..3dd53941d78 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/webparts/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +package com.microsoft.graph.sites.item.pages.item.graphsitepage.webparts.count; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to count the resources in the collection. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CountRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/webParts/$count{?%24filter,%24search}", pathParameters); + } + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/webParts/$count{?%24filter,%24search}", rawUrl); + } + /** + * Get the number of the resource + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get() { + return get(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); + } + /** + * Get the number of the resource + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new CountRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get the number of the resource + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/webparts/item/WebPartItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/webparts/item/WebPartItemRequestBuilder.java new file mode 100644 index 00000000000..0cafee500ec --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/webparts/item/WebPartItemRequestBuilder.java @@ -0,0 +1,237 @@ +package com.microsoft.graph.sites.item.pages.item.graphsitepage.webparts.item; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.WebPart; +import com.microsoft.graph.sites.item.pages.item.graphsitepage.webparts.item.getpositionofwebpart.GetPositionOfWebPartRequestBuilder; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the webParts property of the microsoft.graph.sitePage entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class WebPartItemRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to call the getPositionOfWebPart method. + * @return a {@link GetPositionOfWebPartRequestBuilder} + */ + @jakarta.annotation.Nonnull + public GetPositionOfWebPartRequestBuilder getPositionOfWebPart() { + return new GetPositionOfWebPartRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link WebPartItemRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public WebPartItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/webParts/{webPart%2Did}{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link WebPartItemRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public WebPartItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/webParts/{webPart%2Did}{?%24expand,%24select}", rawUrl); + } + /** + * Delete navigation property webParts for sites + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete() { + delete(null); + } + /** + * Delete navigation property webParts for sites + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * Get webParts from sites + * @return a {@link WebPart} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public WebPart get() { + return get(null); + } + /** + * Get webParts from sites + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link WebPart} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public WebPart get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, WebPart::createFromDiscriminatorValue); + } + /** + * Update the navigation property webParts in sites + * @param body The request body + * @return a {@link WebPart} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public WebPart patch(@jakarta.annotation.Nonnull final WebPart body) { + return patch(body, null); + } + /** + * Update the navigation property webParts in sites + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link WebPart} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public WebPart patch(@jakarta.annotation.Nonnull final WebPart body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, WebPart::createFromDiscriminatorValue); + } + /** + * Delete navigation property webParts for sites + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation() { + return toDeleteRequestInformation(null); + } + /** + * Delete navigation property webParts for sites + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/webParts/{webPart%2Did}", pathParameters); + requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Get webParts from sites + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get webParts from sites + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update the navigation property webParts in sites + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WebPart body) { + return toPatchRequestInformation(body, null); + } + /** + * Update the navigation property webParts in sites + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WebPart body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/webParts/{webPart%2Did}", pathParameters); + requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link WebPartItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public WebPartItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new WebPartItemRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class DeleteRequestConfiguration extends BaseRequestConfiguration { + } + /** + * Get webParts from sites + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PatchRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/webparts/item/getpositionofwebpart/GetPositionOfWebPartRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/webparts/item/getpositionofwebpart/GetPositionOfWebPartRequestBuilder.java new file mode 100644 index 00000000000..7d05cd446db --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/graphsitepage/webparts/item/getpositionofwebpart/GetPositionOfWebPartRequestBuilder.java @@ -0,0 +1,96 @@ +package com.microsoft.graph.sites.item.pages.item.graphsitepage.webparts.item.getpositionofwebpart; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.WebPartPosition; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to call the getPositionOfWebPart method. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class GetPositionOfWebPartRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link GetPositionOfWebPartRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public GetPositionOfWebPartRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/webParts/{webPart%2Did}/getPositionOfWebPart", pathParameters); + } + /** + * Instantiates a new {@link GetPositionOfWebPartRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public GetPositionOfWebPartRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/webParts/{webPart%2Did}/getPositionOfWebPart", rawUrl); + } + /** + * Invoke action getPositionOfWebPart + * @return a {@link WebPartPosition} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public WebPartPosition post() { + return post(null); + } + /** + * Invoke action getPositionOfWebPart + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link WebPartPosition} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public WebPartPosition post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, WebPartPosition::createFromDiscriminatorValue); + } + /** + * Invoke action getPositionOfWebPart + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation() { + return toPostRequestInformation(null); + } + /** + * Invoke action getPositionOfWebPart + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link GetPositionOfWebPartRequestBuilder} + */ + @jakarta.annotation.Nonnull + public GetPositionOfWebPartRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new GetPositionOfWebPartRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/lastmodifiedbyuser/LastModifiedByUserRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/lastmodifiedbyuser/LastModifiedByUserRequestBuilder.java new file mode 100644 index 00000000000..d15defc5921 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/lastmodifiedbyuser/LastModifiedByUserRequestBuilder.java @@ -0,0 +1,147 @@ +package com.microsoft.graph.sites.item.pages.item.lastmodifiedbyuser; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.User; +import com.microsoft.graph.sites.item.pages.item.lastmodifiedbyuser.mailboxsettings.MailboxSettingsRequestBuilder; +import com.microsoft.graph.sites.item.pages.item.lastmodifiedbyuser.serviceprovisioningerrors.ServiceProvisioningErrorsRequestBuilder; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the lastModifiedByUser property of the microsoft.graph.baseItem entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class LastModifiedByUserRequestBuilder extends BaseRequestBuilder { + /** + * The mailboxSettings property + * @return a {@link MailboxSettingsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public MailboxSettingsRequestBuilder mailboxSettings() { + return new MailboxSettingsRequestBuilder(pathParameters, requestAdapter); + } + /** + * The serviceProvisioningErrors property + * @return a {@link ServiceProvisioningErrorsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ServiceProvisioningErrorsRequestBuilder serviceProvisioningErrors() { + return new ServiceProvisioningErrorsRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link LastModifiedByUserRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public LastModifiedByUserRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/lastModifiedByUser{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link LastModifiedByUserRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public LastModifiedByUserRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/lastModifiedByUser{?%24expand,%24select}", rawUrl); + } + /** + * Identity of the user who last modified the item. Read-only. + * @return a {@link User} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public User get() { + return get(null); + } + /** + * Identity of the user who last modified the item. Read-only. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link User} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public User get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, User::createFromDiscriminatorValue); + } + /** + * Identity of the user who last modified the item. Read-only. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Identity of the user who last modified the item. Read-only. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link LastModifiedByUserRequestBuilder} + */ + @jakarta.annotation.Nonnull + public LastModifiedByUserRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new LastModifiedByUserRequestBuilder(rawUrl, requestAdapter); + } + /** + * Identity of the user who last modified the item. Read-only. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/lastmodifiedbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/lastmodifiedbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java new file mode 100644 index 00000000000..b9105c587b9 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/lastmodifiedbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java @@ -0,0 +1,184 @@ +package com.microsoft.graph.sites.item.pages.item.lastmodifiedbyuser.mailboxsettings; + +import com.microsoft.graph.models.MailboxSettings; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Builds and executes requests for operations under /sites/{site-id}/pages/{baseSitePage-id}/lastModifiedByUser/mailboxSettings + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class MailboxSettingsRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link MailboxSettingsRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public MailboxSettingsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/lastModifiedByUser/mailboxSettings{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link MailboxSettingsRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public MailboxSettingsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/lastModifiedByUser/mailboxSettings{?%24expand,%24select}", rawUrl); + } + /** + * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. + * @return a {@link MailboxSettings} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public MailboxSettings get() { + return get(null); + } + /** + * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link MailboxSettings} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public MailboxSettings get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, MailboxSettings::createFromDiscriminatorValue); + } + /** + * Update property mailboxSettings value. + * @param body The request body + * @return a {@link MailboxSettings} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public MailboxSettings patch(@jakarta.annotation.Nonnull final MailboxSettings body) { + return patch(body, null); + } + /** + * Update property mailboxSettings value. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link MailboxSettings} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public MailboxSettings patch(@jakarta.annotation.Nonnull final MailboxSettings body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, MailboxSettings::createFromDiscriminatorValue); + } + /** + * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update property mailboxSettings value. + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final MailboxSettings body) { + return toPatchRequestInformation(body, null); + } + /** + * Update property mailboxSettings value. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final MailboxSettings body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/lastModifiedByUser/mailboxSettings", pathParameters); + requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link MailboxSettingsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public MailboxSettingsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new MailboxSettingsRequestBuilder(rawUrl, requestAdapter); + } + /** + * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PatchRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/lastmodifiedbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/lastmodifiedbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java new file mode 100644 index 00000000000..be325acf357 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/lastmodifiedbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java @@ -0,0 +1,174 @@ +package com.microsoft.graph.sites.item.pages.item.lastmodifiedbyuser.serviceprovisioningerrors; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.ServiceProvisioningErrorCollectionResponse; +import com.microsoft.graph.sites.item.pages.item.lastmodifiedbyuser.serviceprovisioningerrors.count.CountRequestBuilder; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Builds and executes requests for operations under /sites/{site-id}/pages/{baseSitePage-id}/lastModifiedByUser/serviceProvisioningErrors + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class ServiceProvisioningErrorsRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to count the resources in the collection. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder count() { + return new CountRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link ServiceProvisioningErrorsRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public ServiceProvisioningErrorsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/lastModifiedByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link ServiceProvisioningErrorsRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public ServiceProvisioningErrorsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/lastModifiedByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + * @return a {@link ServiceProvisioningErrorCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public ServiceProvisioningErrorCollectionResponse get() { + return get(null); + } + /** + * Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link ServiceProvisioningErrorCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public ServiceProvisioningErrorCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, ServiceProvisioningErrorCollectionResponse::createFromDiscriminatorValue); + } + /** + * Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link ServiceProvisioningErrorsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ServiceProvisioningErrorsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, requestAdapter); + } + /** + * Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Include count of items + */ + @jakarta.annotation.Nullable + public Boolean count; + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Order items by property values + */ + @jakarta.annotation.Nullable + public String[] orderby; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Skip the first n items + */ + @jakarta.annotation.Nullable + public Integer skip; + /** + * Show only the first n items + */ + @jakarta.annotation.Nullable + public Integer top; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24count", count); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + allQueryParams.put("%24skip", skip); + allQueryParams.put("%24top", top); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24orderby", orderby); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/lastmodifiedbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/lastmodifiedbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java new file mode 100644 index 00000000000..f3063e2b7db --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/sites/item/pages/item/lastmodifiedbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +package com.microsoft.graph.sites.item.pages.item.lastmodifiedbyuser.serviceprovisioningerrors.count; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to count the resources in the collection. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CountRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/lastModifiedByUser/serviceProvisioningErrors/$count{?%24filter,%24search}", pathParameters); + } + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/pages/{baseSitePage%2Did}/lastModifiedByUser/serviceProvisioningErrors/$count{?%24filter,%24search}", rawUrl); + } + /** + * Get the number of the resource + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get() { + return get(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); + } + /** + * Get the number of the resource + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new CountRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get the number of the resource + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/teams/item/archive/ArchiveRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/teams/item/archive/ArchiveRequestBuilder.java index f0bc152660c..b43d75df2ca 100644 --- a/src/main/java/com/microsoft/graph/generated/teams/item/archive/ArchiveRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/teams/item/archive/ArchiveRequestBuilder.java @@ -35,7 +35,7 @@ public ArchiveRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @j super(requestAdapter, "{+baseurl}/teams/{team%2Did}/archive", rawUrl); } /** - * Archive the specified team. When a team is archived, users can no longer send or like messages on any channel in the team, edit the team's name, description, or other settings, or in general make most changes to the team.Membership changes to the team continue to be allowed. Archiving is an async operation. A team is archived once the async operation completes successfully, which may occur subsequent to a response from this API. To archive a team, the team and group must have an owner. To restore a team from its archived state, use the API to unarchive. + * Archive the specified team. When a team is archived, users can no longer make most changes to the team. For example, users can no longer: send or like messages on any channel in the team; edit the team's name or description; nor edit other settings. However, membership changes to the team are still allowed. Archiving is an async operation. A team is archived once the async operation completes successfully, which might occur subsequent to a response from this API. To archive a team, the team and group must have an owner. To restore a team from its archived state, use the API to unarchive. * @param body The request body * @throws ODataError When receiving a 4XX or 5XX status code * @see Find more info here @@ -44,7 +44,7 @@ public void post(@jakarta.annotation.Nonnull final ArchivePostRequestBody body) post(body, null); } /** - * Archive the specified team. When a team is archived, users can no longer send or like messages on any channel in the team, edit the team's name, description, or other settings, or in general make most changes to the team.Membership changes to the team continue to be allowed. Archiving is an async operation. A team is archived once the async operation completes successfully, which may occur subsequent to a response from this API. To archive a team, the team and group must have an owner. To restore a team from its archived state, use the API to unarchive. + * Archive the specified team. When a team is archived, users can no longer make most changes to the team. For example, users can no longer: send or like messages on any channel in the team; edit the team's name or description; nor edit other settings. However, membership changes to the team are still allowed. Archiving is an async operation. A team is archived once the async operation completes successfully, which might occur subsequent to a response from this API. To archive a team, the team and group must have an owner. To restore a team from its archived state, use the API to unarchive. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @throws ODataError When receiving a 4XX or 5XX status code @@ -58,7 +58,7 @@ public void post(@jakarta.annotation.Nonnull final ArchivePostRequestBody body, this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Archive the specified team. When a team is archived, users can no longer send or like messages on any channel in the team, edit the team's name, description, or other settings, or in general make most changes to the team.Membership changes to the team continue to be allowed. Archiving is an async operation. A team is archived once the async operation completes successfully, which may occur subsequent to a response from this API. To archive a team, the team and group must have an owner. To restore a team from its archived state, use the API to unarchive. + * Archive the specified team. When a team is archived, users can no longer make most changes to the team. For example, users can no longer: send or like messages on any channel in the team; edit the team's name or description; nor edit other settings. However, membership changes to the team are still allowed. Archiving is an async operation. A team is archived once the async operation completes successfully, which might occur subsequent to a response from this API. To archive a team, the team and group must have an owner. To restore a team from its archived state, use the API to unarchive. * @param body The request body * @return a {@link RequestInformation} */ @@ -67,7 +67,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Archive the specified team. When a team is archived, users can no longer send or like messages on any channel in the team, edit the team's name, description, or other settings, or in general make most changes to the team.Membership changes to the team continue to be allowed. Archiving is an async operation. A team is archived once the async operation completes successfully, which may occur subsequent to a response from this API. To archive a team, the team and group must have an owner. To restore a team from its archived state, use the API to unarchive. + * Archive the specified team. When a team is archived, users can no longer make most changes to the team. For example, users can no longer: send or like messages on any channel in the team; edit the team's name or description; nor edit other settings. However, membership changes to the team are still allowed. Archiving is an async operation. A team is archived once the async operation completes successfully, which might occur subsequent to a response from this API. To archive a team, the team and group must have an owner. To restore a team from its archived state, use the API to unarchive. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/generated/teams/item/channels/item/members/MembersRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/teams/item/channels/item/members/MembersRequestBuilder.java index 2f33a222337..8188e7716f1 100644 --- a/src/main/java/com/microsoft/graph/generated/teams/item/channels/item/members/MembersRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/teams/item/channels/item/members/MembersRequestBuilder.java @@ -93,23 +93,23 @@ public ConversationMemberCollectionResponse get(@jakarta.annotation.Nullable fin return this.requestAdapter.send(requestInfo, errorMapping, ConversationMemberCollectionResponse::createFromDiscriminatorValue); } /** - * Add a conversationMember to a channel. + * Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared. * @param body The request body * @return a {@link ConversationMember} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ConversationMember post(@jakarta.annotation.Nonnull final ConversationMember body) { return post(body, null); } /** - * Add a conversationMember to a channel. + * Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link ConversationMember} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ConversationMember post(@jakarta.annotation.Nonnull final ConversationMember body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -140,7 +140,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Add a conversationMember to a channel. + * Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared. * @param body The request body * @return a {@link RequestInformation} */ @@ -149,7 +149,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Add a conversationMember to a channel. + * Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/generated/teams/item/channels/item/messages/MessagesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/teams/item/channels/item/messages/MessagesRequestBuilder.java index 0904bd5fed1..50f631d2f74 100644 --- a/src/main/java/com/microsoft/graph/generated/teams/item/channels/item/messages/MessagesRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/teams/item/channels/item/messages/MessagesRequestBuilder.java @@ -93,23 +93,23 @@ public ChatMessageCollectionResponse get(@jakarta.annotation.Nullable final java return this.requestAdapter.send(requestInfo, errorMapping, ChatMessageCollectionResponse::createFromDiscriminatorValue); } /** - * Send a new chatMessage in the specified channel. + * Send a new chatMessage in the specified channel or a chat. * @param body The request body * @return a {@link ChatMessage} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ChatMessage post(@jakarta.annotation.Nonnull final ChatMessage body) { return post(body, null); } /** - * Send a new chatMessage in the specified channel. + * Send a new chatMessage in the specified channel or a chat. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link ChatMessage} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ChatMessage post(@jakarta.annotation.Nonnull final ChatMessage body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -140,7 +140,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Send a new chatMessage in the specified channel. + * Send a new chatMessage in the specified channel or a chat. * @param body The request body * @return a {@link RequestInformation} */ @@ -149,7 +149,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Send a new chatMessage in the specified channel. + * Send a new chatMessage in the specified channel or a chat. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/generated/teams/item/channels/item/tabs/item/TeamsTabItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/teams/item/channels/item/tabs/item/TeamsTabItemRequestBuilder.java index 659fe1a2ba2..6867adced20 100644 --- a/src/main/java/com/microsoft/graph/generated/teams/item/channels/item/tabs/item/TeamsTabItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/teams/item/channels/item/tabs/item/TeamsTabItemRequestBuilder.java @@ -90,7 +90,7 @@ public TeamsTab get(@jakarta.annotation.Nullable final java.util.function.Consum return this.requestAdapter.send(requestInfo, errorMapping, TeamsTab::createFromDiscriminatorValue); } /** - * Update the properties of the specified tab.This can be used to configure the content of the tab. + * Update the properties of the specified tab.This API can be used to configure the content of the tab. * @param body The request body * @return a {@link TeamsTab} * @throws ODataError When receiving a 4XX or 5XX status code @@ -101,7 +101,7 @@ public TeamsTab patch(@jakarta.annotation.Nonnull final TeamsTab body) { return patch(body, null); } /** - * Update the properties of the specified tab.This can be used to configure the content of the tab. + * Update the properties of the specified tab.This API can be used to configure the content of the tab. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link TeamsTab} @@ -157,7 +157,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Update the properties of the specified tab.This can be used to configure the content of the tab. + * Update the properties of the specified tab.This API can be used to configure the content of the tab. * @param body The request body * @return a {@link RequestInformation} */ @@ -166,7 +166,7 @@ public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull return toPatchRequestInformation(body, null); } /** - * Update the properties of the specified tab.This can be used to configure the content of the tab. + * Update the properties of the specified tab.This API can be used to configure the content of the tab. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/generated/teams/item/primarychannel/members/MembersRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/teams/item/primarychannel/members/MembersRequestBuilder.java index 6b5a407bcea..c8f62b6ac1b 100644 --- a/src/main/java/com/microsoft/graph/generated/teams/item/primarychannel/members/MembersRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/teams/item/primarychannel/members/MembersRequestBuilder.java @@ -93,23 +93,23 @@ public ConversationMemberCollectionResponse get(@jakarta.annotation.Nullable fin return this.requestAdapter.send(requestInfo, errorMapping, ConversationMemberCollectionResponse::createFromDiscriminatorValue); } /** - * Add a conversationMember to a channel. + * Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared. * @param body The request body * @return a {@link ConversationMember} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ConversationMember post(@jakarta.annotation.Nonnull final ConversationMember body) { return post(body, null); } /** - * Add a conversationMember to a channel. + * Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link ConversationMember} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ConversationMember post(@jakarta.annotation.Nonnull final ConversationMember body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -140,7 +140,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Add a conversationMember to a channel. + * Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared. * @param body The request body * @return a {@link RequestInformation} */ @@ -149,7 +149,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Add a conversationMember to a channel. + * Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/generated/teams/item/primarychannel/messages/MessagesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/teams/item/primarychannel/messages/MessagesRequestBuilder.java index c2e5066b647..92e8a9a5f74 100644 --- a/src/main/java/com/microsoft/graph/generated/teams/item/primarychannel/messages/MessagesRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/teams/item/primarychannel/messages/MessagesRequestBuilder.java @@ -93,23 +93,23 @@ public ChatMessageCollectionResponse get(@jakarta.annotation.Nullable final java return this.requestAdapter.send(requestInfo, errorMapping, ChatMessageCollectionResponse::createFromDiscriminatorValue); } /** - * Send a new chatMessage in the specified channel. + * Send a new chatMessage in the specified channel or a chat. * @param body The request body * @return a {@link ChatMessage} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ChatMessage post(@jakarta.annotation.Nonnull final ChatMessage body) { return post(body, null); } /** - * Send a new chatMessage in the specified channel. + * Send a new chatMessage in the specified channel or a chat. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link ChatMessage} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ChatMessage post(@jakarta.annotation.Nonnull final ChatMessage body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -140,7 +140,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Send a new chatMessage in the specified channel. + * Send a new chatMessage in the specified channel or a chat. * @param body The request body * @return a {@link RequestInformation} */ @@ -149,7 +149,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Send a new chatMessage in the specified channel. + * Send a new chatMessage in the specified channel or a chat. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/generated/teams/item/primarychannel/tabs/item/TeamsTabItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/teams/item/primarychannel/tabs/item/TeamsTabItemRequestBuilder.java index 8f3e59a7d51..49b7b863b8d 100644 --- a/src/main/java/com/microsoft/graph/generated/teams/item/primarychannel/tabs/item/TeamsTabItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/teams/item/primarychannel/tabs/item/TeamsTabItemRequestBuilder.java @@ -90,7 +90,7 @@ public TeamsTab get(@jakarta.annotation.Nullable final java.util.function.Consum return this.requestAdapter.send(requestInfo, errorMapping, TeamsTab::createFromDiscriminatorValue); } /** - * Update the properties of the specified tab.This can be used to configure the content of the tab. + * Update the properties of the specified tab.This API can be used to configure the content of the tab. * @param body The request body * @return a {@link TeamsTab} * @throws ODataError When receiving a 4XX or 5XX status code @@ -101,7 +101,7 @@ public TeamsTab patch(@jakarta.annotation.Nonnull final TeamsTab body) { return patch(body, null); } /** - * Update the properties of the specified tab.This can be used to configure the content of the tab. + * Update the properties of the specified tab.This API can be used to configure the content of the tab. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link TeamsTab} @@ -157,7 +157,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Update the properties of the specified tab.This can be used to configure the content of the tab. + * Update the properties of the specified tab.This API can be used to configure the content of the tab. * @param body The request body * @return a {@link RequestInformation} */ @@ -166,7 +166,7 @@ public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull return toPatchRequestInformation(body, null); } /** - * Update the properties of the specified tab.This can be used to configure the content of the tab. + * Update the properties of the specified tab.This API can be used to configure the content of the tab. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/generated/teams/item/unarchive/UnarchiveRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/teams/item/unarchive/UnarchiveRequestBuilder.java index 4e5a2e47718..24fca68dcac 100644 --- a/src/main/java/com/microsoft/graph/generated/teams/item/unarchive/UnarchiveRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/teams/item/unarchive/UnarchiveRequestBuilder.java @@ -35,7 +35,7 @@ public UnarchiveRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, super(requestAdapter, "{+baseurl}/teams/{team%2Did}/unarchive", rawUrl); } /** - * Restore an archived team. This restores users' ability to send messages and edit the team, abiding by tenant and team settings. A Team is archived using the archive API. Unarchiving is an async operation. A team is unarchived once the async operation completes successfully, which may occur subsequent to a response from this API. + * Restore an archived team. This API restores users' ability to send messages and edit the team, abiding by tenant and team settings. A Team is archived using the archive API. Unarchiving is an async operation. A team is unarchived once the async operation completes successfully, which might occur subsequent to a response from this API. * @throws ODataError When receiving a 4XX or 5XX status code * @see Find more info here */ @@ -43,7 +43,7 @@ public void post() { post(null); } /** - * Restore an archived team. This restores users' ability to send messages and edit the team, abiding by tenant and team settings. A Team is archived using the archive API. Unarchiving is an async operation. A team is unarchived once the async operation completes successfully, which may occur subsequent to a response from this API. + * Restore an archived team. This API restores users' ability to send messages and edit the team, abiding by tenant and team settings. A Team is archived using the archive API. Unarchiving is an async operation. A team is unarchived once the async operation completes successfully, which might occur subsequent to a response from this API. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @throws ODataError When receiving a 4XX or 5XX status code * @see Find more info here @@ -55,7 +55,7 @@ public void post(@jakarta.annotation.Nullable final java.util.function.Consumer< this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Restore an archived team. This restores users' ability to send messages and edit the team, abiding by tenant and team settings. A Team is archived using the archive API. Unarchiving is an async operation. A team is unarchived once the async operation completes successfully, which may occur subsequent to a response from this API. + * Restore an archived team. This API restores users' ability to send messages and edit the team, abiding by tenant and team settings. A Team is archived using the archive API. Unarchiving is an async operation. A team is unarchived once the async operation completes successfully, which might occur subsequent to a response from this API. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -63,7 +63,7 @@ public RequestInformation toPostRequestInformation() { return toPostRequestInformation(null); } /** - * Restore an archived team. This restores users' ability to send messages and edit the team, abiding by tenant and team settings. A Team is archived using the archive API. Unarchiving is an async operation. A team is unarchived once the async operation completes successfully, which may occur subsequent to a response from this API. + * Restore an archived team. This API restores users' ability to send messages and edit the team, abiding by tenant and team settings. A Team is archived using the archive API. Unarchiving is an async operation. A team is unarchived once the async operation completes successfully, which might occur subsequent to a response from this API. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ diff --git a/src/main/java/com/microsoft/graph/generated/teamwork/deletedchats/DeletedChatsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/teamwork/deletedchats/DeletedChatsRequestBuilder.java index 04329b0225d..d17ee6e33ab 100644 --- a/src/main/java/com/microsoft/graph/generated/teamwork/deletedchats/DeletedChatsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/teamwork/deletedchats/DeletedChatsRequestBuilder.java @@ -60,7 +60,7 @@ public DeletedChatsRequestBuilder(@jakarta.annotation.Nonnull final String rawUr super(requestAdapter, "{+baseurl}/teamwork/deletedChats{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * Get deletedChats from teamwork + * Read the properties and relationships of a deletedChat object. * @return a {@link DeletedChatCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -69,7 +69,7 @@ public DeletedChatCollectionResponse get() { return get(null); } /** - * Get deletedChats from teamwork + * Read the properties and relationships of a deletedChat object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link DeletedChatCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -107,7 +107,7 @@ public DeletedChat post(@jakarta.annotation.Nonnull final DeletedChat body, @jak return this.requestAdapter.send(requestInfo, errorMapping, DeletedChat::createFromDiscriminatorValue); } /** - * Get deletedChats from teamwork + * Read the properties and relationships of a deletedChat object. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -115,7 +115,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Get deletedChats from teamwork + * Read the properties and relationships of a deletedChat object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -161,7 +161,7 @@ public DeletedChatsRequestBuilder withUrl(@jakarta.annotation.Nonnull final Stri return new DeletedChatsRequestBuilder(rawUrl, requestAdapter); } /** - * Get deletedChats from teamwork + * Read the properties and relationships of a deletedChat object. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/teamwork/deletedchats/item/DeletedChatItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/teamwork/deletedchats/item/DeletedChatItemRequestBuilder.java index df5ebd275f8..1281c1d6b0d 100644 --- a/src/main/java/com/microsoft/graph/generated/teamwork/deletedchats/item/DeletedChatItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/teamwork/deletedchats/item/DeletedChatItemRequestBuilder.java @@ -64,19 +64,21 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Get deletedChats from teamwork + * Read the properties and relationships of a deletedChat object. * @return a {@link DeletedChat} * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here */ @jakarta.annotation.Nullable public DeletedChat get() { return get(null); } /** - * Get deletedChats from teamwork + * Read the properties and relationships of a deletedChat object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link DeletedChat} * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here */ @jakarta.annotation.Nullable public DeletedChat get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -131,7 +133,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Get deletedChats from teamwork + * Read the properties and relationships of a deletedChat object. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -139,7 +141,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Get deletedChats from teamwork + * Read the properties and relationships of a deletedChat object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -191,7 +193,7 @@ public DeletedChatItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final S public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Get deletedChats from teamwork + * Read the properties and relationships of a deletedChat object. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/teamwork/deletedchats/item/undodelete/UndoDeleteRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/teamwork/deletedchats/item/undodelete/UndoDeleteRequestBuilder.java index b3ac98ee169..33befd91c4d 100644 --- a/src/main/java/com/microsoft/graph/generated/teamwork/deletedchats/item/undodelete/UndoDeleteRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/teamwork/deletedchats/item/undodelete/UndoDeleteRequestBuilder.java @@ -35,16 +35,18 @@ public UndoDeleteRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, super(requestAdapter, "{+baseurl}/teamwork/deletedChats/{deletedChat%2Did}/undoDelete", rawUrl); } /** - * Invoke action undoDelete + * Restore a deletedChat to an active chat. * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here */ public void post() { post(null); } /** - * Invoke action undoDelete + * Restore a deletedChat to an active chat. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here */ public void post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); @@ -53,7 +55,7 @@ public void post(@jakarta.annotation.Nullable final java.util.function.Consumer< this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Invoke action undoDelete + * Restore a deletedChat to an active chat. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -61,7 +63,7 @@ public RequestInformation toPostRequestInformation() { return toPostRequestInformation(null); } /** - * Invoke action undoDelete + * Restore a deletedChat to an active chat. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ diff --git a/src/main/java/com/microsoft/graph/generated/teamwork/deletedteams/item/channels/item/members/MembersRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/teamwork/deletedteams/item/channels/item/members/MembersRequestBuilder.java index 50a85ce9e00..772500b7224 100644 --- a/src/main/java/com/microsoft/graph/generated/teamwork/deletedteams/item/channels/item/members/MembersRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/teamwork/deletedteams/item/channels/item/members/MembersRequestBuilder.java @@ -93,23 +93,23 @@ public ConversationMemberCollectionResponse get(@jakarta.annotation.Nullable fin return this.requestAdapter.send(requestInfo, errorMapping, ConversationMemberCollectionResponse::createFromDiscriminatorValue); } /** - * Add a conversationMember to a channel. + * Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared. * @param body The request body * @return a {@link ConversationMember} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ConversationMember post(@jakarta.annotation.Nonnull final ConversationMember body) { return post(body, null); } /** - * Add a conversationMember to a channel. + * Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link ConversationMember} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ConversationMember post(@jakarta.annotation.Nonnull final ConversationMember body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -140,7 +140,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Add a conversationMember to a channel. + * Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared. * @param body The request body * @return a {@link RequestInformation} */ @@ -149,7 +149,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Add a conversationMember to a channel. + * Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/generated/teamwork/deletedteams/item/channels/item/messages/MessagesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/teamwork/deletedteams/item/channels/item/messages/MessagesRequestBuilder.java index 427cba63ea2..b58ff404b49 100644 --- a/src/main/java/com/microsoft/graph/generated/teamwork/deletedteams/item/channels/item/messages/MessagesRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/teamwork/deletedteams/item/channels/item/messages/MessagesRequestBuilder.java @@ -93,23 +93,23 @@ public ChatMessageCollectionResponse get(@jakarta.annotation.Nullable final java return this.requestAdapter.send(requestInfo, errorMapping, ChatMessageCollectionResponse::createFromDiscriminatorValue); } /** - * Send a new chatMessage in the specified channel. + * Send a new chatMessage in the specified channel or a chat. * @param body The request body * @return a {@link ChatMessage} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ChatMessage post(@jakarta.annotation.Nonnull final ChatMessage body) { return post(body, null); } /** - * Send a new chatMessage in the specified channel. + * Send a new chatMessage in the specified channel or a chat. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link ChatMessage} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ChatMessage post(@jakarta.annotation.Nonnull final ChatMessage body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -140,7 +140,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Send a new chatMessage in the specified channel. + * Send a new chatMessage in the specified channel or a chat. * @param body The request body * @return a {@link RequestInformation} */ @@ -149,7 +149,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Send a new chatMessage in the specified channel. + * Send a new chatMessage in the specified channel or a chat. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/generated/teamwork/deletedteams/item/channels/item/tabs/item/TeamsTabItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/teamwork/deletedteams/item/channels/item/tabs/item/TeamsTabItemRequestBuilder.java index 8d4daf3e5e5..df256c474ba 100644 --- a/src/main/java/com/microsoft/graph/generated/teamwork/deletedteams/item/channels/item/tabs/item/TeamsTabItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/teamwork/deletedteams/item/channels/item/tabs/item/TeamsTabItemRequestBuilder.java @@ -90,7 +90,7 @@ public TeamsTab get(@jakarta.annotation.Nullable final java.util.function.Consum return this.requestAdapter.send(requestInfo, errorMapping, TeamsTab::createFromDiscriminatorValue); } /** - * Update the properties of the specified tab.This can be used to configure the content of the tab. + * Update the properties of the specified tab.This API can be used to configure the content of the tab. * @param body The request body * @return a {@link TeamsTab} * @throws ODataError When receiving a 4XX or 5XX status code @@ -101,7 +101,7 @@ public TeamsTab patch(@jakarta.annotation.Nonnull final TeamsTab body) { return patch(body, null); } /** - * Update the properties of the specified tab.This can be used to configure the content of the tab. + * Update the properties of the specified tab.This API can be used to configure the content of the tab. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link TeamsTab} @@ -157,7 +157,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Update the properties of the specified tab.This can be used to configure the content of the tab. + * Update the properties of the specified tab.This API can be used to configure the content of the tab. * @param body The request body * @return a {@link RequestInformation} */ @@ -166,7 +166,7 @@ public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull return toPatchRequestInformation(body, null); } /** - * Update the properties of the specified tab.This can be used to configure the content of the tab. + * Update the properties of the specified tab.This API can be used to configure the content of the tab. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/generated/users/UsersRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/users/UsersRequestBuilder.java index c9d8a5a40c3..a63bd8615e8 100644 --- a/src/main/java/com/microsoft/graph/generated/users/UsersRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/users/UsersRequestBuilder.java @@ -124,7 +124,7 @@ public UserCollectionResponse get(@jakarta.annotation.Nullable final java.util.f * @param body The request body * @return a {@link User} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public User post(@jakarta.annotation.Nonnull final User body) { @@ -136,7 +136,7 @@ public User post(@jakarta.annotation.Nonnull final User body) { * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link User} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public User post(@jakarta.annotation.Nonnull final User body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { diff --git a/src/main/java/com/microsoft/graph/generated/users/item/UserItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/users/item/UserItemRequestBuilder.java index 910157c76a8..6d9a81eb48e 100644 --- a/src/main/java/com/microsoft/graph/generated/users/item/UserItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/users/item/UserItemRequestBuilder.java @@ -71,6 +71,7 @@ import com.microsoft.graph.users.item.sendmail.SendMailRequestBuilder; import com.microsoft.graph.users.item.serviceprovisioningerrors.ServiceProvisioningErrorsRequestBuilder; import com.microsoft.graph.users.item.settings.SettingsRequestBuilder; +import com.microsoft.graph.users.item.sponsors.SponsorsRequestBuilder; import com.microsoft.graph.users.item.teamwork.TeamworkRequestBuilder; import com.microsoft.graph.users.item.todo.TodoRequestBuilder; import com.microsoft.graph.users.item.transitivememberof.TransitiveMemberOfRequestBuilder; @@ -630,6 +631,14 @@ public ServiceProvisioningErrorsRequestBuilder serviceProvisioningErrors() { public SettingsRequestBuilder settings() { return new SettingsRequestBuilder(pathParameters, requestAdapter); } + /** + * Provides operations to manage the sponsors property of the microsoft.graph.user entity. + * @return a {@link SponsorsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public SponsorsRequestBuilder sponsors() { + return new SponsorsRequestBuilder(pathParameters, requestAdapter); + } /** * Provides operations to manage the teamwork property of the microsoft.graph.user entity. * @return a {@link TeamworkRequestBuilder} @@ -687,18 +696,18 @@ public UserItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @ super(requestAdapter, "{+baseurl}/users/{user%2Did}{?%24expand,%24select}", rawUrl); } /** - * Delete user. When deleted, user resources are moved to a temporary container and can be restored within 30 days. After that time, they are permanently deleted. To learn more, see deletedItems. + * Deletes a user. * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ public void delete() { delete(null); } /** - * Delete user. When deleted, user resources are moved to a temporary container and can be restored within 30 days. After that time, they are permanently deleted. To learn more, see deletedItems. + * Deletes a user. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); @@ -722,7 +731,7 @@ public ExportDeviceAndAppManagementDataWithSkipWithTopRequestBuilder exportDevic * Read properties and relationships of the user object. * @return a {@link User} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public User get() { @@ -733,7 +742,7 @@ public User get() { * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link User} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public User get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -743,23 +752,23 @@ public User get(@jakarta.annotation.Nullable final java.util.function.ConsumerFind more info here + * @see Find more info here */ @jakarta.annotation.Nullable public User patch(@jakarta.annotation.Nonnull final User body) { return patch(body, null); } /** - * Update the properties of a user object. + * Update the properties of a user object. Not all properties can be updated by Member or Guest users with their default permissions without Administrator roles. Compare member and guest default permissions to see properties they can manage. Customers through Microsoft Entra ID for customers can also use this API operation to update their details. See Default user permissions in customer tenants for the list of properties they can update. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link User} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public User patch(@jakarta.annotation.Nonnull final User body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -782,7 +791,7 @@ public ReminderViewWithStartDateTimeWithEndDateTimeRequestBuilder reminderViewWi return new ReminderViewWithStartDateTimeWithEndDateTimeRequestBuilder(pathParameters, requestAdapter, EndDateTime, StartDateTime); } /** - * Delete user. When deleted, user resources are moved to a temporary container and can be restored within 30 days. After that time, they are permanently deleted. To learn more, see deletedItems. + * Deletes a user. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -790,7 +799,7 @@ public RequestInformation toDeleteRequestInformation() { return toDeleteRequestInformation(null); } /** - * Delete user. When deleted, user resources are moved to a temporary container and can be restored within 30 days. After that time, they are permanently deleted. To learn more, see deletedItems. + * Deletes a user. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -822,7 +831,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Update the properties of a user object. + * Update the properties of a user object. Not all properties can be updated by Member or Guest users with their default permissions without Administrator roles. Compare member and guest default permissions to see properties they can manage. Customers through Microsoft Entra ID for customers can also use this API operation to update their details. See Default user permissions in customer tenants for the list of properties they can update. * @param body The request body * @return a {@link RequestInformation} */ @@ -831,7 +840,7 @@ public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull return toPatchRequestInformation(body, null); } /** - * Update the properties of a user object. + * Update the properties of a user object. Not all properties can be updated by Member or Guest users with their default permissions without Administrator roles. Compare member and guest default permissions to see properties they can manage. Customers through Microsoft Entra ID for customers can also use this API operation to update their details. See Default user permissions in customer tenants for the list of properties they can update. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/generated/users/item/chats/item/lastmessagepreview/LastMessagePreviewRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/users/item/chats/item/lastmessagepreview/LastMessagePreviewRequestBuilder.java index df61249e544..41e61a989f1 100644 --- a/src/main/java/com/microsoft/graph/generated/users/item/chats/item/lastmessagepreview/LastMessagePreviewRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/users/item/chats/item/lastmessagepreview/LastMessagePreviewRequestBuilder.java @@ -55,7 +55,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Preview of the last message sent in the chat. Null if no messages have been sent in the chat. Currently, only the list chats operation supports this property. + * Preview of the last message sent in the chat. Null if no messages were sent in the chat. Currently, only the list chats operation supports this property. * @return a {@link ChatMessageInfo} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -64,7 +64,7 @@ public ChatMessageInfo get() { return get(null); } /** - * Preview of the last message sent in the chat. Null if no messages have been sent in the chat. Currently, only the list chats operation supports this property. + * Preview of the last message sent in the chat. Null if no messages were sent in the chat. Currently, only the list chats operation supports this property. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link ChatMessageInfo} * @throws ODataError When receiving a 4XX or 5XX status code @@ -122,7 +122,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Preview of the last message sent in the chat. Null if no messages have been sent in the chat. Currently, only the list chats operation supports this property. + * Preview of the last message sent in the chat. Null if no messages were sent in the chat. Currently, only the list chats operation supports this property. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -130,7 +130,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Preview of the last message sent in the chat. Null if no messages have been sent in the chat. Currently, only the list chats operation supports this property. + * Preview of the last message sent in the chat. Null if no messages were sent in the chat. Currently, only the list chats operation supports this property. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -182,7 +182,7 @@ public LastMessagePreviewRequestBuilder withUrl(@jakarta.annotation.Nonnull fina public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Preview of the last message sent in the chat. Null if no messages have been sent in the chat. Currently, only the list chats operation supports this property. + * Preview of the last message sent in the chat. Null if no messages were sent in the chat. Currently, only the list chats operation supports this property. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/users/item/chats/item/messages/MessagesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/users/item/chats/item/messages/MessagesRequestBuilder.java index a625a06fa6d..bd4f870f96e 100644 --- a/src/main/java/com/microsoft/graph/generated/users/item/chats/item/messages/MessagesRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/users/item/chats/item/messages/MessagesRequestBuilder.java @@ -93,23 +93,23 @@ public ChatMessageCollectionResponse get(@jakarta.annotation.Nullable final java return this.requestAdapter.send(requestInfo, errorMapping, ChatMessageCollectionResponse::createFromDiscriminatorValue); } /** - * Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message. + * Send a new chatMessage in the specified channel or a chat. * @param body The request body * @return a {@link ChatMessage} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ChatMessage post(@jakarta.annotation.Nonnull final ChatMessage body) { return post(body, null); } /** - * Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message. + * Send a new chatMessage in the specified channel or a chat. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link ChatMessage} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ChatMessage post(@jakarta.annotation.Nonnull final ChatMessage body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -140,7 +140,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message. + * Send a new chatMessage in the specified channel or a chat. * @param body The request body * @return a {@link RequestInformation} */ @@ -149,7 +149,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message. + * Send a new chatMessage in the specified channel or a chat. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/generated/users/item/cloudclipboard/items/ItemsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/users/item/cloudclipboard/items/ItemsRequestBuilder.java index f9c1eed0237..3cc80b95c69 100644 --- a/src/main/java/com/microsoft/graph/generated/users/item/cloudclipboard/items/ItemsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/users/item/cloudclipboard/items/ItemsRequestBuilder.java @@ -60,7 +60,7 @@ public ItemsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jak super(requestAdapter, "{+baseurl}/users/{user%2Did}/cloudClipboard/items{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * Get items from users + * Represents a collection of Cloud Clipboard items. * @return a {@link CloudClipboardItemCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -69,7 +69,7 @@ public CloudClipboardItemCollectionResponse get() { return get(null); } /** - * Get items from users + * Represents a collection of Cloud Clipboard items. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link CloudClipboardItemCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -107,7 +107,7 @@ public CloudClipboardItem post(@jakarta.annotation.Nonnull final CloudClipboardI return this.requestAdapter.send(requestInfo, errorMapping, CloudClipboardItem::createFromDiscriminatorValue); } /** - * Get items from users + * Represents a collection of Cloud Clipboard items. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -115,7 +115,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Get items from users + * Represents a collection of Cloud Clipboard items. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -161,7 +161,7 @@ public ItemsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawU return new ItemsRequestBuilder(rawUrl, requestAdapter); } /** - * Get items from users + * Represents a collection of Cloud Clipboard items. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/users/item/cloudclipboard/items/item/CloudClipboardItemItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/users/item/cloudclipboard/items/item/CloudClipboardItemItemRequestBuilder.java index 82700e6248a..76a0ea7f379 100644 --- a/src/main/java/com/microsoft/graph/generated/users/item/cloudclipboard/items/item/CloudClipboardItemItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/users/item/cloudclipboard/items/item/CloudClipboardItemItemRequestBuilder.java @@ -55,7 +55,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Get items from users + * Represents a collection of Cloud Clipboard items. * @return a {@link CloudClipboardItem} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -64,7 +64,7 @@ public CloudClipboardItem get() { return get(null); } /** - * Get items from users + * Represents a collection of Cloud Clipboard items. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link CloudClipboardItem} * @throws ODataError When receiving a 4XX or 5XX status code @@ -122,7 +122,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Get items from users + * Represents a collection of Cloud Clipboard items. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -130,7 +130,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Get items from users + * Represents a collection of Cloud Clipboard items. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -182,7 +182,7 @@ public CloudClipboardItemItemRequestBuilder withUrl(@jakarta.annotation.Nonnull public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Get items from users + * Represents a collection of Cloud Clipboard items. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/users/item/events/EventsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/users/item/events/EventsRequestBuilder.java index 568b7a1843d..a6ef5d3a3b4 100644 --- a/src/main/java/com/microsoft/graph/generated/users/item/events/EventsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/users/item/events/EventsRequestBuilder.java @@ -93,23 +93,23 @@ public EventCollectionResponse get(@jakarta.annotation.Nullable final java.util. return this.requestAdapter.send(requestInfo, errorMapping, EventCollectionResponse::createFromDiscriminatorValue); } /** - * Create one or more single-value extended properties in a new or existing instance of a resource. The following user resources are supported: The following group resources: See Extended properties overview for more information about when to useopen extensions or extended properties, and how to specify extended properties. + * Create one or more multi-value extended properties in a new or existing instance of a resource. The following user resources are supported: The following group resources are supported: See Extended properties overview for more information about when to useopen extensions or extended properties, and how to specify extended properties. * @param body The request body * @return a {@link Event} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public Event post(@jakarta.annotation.Nonnull final Event body) { return post(body, null); } /** - * Create one or more single-value extended properties in a new or existing instance of a resource. The following user resources are supported: The following group resources: See Extended properties overview for more information about when to useopen extensions or extended properties, and how to specify extended properties. + * Create one or more multi-value extended properties in a new or existing instance of a resource. The following user resources are supported: The following group resources are supported: See Extended properties overview for more information about when to useopen extensions or extended properties, and how to specify extended properties. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link Event} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public Event post(@jakarta.annotation.Nonnull final Event body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -140,7 +140,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Create one or more single-value extended properties in a new or existing instance of a resource. The following user resources are supported: The following group resources: See Extended properties overview for more information about when to useopen extensions or extended properties, and how to specify extended properties. + * Create one or more multi-value extended properties in a new or existing instance of a resource. The following user resources are supported: The following group resources are supported: See Extended properties overview for more information about when to useopen extensions or extended properties, and how to specify extended properties. * @param body The request body * @return a {@link RequestInformation} */ @@ -149,7 +149,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Create one or more single-value extended properties in a new or existing instance of a resource. The following user resources are supported: The following group resources: See Extended properties overview for more information about when to useopen extensions or extended properties, and how to specify extended properties. + * Create one or more multi-value extended properties in a new or existing instance of a resource. The following user resources are supported: The following group resources are supported: See Extended properties overview for more information about when to useopen extensions or extended properties, and how to specify extended properties. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/generated/users/item/followedsites/FollowedSitesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/users/item/followedsites/FollowedSitesRequestBuilder.java index a42d1e38daa..01638cc45f4 100644 --- a/src/main/java/com/microsoft/graph/generated/users/item/followedsites/FollowedSitesRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/users/item/followedsites/FollowedSitesRequestBuilder.java @@ -2,8 +2,10 @@ import com.microsoft.graph.models.odataerrors.ODataError; import com.microsoft.graph.models.SiteCollectionResponse; +import com.microsoft.graph.users.item.followedsites.add.AddRequestBuilder; import com.microsoft.graph.users.item.followedsites.count.CountRequestBuilder; import com.microsoft.graph.users.item.followedsites.item.SiteItemRequestBuilder; +import com.microsoft.graph.users.item.followedsites.remove.RemoveRequestBuilder; import com.microsoft.kiota.BaseRequestBuilder; import com.microsoft.kiota.BaseRequestConfiguration; import com.microsoft.kiota.HttpMethod; @@ -22,6 +24,14 @@ */ @jakarta.annotation.Generated("com.microsoft.kiota") public class FollowedSitesRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to call the add method. + * @return a {@link AddRequestBuilder} + */ + @jakarta.annotation.Nonnull + public AddRequestBuilder add() { + return new AddRequestBuilder(pathParameters, requestAdapter); + } /** * Provides operations to count the resources in the collection. * @return a {@link CountRequestBuilder} @@ -30,6 +40,14 @@ public class FollowedSitesRequestBuilder extends BaseRequestBuilder { public CountRequestBuilder count() { return new CountRequestBuilder(pathParameters, requestAdapter); } + /** + * Provides operations to call the remove method. + * @return a {@link RemoveRequestBuilder} + */ + @jakarta.annotation.Nonnull + public RemoveRequestBuilder remove() { + return new RemoveRequestBuilder(pathParameters, requestAdapter); + } /** * Provides operations to manage the followedSites property of the microsoft.graph.user entity. * @param siteId The unique identifier of site diff --git a/src/main/java/com/microsoft/graph/generated/users/item/followedsites/add/AddPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/users/item/followedsites/add/AddPostRequestBody.java new file mode 100644 index 00000000000..f441167239a --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/users/item/followedsites/add/AddPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.users.item.followedsites.add; + +import com.microsoft.graph.models.Site; +import com.microsoft.kiota.serialization.AdditionalDataHolder; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import com.microsoft.kiota.store.BackedModel; +import com.microsoft.kiota.store.BackingStore; +import com.microsoft.kiota.store.BackingStoreFactorySingleton; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class AddPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link AddPostRequestBody} and sets the default values. + */ + public AddPostRequestBody() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link AddPostRequestBody} + */ + @jakarta.annotation.Nonnull + public static AddPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new AddPostRequestBody(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(1); + deserializerMap.put("value", (n) -> { this.setValue(n.getCollectionOfObjectValues(Site::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the value property value. The value property + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getValue() { + return this.backingStore.get("value"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + writer.writeCollectionOfObjectValues("value", this.getValue()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { + this.backingStore.set("additionalData", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @param value Value to set for the backingStore property. + */ + public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { + Objects.requireNonNull(value); + this.backingStore = value; + } + /** + * Sets the value property value. The value property + * @param value Value to set for the value property. + */ + public void setValue(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("value", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/users/item/followedsites/add/AddPostResponse.java b/src/main/java/com/microsoft/graph/generated/users/item/followedsites/add/AddPostResponse.java new file mode 100644 index 00000000000..0f3bc0fca22 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/users/item/followedsites/add/AddPostResponse.java @@ -0,0 +1,63 @@ +package com.microsoft.graph.users.item.followedsites.add; + +import com.microsoft.graph.models.BaseCollectionPaginationCountResponse; +import com.microsoft.graph.models.Site; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class AddPostResponse extends BaseCollectionPaginationCountResponse implements Parsable { + /** + * Instantiates a new {@link AddPostResponse} and sets the default values. + */ + public AddPostResponse() { + super(); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link AddPostResponse} + */ + @jakarta.annotation.Nonnull + public static AddPostResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new AddPostResponse(); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("value", (n) -> { this.setValue(n.getCollectionOfObjectValues(Site::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the value property value. The value property + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getValue() { + return this.backingStore.get("value"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + super.serialize(writer); + writer.writeCollectionOfObjectValues("value", this.getValue()); + } + /** + * Sets the value property value. The value property + * @param value Value to set for the value property. + */ + public void setValue(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("value", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/users/item/followedsites/add/AddRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/users/item/followedsites/add/AddRequestBuilder.java new file mode 100644 index 00000000000..b438a809118 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/users/item/followedsites/add/AddRequestBuilder.java @@ -0,0 +1,104 @@ +package com.microsoft.graph.users.item.followedsites.add; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to call the add method. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class AddRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link AddRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public AddRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/users/{user%2Did}/followedSites/add", pathParameters); + } + /** + * Instantiates a new {@link AddRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public AddRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/users/{user%2Did}/followedSites/add", rawUrl); + } + /** + * Follow a user's site or multiple sites. + * @param body The request body + * @return a {@link AddPostResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public AddPostResponse post(@jakarta.annotation.Nonnull final AddPostRequestBody body) { + return post(body, null); + } + /** + * Follow a user's site or multiple sites. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link AddPostResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public AddPostResponse post(@jakarta.annotation.Nonnull final AddPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, AddPostResponse::createFromDiscriminatorValue); + } + /** + * Follow a user's site or multiple sites. + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AddPostRequestBody body) { + return toPostRequestInformation(body, null); + } + /** + * Follow a user's site or multiple sites. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AddPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link AddRequestBuilder} + */ + @jakarta.annotation.Nonnull + public AddRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new AddRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/users/item/followedsites/remove/RemovePostRequestBody.java b/src/main/java/com/microsoft/graph/generated/users/item/followedsites/remove/RemovePostRequestBody.java new file mode 100644 index 00000000000..5440fcf4c78 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/users/item/followedsites/remove/RemovePostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.users.item.followedsites.remove; + +import com.microsoft.graph.models.Site; +import com.microsoft.kiota.serialization.AdditionalDataHolder; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import com.microsoft.kiota.store.BackedModel; +import com.microsoft.kiota.store.BackingStore; +import com.microsoft.kiota.store.BackingStoreFactorySingleton; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class RemovePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link RemovePostRequestBody} and sets the default values. + */ + public RemovePostRequestBody() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link RemovePostRequestBody} + */ + @jakarta.annotation.Nonnull + public static RemovePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new RemovePostRequestBody(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(1); + deserializerMap.put("value", (n) -> { this.setValue(n.getCollectionOfObjectValues(Site::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the value property value. The value property + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getValue() { + return this.backingStore.get("value"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + writer.writeCollectionOfObjectValues("value", this.getValue()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { + this.backingStore.set("additionalData", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @param value Value to set for the backingStore property. + */ + public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { + Objects.requireNonNull(value); + this.backingStore = value; + } + /** + * Sets the value property value. The value property + * @param value Value to set for the value property. + */ + public void setValue(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("value", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/users/item/followedsites/remove/RemovePostResponse.java b/src/main/java/com/microsoft/graph/generated/users/item/followedsites/remove/RemovePostResponse.java new file mode 100644 index 00000000000..6dfbafcfa2f --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/users/item/followedsites/remove/RemovePostResponse.java @@ -0,0 +1,63 @@ +package com.microsoft.graph.users.item.followedsites.remove; + +import com.microsoft.graph.models.BaseCollectionPaginationCountResponse; +import com.microsoft.graph.models.Site; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class RemovePostResponse extends BaseCollectionPaginationCountResponse implements Parsable { + /** + * Instantiates a new {@link RemovePostResponse} and sets the default values. + */ + public RemovePostResponse() { + super(); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link RemovePostResponse} + */ + @jakarta.annotation.Nonnull + public static RemovePostResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new RemovePostResponse(); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("value", (n) -> { this.setValue(n.getCollectionOfObjectValues(Site::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the value property value. The value property + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getValue() { + return this.backingStore.get("value"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + super.serialize(writer); + writer.writeCollectionOfObjectValues("value", this.getValue()); + } + /** + * Sets the value property value. The value property + * @param value Value to set for the value property. + */ + public void setValue(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("value", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/users/item/followedsites/remove/RemoveRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/users/item/followedsites/remove/RemoveRequestBuilder.java new file mode 100644 index 00000000000..bfa9da99f94 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/users/item/followedsites/remove/RemoveRequestBuilder.java @@ -0,0 +1,104 @@ +package com.microsoft.graph.users.item.followedsites.remove; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to call the remove method. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class RemoveRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link RemoveRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public RemoveRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/users/{user%2Did}/followedSites/remove", pathParameters); + } + /** + * Instantiates a new {@link RemoveRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public RemoveRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/users/{user%2Did}/followedSites/remove", rawUrl); + } + /** + * Unfollow a user's site or multiple sites. + * @param body The request body + * @return a {@link RemovePostResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public RemovePostResponse post(@jakarta.annotation.Nonnull final RemovePostRequestBody body) { + return post(body, null); + } + /** + * Unfollow a user's site or multiple sites. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RemovePostResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public RemovePostResponse post(@jakarta.annotation.Nonnull final RemovePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, RemovePostResponse::createFromDiscriminatorValue); + } + /** + * Unfollow a user's site or multiple sites. + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final RemovePostRequestBody body) { + return toPostRequestInformation(body, null); + } + /** + * Unfollow a user's site or multiple sites. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final RemovePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link RemoveRequestBuilder} + */ + @jakarta.annotation.Nonnull + public RemoveRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new RemoveRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/users/item/joinedteams/item/archive/ArchiveRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/users/item/joinedteams/item/archive/ArchiveRequestBuilder.java index 883c0f1f9e4..7aa580d07c3 100644 --- a/src/main/java/com/microsoft/graph/generated/users/item/joinedteams/item/archive/ArchiveRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/users/item/joinedteams/item/archive/ArchiveRequestBuilder.java @@ -35,7 +35,7 @@ public ArchiveRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @j super(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/archive", rawUrl); } /** - * Archive the specified team. When a team is archived, users can no longer send or like messages on any channel in the team, edit the team's name, description, or other settings, or in general make most changes to the team.Membership changes to the team continue to be allowed. Archiving is an async operation. A team is archived once the async operation completes successfully, which may occur subsequent to a response from this API. To archive a team, the team and group must have an owner. To restore a team from its archived state, use the API to unarchive. + * Archive the specified team. When a team is archived, users can no longer make most changes to the team. For example, users can no longer: send or like messages on any channel in the team; edit the team's name or description; nor edit other settings. However, membership changes to the team are still allowed. Archiving is an async operation. A team is archived once the async operation completes successfully, which might occur subsequent to a response from this API. To archive a team, the team and group must have an owner. To restore a team from its archived state, use the API to unarchive. * @param body The request body * @throws ODataError When receiving a 4XX or 5XX status code * @see Find more info here @@ -44,7 +44,7 @@ public void post(@jakarta.annotation.Nonnull final ArchivePostRequestBody body) post(body, null); } /** - * Archive the specified team. When a team is archived, users can no longer send or like messages on any channel in the team, edit the team's name, description, or other settings, or in general make most changes to the team.Membership changes to the team continue to be allowed. Archiving is an async operation. A team is archived once the async operation completes successfully, which may occur subsequent to a response from this API. To archive a team, the team and group must have an owner. To restore a team from its archived state, use the API to unarchive. + * Archive the specified team. When a team is archived, users can no longer make most changes to the team. For example, users can no longer: send or like messages on any channel in the team; edit the team's name or description; nor edit other settings. However, membership changes to the team are still allowed. Archiving is an async operation. A team is archived once the async operation completes successfully, which might occur subsequent to a response from this API. To archive a team, the team and group must have an owner. To restore a team from its archived state, use the API to unarchive. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @throws ODataError When receiving a 4XX or 5XX status code @@ -58,7 +58,7 @@ public void post(@jakarta.annotation.Nonnull final ArchivePostRequestBody body, this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Archive the specified team. When a team is archived, users can no longer send or like messages on any channel in the team, edit the team's name, description, or other settings, or in general make most changes to the team.Membership changes to the team continue to be allowed. Archiving is an async operation. A team is archived once the async operation completes successfully, which may occur subsequent to a response from this API. To archive a team, the team and group must have an owner. To restore a team from its archived state, use the API to unarchive. + * Archive the specified team. When a team is archived, users can no longer make most changes to the team. For example, users can no longer: send or like messages on any channel in the team; edit the team's name or description; nor edit other settings. However, membership changes to the team are still allowed. Archiving is an async operation. A team is archived once the async operation completes successfully, which might occur subsequent to a response from this API. To archive a team, the team and group must have an owner. To restore a team from its archived state, use the API to unarchive. * @param body The request body * @return a {@link RequestInformation} */ @@ -67,7 +67,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Archive the specified team. When a team is archived, users can no longer send or like messages on any channel in the team, edit the team's name, description, or other settings, or in general make most changes to the team.Membership changes to the team continue to be allowed. Archiving is an async operation. A team is archived once the async operation completes successfully, which may occur subsequent to a response from this API. To archive a team, the team and group must have an owner. To restore a team from its archived state, use the API to unarchive. + * Archive the specified team. When a team is archived, users can no longer make most changes to the team. For example, users can no longer: send or like messages on any channel in the team; edit the team's name or description; nor edit other settings. However, membership changes to the team are still allowed. Archiving is an async operation. A team is archived once the async operation completes successfully, which might occur subsequent to a response from this API. To archive a team, the team and group must have an owner. To restore a team from its archived state, use the API to unarchive. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/generated/users/item/joinedteams/item/channels/item/members/MembersRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/users/item/joinedteams/item/channels/item/members/MembersRequestBuilder.java index 6d64052d036..7da08127d52 100644 --- a/src/main/java/com/microsoft/graph/generated/users/item/joinedteams/item/channels/item/members/MembersRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/users/item/joinedteams/item/channels/item/members/MembersRequestBuilder.java @@ -93,23 +93,23 @@ public ConversationMemberCollectionResponse get(@jakarta.annotation.Nullable fin return this.requestAdapter.send(requestInfo, errorMapping, ConversationMemberCollectionResponse::createFromDiscriminatorValue); } /** - * Add a conversationMember to a channel. + * Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared. * @param body The request body * @return a {@link ConversationMember} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ConversationMember post(@jakarta.annotation.Nonnull final ConversationMember body) { return post(body, null); } /** - * Add a conversationMember to a channel. + * Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link ConversationMember} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ConversationMember post(@jakarta.annotation.Nonnull final ConversationMember body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -140,7 +140,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Add a conversationMember to a channel. + * Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared. * @param body The request body * @return a {@link RequestInformation} */ @@ -149,7 +149,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Add a conversationMember to a channel. + * Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/generated/users/item/joinedteams/item/channels/item/messages/MessagesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/users/item/joinedteams/item/channels/item/messages/MessagesRequestBuilder.java index 79f72bd7ad8..ea8b86ad211 100644 --- a/src/main/java/com/microsoft/graph/generated/users/item/joinedteams/item/channels/item/messages/MessagesRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/users/item/joinedteams/item/channels/item/messages/MessagesRequestBuilder.java @@ -93,23 +93,23 @@ public ChatMessageCollectionResponse get(@jakarta.annotation.Nullable final java return this.requestAdapter.send(requestInfo, errorMapping, ChatMessageCollectionResponse::createFromDiscriminatorValue); } /** - * Send a new chatMessage in the specified channel. + * Send a new chatMessage in the specified channel or a chat. * @param body The request body * @return a {@link ChatMessage} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ChatMessage post(@jakarta.annotation.Nonnull final ChatMessage body) { return post(body, null); } /** - * Send a new chatMessage in the specified channel. + * Send a new chatMessage in the specified channel or a chat. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link ChatMessage} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ChatMessage post(@jakarta.annotation.Nonnull final ChatMessage body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -140,7 +140,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Send a new chatMessage in the specified channel. + * Send a new chatMessage in the specified channel or a chat. * @param body The request body * @return a {@link RequestInformation} */ @@ -149,7 +149,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Send a new chatMessage in the specified channel. + * Send a new chatMessage in the specified channel or a chat. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/generated/users/item/joinedteams/item/channels/item/tabs/item/TeamsTabItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/users/item/joinedteams/item/channels/item/tabs/item/TeamsTabItemRequestBuilder.java index 8355384d43a..3a1574c9d7b 100644 --- a/src/main/java/com/microsoft/graph/generated/users/item/joinedteams/item/channels/item/tabs/item/TeamsTabItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/users/item/joinedteams/item/channels/item/tabs/item/TeamsTabItemRequestBuilder.java @@ -90,7 +90,7 @@ public TeamsTab get(@jakarta.annotation.Nullable final java.util.function.Consum return this.requestAdapter.send(requestInfo, errorMapping, TeamsTab::createFromDiscriminatorValue); } /** - * Update the properties of the specified tab.This can be used to configure the content of the tab. + * Update the properties of the specified tab.This API can be used to configure the content of the tab. * @param body The request body * @return a {@link TeamsTab} * @throws ODataError When receiving a 4XX or 5XX status code @@ -101,7 +101,7 @@ public TeamsTab patch(@jakarta.annotation.Nonnull final TeamsTab body) { return patch(body, null); } /** - * Update the properties of the specified tab.This can be used to configure the content of the tab. + * Update the properties of the specified tab.This API can be used to configure the content of the tab. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link TeamsTab} @@ -157,7 +157,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Update the properties of the specified tab.This can be used to configure the content of the tab. + * Update the properties of the specified tab.This API can be used to configure the content of the tab. * @param body The request body * @return a {@link RequestInformation} */ @@ -166,7 +166,7 @@ public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull return toPatchRequestInformation(body, null); } /** - * Update the properties of the specified tab.This can be used to configure the content of the tab. + * Update the properties of the specified tab.This API can be used to configure the content of the tab. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/generated/users/item/joinedteams/item/primarychannel/members/MembersRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/users/item/joinedteams/item/primarychannel/members/MembersRequestBuilder.java index 805113041ea..3e78bac7e38 100644 --- a/src/main/java/com/microsoft/graph/generated/users/item/joinedteams/item/primarychannel/members/MembersRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/users/item/joinedteams/item/primarychannel/members/MembersRequestBuilder.java @@ -93,23 +93,23 @@ public ConversationMemberCollectionResponse get(@jakarta.annotation.Nullable fin return this.requestAdapter.send(requestInfo, errorMapping, ConversationMemberCollectionResponse::createFromDiscriminatorValue); } /** - * Add a conversationMember to a channel. + * Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared. * @param body The request body * @return a {@link ConversationMember} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ConversationMember post(@jakarta.annotation.Nonnull final ConversationMember body) { return post(body, null); } /** - * Add a conversationMember to a channel. + * Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link ConversationMember} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ConversationMember post(@jakarta.annotation.Nonnull final ConversationMember body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -140,7 +140,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Add a conversationMember to a channel. + * Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared. * @param body The request body * @return a {@link RequestInformation} */ @@ -149,7 +149,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Add a conversationMember to a channel. + * Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/generated/users/item/joinedteams/item/primarychannel/messages/MessagesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/users/item/joinedteams/item/primarychannel/messages/MessagesRequestBuilder.java index ae575e5e479..db983b94236 100644 --- a/src/main/java/com/microsoft/graph/generated/users/item/joinedteams/item/primarychannel/messages/MessagesRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/users/item/joinedteams/item/primarychannel/messages/MessagesRequestBuilder.java @@ -93,23 +93,23 @@ public ChatMessageCollectionResponse get(@jakarta.annotation.Nullable final java return this.requestAdapter.send(requestInfo, errorMapping, ChatMessageCollectionResponse::createFromDiscriminatorValue); } /** - * Send a new chatMessage in the specified channel. + * Send a new chatMessage in the specified channel or a chat. * @param body The request body * @return a {@link ChatMessage} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ChatMessage post(@jakarta.annotation.Nonnull final ChatMessage body) { return post(body, null); } /** - * Send a new chatMessage in the specified channel. + * Send a new chatMessage in the specified channel or a chat. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link ChatMessage} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ChatMessage post(@jakarta.annotation.Nonnull final ChatMessage body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -140,7 +140,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Send a new chatMessage in the specified channel. + * Send a new chatMessage in the specified channel or a chat. * @param body The request body * @return a {@link RequestInformation} */ @@ -149,7 +149,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Send a new chatMessage in the specified channel. + * Send a new chatMessage in the specified channel or a chat. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/generated/users/item/joinedteams/item/primarychannel/tabs/item/TeamsTabItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/users/item/joinedteams/item/primarychannel/tabs/item/TeamsTabItemRequestBuilder.java index b30a8827d59..57c496a82b2 100644 --- a/src/main/java/com/microsoft/graph/generated/users/item/joinedteams/item/primarychannel/tabs/item/TeamsTabItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/users/item/joinedteams/item/primarychannel/tabs/item/TeamsTabItemRequestBuilder.java @@ -90,7 +90,7 @@ public TeamsTab get(@jakarta.annotation.Nullable final java.util.function.Consum return this.requestAdapter.send(requestInfo, errorMapping, TeamsTab::createFromDiscriminatorValue); } /** - * Update the properties of the specified tab.This can be used to configure the content of the tab. + * Update the properties of the specified tab.This API can be used to configure the content of the tab. * @param body The request body * @return a {@link TeamsTab} * @throws ODataError When receiving a 4XX or 5XX status code @@ -101,7 +101,7 @@ public TeamsTab patch(@jakarta.annotation.Nonnull final TeamsTab body) { return patch(body, null); } /** - * Update the properties of the specified tab.This can be used to configure the content of the tab. + * Update the properties of the specified tab.This API can be used to configure the content of the tab. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link TeamsTab} @@ -157,7 +157,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Update the properties of the specified tab.This can be used to configure the content of the tab. + * Update the properties of the specified tab.This API can be used to configure the content of the tab. * @param body The request body * @return a {@link RequestInformation} */ @@ -166,7 +166,7 @@ public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull return toPatchRequestInformation(body, null); } /** - * Update the properties of the specified tab.This can be used to configure the content of the tab. + * Update the properties of the specified tab.This API can be used to configure the content of the tab. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/generated/users/item/joinedteams/item/unarchive/UnarchiveRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/users/item/joinedteams/item/unarchive/UnarchiveRequestBuilder.java index 73abfabc5d1..b871d278bda 100644 --- a/src/main/java/com/microsoft/graph/generated/users/item/joinedteams/item/unarchive/UnarchiveRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/users/item/joinedteams/item/unarchive/UnarchiveRequestBuilder.java @@ -35,7 +35,7 @@ public UnarchiveRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, super(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/unarchive", rawUrl); } /** - * Restore an archived team. This restores users' ability to send messages and edit the team, abiding by tenant and team settings. A Team is archived using the archive API. Unarchiving is an async operation. A team is unarchived once the async operation completes successfully, which may occur subsequent to a response from this API. + * Restore an archived team. This API restores users' ability to send messages and edit the team, abiding by tenant and team settings. A Team is archived using the archive API. Unarchiving is an async operation. A team is unarchived once the async operation completes successfully, which might occur subsequent to a response from this API. * @throws ODataError When receiving a 4XX or 5XX status code * @see Find more info here */ @@ -43,7 +43,7 @@ public void post() { post(null); } /** - * Restore an archived team. This restores users' ability to send messages and edit the team, abiding by tenant and team settings. A Team is archived using the archive API. Unarchiving is an async operation. A team is unarchived once the async operation completes successfully, which may occur subsequent to a response from this API. + * Restore an archived team. This API restores users' ability to send messages and edit the team, abiding by tenant and team settings. A Team is archived using the archive API. Unarchiving is an async operation. A team is unarchived once the async operation completes successfully, which might occur subsequent to a response from this API. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @throws ODataError When receiving a 4XX or 5XX status code * @see Find more info here @@ -55,7 +55,7 @@ public void post(@jakarta.annotation.Nullable final java.util.function.Consumer< this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Restore an archived team. This restores users' ability to send messages and edit the team, abiding by tenant and team settings. A Team is archived using the archive API. Unarchiving is an async operation. A team is unarchived once the async operation completes successfully, which may occur subsequent to a response from this API. + * Restore an archived team. This API restores users' ability to send messages and edit the team, abiding by tenant and team settings. A Team is archived using the archive API. Unarchiving is an async operation. A team is unarchived once the async operation completes successfully, which might occur subsequent to a response from this API. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -63,7 +63,7 @@ public RequestInformation toPostRequestInformation() { return toPostRequestInformation(null); } /** - * Restore an archived team. This restores users' ability to send messages and edit the team, abiding by tenant and team settings. A Team is archived using the archive API. Unarchiving is an async operation. A team is unarchived once the async operation completes successfully, which may occur subsequent to a response from this API. + * Restore an archived team. This API restores users' ability to send messages and edit the team, abiding by tenant and team settings. A Team is archived using the archive API. Unarchiving is an async operation. A team is unarchived once the async operation completes successfully, which might occur subsequent to a response from this API. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ diff --git a/src/main/java/com/microsoft/graph/generated/users/item/mailfolders/item/childfolders/item/messages/item/attachments/AttachmentsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/users/item/mailfolders/item/childfolders/item/messages/item/attachments/AttachmentsRequestBuilder.java index 3f526457234..f79e6c77e4c 100644 --- a/src/main/java/com/microsoft/graph/generated/users/item/mailfolders/item/childfolders/item/messages/item/attachments/AttachmentsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/users/item/mailfolders/item/childfolders/item/messages/item/attachments/AttachmentsRequestBuilder.java @@ -93,23 +93,23 @@ public AttachmentCollectionResponse get(@jakarta.annotation.Nullable final java. return this.requestAdapter.send(requestInfo, errorMapping, AttachmentCollectionResponse::createFromDiscriminatorValue); } /** - * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + * Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. * @param body The request body * @return a {@link Attachment} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public Attachment post(@jakarta.annotation.Nonnull final Attachment body) { return post(body, null); } /** - * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + * Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link Attachment} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public Attachment post(@jakarta.annotation.Nonnull final Attachment body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -140,7 +140,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + * Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. * @param body The request body * @return a {@link RequestInformation} */ @@ -149,7 +149,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + * Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/generated/users/item/mailfolders/item/messages/item/attachments/AttachmentsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/users/item/mailfolders/item/messages/item/attachments/AttachmentsRequestBuilder.java index 25752f0b0f1..dd1b0ac4908 100644 --- a/src/main/java/com/microsoft/graph/generated/users/item/mailfolders/item/messages/item/attachments/AttachmentsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/users/item/mailfolders/item/messages/item/attachments/AttachmentsRequestBuilder.java @@ -93,23 +93,23 @@ public AttachmentCollectionResponse get(@jakarta.annotation.Nullable final java. return this.requestAdapter.send(requestInfo, errorMapping, AttachmentCollectionResponse::createFromDiscriminatorValue); } /** - * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + * Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. * @param body The request body * @return a {@link Attachment} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public Attachment post(@jakarta.annotation.Nonnull final Attachment body) { return post(body, null); } /** - * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + * Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link Attachment} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public Attachment post(@jakarta.annotation.Nonnull final Attachment body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -140,7 +140,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + * Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. * @param body The request body * @return a {@link RequestInformation} */ @@ -149,7 +149,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + * Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/generated/users/item/messages/MessagesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/users/item/messages/MessagesRequestBuilder.java index 443d90f0f90..eacdcd25fb3 100644 --- a/src/main/java/com/microsoft/graph/generated/users/item/messages/MessagesRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/users/item/messages/MessagesRequestBuilder.java @@ -72,7 +72,7 @@ public MessagesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @ * The messages in a mailbox or folder. Read-only. Nullable. * @return a {@link MessageCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public MessageCollectionResponse get() { @@ -83,7 +83,7 @@ public MessageCollectionResponse get() { * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link MessageCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public MessageCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -93,23 +93,23 @@ public MessageCollectionResponse get(@jakarta.annotation.Nullable final java.uti return this.requestAdapter.send(requestInfo, errorMapping, MessageCollectionResponse::createFromDiscriminatorValue); } /** - * Create a draft of a new message in either JSON or MIME format. When using JSON format, you can:- Include an attachment to the message.- Update the draft later to add content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- /* Add any attachments and S/MIME properties to the MIME content. By default, this operation saves the draft in the Drafts folder. Send the draft message in a subsequent operation. Alternatively, send a new message in a single operation, or create a draft to forward, reply and reply-all to an existing message. + * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. * @param body The request body * @return a {@link Message} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public Message post(@jakarta.annotation.Nonnull final Message body) { return post(body, null); } /** - * Create a draft of a new message in either JSON or MIME format. When using JSON format, you can:- Include an attachment to the message.- Update the draft later to add content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- /* Add any attachments and S/MIME properties to the MIME content. By default, this operation saves the draft in the Drafts folder. Send the draft message in a subsequent operation. Alternatively, send a new message in a single operation, or create a draft to forward, reply and reply-all to an existing message. + * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link Message} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public Message post(@jakarta.annotation.Nonnull final Message body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -140,7 +140,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Create a draft of a new message in either JSON or MIME format. When using JSON format, you can:- Include an attachment to the message.- Update the draft later to add content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- /* Add any attachments and S/MIME properties to the MIME content. By default, this operation saves the draft in the Drafts folder. Send the draft message in a subsequent operation. Alternatively, send a new message in a single operation, or create a draft to forward, reply and reply-all to an existing message. + * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. * @param body The request body * @return a {@link RequestInformation} */ @@ -149,7 +149,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Create a draft of a new message in either JSON or MIME format. When using JSON format, you can:- Include an attachment to the message.- Update the draft later to add content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- /* Add any attachments and S/MIME properties to the MIME content. By default, this operation saves the draft in the Drafts folder. Send the draft message in a subsequent operation. Alternatively, send a new message in a single operation, or create a draft to forward, reply and reply-all to an existing message. + * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/generated/users/item/messages/item/MessageItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/users/item/messages/item/MessageItemRequestBuilder.java index c295872b9da..4e1f7ffe384 100644 --- a/src/main/java/com/microsoft/graph/generated/users/item/messages/item/MessageItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/users/item/messages/item/MessageItemRequestBuilder.java @@ -189,23 +189,23 @@ public Message get(@jakarta.annotation.Nullable final java.util.function.Consume return this.requestAdapter.send(requestInfo, errorMapping, Message::createFromDiscriminatorValue); } /** - * Update the properties of an eventMessage object. + * Update the properties of a message object. * @param body The request body * @return a {@link Message} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public Message patch(@jakarta.annotation.Nonnull final Message body) { return patch(body, null); } /** - * Update the properties of an eventMessage object. + * Update the properties of a message object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link Message} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public Message patch(@jakarta.annotation.Nonnull final Message body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -256,7 +256,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Update the properties of an eventMessage object. + * Update the properties of a message object. * @param body The request body * @return a {@link RequestInformation} */ @@ -265,7 +265,7 @@ public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull return toPatchRequestInformation(body, null); } /** - * Update the properties of an eventMessage object. + * Update the properties of a message object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/generated/users/item/messages/item/attachments/AttachmentsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/users/item/messages/item/attachments/AttachmentsRequestBuilder.java index cac1ed53f31..08153b276ab 100644 --- a/src/main/java/com/microsoft/graph/generated/users/item/messages/item/attachments/AttachmentsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/users/item/messages/item/attachments/AttachmentsRequestBuilder.java @@ -93,23 +93,23 @@ public AttachmentCollectionResponse get(@jakarta.annotation.Nullable final java. return this.requestAdapter.send(requestInfo, errorMapping, AttachmentCollectionResponse::createFromDiscriminatorValue); } /** - * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + * Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. * @param body The request body * @return a {@link Attachment} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public Attachment post(@jakarta.annotation.Nonnull final Attachment body) { return post(body, null); } /** - * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + * Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link Attachment} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public Attachment post(@jakarta.annotation.Nonnull final Attachment body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -140,7 +140,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + * Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. * @param body The request body * @return a {@link RequestInformation} */ @@ -149,7 +149,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + * Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/generated/users/item/messages/item/value/ContentRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/users/item/messages/item/value/ContentRequestBuilder.java index ae1a9752c5e..cce28e0afd6 100644 --- a/src/main/java/com/microsoft/graph/generated/users/item/messages/item/value/ContentRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/users/item/messages/item/value/ContentRequestBuilder.java @@ -40,7 +40,7 @@ public ContentRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @j * Get media content for the navigation property messages from users * @return a {@link InputStream} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public InputStream get() { @@ -51,7 +51,7 @@ public InputStream get() { * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link InputStream} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public InputStream get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { diff --git a/src/main/java/com/microsoft/graph/generated/users/item/photo/PhotoRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/users/item/photo/PhotoRequestBuilder.java index 4f7bed61ef3..bad20ed18fa 100644 --- a/src/main/java/com/microsoft/graph/generated/users/item/photo/PhotoRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/users/item/photo/PhotoRequestBuilder.java @@ -45,6 +45,24 @@ public PhotoRequestBuilder(@jakarta.annotation.Nonnull final HashMap requestConfiguration) { + final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } /** * Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they're stored in Microsoft Entra ID. You can get the metadata of the largest available photo or specify a size to get the metadata for that photo size.If the size you request is unavailable, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of the photo is available for download. * @return a {@link ProfilePhoto} @@ -94,6 +112,26 @@ public ProfilePhoto patch(@jakarta.annotation.Nonnull final ProfilePhoto body, @ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); return this.requestAdapter.send(requestInfo, errorMapping, ProfilePhoto::createFromDiscriminatorValue); } + /** + * Delete navigation property photo for users + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation() { + return toDeleteRequestInformation(null); + } + /** + * Delete navigation property photo for users + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, "{+baseurl}/users/{user%2Did}/photo", pathParameters); + requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } /** * Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they're stored in Microsoft Entra ID. You can get the metadata of the largest available photo or specify a size to get the metadata for that photo size.If the size you request is unavailable, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of the photo is available for download. * @return a {@link RequestInformation} @@ -148,6 +186,12 @@ public PhotoRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawU Objects.requireNonNull(rawUrl); return new PhotoRequestBuilder(rawUrl, requestAdapter); } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class DeleteRequestConfiguration extends BaseRequestConfiguration { + } /** * Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they're stored in Microsoft Entra ID. You can get the metadata of the largest available photo or specify a size to get the metadata for that photo size.If the size you request is unavailable, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of the photo is available for download. */ diff --git a/src/main/java/com/microsoft/graph/generated/users/item/settings/windows/WindowsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/users/item/settings/windows/WindowsRequestBuilder.java index ac067061ede..a48cd63b1cf 100644 --- a/src/main/java/com/microsoft/graph/generated/users/item/settings/windows/WindowsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/users/item/settings/windows/WindowsRequestBuilder.java @@ -60,19 +60,21 @@ public WindowsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @j super(requestAdapter, "{+baseurl}/users/{user%2Did}/settings/windows{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * Get windows from users + * Get a list of windowsSetting objects and their properties for the signed in user. * @return a {@link WindowsSettingCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here */ @jakarta.annotation.Nullable public WindowsSettingCollectionResponse get() { return get(null); } /** - * Get windows from users + * Get a list of windowsSetting objects and their properties for the signed in user. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WindowsSettingCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here */ @jakarta.annotation.Nullable public WindowsSettingCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -107,7 +109,7 @@ public WindowsSetting post(@jakarta.annotation.Nonnull final WindowsSetting body return this.requestAdapter.send(requestInfo, errorMapping, WindowsSetting::createFromDiscriminatorValue); } /** - * Get windows from users + * Get a list of windowsSetting objects and their properties for the signed in user. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -115,7 +117,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Get windows from users + * Get a list of windowsSetting objects and their properties for the signed in user. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -161,7 +163,7 @@ public WindowsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String ra return new WindowsRequestBuilder(rawUrl, requestAdapter); } /** - * Get windows from users + * Get a list of windowsSetting objects and their properties for the signed in user. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/users/item/settings/windows/item/WindowsSettingItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/users/item/settings/windows/item/WindowsSettingItemRequestBuilder.java index f3dd2d2031b..8a5f9b69c9a 100644 --- a/src/main/java/com/microsoft/graph/generated/users/item/settings/windows/item/WindowsSettingItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/users/item/settings/windows/item/WindowsSettingItemRequestBuilder.java @@ -64,19 +64,21 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Get windows from users + * Read the properties and relationships of a windowsSetting object by passing the ID of the setting in the URL. This method gets the setting for the signed-in user. * @return a {@link WindowsSetting} * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here */ @jakarta.annotation.Nullable public WindowsSetting get() { return get(null); } /** - * Get windows from users + * Read the properties and relationships of a windowsSetting object by passing the ID of the setting in the URL. This method gets the setting for the signed-in user. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WindowsSetting} * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here */ @jakarta.annotation.Nullable public WindowsSetting get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -131,7 +133,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Get windows from users + * Read the properties and relationships of a windowsSetting object by passing the ID of the setting in the URL. This method gets the setting for the signed-in user. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -139,7 +141,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Get windows from users + * Read the properties and relationships of a windowsSetting object by passing the ID of the setting in the URL. This method gets the setting for the signed-in user. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -191,7 +193,7 @@ public WindowsSettingItemRequestBuilder withUrl(@jakarta.annotation.Nonnull fina public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Get windows from users + * Read the properties and relationships of a windowsSetting object by passing the ID of the setting in the URL. This method gets the setting for the signed-in user. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/users/item/settings/windows/item/instances/InstancesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/users/item/settings/windows/item/instances/InstancesRequestBuilder.java index 9523e389efc..33f11b9dd2b 100644 --- a/src/main/java/com/microsoft/graph/generated/users/item/settings/windows/item/instances/InstancesRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/users/item/settings/windows/item/instances/InstancesRequestBuilder.java @@ -60,19 +60,21 @@ public InstancesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, super(requestAdapter, "{+baseurl}/users/{user%2Did}/settings/windows/{windowsSetting%2Did}/instances{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * Get instances from users + * Get a list of windowsSettingInstance objects and their properties for the signed-in user. * @return a {@link WindowsSettingInstanceCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here */ @jakarta.annotation.Nullable public WindowsSettingInstanceCollectionResponse get() { return get(null); } /** - * Get instances from users + * Get a list of windowsSettingInstance objects and their properties for the signed-in user. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WindowsSettingInstanceCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here */ @jakarta.annotation.Nullable public WindowsSettingInstanceCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -107,7 +109,7 @@ public WindowsSettingInstance post(@jakarta.annotation.Nonnull final WindowsSett return this.requestAdapter.send(requestInfo, errorMapping, WindowsSettingInstance::createFromDiscriminatorValue); } /** - * Get instances from users + * Get a list of windowsSettingInstance objects and their properties for the signed-in user. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -115,7 +117,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Get instances from users + * Get a list of windowsSettingInstance objects and their properties for the signed-in user. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -161,7 +163,7 @@ public InstancesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String return new InstancesRequestBuilder(rawUrl, requestAdapter); } /** - * Get instances from users + * Get a list of windowsSettingInstance objects and their properties for the signed-in user. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/users/item/settings/windows/item/instances/item/WindowsSettingInstanceItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/users/item/settings/windows/item/instances/item/WindowsSettingInstanceItemRequestBuilder.java index 8bbe28c6769..b99a82fa760 100644 --- a/src/main/java/com/microsoft/graph/generated/users/item/settings/windows/item/instances/item/WindowsSettingInstanceItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/users/item/settings/windows/item/instances/item/WindowsSettingInstanceItemRequestBuilder.java @@ -55,19 +55,21 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Get instances from users + * Read the properties and relationships of a windowsSettingInstance object by passing the Windows setting ID and Windows setting instance ID in the URL. This method gets a windowsSettingInstance for the signed-in user. * @return a {@link WindowsSettingInstance} * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here */ @jakarta.annotation.Nullable public WindowsSettingInstance get() { return get(null); } /** - * Get instances from users + * Read the properties and relationships of a windowsSettingInstance object by passing the Windows setting ID and Windows setting instance ID in the URL. This method gets a windowsSettingInstance for the signed-in user. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WindowsSettingInstance} * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here */ @jakarta.annotation.Nullable public WindowsSettingInstance get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -122,7 +124,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Get instances from users + * Read the properties and relationships of a windowsSettingInstance object by passing the Windows setting ID and Windows setting instance ID in the URL. This method gets a windowsSettingInstance for the signed-in user. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -130,7 +132,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Get instances from users + * Read the properties and relationships of a windowsSettingInstance object by passing the Windows setting ID and Windows setting instance ID in the URL. This method gets a windowsSettingInstance for the signed-in user. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -182,7 +184,7 @@ public WindowsSettingInstanceItemRequestBuilder withUrl(@jakarta.annotation.Nonn public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Get instances from users + * Read the properties and relationships of a windowsSettingInstance object by passing the Windows setting ID and Windows setting instance ID in the URL. This method gets a windowsSettingInstance for the signed-in user. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/users/item/sponsors/SponsorsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/users/item/sponsors/SponsorsRequestBuilder.java new file mode 100644 index 00000000000..ffceb988e04 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/users/item/sponsors/SponsorsRequestBuilder.java @@ -0,0 +1,187 @@ +package com.microsoft.graph.users.item.sponsors; + +import com.microsoft.graph.models.DirectoryObjectCollectionResponse; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.users.item.sponsors.count.CountRequestBuilder; +import com.microsoft.graph.users.item.sponsors.item.DirectoryObjectItemRequestBuilder; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the sponsors property of the microsoft.graph.user entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class SponsorsRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to count the resources in the collection. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder count() { + return new CountRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to manage the sponsors property of the microsoft.graph.user entity. + * @param directoryObjectId The unique identifier of directoryObject + * @return a {@link DirectoryObjectItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public DirectoryObjectItemRequestBuilder byDirectoryObjectId(@jakarta.annotation.Nonnull final String directoryObjectId) { + Objects.requireNonNull(directoryObjectId); + final HashMap urlTplParams = new HashMap(this.pathParameters); + urlTplParams.put("directoryObject%2Did", directoryObjectId); + return new DirectoryObjectItemRequestBuilder(urlTplParams, requestAdapter); + } + /** + * Instantiates a new {@link SponsorsRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public SponsorsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/users/{user%2Did}/sponsors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link SponsorsRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public SponsorsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/users/{user%2Did}/sponsors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * Get sponsors from users + * @return a {@link DirectoryObjectCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public DirectoryObjectCollectionResponse get() { + return get(null); + } + /** + * Get sponsors from users + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link DirectoryObjectCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public DirectoryObjectCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, DirectoryObjectCollectionResponse::createFromDiscriminatorValue); + } + /** + * Get sponsors from users + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get sponsors from users + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link SponsorsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public SponsorsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new SponsorsRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get sponsors from users + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Include count of items + */ + @jakarta.annotation.Nullable + public Boolean count; + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Order items by property values + */ + @jakarta.annotation.Nullable + public String[] orderby; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Skip the first n items + */ + @jakarta.annotation.Nullable + public Integer skip; + /** + * Show only the first n items + */ + @jakarta.annotation.Nullable + public Integer top; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24count", count); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + allQueryParams.put("%24skip", skip); + allQueryParams.put("%24top", top); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24orderby", orderby); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/users/item/sponsors/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/users/item/sponsors/count/CountRequestBuilder.java new file mode 100644 index 00000000000..ed4cb19d4b3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/users/item/sponsors/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +package com.microsoft.graph.users.item.sponsors.count; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to count the resources in the collection. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CountRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/users/{user%2Did}/sponsors/$count{?%24filter,%24search}", pathParameters); + } + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/users/{user%2Did}/sponsors/$count{?%24filter,%24search}", rawUrl); + } + /** + * Get the number of the resource + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get() { + return get(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); + } + /** + * Get the number of the resource + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new CountRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get the number of the resource + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/users/item/sponsors/item/DirectoryObjectItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/users/item/sponsors/item/DirectoryObjectItemRequestBuilder.java new file mode 100644 index 00000000000..2bfe377ed8e --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/users/item/sponsors/item/DirectoryObjectItemRequestBuilder.java @@ -0,0 +1,129 @@ +package com.microsoft.graph.users.item.sponsors.item; + +import com.microsoft.graph.models.DirectoryObject; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the sponsors property of the microsoft.graph.user entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class DirectoryObjectItemRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link DirectoryObjectItemRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public DirectoryObjectItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/users/{user%2Did}/sponsors/{directoryObject%2Did}{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link DirectoryObjectItemRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public DirectoryObjectItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/users/{user%2Did}/sponsors/{directoryObject%2Did}{?%24expand,%24select}", rawUrl); + } + /** + * Get sponsors from users + * @return a {@link DirectoryObject} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public DirectoryObject get() { + return get(null); + } + /** + * Get sponsors from users + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link DirectoryObject} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public DirectoryObject get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, DirectoryObject::createFromDiscriminatorValue); + } + /** + * Get sponsors from users + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get sponsors from users + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link DirectoryObjectItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public DirectoryObjectItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new DirectoryObjectItemRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get sponsors from users + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/users/item/todo/lists/item/tasks/item/linkedresources/item/LinkedResourceItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/users/item/todo/lists/item/tasks/item/linkedresources/item/LinkedResourceItemRequestBuilder.java index ff5298b9793..6a90d848cfd 100644 --- a/src/main/java/com/microsoft/graph/generated/users/item/todo/lists/item/tasks/item/linkedresources/item/LinkedResourceItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/users/item/todo/lists/item/tasks/item/linkedresources/item/LinkedResourceItemRequestBuilder.java @@ -37,7 +37,7 @@ public LinkedResourceItemRequestBuilder(@jakarta.annotation.Nonnull final String super(requestAdapter, "{+baseurl}/users/{user%2Did}/todo/lists/{todoTaskList%2Did}/tasks/{todoTask%2Did}/linkedResources/{linkedResource%2Did}{?%24expand,%24select}", rawUrl); } /** - * Deletes a linkedResource object. + * Delete a linkedResource object. * @throws ODataError When receiving a 4XX or 5XX status code * @see Find more info here */ @@ -45,7 +45,7 @@ public void delete() { delete(null); } /** - * Deletes a linkedResource object. + * Delete a linkedResource object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @throws ODataError When receiving a 4XX or 5XX status code * @see Find more info here @@ -108,7 +108,7 @@ public LinkedResource patch(@jakarta.annotation.Nonnull final LinkedResource bod return this.requestAdapter.send(requestInfo, errorMapping, LinkedResource::createFromDiscriminatorValue); } /** - * Deletes a linkedResource object. + * Delete a linkedResource object. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -116,7 +116,7 @@ public RequestInformation toDeleteRequestInformation() { return toDeleteRequestInformation(null); } /** - * Deletes a linkedResource object. + * Delete a linkedResource object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ diff --git a/src/main/java/com/microsoft/graph/info/Constants.java b/src/main/java/com/microsoft/graph/info/Constants.java index 08ca2769ad4..648008124c4 100644 --- a/src/main/java/com/microsoft/graph/info/Constants.java +++ b/src/main/java/com/microsoft/graph/info/Constants.java @@ -3,8 +3,9 @@ /** Multi-purpose constants holder used accross the SDK */ public final class Constants { /** The SDK version */ - public static final String VERSION_NAME = "6.4.0"; + public static final String VERSION_NAME = "6.5.0"; } +