From 36db97cfa34bc8ae19c500e402cfe538da1a049d Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Tue, 3 Feb 2026 22:05:01 +0000 Subject: [PATCH] feat(generation): update request builders and models Update generated files with build 209142 --- .../admin/teams/TeamsRequestBuilder.java | 19 +- .../teams/policy/PolicyRequestBuilder.java | 250 +++++++++ ...etPolicyIdWithTypeWithNameGetResponse.java | 63 +++ ...olicyIdWithTypeWithNameRequestBuilder.java | 170 ++++++ .../UserAssignmentsRequestBuilder.java | 261 +++++++++ .../count/CountRequestBuilder.java | 128 +++++ ...olicyUserAssignmentItemRequestBuilder.java | 228 ++++++++ .../AssignPostRequestBody.java | 108 ++++ ...amsAdministrationAssignRequestBuilder.java | 100 ++++ ...sAdministrationUnassignRequestBuilder.java | 100 ++++ .../UnassignPostRequestBody.java | 108 ++++ .../graph/generated/kiota-dom-export.txt | 528 +++++++++++++++++- .../microsoft/graph/generated/kiota-lock.json | 4 +- .../graph/generated/models/Admin.java | 4 +- .../graph/generated/models/AiAgentInfo.java | 61 ++ .../generated/models/AiInteractionEntity.java | 166 ++++++ .../generated/models/AiInteractionPlugin.java | 122 +--- .../generated/models/Authentication.java | 17 + .../models/AuthenticationMethod.java | 19 + .../CloudPcDomainJoinConfiguration.java | 4 +- ...loudPcOnPremisesConnectionHealthCheck.java | 4 +- .../graph/generated/models/Entity.java | 20 +- .../models/ExternalAuthenticationMethod.java | 79 +++ ...uthenticationMethodCollectionResponse.java | 61 ++ .../models/Fido2AuthenticationMethod.java | 18 - .../models/IdentityProviderBase.java | 1 + ...softAuthenticatorAuthenticationMethod.java | 18 - .../models/OidcAddressInboundClaims.java | 192 +++++++ .../models/OidcClientAuthentication.java | 115 ++++ .../OidcClientSecretAuthentication.java | 62 ++ .../models/OidcIdentityProvider.java | 165 ++++++ .../OidcInboundClaimMappingOverride.java | 260 +++++++++ ...OidcPrivateJwtKeyClientAuthentication.java | 45 ++ .../generated/models/OidcResponseType.java | 29 + .../models/PasswordAuthenticationMethod.java | 18 - ...latformCredentialAuthenticationMethod.java | 18 - .../models/ProcessConversationMetadata.java | 34 ++ .../models/ProtectionPolicyArtifactCount.java | 175 ++++++ .../models/ProtectionPolicyBase.java | 34 ++ .../models/ResourceAccessDetail.java | 244 ++++++++ .../models/ResourceAccessStatus.java | 29 + .../generated/models/ResourceAccessType.java | 31 + .../generated/models/ServicePrincipal.java | 4 +- ...mporaryAccessPassAuthenticationMethod.java | 17 - .../graph/generated/models/UsageRights.java | 2 + ...sHelloForBusinessAuthenticationMethod.java | 18 - .../generated/models/security/Alert.java | 4 +- .../EdiscoveryPurgeDataOperation.java | 17 + .../generated/models/security/Incident.java | 17 + .../generated/models/security/Sensor.java | 17 + .../models/security/SensorCandidate.java | 17 + .../models/security/ServiceStatus.java | 35 ++ .../PolicyIdentifierDetail.java | 79 +++ .../teamsadministration/TeamsAdminRoot.java | 21 +- .../TeamsPolicyAssignment.java | 62 ++ .../TeamsPolicyUserAssignment.java | 96 ++++ ...olicyUserAssignmentCollectionResponse.java | 62 ++ ...ionMethodConfigurationsRequestBuilder.java | 10 +- ...MethodConfigurationItemRequestBuilder.java | 32 +- .../AuthenticationRequestBuilder.java | 9 + ...alAuthenticationMethodsRequestBuilder.java | 245 ++++++++ .../count/CountRequestBuilder.java | 128 +++++ ...uthenticationMethodItemRequestBuilder.java | 230 ++++++++ 63 files changed, 4939 insertions(+), 295 deletions(-) create mode 100644 src/main/java/com/microsoft/graph/generated/admin/teams/policy/PolicyRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/generated/admin/teams/policy/microsoftgraphteamsadministrationgetpolicyidwithtypewithname/GetPolicyIdWithTypeWithNameGetResponse.java create mode 100644 src/main/java/com/microsoft/graph/generated/admin/teams/policy/microsoftgraphteamsadministrationgetpolicyidwithtypewithname/MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/generated/admin/teams/policy/userassignments/UserAssignmentsRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/generated/admin/teams/policy/userassignments/count/CountRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/generated/admin/teams/policy/userassignments/item/TeamsPolicyUserAssignmentItemRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/generated/admin/teams/policy/userassignments/microsoftgraphteamsadministrationassign/AssignPostRequestBody.java create mode 100644 src/main/java/com/microsoft/graph/generated/admin/teams/policy/userassignments/microsoftgraphteamsadministrationassign/MicrosoftGraphTeamsAdministrationAssignRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/generated/admin/teams/policy/userassignments/microsoftgraphteamsadministrationunassign/MicrosoftGraphTeamsAdministrationUnassignRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/generated/admin/teams/policy/userassignments/microsoftgraphteamsadministrationunassign/UnassignPostRequestBody.java create mode 100644 src/main/java/com/microsoft/graph/generated/models/AiAgentInfo.java create mode 100644 src/main/java/com/microsoft/graph/generated/models/AiInteractionEntity.java create mode 100644 src/main/java/com/microsoft/graph/generated/models/ExternalAuthenticationMethod.java create mode 100644 src/main/java/com/microsoft/graph/generated/models/ExternalAuthenticationMethodCollectionResponse.java create mode 100644 src/main/java/com/microsoft/graph/generated/models/OidcAddressInboundClaims.java create mode 100644 src/main/java/com/microsoft/graph/generated/models/OidcClientAuthentication.java create mode 100644 src/main/java/com/microsoft/graph/generated/models/OidcClientSecretAuthentication.java create mode 100644 src/main/java/com/microsoft/graph/generated/models/OidcIdentityProvider.java create mode 100644 src/main/java/com/microsoft/graph/generated/models/OidcInboundClaimMappingOverride.java create mode 100644 src/main/java/com/microsoft/graph/generated/models/OidcPrivateJwtKeyClientAuthentication.java create mode 100644 src/main/java/com/microsoft/graph/generated/models/OidcResponseType.java create mode 100644 src/main/java/com/microsoft/graph/generated/models/ProtectionPolicyArtifactCount.java create mode 100644 src/main/java/com/microsoft/graph/generated/models/ResourceAccessDetail.java create mode 100644 src/main/java/com/microsoft/graph/generated/models/ResourceAccessStatus.java create mode 100644 src/main/java/com/microsoft/graph/generated/models/ResourceAccessType.java create mode 100644 src/main/java/com/microsoft/graph/generated/models/security/ServiceStatus.java create mode 100644 src/main/java/com/microsoft/graph/generated/models/teamsadministration/PolicyIdentifierDetail.java create mode 100644 src/main/java/com/microsoft/graph/generated/models/teamsadministration/TeamsPolicyAssignment.java create mode 100644 src/main/java/com/microsoft/graph/generated/models/teamsadministration/TeamsPolicyUserAssignment.java create mode 100644 src/main/java/com/microsoft/graph/generated/models/teamsadministration/TeamsPolicyUserAssignmentCollectionResponse.java create mode 100644 src/main/java/com/microsoft/graph/generated/users/item/authentication/externalauthenticationmethods/ExternalAuthenticationMethodsRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/generated/users/item/authentication/externalauthenticationmethods/count/CountRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/generated/users/item/authentication/externalauthenticationmethods/item/ExternalAuthenticationMethodItemRequestBuilder.java diff --git a/src/main/java/com/microsoft/graph/generated/admin/teams/TeamsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/admin/teams/TeamsRequestBuilder.java index befba1a7b15..e1a6d32434f 100644 --- a/src/main/java/com/microsoft/graph/generated/admin/teams/TeamsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/admin/teams/TeamsRequestBuilder.java @@ -1,5 +1,6 @@ package com.microsoft.graph.admin.teams; +import com.microsoft.graph.admin.teams.policy.PolicyRequestBuilder; import com.microsoft.graph.admin.teams.userconfigurations.UserConfigurationsRequestBuilder; import com.microsoft.graph.models.odataerrors.ODataError; import com.microsoft.graph.models.teamsadministration.TeamsAdminRoot; @@ -21,6 +22,14 @@ */ @jakarta.annotation.Generated("com.microsoft.kiota") public class TeamsRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to manage the policy property of the microsoft.graph.teamsAdministration.teamsAdminRoot entity. + * @return a {@link PolicyRequestBuilder} + */ + @jakarta.annotation.Nonnull + public PolicyRequestBuilder policy() { + return new PolicyRequestBuilder(pathParameters, requestAdapter); + } /** * Provides operations to manage the userConfigurations property of the microsoft.graph.teamsAdministration.teamsAdminRoot entity. * @return a {@link UserConfigurationsRequestBuilder} @@ -64,7 +73,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Represents a collection of user configurations. + * A container for Teams administration functionalities, such as user configurations and policy assignments. * @return a {@link TeamsAdminRoot} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -73,7 +82,7 @@ public TeamsAdminRoot get() { return get(null); } /** - * Represents a collection of user configurations. + * A container for Teams administration functionalities, such as user configurations and policy assignments. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link TeamsAdminRoot} * @throws ODataError When receiving a 4XX or 5XX status code @@ -131,7 +140,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Represents a collection of user configurations. + * A container for Teams administration functionalities, such as user configurations and policy assignments. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -139,7 +148,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Represents a collection of user configurations. + * A container for Teams administration functionalities, such as user configurations and policy assignments. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -191,7 +200,7 @@ public TeamsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawU public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Represents a collection of user configurations. + * A container for Teams administration functionalities, such as user configurations and policy assignments. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/admin/teams/policy/PolicyRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/admin/teams/policy/PolicyRequestBuilder.java new file mode 100644 index 00000000000..550351fe0dc --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/admin/teams/policy/PolicyRequestBuilder.java @@ -0,0 +1,250 @@ +package com.microsoft.graph.admin.teams.policy; + +import com.microsoft.graph.admin.teams.policy.microsoftgraphteamsadministrationgetpolicyidwithtypewithname.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder; +import com.microsoft.graph.admin.teams.policy.userassignments.UserAssignmentsRequestBuilder; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.teamsadministration.TeamsPolicyAssignment; +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 policy property of the microsoft.graph.teamsAdministration.teamsAdminRoot entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class PolicyRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to manage the userAssignments property of the microsoft.graph.teamsAdministration.teamsPolicyAssignment entity. + * @return a {@link UserAssignmentsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public UserAssignmentsRequestBuilder userAssignments() { + return new UserAssignmentsRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link PolicyRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public PolicyRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/admin/teams/policy{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link PolicyRequestBuilder} 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 PolicyRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/admin/teams/policy{?%24expand,%24select}", rawUrl); + } + /** + * Delete navigation property policy for admin + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete() { + delete(null); + } + /** + * Delete navigation property policy 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); + } + /** + * Represents a navigation property to the Teams policy assignment object. + * @return a {@link TeamsPolicyAssignment} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public TeamsPolicyAssignment get() { + return get(null); + } + /** + * Represents a navigation property to the Teams policy assignment object. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link TeamsPolicyAssignment} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public TeamsPolicyAssignment 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, TeamsPolicyAssignment::createFromDiscriminatorValue); + } + /** + * Provides operations to call the getPolicyId method. + * @param name Usage: name='{name}' + * @param type Usage: type='{type}' + * @return a {@link MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder} + */ + @jakarta.annotation.Nonnull + public MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder microsoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName(@jakarta.annotation.Nonnull final String name, @jakarta.annotation.Nonnull final String type) { + Objects.requireNonNull(name); + Objects.requireNonNull(type); + return new MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder(pathParameters, requestAdapter, name, type); + } + /** + * Update the navigation property policy in admin + * @param body The request body + * @return a {@link TeamsPolicyAssignment} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public TeamsPolicyAssignment patch(@jakarta.annotation.Nonnull final TeamsPolicyAssignment body) { + return patch(body, null); + } + /** + * Update the navigation property policy in admin + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link TeamsPolicyAssignment} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public TeamsPolicyAssignment patch(@jakarta.annotation.Nonnull final TeamsPolicyAssignment 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, TeamsPolicyAssignment::createFromDiscriminatorValue); + } + /** + * Delete navigation property policy for admin + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation() { + return toDeleteRequestInformation(null); + } + /** + * Delete navigation property policy 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, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Represents a navigation property to the Teams policy assignment object. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Represents a navigation property to the Teams policy assignment 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 policy in admin + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final TeamsPolicyAssignment body) { + return toPatchRequestInformation(body, null); + } + /** + * Update the navigation property policy 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 TeamsPolicyAssignment body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, 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 PolicyRequestBuilder} + */ + @jakarta.annotation.Nonnull + public PolicyRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new PolicyRequestBuilder(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 a navigation property to the Teams policy assignment 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/admin/teams/policy/microsoftgraphteamsadministrationgetpolicyidwithtypewithname/GetPolicyIdWithTypeWithNameGetResponse.java b/src/main/java/com/microsoft/graph/generated/admin/teams/policy/microsoftgraphteamsadministrationgetpolicyidwithtypewithname/GetPolicyIdWithTypeWithNameGetResponse.java new file mode 100644 index 00000000000..2d11745c150 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/admin/teams/policy/microsoftgraphteamsadministrationgetpolicyidwithtypewithname/GetPolicyIdWithTypeWithNameGetResponse.java @@ -0,0 +1,63 @@ +package com.microsoft.graph.admin.teams.policy.microsoftgraphteamsadministrationgetpolicyidwithtypewithname; + +import com.microsoft.graph.models.BaseCollectionPaginationCountResponse; +import com.microsoft.graph.models.teamsadministration.PolicyIdentifierDetail; +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 GetPolicyIdWithTypeWithNameGetResponse extends BaseCollectionPaginationCountResponse implements Parsable { + /** + * Instantiates a new {@link GetPolicyIdWithTypeWithNameGetResponse} and sets the default values. + */ + public GetPolicyIdWithTypeWithNameGetResponse() { + 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 GetPolicyIdWithTypeWithNameGetResponse} + */ + @jakarta.annotation.Nonnull + public static GetPolicyIdWithTypeWithNameGetResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new GetPolicyIdWithTypeWithNameGetResponse(); + } + /** + * 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(PolicyIdentifierDetail::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/admin/teams/policy/microsoftgraphteamsadministrationgetpolicyidwithtypewithname/MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/admin/teams/policy/microsoftgraphteamsadministrationgetpolicyidwithtypewithname/MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder.java new file mode 100644 index 00000000000..4a9a7657729 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/admin/teams/policy/microsoftgraphteamsadministrationgetpolicyidwithtypewithname/MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder.java @@ -0,0 +1,170 @@ +package com.microsoft.graph.admin.teams.policy.microsoftgraphteamsadministrationgetpolicyidwithtypewithname; + +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 getPolicyId method. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder} and sets the default values. + * @param name Usage: name='{name}' + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + * @param type Usage: type='{type}' + */ + public MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter, @jakarta.annotation.Nullable final String name, @jakarta.annotation.Nullable final String type) { + super(requestAdapter, "{+baseurl}/admin/teams/policy/microsoft.graph.teamsAdministration.getPolicyId(type='{type}',name='{name}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + this.pathParameters.put("name", name); + this.pathParameters.put("type", type); + } + /** + * Instantiates a new {@link MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder} 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 MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/admin/teams/policy/microsoft.graph.teamsAdministration.getPolicyId(type='{type}',name='{name}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * Get the policy ID for a given policy name and policy type within Teams administration. + * @return a {@link GetPolicyIdWithTypeWithNameGetResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public GetPolicyIdWithTypeWithNameGetResponse get() { + return get(null); + } + /** + * Get the policy ID for a given policy name and policy type within Teams administration. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link GetPolicyIdWithTypeWithNameGetResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public GetPolicyIdWithTypeWithNameGetResponse 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, GetPolicyIdWithTypeWithNameGetResponse::createFromDiscriminatorValue); + } + /** + * Get the policy ID for a given policy name and policy type within Teams administration. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get the policy ID for a given policy name and policy type within Teams administration. + * @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 MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder} + */ + @jakarta.annotation.Nonnull + public MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get the policy ID for a given policy name and policy type within Teams administration. + */ + @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/admin/teams/policy/userassignments/UserAssignmentsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/admin/teams/policy/userassignments/UserAssignmentsRequestBuilder.java new file mode 100644 index 00000000000..525308c344a --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/admin/teams/policy/userassignments/UserAssignmentsRequestBuilder.java @@ -0,0 +1,261 @@ +package com.microsoft.graph.admin.teams.policy.userassignments; + +import com.microsoft.graph.admin.teams.policy.userassignments.count.CountRequestBuilder; +import com.microsoft.graph.admin.teams.policy.userassignments.item.TeamsPolicyUserAssignmentItemRequestBuilder; +import com.microsoft.graph.admin.teams.policy.userassignments.microsoftgraphteamsadministrationassign.MicrosoftGraphTeamsAdministrationAssignRequestBuilder; +import com.microsoft.graph.admin.teams.policy.userassignments.microsoftgraphteamsadministrationunassign.MicrosoftGraphTeamsAdministrationUnassignRequestBuilder; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.teamsadministration.TeamsPolicyUserAssignment; +import com.microsoft.graph.models.teamsadministration.TeamsPolicyUserAssignmentCollectionResponse; +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 userAssignments property of the microsoft.graph.teamsAdministration.teamsPolicyAssignment entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class UserAssignmentsRequestBuilder 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 assign method. + * @return a {@link MicrosoftGraphTeamsAdministrationAssignRequestBuilder} + */ + @jakarta.annotation.Nonnull + public MicrosoftGraphTeamsAdministrationAssignRequestBuilder microsoftGraphTeamsAdministrationAssign() { + return new MicrosoftGraphTeamsAdministrationAssignRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to call the unassign method. + * @return a {@link MicrosoftGraphTeamsAdministrationUnassignRequestBuilder} + */ + @jakarta.annotation.Nonnull + public MicrosoftGraphTeamsAdministrationUnassignRequestBuilder microsoftGraphTeamsAdministrationUnassign() { + return new MicrosoftGraphTeamsAdministrationUnassignRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to manage the userAssignments property of the microsoft.graph.teamsAdministration.teamsPolicyAssignment entity. + * @param teamsPolicyUserAssignmentId The unique identifier of teamsPolicyUserAssignment + * @return a {@link TeamsPolicyUserAssignmentItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public TeamsPolicyUserAssignmentItemRequestBuilder byTeamsPolicyUserAssignmentId(@jakarta.annotation.Nonnull final String teamsPolicyUserAssignmentId) { + Objects.requireNonNull(teamsPolicyUserAssignmentId); + final HashMap urlTplParams = new HashMap(this.pathParameters); + urlTplParams.put("teamsPolicyUserAssignment%2Did", teamsPolicyUserAssignmentId); + return new TeamsPolicyUserAssignmentItemRequestBuilder(urlTplParams, requestAdapter); + } + /** + * Instantiates a new {@link UserAssignmentsRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public UserAssignmentsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/admin/teams/policy/userAssignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link UserAssignmentsRequestBuilder} 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 UserAssignmentsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/admin/teams/policy/userAssignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * The collection of user policy assignments. + * @return a {@link TeamsPolicyUserAssignmentCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public TeamsPolicyUserAssignmentCollectionResponse get() { + return get(null); + } + /** + * The collection of user policy assignments. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link TeamsPolicyUserAssignmentCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public TeamsPolicyUserAssignmentCollectionResponse 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, TeamsPolicyUserAssignmentCollectionResponse::createFromDiscriminatorValue); + } + /** + * Create new navigation property to userAssignments for admin + * @param body The request body + * @return a {@link TeamsPolicyUserAssignment} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public TeamsPolicyUserAssignment post(@jakarta.annotation.Nonnull final TeamsPolicyUserAssignment body) { + return post(body, null); + } + /** + * Create new navigation property to userAssignments for admin + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link TeamsPolicyUserAssignment} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public TeamsPolicyUserAssignment post(@jakarta.annotation.Nonnull final TeamsPolicyUserAssignment 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, TeamsPolicyUserAssignment::createFromDiscriminatorValue); + } + /** + * The collection of user policy assignments. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * The collection of user policy assignments. + * @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 userAssignments for admin + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final TeamsPolicyUserAssignment body) { + return toPostRequestInformation(body, null); + } + /** + * Create new navigation property to userAssignments for 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 toPostRequestInformation(@jakarta.annotation.Nonnull final TeamsPolicyUserAssignment 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 UserAssignmentsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public UserAssignmentsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new UserAssignmentsRequestBuilder(rawUrl, requestAdapter); + } + /** + * The collection of user policy assignments. + */ + @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/admin/teams/policy/userassignments/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/admin/teams/policy/userassignments/count/CountRequestBuilder.java new file mode 100644 index 00000000000..65545fc43d3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/admin/teams/policy/userassignments/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +package com.microsoft.graph.admin.teams.policy.userassignments.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}/admin/teams/policy/userAssignments/$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}/admin/teams/policy/userAssignments/$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/admin/teams/policy/userassignments/item/TeamsPolicyUserAssignmentItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/admin/teams/policy/userassignments/item/TeamsPolicyUserAssignmentItemRequestBuilder.java new file mode 100644 index 00000000000..9688c1613b1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/admin/teams/policy/userassignments/item/TeamsPolicyUserAssignmentItemRequestBuilder.java @@ -0,0 +1,228 @@ +package com.microsoft.graph.admin.teams.policy.userassignments.item; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.teamsadministration.TeamsPolicyUserAssignment; +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 userAssignments property of the microsoft.graph.teamsAdministration.teamsPolicyAssignment entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class TeamsPolicyUserAssignmentItemRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link TeamsPolicyUserAssignmentItemRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public TeamsPolicyUserAssignmentItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/admin/teams/policy/userAssignments/{teamsPolicyUserAssignment%2Did}{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link TeamsPolicyUserAssignmentItemRequestBuilder} 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 TeamsPolicyUserAssignmentItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/admin/teams/policy/userAssignments/{teamsPolicyUserAssignment%2Did}{?%24expand,%24select}", rawUrl); + } + /** + * Delete navigation property userAssignments for admin + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete() { + delete(null); + } + /** + * Delete navigation property userAssignments 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); + } + /** + * The collection of user policy assignments. + * @return a {@link TeamsPolicyUserAssignment} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public TeamsPolicyUserAssignment get() { + return get(null); + } + /** + * The collection of user policy assignments. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link TeamsPolicyUserAssignment} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public TeamsPolicyUserAssignment 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, TeamsPolicyUserAssignment::createFromDiscriminatorValue); + } + /** + * Update the navigation property userAssignments in admin + * @param body The request body + * @return a {@link TeamsPolicyUserAssignment} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public TeamsPolicyUserAssignment patch(@jakarta.annotation.Nonnull final TeamsPolicyUserAssignment body) { + return patch(body, null); + } + /** + * Update the navigation property userAssignments in admin + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link TeamsPolicyUserAssignment} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public TeamsPolicyUserAssignment patch(@jakarta.annotation.Nonnull final TeamsPolicyUserAssignment 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, TeamsPolicyUserAssignment::createFromDiscriminatorValue); + } + /** + * Delete navigation property userAssignments for admin + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation() { + return toDeleteRequestInformation(null); + } + /** + * Delete navigation property userAssignments 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, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * The collection of user policy assignments. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * The collection of user policy assignments. + * @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 userAssignments in admin + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final TeamsPolicyUserAssignment body) { + return toPatchRequestInformation(body, null); + } + /** + * Update the navigation property userAssignments 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 TeamsPolicyUserAssignment body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, 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 TeamsPolicyUserAssignmentItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public TeamsPolicyUserAssignmentItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new TeamsPolicyUserAssignmentItemRequestBuilder(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 collection of user policy assignments. + */ + @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/teams/policy/userassignments/microsoftgraphteamsadministrationassign/AssignPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/admin/teams/policy/userassignments/microsoftgraphteamsadministrationassign/AssignPostRequestBody.java new file mode 100644 index 00000000000..9960882ef1e --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/admin/teams/policy/userassignments/microsoftgraphteamsadministrationassign/AssignPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.admin.teams.policy.userassignments.microsoftgraphteamsadministrationassign; + +import com.microsoft.graph.models.teamsadministration.TeamsPolicyUserAssignment; +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 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(TeamsPolicyUserAssignment::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/admin/teams/policy/userassignments/microsoftgraphteamsadministrationassign/MicrosoftGraphTeamsAdministrationAssignRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/admin/teams/policy/userassignments/microsoftgraphteamsadministrationassign/MicrosoftGraphTeamsAdministrationAssignRequestBuilder.java new file mode 100644 index 00000000000..283f32226c3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/admin/teams/policy/userassignments/microsoftgraphteamsadministrationassign/MicrosoftGraphTeamsAdministrationAssignRequestBuilder.java @@ -0,0 +1,100 @@ +package com.microsoft.graph.admin.teams.policy.userassignments.microsoftgraphteamsadministrationassign; + +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 MicrosoftGraphTeamsAdministrationAssignRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link MicrosoftGraphTeamsAdministrationAssignRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public MicrosoftGraphTeamsAdministrationAssignRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/admin/teams/policy/userAssignments/microsoft.graph.teamsAdministration.assign", pathParameters); + } + /** + * Instantiates a new {@link MicrosoftGraphTeamsAdministrationAssignRequestBuilder} 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 MicrosoftGraphTeamsAdministrationAssignRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/admin/teams/policy/userAssignments/microsoft.graph.teamsAdministration.assign", rawUrl); + } + /** + * Assign a Teams policy to a user using the user ID, policy type, and policy ID. + * @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 Teams policy to a user using the user ID, policy type, and policy ID. + * @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 Teams policy to a user using the user ID, policy type, and policy ID. + * @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 Teams policy to a user using the user ID, policy type, and policy ID. + * @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 MicrosoftGraphTeamsAdministrationAssignRequestBuilder} + */ + @jakarta.annotation.Nonnull + public MicrosoftGraphTeamsAdministrationAssignRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new MicrosoftGraphTeamsAdministrationAssignRequestBuilder(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/admin/teams/policy/userassignments/microsoftgraphteamsadministrationunassign/MicrosoftGraphTeamsAdministrationUnassignRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/admin/teams/policy/userassignments/microsoftgraphteamsadministrationunassign/MicrosoftGraphTeamsAdministrationUnassignRequestBuilder.java new file mode 100644 index 00000000000..4590866c9be --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/admin/teams/policy/userassignments/microsoftgraphteamsadministrationunassign/MicrosoftGraphTeamsAdministrationUnassignRequestBuilder.java @@ -0,0 +1,100 @@ +package com.microsoft.graph.admin.teams.policy.userassignments.microsoftgraphteamsadministrationunassign; + +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 unassign method. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class MicrosoftGraphTeamsAdministrationUnassignRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link MicrosoftGraphTeamsAdministrationUnassignRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public MicrosoftGraphTeamsAdministrationUnassignRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/admin/teams/policy/userAssignments/microsoft.graph.teamsAdministration.unassign", pathParameters); + } + /** + * Instantiates a new {@link MicrosoftGraphTeamsAdministrationUnassignRequestBuilder} 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 MicrosoftGraphTeamsAdministrationUnassignRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/admin/teams/policy/userAssignments/microsoft.graph.teamsAdministration.unassign", rawUrl); + } + /** + * Unassign a Teams policy from a user using the user ID and policy type. + * @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 UnassignPostRequestBody body) { + post(body, null); + } + /** + * Unassign a Teams policy from a user using the user ID and policy type. + * @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 UnassignPostRequestBody 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); + } + /** + * Unassign a Teams policy from a user using the user ID and policy type. + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final UnassignPostRequestBody body) { + return toPostRequestInformation(body, null); + } + /** + * Unassign a Teams policy from a user using the user ID and policy type. + * @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 UnassignPostRequestBody 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 MicrosoftGraphTeamsAdministrationUnassignRequestBuilder} + */ + @jakarta.annotation.Nonnull + public MicrosoftGraphTeamsAdministrationUnassignRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new MicrosoftGraphTeamsAdministrationUnassignRequestBuilder(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/admin/teams/policy/userassignments/microsoftgraphteamsadministrationunassign/UnassignPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/admin/teams/policy/userassignments/microsoftgraphteamsadministrationunassign/UnassignPostRequestBody.java new file mode 100644 index 00000000000..2423c4822c3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/admin/teams/policy/userassignments/microsoftgraphteamsadministrationunassign/UnassignPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.admin.teams.policy.userassignments.microsoftgraphteamsadministrationunassign; + +import com.microsoft.graph.models.teamsadministration.TeamsPolicyUserAssignment; +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 UnassignPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link UnassignPostRequestBody} and sets the default values. + */ + public UnassignPostRequestBody() { + 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 UnassignPostRequestBody} + */ + @jakarta.annotation.Nonnull + public static UnassignPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new UnassignPostRequestBody(); + } + /** + * 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(TeamsPolicyUserAssignment::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/kiota-dom-export.txt b/src/main/java/com/microsoft/graph/generated/kiota-dom-export.txt index 617000cf520..fdcf88405e9 100644 --- a/src/main/java/com/microsoft/graph/generated/kiota-dom-export.txt +++ b/src/main/java/com/microsoft/graph/generated/kiota-dom-export.txt @@ -1162,6 +1162,168 @@ com.microsoft.graph.admin.sharepoint.SharepointRequestBuilder::|public|toGetRequ com.microsoft.graph.admin.sharepoint.SharepointRequestBuilder::|public|toPatchRequestInformation(body:Sharepoint):RequestInformation com.microsoft.graph.admin.sharepoint.SharepointRequestBuilder::|public|toPatchRequestInformation(body:Sharepoint; requestConfiguration?:java.util.function.Consumer):RequestInformation com.microsoft.graph.admin.sharepoint.SharepointRequestBuilder::|public|withUrl(rawUrl:String):SharepointRequestBuilder +com.microsoft.graph.admin.teams.policy.microsoftgraphteamsadministrationgetpolicyidwithtypewithname.GetPolicyIdWithTypeWithNameGetResponse-->BaseCollectionPaginationCountResponse +com.microsoft.graph.admin.teams.policy.microsoftgraphteamsadministrationgetpolicyidwithtypewithname.GetPolicyIdWithTypeWithNameGetResponse::|public|constructor():void +com.microsoft.graph.admin.teams.policy.microsoftgraphteamsadministrationgetpolicyidwithtypewithname.GetPolicyIdWithTypeWithNameGetResponse::|public|getFieldDeserializers():Map> +com.microsoft.graph.admin.teams.policy.microsoftgraphteamsadministrationgetpolicyidwithtypewithname.GetPolicyIdWithTypeWithNameGetResponse::|public|getValue():java.util.List +com.microsoft.graph.admin.teams.policy.microsoftgraphteamsadministrationgetpolicyidwithtypewithname.GetPolicyIdWithTypeWithNameGetResponse::|public|serialize(writer:SerializationWriter):Void +com.microsoft.graph.admin.teams.policy.microsoftgraphteamsadministrationgetpolicyidwithtypewithname.GetPolicyIdWithTypeWithNameGetResponse::|public|setValue(value?:java.util.List):void +com.microsoft.graph.admin.teams.policy.microsoftgraphteamsadministrationgetpolicyidwithtypewithname.GetPolicyIdWithTypeWithNameGetResponse::|static|public|createFromDiscriminatorValue(parseNode:ParseNode):GetPolicyIdWithTypeWithNameGetResponse +com.microsoft.graph.admin.teams.policy.microsoftgraphteamsadministrationgetpolicyidwithtypewithname.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder-->BaseRequestBuilder +com.microsoft.graph.admin.teams.policy.microsoftgraphteamsadministrationgetpolicyidwithtypewithname.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder.GetQueryParameters::|public|count:Boolean +com.microsoft.graph.admin.teams.policy.microsoftgraphteamsadministrationgetpolicyidwithtypewithname.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder.GetQueryParameters::|public|expand:String[] +com.microsoft.graph.admin.teams.policy.microsoftgraphteamsadministrationgetpolicyidwithtypewithname.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder.GetQueryParameters::|public|filter:String +com.microsoft.graph.admin.teams.policy.microsoftgraphteamsadministrationgetpolicyidwithtypewithname.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder.GetQueryParameters::|public|orderby:String[] +com.microsoft.graph.admin.teams.policy.microsoftgraphteamsadministrationgetpolicyidwithtypewithname.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder.GetQueryParameters::|public|search:String +com.microsoft.graph.admin.teams.policy.microsoftgraphteamsadministrationgetpolicyidwithtypewithname.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder.GetQueryParameters::|public|select:String[] +com.microsoft.graph.admin.teams.policy.microsoftgraphteamsadministrationgetpolicyidwithtypewithname.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder.GetQueryParameters::|public|skip:Integer +com.microsoft.graph.admin.teams.policy.microsoftgraphteamsadministrationgetpolicyidwithtypewithname.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder.GetQueryParameters::|public|top:Integer +com.microsoft.graph.admin.teams.policy.microsoftgraphteamsadministrationgetpolicyidwithtypewithname.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder.GetQueryParameters::|public|toQueryParameters():Map +com.microsoft.graph.admin.teams.policy.microsoftgraphteamsadministrationgetpolicyidwithtypewithname.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder.GetQueryParameters~~>QueryParameters +com.microsoft.graph.admin.teams.policy.microsoftgraphteamsadministrationgetpolicyidwithtypewithname.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder.GetRequestConfiguration-->BaseRequestConfiguration +com.microsoft.graph.admin.teams.policy.microsoftgraphteamsadministrationgetpolicyidwithtypewithname.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder.GetRequestConfiguration::|public|queryParameters:GetQueryParameters +com.microsoft.graph.admin.teams.policy.microsoftgraphteamsadministrationgetpolicyidwithtypewithname.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder::|public|constructor(pathParameters:HashMap; requestAdapter:RequestAdapter; name?:String; type?:String):Void +com.microsoft.graph.admin.teams.policy.microsoftgraphteamsadministrationgetpolicyidwithtypewithname.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder::|public|constructor(rawUrl:String; requestAdapter:RequestAdapter):Void +com.microsoft.graph.admin.teams.policy.microsoftgraphteamsadministrationgetpolicyidwithtypewithname.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder::|public|get():GetPolicyIdWithTypeWithNameGetResponse +com.microsoft.graph.admin.teams.policy.microsoftgraphteamsadministrationgetpolicyidwithtypewithname.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder::|public|get(requestConfiguration?:java.util.function.Consumer):GetPolicyIdWithTypeWithNameGetResponse +com.microsoft.graph.admin.teams.policy.microsoftgraphteamsadministrationgetpolicyidwithtypewithname.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder::|public|toGetRequestInformation():RequestInformation +com.microsoft.graph.admin.teams.policy.microsoftgraphteamsadministrationgetpolicyidwithtypewithname.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder::|public|toGetRequestInformation(requestConfiguration?:java.util.function.Consumer):RequestInformation +com.microsoft.graph.admin.teams.policy.microsoftgraphteamsadministrationgetpolicyidwithtypewithname.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder::|public|withUrl(rawUrl:String):MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder +com.microsoft.graph.admin.teams.policy.PolicyRequestBuilder-->BaseRequestBuilder +com.microsoft.graph.admin.teams.policy.PolicyRequestBuilder.DeleteRequestConfiguration-->BaseRequestConfiguration +com.microsoft.graph.admin.teams.policy.PolicyRequestBuilder.GetQueryParameters::|public|expand:String[] +com.microsoft.graph.admin.teams.policy.PolicyRequestBuilder.GetQueryParameters::|public|select:String[] +com.microsoft.graph.admin.teams.policy.PolicyRequestBuilder.GetQueryParameters::|public|toQueryParameters():Map +com.microsoft.graph.admin.teams.policy.PolicyRequestBuilder.GetQueryParameters~~>QueryParameters +com.microsoft.graph.admin.teams.policy.PolicyRequestBuilder.GetRequestConfiguration-->BaseRequestConfiguration +com.microsoft.graph.admin.teams.policy.PolicyRequestBuilder.GetRequestConfiguration::|public|queryParameters:GetQueryParameters +com.microsoft.graph.admin.teams.policy.PolicyRequestBuilder.PatchRequestConfiguration-->BaseRequestConfiguration +com.microsoft.graph.admin.teams.policy.PolicyRequestBuilder::|public|constructor(pathParameters:HashMap; requestAdapter:RequestAdapter):Void +com.microsoft.graph.admin.teams.policy.PolicyRequestBuilder::|public|constructor(rawUrl:String; requestAdapter:RequestAdapter):Void +com.microsoft.graph.admin.teams.policy.PolicyRequestBuilder::|public|delete():Void +com.microsoft.graph.admin.teams.policy.PolicyRequestBuilder::|public|delete(requestConfiguration?:java.util.function.Consumer):Void +com.microsoft.graph.admin.teams.policy.PolicyRequestBuilder::|public|get():TeamsPolicyAssignment +com.microsoft.graph.admin.teams.policy.PolicyRequestBuilder::|public|get(requestConfiguration?:java.util.function.Consumer):TeamsPolicyAssignment +com.microsoft.graph.admin.teams.policy.PolicyRequestBuilder::|public|microsoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName(name:String; type:String):MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder +com.microsoft.graph.admin.teams.policy.PolicyRequestBuilder::|public|patch(body:TeamsPolicyAssignment):TeamsPolicyAssignment +com.microsoft.graph.admin.teams.policy.PolicyRequestBuilder::|public|patch(body:TeamsPolicyAssignment; requestConfiguration?:java.util.function.Consumer):TeamsPolicyAssignment +com.microsoft.graph.admin.teams.policy.PolicyRequestBuilder::|public|toDeleteRequestInformation():RequestInformation +com.microsoft.graph.admin.teams.policy.PolicyRequestBuilder::|public|toDeleteRequestInformation(requestConfiguration?:java.util.function.Consumer):RequestInformation +com.microsoft.graph.admin.teams.policy.PolicyRequestBuilder::|public|toGetRequestInformation():RequestInformation +com.microsoft.graph.admin.teams.policy.PolicyRequestBuilder::|public|toGetRequestInformation(requestConfiguration?:java.util.function.Consumer):RequestInformation +com.microsoft.graph.admin.teams.policy.PolicyRequestBuilder::|public|toPatchRequestInformation(body:TeamsPolicyAssignment):RequestInformation +com.microsoft.graph.admin.teams.policy.PolicyRequestBuilder::|public|toPatchRequestInformation(body:TeamsPolicyAssignment; requestConfiguration?:java.util.function.Consumer):RequestInformation +com.microsoft.graph.admin.teams.policy.PolicyRequestBuilder::|public|userAssignments:UserAssignmentsRequestBuilder +com.microsoft.graph.admin.teams.policy.PolicyRequestBuilder::|public|withUrl(rawUrl:String):PolicyRequestBuilder +com.microsoft.graph.admin.teams.policy.userassignments.count.CountRequestBuilder-->BaseRequestBuilder +com.microsoft.graph.admin.teams.policy.userassignments.count.CountRequestBuilder.GetQueryParameters::|public|filter:String +com.microsoft.graph.admin.teams.policy.userassignments.count.CountRequestBuilder.GetQueryParameters::|public|search:String +com.microsoft.graph.admin.teams.policy.userassignments.count.CountRequestBuilder.GetQueryParameters::|public|toQueryParameters():Map +com.microsoft.graph.admin.teams.policy.userassignments.count.CountRequestBuilder.GetQueryParameters~~>QueryParameters +com.microsoft.graph.admin.teams.policy.userassignments.count.CountRequestBuilder.GetRequestConfiguration-->BaseRequestConfiguration +com.microsoft.graph.admin.teams.policy.userassignments.count.CountRequestBuilder.GetRequestConfiguration::|public|queryParameters:GetQueryParameters +com.microsoft.graph.admin.teams.policy.userassignments.count.CountRequestBuilder::|public|constructor(pathParameters:HashMap; requestAdapter:RequestAdapter):Void +com.microsoft.graph.admin.teams.policy.userassignments.count.CountRequestBuilder::|public|constructor(rawUrl:String; requestAdapter:RequestAdapter):Void +com.microsoft.graph.admin.teams.policy.userassignments.count.CountRequestBuilder::|public|get():Integer +com.microsoft.graph.admin.teams.policy.userassignments.count.CountRequestBuilder::|public|get(requestConfiguration?:java.util.function.Consumer):Integer +com.microsoft.graph.admin.teams.policy.userassignments.count.CountRequestBuilder::|public|toGetRequestInformation():RequestInformation +com.microsoft.graph.admin.teams.policy.userassignments.count.CountRequestBuilder::|public|toGetRequestInformation(requestConfiguration?:java.util.function.Consumer):RequestInformation +com.microsoft.graph.admin.teams.policy.userassignments.count.CountRequestBuilder::|public|withUrl(rawUrl:String):CountRequestBuilder +com.microsoft.graph.admin.teams.policy.userassignments.item.TeamsPolicyUserAssignmentItemRequestBuilder-->BaseRequestBuilder +com.microsoft.graph.admin.teams.policy.userassignments.item.TeamsPolicyUserAssignmentItemRequestBuilder.DeleteRequestConfiguration-->BaseRequestConfiguration +com.microsoft.graph.admin.teams.policy.userassignments.item.TeamsPolicyUserAssignmentItemRequestBuilder.GetQueryParameters::|public|expand:String[] +com.microsoft.graph.admin.teams.policy.userassignments.item.TeamsPolicyUserAssignmentItemRequestBuilder.GetQueryParameters::|public|select:String[] +com.microsoft.graph.admin.teams.policy.userassignments.item.TeamsPolicyUserAssignmentItemRequestBuilder.GetQueryParameters::|public|toQueryParameters():Map +com.microsoft.graph.admin.teams.policy.userassignments.item.TeamsPolicyUserAssignmentItemRequestBuilder.GetQueryParameters~~>QueryParameters +com.microsoft.graph.admin.teams.policy.userassignments.item.TeamsPolicyUserAssignmentItemRequestBuilder.GetRequestConfiguration-->BaseRequestConfiguration +com.microsoft.graph.admin.teams.policy.userassignments.item.TeamsPolicyUserAssignmentItemRequestBuilder.GetRequestConfiguration::|public|queryParameters:GetQueryParameters +com.microsoft.graph.admin.teams.policy.userassignments.item.TeamsPolicyUserAssignmentItemRequestBuilder.PatchRequestConfiguration-->BaseRequestConfiguration +com.microsoft.graph.admin.teams.policy.userassignments.item.TeamsPolicyUserAssignmentItemRequestBuilder::|public|constructor(pathParameters:HashMap; requestAdapter:RequestAdapter):Void +com.microsoft.graph.admin.teams.policy.userassignments.item.TeamsPolicyUserAssignmentItemRequestBuilder::|public|constructor(rawUrl:String; requestAdapter:RequestAdapter):Void +com.microsoft.graph.admin.teams.policy.userassignments.item.TeamsPolicyUserAssignmentItemRequestBuilder::|public|delete():Void +com.microsoft.graph.admin.teams.policy.userassignments.item.TeamsPolicyUserAssignmentItemRequestBuilder::|public|delete(requestConfiguration?:java.util.function.Consumer):Void +com.microsoft.graph.admin.teams.policy.userassignments.item.TeamsPolicyUserAssignmentItemRequestBuilder::|public|get():TeamsPolicyUserAssignment +com.microsoft.graph.admin.teams.policy.userassignments.item.TeamsPolicyUserAssignmentItemRequestBuilder::|public|get(requestConfiguration?:java.util.function.Consumer):TeamsPolicyUserAssignment +com.microsoft.graph.admin.teams.policy.userassignments.item.TeamsPolicyUserAssignmentItemRequestBuilder::|public|patch(body:TeamsPolicyUserAssignment):TeamsPolicyUserAssignment +com.microsoft.graph.admin.teams.policy.userassignments.item.TeamsPolicyUserAssignmentItemRequestBuilder::|public|patch(body:TeamsPolicyUserAssignment; requestConfiguration?:java.util.function.Consumer):TeamsPolicyUserAssignment +com.microsoft.graph.admin.teams.policy.userassignments.item.TeamsPolicyUserAssignmentItemRequestBuilder::|public|toDeleteRequestInformation():RequestInformation +com.microsoft.graph.admin.teams.policy.userassignments.item.TeamsPolicyUserAssignmentItemRequestBuilder::|public|toDeleteRequestInformation(requestConfiguration?:java.util.function.Consumer):RequestInformation +com.microsoft.graph.admin.teams.policy.userassignments.item.TeamsPolicyUserAssignmentItemRequestBuilder::|public|toGetRequestInformation():RequestInformation +com.microsoft.graph.admin.teams.policy.userassignments.item.TeamsPolicyUserAssignmentItemRequestBuilder::|public|toGetRequestInformation(requestConfiguration?:java.util.function.Consumer):RequestInformation +com.microsoft.graph.admin.teams.policy.userassignments.item.TeamsPolicyUserAssignmentItemRequestBuilder::|public|toPatchRequestInformation(body:TeamsPolicyUserAssignment):RequestInformation +com.microsoft.graph.admin.teams.policy.userassignments.item.TeamsPolicyUserAssignmentItemRequestBuilder::|public|toPatchRequestInformation(body:TeamsPolicyUserAssignment; requestConfiguration?:java.util.function.Consumer):RequestInformation +com.microsoft.graph.admin.teams.policy.userassignments.item.TeamsPolicyUserAssignmentItemRequestBuilder::|public|withUrl(rawUrl:String):TeamsPolicyUserAssignmentItemRequestBuilder +com.microsoft.graph.admin.teams.policy.userassignments.microsoftgraphteamsadministrationassign.AssignPostRequestBody::|protected|backingStore:BackingStore +com.microsoft.graph.admin.teams.policy.userassignments.microsoftgraphteamsadministrationassign.AssignPostRequestBody::|public|constructor():void +com.microsoft.graph.admin.teams.policy.userassignments.microsoftgraphteamsadministrationassign.AssignPostRequestBody::|public|getAdditionalData():Map +com.microsoft.graph.admin.teams.policy.userassignments.microsoftgraphteamsadministrationassign.AssignPostRequestBody::|public|getBackingStore():BackingStore +com.microsoft.graph.admin.teams.policy.userassignments.microsoftgraphteamsadministrationassign.AssignPostRequestBody::|public|getFieldDeserializers():Map> +com.microsoft.graph.admin.teams.policy.userassignments.microsoftgraphteamsadministrationassign.AssignPostRequestBody::|public|getValue():java.util.List +com.microsoft.graph.admin.teams.policy.userassignments.microsoftgraphteamsadministrationassign.AssignPostRequestBody::|public|serialize(writer:SerializationWriter):Void +com.microsoft.graph.admin.teams.policy.userassignments.microsoftgraphteamsadministrationassign.AssignPostRequestBody::|public|setAdditionalData(value?:Map):void +com.microsoft.graph.admin.teams.policy.userassignments.microsoftgraphteamsadministrationassign.AssignPostRequestBody::|public|setBackingStore(value:BackingStore):void +com.microsoft.graph.admin.teams.policy.userassignments.microsoftgraphteamsadministrationassign.AssignPostRequestBody::|public|setValue(value?:java.util.List):void +com.microsoft.graph.admin.teams.policy.userassignments.microsoftgraphteamsadministrationassign.AssignPostRequestBody::|static|public|createFromDiscriminatorValue(parseNode:ParseNode):AssignPostRequestBody +com.microsoft.graph.admin.teams.policy.userassignments.microsoftgraphteamsadministrationassign.AssignPostRequestBody~~>AdditionalDataHolder; BackedModel; Parsable +com.microsoft.graph.admin.teams.policy.userassignments.microsoftgraphteamsadministrationassign.MicrosoftGraphTeamsAdministrationAssignRequestBuilder-->BaseRequestBuilder +com.microsoft.graph.admin.teams.policy.userassignments.microsoftgraphteamsadministrationassign.MicrosoftGraphTeamsAdministrationAssignRequestBuilder.PostRequestConfiguration-->BaseRequestConfiguration +com.microsoft.graph.admin.teams.policy.userassignments.microsoftgraphteamsadministrationassign.MicrosoftGraphTeamsAdministrationAssignRequestBuilder::|public|constructor(pathParameters:HashMap; requestAdapter:RequestAdapter):Void +com.microsoft.graph.admin.teams.policy.userassignments.microsoftgraphteamsadministrationassign.MicrosoftGraphTeamsAdministrationAssignRequestBuilder::|public|constructor(rawUrl:String; requestAdapter:RequestAdapter):Void +com.microsoft.graph.admin.teams.policy.userassignments.microsoftgraphteamsadministrationassign.MicrosoftGraphTeamsAdministrationAssignRequestBuilder::|public|post(body:AssignPostRequestBody):Void +com.microsoft.graph.admin.teams.policy.userassignments.microsoftgraphteamsadministrationassign.MicrosoftGraphTeamsAdministrationAssignRequestBuilder::|public|post(body:AssignPostRequestBody; requestConfiguration?:java.util.function.Consumer):Void +com.microsoft.graph.admin.teams.policy.userassignments.microsoftgraphteamsadministrationassign.MicrosoftGraphTeamsAdministrationAssignRequestBuilder::|public|toPostRequestInformation(body:AssignPostRequestBody):RequestInformation +com.microsoft.graph.admin.teams.policy.userassignments.microsoftgraphteamsadministrationassign.MicrosoftGraphTeamsAdministrationAssignRequestBuilder::|public|toPostRequestInformation(body:AssignPostRequestBody; requestConfiguration?:java.util.function.Consumer):RequestInformation +com.microsoft.graph.admin.teams.policy.userassignments.microsoftgraphteamsadministrationassign.MicrosoftGraphTeamsAdministrationAssignRequestBuilder::|public|withUrl(rawUrl:String):MicrosoftGraphTeamsAdministrationAssignRequestBuilder +com.microsoft.graph.admin.teams.policy.userassignments.microsoftgraphteamsadministrationunassign.MicrosoftGraphTeamsAdministrationUnassignRequestBuilder-->BaseRequestBuilder +com.microsoft.graph.admin.teams.policy.userassignments.microsoftgraphteamsadministrationunassign.MicrosoftGraphTeamsAdministrationUnassignRequestBuilder.PostRequestConfiguration-->BaseRequestConfiguration +com.microsoft.graph.admin.teams.policy.userassignments.microsoftgraphteamsadministrationunassign.MicrosoftGraphTeamsAdministrationUnassignRequestBuilder::|public|constructor(pathParameters:HashMap; requestAdapter:RequestAdapter):Void +com.microsoft.graph.admin.teams.policy.userassignments.microsoftgraphteamsadministrationunassign.MicrosoftGraphTeamsAdministrationUnassignRequestBuilder::|public|constructor(rawUrl:String; requestAdapter:RequestAdapter):Void +com.microsoft.graph.admin.teams.policy.userassignments.microsoftgraphteamsadministrationunassign.MicrosoftGraphTeamsAdministrationUnassignRequestBuilder::|public|post(body:UnassignPostRequestBody):Void +com.microsoft.graph.admin.teams.policy.userassignments.microsoftgraphteamsadministrationunassign.MicrosoftGraphTeamsAdministrationUnassignRequestBuilder::|public|post(body:UnassignPostRequestBody; requestConfiguration?:java.util.function.Consumer):Void +com.microsoft.graph.admin.teams.policy.userassignments.microsoftgraphteamsadministrationunassign.MicrosoftGraphTeamsAdministrationUnassignRequestBuilder::|public|toPostRequestInformation(body:UnassignPostRequestBody):RequestInformation +com.microsoft.graph.admin.teams.policy.userassignments.microsoftgraphteamsadministrationunassign.MicrosoftGraphTeamsAdministrationUnassignRequestBuilder::|public|toPostRequestInformation(body:UnassignPostRequestBody; requestConfiguration?:java.util.function.Consumer):RequestInformation +com.microsoft.graph.admin.teams.policy.userassignments.microsoftgraphteamsadministrationunassign.MicrosoftGraphTeamsAdministrationUnassignRequestBuilder::|public|withUrl(rawUrl:String):MicrosoftGraphTeamsAdministrationUnassignRequestBuilder +com.microsoft.graph.admin.teams.policy.userassignments.microsoftgraphteamsadministrationunassign.UnassignPostRequestBody::|protected|backingStore:BackingStore +com.microsoft.graph.admin.teams.policy.userassignments.microsoftgraphteamsadministrationunassign.UnassignPostRequestBody::|public|constructor():void +com.microsoft.graph.admin.teams.policy.userassignments.microsoftgraphteamsadministrationunassign.UnassignPostRequestBody::|public|getAdditionalData():Map +com.microsoft.graph.admin.teams.policy.userassignments.microsoftgraphteamsadministrationunassign.UnassignPostRequestBody::|public|getBackingStore():BackingStore +com.microsoft.graph.admin.teams.policy.userassignments.microsoftgraphteamsadministrationunassign.UnassignPostRequestBody::|public|getFieldDeserializers():Map> +com.microsoft.graph.admin.teams.policy.userassignments.microsoftgraphteamsadministrationunassign.UnassignPostRequestBody::|public|getValue():java.util.List +com.microsoft.graph.admin.teams.policy.userassignments.microsoftgraphteamsadministrationunassign.UnassignPostRequestBody::|public|serialize(writer:SerializationWriter):Void +com.microsoft.graph.admin.teams.policy.userassignments.microsoftgraphteamsadministrationunassign.UnassignPostRequestBody::|public|setAdditionalData(value?:Map):void +com.microsoft.graph.admin.teams.policy.userassignments.microsoftgraphteamsadministrationunassign.UnassignPostRequestBody::|public|setBackingStore(value:BackingStore):void +com.microsoft.graph.admin.teams.policy.userassignments.microsoftgraphteamsadministrationunassign.UnassignPostRequestBody::|public|setValue(value?:java.util.List):void +com.microsoft.graph.admin.teams.policy.userassignments.microsoftgraphteamsadministrationunassign.UnassignPostRequestBody::|static|public|createFromDiscriminatorValue(parseNode:ParseNode):UnassignPostRequestBody +com.microsoft.graph.admin.teams.policy.userassignments.microsoftgraphteamsadministrationunassign.UnassignPostRequestBody~~>AdditionalDataHolder; BackedModel; Parsable +com.microsoft.graph.admin.teams.policy.userassignments.UserAssignmentsRequestBuilder-->BaseRequestBuilder +com.microsoft.graph.admin.teams.policy.userassignments.UserAssignmentsRequestBuilder.GetQueryParameters::|public|count:Boolean +com.microsoft.graph.admin.teams.policy.userassignments.UserAssignmentsRequestBuilder.GetQueryParameters::|public|expand:String[] +com.microsoft.graph.admin.teams.policy.userassignments.UserAssignmentsRequestBuilder.GetQueryParameters::|public|filter:String +com.microsoft.graph.admin.teams.policy.userassignments.UserAssignmentsRequestBuilder.GetQueryParameters::|public|orderby:String[] +com.microsoft.graph.admin.teams.policy.userassignments.UserAssignmentsRequestBuilder.GetQueryParameters::|public|search:String +com.microsoft.graph.admin.teams.policy.userassignments.UserAssignmentsRequestBuilder.GetQueryParameters::|public|select:String[] +com.microsoft.graph.admin.teams.policy.userassignments.UserAssignmentsRequestBuilder.GetQueryParameters::|public|skip:Integer +com.microsoft.graph.admin.teams.policy.userassignments.UserAssignmentsRequestBuilder.GetQueryParameters::|public|top:Integer +com.microsoft.graph.admin.teams.policy.userassignments.UserAssignmentsRequestBuilder.GetQueryParameters::|public|toQueryParameters():Map +com.microsoft.graph.admin.teams.policy.userassignments.UserAssignmentsRequestBuilder.GetQueryParameters~~>QueryParameters +com.microsoft.graph.admin.teams.policy.userassignments.UserAssignmentsRequestBuilder.GetRequestConfiguration-->BaseRequestConfiguration +com.microsoft.graph.admin.teams.policy.userassignments.UserAssignmentsRequestBuilder.GetRequestConfiguration::|public|queryParameters:GetQueryParameters +com.microsoft.graph.admin.teams.policy.userassignments.UserAssignmentsRequestBuilder.PostRequestConfiguration-->BaseRequestConfiguration +com.microsoft.graph.admin.teams.policy.userassignments.UserAssignmentsRequestBuilder::|public|byTeamsPolicyUserAssignmentId(teamsPolicyUserAssignmentId:String):TeamsPolicyUserAssignmentItemRequestBuilder +com.microsoft.graph.admin.teams.policy.userassignments.UserAssignmentsRequestBuilder::|public|constructor(pathParameters:HashMap; requestAdapter:RequestAdapter):Void +com.microsoft.graph.admin.teams.policy.userassignments.UserAssignmentsRequestBuilder::|public|constructor(rawUrl:String; requestAdapter:RequestAdapter):Void +com.microsoft.graph.admin.teams.policy.userassignments.UserAssignmentsRequestBuilder::|public|count:CountRequestBuilder +com.microsoft.graph.admin.teams.policy.userassignments.UserAssignmentsRequestBuilder::|public|get():TeamsPolicyUserAssignmentCollectionResponse +com.microsoft.graph.admin.teams.policy.userassignments.UserAssignmentsRequestBuilder::|public|get(requestConfiguration?:java.util.function.Consumer):TeamsPolicyUserAssignmentCollectionResponse +com.microsoft.graph.admin.teams.policy.userassignments.UserAssignmentsRequestBuilder::|public|microsoftGraphTeamsAdministrationAssign:MicrosoftGraphTeamsAdministrationAssignRequestBuilder +com.microsoft.graph.admin.teams.policy.userassignments.UserAssignmentsRequestBuilder::|public|microsoftGraphTeamsAdministrationUnassign:MicrosoftGraphTeamsAdministrationUnassignRequestBuilder +com.microsoft.graph.admin.teams.policy.userassignments.UserAssignmentsRequestBuilder::|public|post(body:TeamsPolicyUserAssignment):TeamsPolicyUserAssignment +com.microsoft.graph.admin.teams.policy.userassignments.UserAssignmentsRequestBuilder::|public|post(body:TeamsPolicyUserAssignment; requestConfiguration?:java.util.function.Consumer):TeamsPolicyUserAssignment +com.microsoft.graph.admin.teams.policy.userassignments.UserAssignmentsRequestBuilder::|public|toGetRequestInformation():RequestInformation +com.microsoft.graph.admin.teams.policy.userassignments.UserAssignmentsRequestBuilder::|public|toGetRequestInformation(requestConfiguration?:java.util.function.Consumer):RequestInformation +com.microsoft.graph.admin.teams.policy.userassignments.UserAssignmentsRequestBuilder::|public|toPostRequestInformation(body:TeamsPolicyUserAssignment):RequestInformation +com.microsoft.graph.admin.teams.policy.userassignments.UserAssignmentsRequestBuilder::|public|toPostRequestInformation(body:TeamsPolicyUserAssignment; requestConfiguration?:java.util.function.Consumer):RequestInformation +com.microsoft.graph.admin.teams.policy.userassignments.UserAssignmentsRequestBuilder::|public|withUrl(rawUrl:String):UserAssignmentsRequestBuilder com.microsoft.graph.admin.teams.TeamsRequestBuilder-->BaseRequestBuilder com.microsoft.graph.admin.teams.TeamsRequestBuilder.DeleteRequestConfiguration-->BaseRequestConfiguration com.microsoft.graph.admin.teams.TeamsRequestBuilder.GetQueryParameters::|public|expand:String[] @@ -1179,6 +1341,7 @@ com.microsoft.graph.admin.teams.TeamsRequestBuilder::|public|get():TeamsAdminRoo com.microsoft.graph.admin.teams.TeamsRequestBuilder::|public|get(requestConfiguration?:java.util.function.Consumer):TeamsAdminRoot com.microsoft.graph.admin.teams.TeamsRequestBuilder::|public|patch(body:TeamsAdminRoot):TeamsAdminRoot com.microsoft.graph.admin.teams.TeamsRequestBuilder::|public|patch(body:TeamsAdminRoot; requestConfiguration?:java.util.function.Consumer):TeamsAdminRoot +com.microsoft.graph.admin.teams.TeamsRequestBuilder::|public|policy:PolicyRequestBuilder com.microsoft.graph.admin.teams.TeamsRequestBuilder::|public|toDeleteRequestInformation():RequestInformation com.microsoft.graph.admin.teams.TeamsRequestBuilder::|public|toDeleteRequestInformation(requestConfiguration?:java.util.function.Consumer):RequestInformation com.microsoft.graph.admin.teams.TeamsRequestBuilder::|public|toGetRequestInformation():RequestInformation @@ -112564,6 +112727,14 @@ com.microsoft.graph.models.AgreementFileVersionCollectionResponse::|public|getVa com.microsoft.graph.models.AgreementFileVersionCollectionResponse::|public|serialize(writer:SerializationWriter):Void com.microsoft.graph.models.AgreementFileVersionCollectionResponse::|public|setValue(value?:java.util.List):void com.microsoft.graph.models.AgreementFileVersionCollectionResponse::|static|public|createFromDiscriminatorValue(parseNode:ParseNode):AgreementFileVersionCollectionResponse +com.microsoft.graph.models.AiAgentInfo-->AiInteractionEntity +com.microsoft.graph.models.AiAgentInfo::|public|constructor():void +com.microsoft.graph.models.AiAgentInfo::|public|getBlueprintId():String +com.microsoft.graph.models.AiAgentInfo::|public|getFieldDeserializers():Map> +com.microsoft.graph.models.AiAgentInfo::|public|OdataType:String +com.microsoft.graph.models.AiAgentInfo::|public|serialize(writer:SerializationWriter):Void +com.microsoft.graph.models.AiAgentInfo::|public|setBlueprintId(value?:String):void +com.microsoft.graph.models.AiAgentInfo::|static|public|createFromDiscriminatorValue(parseNode:ParseNode):AiAgentInfo com.microsoft.graph.models.AiInteraction-->Entity com.microsoft.graph.models.AiInteraction::|public|constructor():void com.microsoft.graph.models.AiInteraction::|public|getAppClass():String @@ -112638,6 +112809,24 @@ com.microsoft.graph.models.AiInteractionContext::|public|setDisplayName(value?:S com.microsoft.graph.models.AiInteractionContext::|public|setOdataType(value?:String):void com.microsoft.graph.models.AiInteractionContext::|static|public|createFromDiscriminatorValue(parseNode:ParseNode):AiInteractionContext com.microsoft.graph.models.AiInteractionContext~~>AdditionalDataHolder; BackedModel; Parsable +com.microsoft.graph.models.AiInteractionEntity::|protected|backingStore:BackingStore +com.microsoft.graph.models.AiInteractionEntity::|public|constructor():void +com.microsoft.graph.models.AiInteractionEntity::|public|getAdditionalData():Map +com.microsoft.graph.models.AiInteractionEntity::|public|getBackingStore():BackingStore +com.microsoft.graph.models.AiInteractionEntity::|public|getFieldDeserializers():Map> +com.microsoft.graph.models.AiInteractionEntity::|public|getIdentifier():String +com.microsoft.graph.models.AiInteractionEntity::|public|getName():String +com.microsoft.graph.models.AiInteractionEntity::|public|getOdataType():String +com.microsoft.graph.models.AiInteractionEntity::|public|getVersion():String +com.microsoft.graph.models.AiInteractionEntity::|public|serialize(writer:SerializationWriter):Void +com.microsoft.graph.models.AiInteractionEntity::|public|setAdditionalData(value?:Map):void +com.microsoft.graph.models.AiInteractionEntity::|public|setBackingStore(value:BackingStore):void +com.microsoft.graph.models.AiInteractionEntity::|public|setIdentifier(value?:String):void +com.microsoft.graph.models.AiInteractionEntity::|public|setName(value?:String):void +com.microsoft.graph.models.AiInteractionEntity::|public|setOdataType(value?:String):void +com.microsoft.graph.models.AiInteractionEntity::|public|setVersion(value?:String):void +com.microsoft.graph.models.AiInteractionEntity::|static|public|createFromDiscriminatorValue(parseNode:ParseNode):AiInteractionEntity +com.microsoft.graph.models.AiInteractionEntity~~>AdditionalDataHolder; BackedModel; Parsable com.microsoft.graph.models.AiInteractionHistory-->Entity com.microsoft.graph.models.AiInteractionHistory::|public|constructor():void com.microsoft.graph.models.AiInteractionHistory::|public|getFieldDeserializers():Map> @@ -112690,24 +112879,12 @@ com.microsoft.graph.models.AiInteractionMentionedIdentitySet::|public|setConvers com.microsoft.graph.models.AiInteractionMentionedIdentitySet::|public|setTag(value?:TeamworkTagIdentity):void com.microsoft.graph.models.AiInteractionMentionedIdentitySet::|static|public|createFromDiscriminatorValue(parseNode:ParseNode):AiInteractionMentionedIdentitySet com.microsoft.graph.models.AiInteractionMention~~>AdditionalDataHolder; BackedModel; Parsable -com.microsoft.graph.models.AiInteractionPlugin::|protected|backingStore:BackingStore +com.microsoft.graph.models.AiInteractionPlugin-->AiInteractionEntity com.microsoft.graph.models.AiInteractionPlugin::|public|constructor():void -com.microsoft.graph.models.AiInteractionPlugin::|public|getAdditionalData():Map -com.microsoft.graph.models.AiInteractionPlugin::|public|getBackingStore():BackingStore com.microsoft.graph.models.AiInteractionPlugin::|public|getFieldDeserializers():Map> -com.microsoft.graph.models.AiInteractionPlugin::|public|getIdentifier():String -com.microsoft.graph.models.AiInteractionPlugin::|public|getName():String -com.microsoft.graph.models.AiInteractionPlugin::|public|getOdataType():String -com.microsoft.graph.models.AiInteractionPlugin::|public|getVersion():String +com.microsoft.graph.models.AiInteractionPlugin::|public|OdataType:String com.microsoft.graph.models.AiInteractionPlugin::|public|serialize(writer:SerializationWriter):Void -com.microsoft.graph.models.AiInteractionPlugin::|public|setAdditionalData(value?:Map):void -com.microsoft.graph.models.AiInteractionPlugin::|public|setBackingStore(value:BackingStore):void -com.microsoft.graph.models.AiInteractionPlugin::|public|setIdentifier(value?:String):void -com.microsoft.graph.models.AiInteractionPlugin::|public|setName(value?:String):void -com.microsoft.graph.models.AiInteractionPlugin::|public|setOdataType(value?:String):void -com.microsoft.graph.models.AiInteractionPlugin::|public|setVersion(value?:String):void com.microsoft.graph.models.AiInteractionPlugin::|static|public|createFromDiscriminatorValue(parseNode:ParseNode):AiInteractionPlugin -com.microsoft.graph.models.AiInteractionPlugin~~>AdditionalDataHolder; BackedModel; Parsable com.microsoft.graph.models.AiInteractionType::0000-UserPrompt com.microsoft.graph.models.AiInteractionType::0001-AiResponse com.microsoft.graph.models.AiInteractionType::0002-UnknownFutureValue @@ -115173,6 +115350,7 @@ com.microsoft.graph.models.AuthContext::|static|public|createFromDiscriminatorVa com.microsoft.graph.models.Authentication-->Entity com.microsoft.graph.models.Authentication::|public|constructor():void com.microsoft.graph.models.Authentication::|public|getEmailMethods():java.util.List +com.microsoft.graph.models.Authentication::|public|getExternalAuthenticationMethods():java.util.List com.microsoft.graph.models.Authentication::|public|getFido2Methods():java.util.List com.microsoft.graph.models.Authentication::|public|getFieldDeserializers():Map> com.microsoft.graph.models.Authentication::|public|getMethods():java.util.List @@ -115187,6 +115365,7 @@ com.microsoft.graph.models.Authentication::|public|getWindowsHelloForBusinessMet com.microsoft.graph.models.Authentication::|public|OdataType:String com.microsoft.graph.models.Authentication::|public|serialize(writer:SerializationWriter):Void com.microsoft.graph.models.Authentication::|public|setEmailMethods(value?:java.util.List):void +com.microsoft.graph.models.Authentication::|public|setExternalAuthenticationMethods(value?:java.util.List):void com.microsoft.graph.models.Authentication::|public|setFido2Methods(value?:java.util.List):void com.microsoft.graph.models.Authentication::|public|setMethods(value?:java.util.List):void com.microsoft.graph.models.Authentication::|public|setMicrosoftAuthenticatorMethods(value?:java.util.List):void @@ -115466,9 +115645,11 @@ com.microsoft.graph.models.AuthenticationFlowsPolicy::|static|public|createFromD com.microsoft.graph.models.AuthenticationFlow~~>AdditionalDataHolder; BackedModel; Parsable com.microsoft.graph.models.AuthenticationMethod-->Entity com.microsoft.graph.models.AuthenticationMethod::|public|constructor():void +com.microsoft.graph.models.AuthenticationMethod::|public|getCreatedDateTime():OffsetDateTime com.microsoft.graph.models.AuthenticationMethod::|public|getFieldDeserializers():Map> com.microsoft.graph.models.AuthenticationMethod::|public|OdataType:String com.microsoft.graph.models.AuthenticationMethod::|public|serialize(writer:SerializationWriter):Void +com.microsoft.graph.models.AuthenticationMethod::|public|setCreatedDateTime(value?:OffsetDateTime):void com.microsoft.graph.models.AuthenticationMethod::|static|public|createFromDiscriminatorValue(parseNode:ParseNode):AuthenticationMethod com.microsoft.graph.models.AuthenticationMethodCollectionResponse-->BaseCollectionPaginationCountResponse com.microsoft.graph.models.AuthenticationMethodCollectionResponse::|public|constructor():void @@ -127500,6 +127681,23 @@ com.microsoft.graph.models.ExtensionSchemaProperty~~>AdditionalDataHolder; Backe com.microsoft.graph.models.ExternalAudienceScope::0000-None com.microsoft.graph.models.ExternalAudienceScope::0001-ContactsOnly com.microsoft.graph.models.ExternalAudienceScope::0002-All +com.microsoft.graph.models.ExternalAuthenticationMethod-->AuthenticationMethod +com.microsoft.graph.models.ExternalAuthenticationMethod::|public|constructor():void +com.microsoft.graph.models.ExternalAuthenticationMethod::|public|getConfigurationId():String +com.microsoft.graph.models.ExternalAuthenticationMethod::|public|getDisplayName():String +com.microsoft.graph.models.ExternalAuthenticationMethod::|public|getFieldDeserializers():Map> +com.microsoft.graph.models.ExternalAuthenticationMethod::|public|OdataType:String +com.microsoft.graph.models.ExternalAuthenticationMethod::|public|serialize(writer:SerializationWriter):Void +com.microsoft.graph.models.ExternalAuthenticationMethod::|public|setConfigurationId(value?:String):void +com.microsoft.graph.models.ExternalAuthenticationMethod::|public|setDisplayName(value?:String):void +com.microsoft.graph.models.ExternalAuthenticationMethod::|static|public|createFromDiscriminatorValue(parseNode:ParseNode):ExternalAuthenticationMethod +com.microsoft.graph.models.ExternalAuthenticationMethodCollectionResponse-->BaseCollectionPaginationCountResponse +com.microsoft.graph.models.ExternalAuthenticationMethodCollectionResponse::|public|constructor():void +com.microsoft.graph.models.ExternalAuthenticationMethodCollectionResponse::|public|getFieldDeserializers():Map> +com.microsoft.graph.models.ExternalAuthenticationMethodCollectionResponse::|public|getValue():java.util.List +com.microsoft.graph.models.ExternalAuthenticationMethodCollectionResponse::|public|serialize(writer:SerializationWriter):Void +com.microsoft.graph.models.ExternalAuthenticationMethodCollectionResponse::|public|setValue(value?:java.util.List):void +com.microsoft.graph.models.ExternalAuthenticationMethodCollectionResponse::|static|public|createFromDiscriminatorValue(parseNode:ParseNode):ExternalAuthenticationMethodCollectionResponse com.microsoft.graph.models.externalconnectors.AccessType::0000-Grant com.microsoft.graph.models.externalconnectors.AccessType::0001-Deny com.microsoft.graph.models.externalconnectors.AccessType::0002-UnknownFutureValue @@ -128079,7 +128277,6 @@ com.microsoft.graph.models.Fido2AuthenticationMethod::|public|constructor():void com.microsoft.graph.models.Fido2AuthenticationMethod::|public|getAaGuid():String com.microsoft.graph.models.Fido2AuthenticationMethod::|public|getAttestationCertificates():java.util.List com.microsoft.graph.models.Fido2AuthenticationMethod::|public|getAttestationLevel():AttestationLevel -com.microsoft.graph.models.Fido2AuthenticationMethod::|public|getCreatedDateTime():OffsetDateTime com.microsoft.graph.models.Fido2AuthenticationMethod::|public|getDisplayName():String com.microsoft.graph.models.Fido2AuthenticationMethod::|public|getFieldDeserializers():Map> com.microsoft.graph.models.Fido2AuthenticationMethod::|public|getModel():String @@ -128088,7 +128285,6 @@ com.microsoft.graph.models.Fido2AuthenticationMethod::|public|serialize(writer:S com.microsoft.graph.models.Fido2AuthenticationMethod::|public|setAaGuid(value?:String):void com.microsoft.graph.models.Fido2AuthenticationMethod::|public|setAttestationCertificates(value?:java.util.List):void com.microsoft.graph.models.Fido2AuthenticationMethod::|public|setAttestationLevel(value?:AttestationLevel):void -com.microsoft.graph.models.Fido2AuthenticationMethod::|public|setCreatedDateTime(value?:OffsetDateTime):void com.microsoft.graph.models.Fido2AuthenticationMethod::|public|setDisplayName(value?:String):void com.microsoft.graph.models.Fido2AuthenticationMethod::|public|setModel(value?:String):void com.microsoft.graph.models.Fido2AuthenticationMethod::|static|public|createFromDiscriminatorValue(parseNode:ParseNode):Fido2AuthenticationMethod @@ -134938,7 +135134,6 @@ com.microsoft.graph.models.MicrosoftAccountUserConversationMember::|public|setUs com.microsoft.graph.models.MicrosoftAccountUserConversationMember::|static|public|createFromDiscriminatorValue(parseNode:ParseNode):MicrosoftAccountUserConversationMember com.microsoft.graph.models.MicrosoftAuthenticatorAuthenticationMethod-->AuthenticationMethod com.microsoft.graph.models.MicrosoftAuthenticatorAuthenticationMethod::|public|constructor():void -com.microsoft.graph.models.MicrosoftAuthenticatorAuthenticationMethod::|public|getCreatedDateTime():OffsetDateTime com.microsoft.graph.models.MicrosoftAuthenticatorAuthenticationMethod::|public|getDevice():Device com.microsoft.graph.models.MicrosoftAuthenticatorAuthenticationMethod::|public|getDeviceTag():String com.microsoft.graph.models.MicrosoftAuthenticatorAuthenticationMethod::|public|getDisplayName():String @@ -134946,7 +135141,6 @@ com.microsoft.graph.models.MicrosoftAuthenticatorAuthenticationMethod::|public|g com.microsoft.graph.models.MicrosoftAuthenticatorAuthenticationMethod::|public|getPhoneAppVersion():String com.microsoft.graph.models.MicrosoftAuthenticatorAuthenticationMethod::|public|OdataType:String com.microsoft.graph.models.MicrosoftAuthenticatorAuthenticationMethod::|public|serialize(writer:SerializationWriter):Void -com.microsoft.graph.models.MicrosoftAuthenticatorAuthenticationMethod::|public|setCreatedDateTime(value?:OffsetDateTime):void com.microsoft.graph.models.MicrosoftAuthenticatorAuthenticationMethod::|public|setDevice(value?:Device):void com.microsoft.graph.models.MicrosoftAuthenticatorAuthenticationMethod::|public|setDeviceTag(value?:String):void com.microsoft.graph.models.MicrosoftAuthenticatorAuthenticationMethod::|public|setDisplayName(value?:String):void @@ -136091,6 +136285,108 @@ com.microsoft.graph.models.OfficeGraphInsights::|public|setShared(value?:java.ut com.microsoft.graph.models.OfficeGraphInsights::|public|setTrending(value?:java.util.List):void com.microsoft.graph.models.OfficeGraphInsights::|public|setUsed(value?:java.util.List):void com.microsoft.graph.models.OfficeGraphInsights::|static|public|createFromDiscriminatorValue(parseNode:ParseNode):OfficeGraphInsights +com.microsoft.graph.models.OidcAddressInboundClaims::|protected|backingStore:BackingStore +com.microsoft.graph.models.OidcAddressInboundClaims::|public|constructor():void +com.microsoft.graph.models.OidcAddressInboundClaims::|public|getAdditionalData():Map +com.microsoft.graph.models.OidcAddressInboundClaims::|public|getBackingStore():BackingStore +com.microsoft.graph.models.OidcAddressInboundClaims::|public|getCountry():String +com.microsoft.graph.models.OidcAddressInboundClaims::|public|getFieldDeserializers():Map> +com.microsoft.graph.models.OidcAddressInboundClaims::|public|getLocality():String +com.microsoft.graph.models.OidcAddressInboundClaims::|public|getOdataType():String +com.microsoft.graph.models.OidcAddressInboundClaims::|public|getPostalCode():String +com.microsoft.graph.models.OidcAddressInboundClaims::|public|getRegion():String +com.microsoft.graph.models.OidcAddressInboundClaims::|public|getStreetAddress():String +com.microsoft.graph.models.OidcAddressInboundClaims::|public|serialize(writer:SerializationWriter):Void +com.microsoft.graph.models.OidcAddressInboundClaims::|public|setAdditionalData(value?:Map):void +com.microsoft.graph.models.OidcAddressInboundClaims::|public|setBackingStore(value:BackingStore):void +com.microsoft.graph.models.OidcAddressInboundClaims::|public|setCountry(value?:String):void +com.microsoft.graph.models.OidcAddressInboundClaims::|public|setLocality(value?:String):void +com.microsoft.graph.models.OidcAddressInboundClaims::|public|setOdataType(value?:String):void +com.microsoft.graph.models.OidcAddressInboundClaims::|public|setPostalCode(value?:String):void +com.microsoft.graph.models.OidcAddressInboundClaims::|public|setRegion(value?:String):void +com.microsoft.graph.models.OidcAddressInboundClaims::|public|setStreetAddress(value?:String):void +com.microsoft.graph.models.OidcAddressInboundClaims::|static|public|createFromDiscriminatorValue(parseNode:ParseNode):OidcAddressInboundClaims +com.microsoft.graph.models.OidcAddressInboundClaims~~>AdditionalDataHolder; BackedModel; Parsable +com.microsoft.graph.models.OidcClientAuthentication::|protected|backingStore:BackingStore +com.microsoft.graph.models.OidcClientAuthentication::|public|constructor():void +com.microsoft.graph.models.OidcClientAuthentication::|public|getAdditionalData():Map +com.microsoft.graph.models.OidcClientAuthentication::|public|getBackingStore():BackingStore +com.microsoft.graph.models.OidcClientAuthentication::|public|getFieldDeserializers():Map> +com.microsoft.graph.models.OidcClientAuthentication::|public|getOdataType():String +com.microsoft.graph.models.OidcClientAuthentication::|public|serialize(writer:SerializationWriter):Void +com.microsoft.graph.models.OidcClientAuthentication::|public|setAdditionalData(value?:Map):void +com.microsoft.graph.models.OidcClientAuthentication::|public|setBackingStore(value:BackingStore):void +com.microsoft.graph.models.OidcClientAuthentication::|public|setOdataType(value?:String):void +com.microsoft.graph.models.OidcClientAuthentication::|static|public|createFromDiscriminatorValue(parseNode:ParseNode):OidcClientAuthentication +com.microsoft.graph.models.OidcClientAuthentication~~>AdditionalDataHolder; BackedModel; Parsable +com.microsoft.graph.models.OidcClientSecretAuthentication-->OidcClientAuthentication +com.microsoft.graph.models.OidcClientSecretAuthentication::|public|constructor():void +com.microsoft.graph.models.OidcClientSecretAuthentication::|public|getClientSecret():String +com.microsoft.graph.models.OidcClientSecretAuthentication::|public|getFieldDeserializers():Map> +com.microsoft.graph.models.OidcClientSecretAuthentication::|public|OdataType:String +com.microsoft.graph.models.OidcClientSecretAuthentication::|public|serialize(writer:SerializationWriter):Void +com.microsoft.graph.models.OidcClientSecretAuthentication::|public|setClientSecret(value?:String):void +com.microsoft.graph.models.OidcClientSecretAuthentication::|static|public|createFromDiscriminatorValue(parseNode:ParseNode):OidcClientSecretAuthentication +com.microsoft.graph.models.OidcIdentityProvider-->IdentityProviderBase +com.microsoft.graph.models.OidcIdentityProvider::|public|constructor():void +com.microsoft.graph.models.OidcIdentityProvider::|public|getClientAuthentication():OidcClientAuthentication +com.microsoft.graph.models.OidcIdentityProvider::|public|getClientId():String +com.microsoft.graph.models.OidcIdentityProvider::|public|getFieldDeserializers():Map> +com.microsoft.graph.models.OidcIdentityProvider::|public|getInboundClaimMapping():OidcInboundClaimMappingOverride +com.microsoft.graph.models.OidcIdentityProvider::|public|getIssuer():String +com.microsoft.graph.models.OidcIdentityProvider::|public|getResponseType():OidcResponseType +com.microsoft.graph.models.OidcIdentityProvider::|public|getScope():String +com.microsoft.graph.models.OidcIdentityProvider::|public|getWellKnownEndpoint():String +com.microsoft.graph.models.OidcIdentityProvider::|public|OdataType:String +com.microsoft.graph.models.OidcIdentityProvider::|public|serialize(writer:SerializationWriter):Void +com.microsoft.graph.models.OidcIdentityProvider::|public|setClientAuthentication(value?:OidcClientAuthentication):void +com.microsoft.graph.models.OidcIdentityProvider::|public|setClientId(value?:String):void +com.microsoft.graph.models.OidcIdentityProvider::|public|setInboundClaimMapping(value?:OidcInboundClaimMappingOverride):void +com.microsoft.graph.models.OidcIdentityProvider::|public|setIssuer(value?:String):void +com.microsoft.graph.models.OidcIdentityProvider::|public|setResponseType(value?:OidcResponseType):void +com.microsoft.graph.models.OidcIdentityProvider::|public|setScope(value?:String):void +com.microsoft.graph.models.OidcIdentityProvider::|public|setWellKnownEndpoint(value?:String):void +com.microsoft.graph.models.OidcIdentityProvider::|static|public|createFromDiscriminatorValue(parseNode:ParseNode):OidcIdentityProvider +com.microsoft.graph.models.OidcInboundClaimMappingOverride::|protected|backingStore:BackingStore +com.microsoft.graph.models.OidcInboundClaimMappingOverride::|public|constructor():void +com.microsoft.graph.models.OidcInboundClaimMappingOverride::|public|getAdditionalData():Map +com.microsoft.graph.models.OidcInboundClaimMappingOverride::|public|getAddress():OidcAddressInboundClaims +com.microsoft.graph.models.OidcInboundClaimMappingOverride::|public|getBackingStore():BackingStore +com.microsoft.graph.models.OidcInboundClaimMappingOverride::|public|getEmail():String +com.microsoft.graph.models.OidcInboundClaimMappingOverride::|public|getEmailVerified():String +com.microsoft.graph.models.OidcInboundClaimMappingOverride::|public|getFamilyName():String +com.microsoft.graph.models.OidcInboundClaimMappingOverride::|public|getFieldDeserializers():Map> +com.microsoft.graph.models.OidcInboundClaimMappingOverride::|public|getGivenName():String +com.microsoft.graph.models.OidcInboundClaimMappingOverride::|public|getName():String +com.microsoft.graph.models.OidcInboundClaimMappingOverride::|public|getOdataType():String +com.microsoft.graph.models.OidcInboundClaimMappingOverride::|public|getPhoneNumber():String +com.microsoft.graph.models.OidcInboundClaimMappingOverride::|public|getPhoneNumberVerified():String +com.microsoft.graph.models.OidcInboundClaimMappingOverride::|public|getSub():String +com.microsoft.graph.models.OidcInboundClaimMappingOverride::|public|serialize(writer:SerializationWriter):Void +com.microsoft.graph.models.OidcInboundClaimMappingOverride::|public|setAdditionalData(value?:Map):void +com.microsoft.graph.models.OidcInboundClaimMappingOverride::|public|setAddress(value?:OidcAddressInboundClaims):void +com.microsoft.graph.models.OidcInboundClaimMappingOverride::|public|setBackingStore(value:BackingStore):void +com.microsoft.graph.models.OidcInboundClaimMappingOverride::|public|setEmail(value?:String):void +com.microsoft.graph.models.OidcInboundClaimMappingOverride::|public|setEmailVerified(value?:String):void +com.microsoft.graph.models.OidcInboundClaimMappingOverride::|public|setFamilyName(value?:String):void +com.microsoft.graph.models.OidcInboundClaimMappingOverride::|public|setGivenName(value?:String):void +com.microsoft.graph.models.OidcInboundClaimMappingOverride::|public|setName(value?:String):void +com.microsoft.graph.models.OidcInboundClaimMappingOverride::|public|setOdataType(value?:String):void +com.microsoft.graph.models.OidcInboundClaimMappingOverride::|public|setPhoneNumber(value?:String):void +com.microsoft.graph.models.OidcInboundClaimMappingOverride::|public|setPhoneNumberVerified(value?:String):void +com.microsoft.graph.models.OidcInboundClaimMappingOverride::|public|setSub(value?:String):void +com.microsoft.graph.models.OidcInboundClaimMappingOverride::|static|public|createFromDiscriminatorValue(parseNode:ParseNode):OidcInboundClaimMappingOverride +com.microsoft.graph.models.OidcInboundClaimMappingOverride~~>AdditionalDataHolder; BackedModel; Parsable +com.microsoft.graph.models.OidcPrivateJwtKeyClientAuthentication-->OidcClientAuthentication +com.microsoft.graph.models.OidcPrivateJwtKeyClientAuthentication::|public|constructor():void +com.microsoft.graph.models.OidcPrivateJwtKeyClientAuthentication::|public|getFieldDeserializers():Map> +com.microsoft.graph.models.OidcPrivateJwtKeyClientAuthentication::|public|OdataType:String +com.microsoft.graph.models.OidcPrivateJwtKeyClientAuthentication::|public|serialize(writer:SerializationWriter):Void +com.microsoft.graph.models.OidcPrivateJwtKeyClientAuthentication::|static|public|createFromDiscriminatorValue(parseNode:ParseNode):OidcPrivateJwtKeyClientAuthentication +com.microsoft.graph.models.OidcResponseType::0000-Code +com.microsoft.graph.models.OidcResponseType::0001-Id_token +com.microsoft.graph.models.OidcResponseType::0002-Token +com.microsoft.graph.models.OidcResponseType::0003-UnknownFutureValue com.microsoft.graph.models.OmaSetting::|protected|backingStore:BackingStore com.microsoft.graph.models.OmaSetting::|public|constructor():void com.microsoft.graph.models.OmaSetting::|public|getAdditionalData():Map @@ -137934,12 +138230,10 @@ com.microsoft.graph.models.PartnerTenantType::0005-ValueAddedResellerPartnerDele com.microsoft.graph.models.PartnerTenantType::0006-UnknownFutureValue com.microsoft.graph.models.PasswordAuthenticationMethod-->AuthenticationMethod com.microsoft.graph.models.PasswordAuthenticationMethod::|public|constructor():void -com.microsoft.graph.models.PasswordAuthenticationMethod::|public|getCreatedDateTime():OffsetDateTime com.microsoft.graph.models.PasswordAuthenticationMethod::|public|getFieldDeserializers():Map> com.microsoft.graph.models.PasswordAuthenticationMethod::|public|getPassword():String com.microsoft.graph.models.PasswordAuthenticationMethod::|public|OdataType:String com.microsoft.graph.models.PasswordAuthenticationMethod::|public|serialize(writer:SerializationWriter):Void -com.microsoft.graph.models.PasswordAuthenticationMethod::|public|setCreatedDateTime(value?:OffsetDateTime):void com.microsoft.graph.models.PasswordAuthenticationMethod::|public|setPassword(value?:String):void com.microsoft.graph.models.PasswordAuthenticationMethod::|static|public|createFromDiscriminatorValue(parseNode:ParseNode):PasswordAuthenticationMethod com.microsoft.graph.models.PasswordAuthenticationMethodCollectionResponse-->BaseCollectionPaginationCountResponse @@ -139053,7 +139347,6 @@ com.microsoft.graph.models.PlannerUserIds::|static|public|createFromDiscriminato com.microsoft.graph.models.PlannerUserIds~~>AdditionalDataHolder; BackedModel; Parsable com.microsoft.graph.models.PlatformCredentialAuthenticationMethod-->AuthenticationMethod com.microsoft.graph.models.PlatformCredentialAuthenticationMethod::|public|constructor():void -com.microsoft.graph.models.PlatformCredentialAuthenticationMethod::|public|getCreatedDateTime():OffsetDateTime com.microsoft.graph.models.PlatformCredentialAuthenticationMethod::|public|getDevice():Device com.microsoft.graph.models.PlatformCredentialAuthenticationMethod::|public|getDisplayName():String com.microsoft.graph.models.PlatformCredentialAuthenticationMethod::|public|getFieldDeserializers():Map> @@ -139061,7 +139354,6 @@ com.microsoft.graph.models.PlatformCredentialAuthenticationMethod::|public|getKe com.microsoft.graph.models.PlatformCredentialAuthenticationMethod::|public|getPlatform():AuthenticationMethodPlatform com.microsoft.graph.models.PlatformCredentialAuthenticationMethod::|public|OdataType:String com.microsoft.graph.models.PlatformCredentialAuthenticationMethod::|public|serialize(writer:SerializationWriter):Void -com.microsoft.graph.models.PlatformCredentialAuthenticationMethod::|public|setCreatedDateTime(value?:OffsetDateTime):void com.microsoft.graph.models.PlatformCredentialAuthenticationMethod::|public|setDevice(value?:Device):void com.microsoft.graph.models.PlatformCredentialAuthenticationMethod::|public|setDisplayName(value?:String):void com.microsoft.graph.models.PlatformCredentialAuthenticationMethod::|public|setKeyStrength(value?:AuthenticationMethodKeyStrength):void @@ -141478,12 +141770,16 @@ com.microsoft.graph.models.ProcessContentResponse~~>AdditionalDataHolder; Backed com.microsoft.graph.models.ProcessConversationMetadata-->ProcessContentMetadataBase com.microsoft.graph.models.ProcessConversationMetadata::|public|constructor():void com.microsoft.graph.models.ProcessConversationMetadata::|public|getAccessedResources():java.util.List +com.microsoft.graph.models.ProcessConversationMetadata::|public|getAccessedResourcesV2():java.util.List +com.microsoft.graph.models.ProcessConversationMetadata::|public|getAgents():java.util.List com.microsoft.graph.models.ProcessConversationMetadata::|public|getFieldDeserializers():Map> com.microsoft.graph.models.ProcessConversationMetadata::|public|getParentMessageId():String com.microsoft.graph.models.ProcessConversationMetadata::|public|getPlugins():java.util.List com.microsoft.graph.models.ProcessConversationMetadata::|public|OdataType:String com.microsoft.graph.models.ProcessConversationMetadata::|public|serialize(writer:SerializationWriter):Void com.microsoft.graph.models.ProcessConversationMetadata::|public|setAccessedResources(value?:java.util.List):void +com.microsoft.graph.models.ProcessConversationMetadata::|public|setAccessedResourcesV2(value?:java.util.List):void +com.microsoft.graph.models.ProcessConversationMetadata::|public|setAgents(value?:java.util.List):void com.microsoft.graph.models.ProcessConversationMetadata::|public|setParentMessageId(value?:String):void com.microsoft.graph.models.ProcessConversationMetadata::|public|setPlugins(value?:java.util.List):void com.microsoft.graph.models.ProcessConversationMetadata::|static|public|createFromDiscriminatorValue(parseNode:ParseNode):ProcessConversationMetadata @@ -141613,14 +141909,36 @@ com.microsoft.graph.models.ProtectedContent::|public|setLabelId(value?:String):v com.microsoft.graph.models.ProtectedContent::|public|setOdataType(value?:String):void com.microsoft.graph.models.ProtectedContent::|static|public|createFromDiscriminatorValue(parseNode:ParseNode):ProtectedContent com.microsoft.graph.models.ProtectedContent~~>AdditionalDataHolder; BackedModel; Parsable +com.microsoft.graph.models.ProtectionPolicyArtifactCount::|protected|backingStore:BackingStore +com.microsoft.graph.models.ProtectionPolicyArtifactCount::|public|constructor():void +com.microsoft.graph.models.ProtectionPolicyArtifactCount::|public|getAdditionalData():Map +com.microsoft.graph.models.ProtectionPolicyArtifactCount::|public|getBackingStore():BackingStore +com.microsoft.graph.models.ProtectionPolicyArtifactCount::|public|getCompleted():Integer +com.microsoft.graph.models.ProtectionPolicyArtifactCount::|public|getFailed():Integer +com.microsoft.graph.models.ProtectionPolicyArtifactCount::|public|getFieldDeserializers():Map> +com.microsoft.graph.models.ProtectionPolicyArtifactCount::|public|getInProgress():Integer +com.microsoft.graph.models.ProtectionPolicyArtifactCount::|public|getOdataType():String +com.microsoft.graph.models.ProtectionPolicyArtifactCount::|public|getTotal():Integer +com.microsoft.graph.models.ProtectionPolicyArtifactCount::|public|serialize(writer:SerializationWriter):Void +com.microsoft.graph.models.ProtectionPolicyArtifactCount::|public|setAdditionalData(value?:Map):void +com.microsoft.graph.models.ProtectionPolicyArtifactCount::|public|setBackingStore(value:BackingStore):void +com.microsoft.graph.models.ProtectionPolicyArtifactCount::|public|setCompleted(value?:Integer):void +com.microsoft.graph.models.ProtectionPolicyArtifactCount::|public|setFailed(value?:Integer):void +com.microsoft.graph.models.ProtectionPolicyArtifactCount::|public|setInProgress(value?:Integer):void +com.microsoft.graph.models.ProtectionPolicyArtifactCount::|public|setOdataType(value?:String):void +com.microsoft.graph.models.ProtectionPolicyArtifactCount::|public|setTotal(value?:Integer):void +com.microsoft.graph.models.ProtectionPolicyArtifactCount::|static|public|createFromDiscriminatorValue(parseNode:ParseNode):ProtectionPolicyArtifactCount +com.microsoft.graph.models.ProtectionPolicyArtifactCount~~>AdditionalDataHolder; BackedModel; Parsable com.microsoft.graph.models.ProtectionPolicyBase-->Entity com.microsoft.graph.models.ProtectionPolicyBase::|public|constructor():void com.microsoft.graph.models.ProtectionPolicyBase::|public|getCreatedBy():IdentitySet com.microsoft.graph.models.ProtectionPolicyBase::|public|getCreatedDateTime():OffsetDateTime com.microsoft.graph.models.ProtectionPolicyBase::|public|getDisplayName():String com.microsoft.graph.models.ProtectionPolicyBase::|public|getFieldDeserializers():Map> +com.microsoft.graph.models.ProtectionPolicyBase::|public|getIsEnabled():Boolean com.microsoft.graph.models.ProtectionPolicyBase::|public|getLastModifiedBy():IdentitySet com.microsoft.graph.models.ProtectionPolicyBase::|public|getLastModifiedDateTime():OffsetDateTime +com.microsoft.graph.models.ProtectionPolicyBase::|public|getProtectionPolicyArtifactCount():ProtectionPolicyArtifactCount com.microsoft.graph.models.ProtectionPolicyBase::|public|getRetentionSettings():java.util.List com.microsoft.graph.models.ProtectionPolicyBase::|public|getStatus():ProtectionPolicyStatus com.microsoft.graph.models.ProtectionPolicyBase::|public|OdataType:String @@ -141628,8 +141946,10 @@ com.microsoft.graph.models.ProtectionPolicyBase::|public|serialize(writer:Serial com.microsoft.graph.models.ProtectionPolicyBase::|public|setCreatedBy(value?:IdentitySet):void com.microsoft.graph.models.ProtectionPolicyBase::|public|setCreatedDateTime(value?:OffsetDateTime):void com.microsoft.graph.models.ProtectionPolicyBase::|public|setDisplayName(value?:String):void +com.microsoft.graph.models.ProtectionPolicyBase::|public|setIsEnabled(value?:Boolean):void com.microsoft.graph.models.ProtectionPolicyBase::|public|setLastModifiedBy(value?:IdentitySet):void com.microsoft.graph.models.ProtectionPolicyBase::|public|setLastModifiedDateTime(value?:OffsetDateTime):void +com.microsoft.graph.models.ProtectionPolicyBase::|public|setProtectionPolicyArtifactCount(value?:ProtectionPolicyArtifactCount):void com.microsoft.graph.models.ProtectionPolicyBase::|public|setRetentionSettings(value?:java.util.List):void com.microsoft.graph.models.ProtectionPolicyBase::|public|setStatus(value?:ProtectionPolicyStatus):void com.microsoft.graph.models.ProtectionPolicyBase::|static|public|createFromDiscriminatorValue(parseNode:ParseNode):ProtectionPolicyBase @@ -143082,6 +143402,43 @@ com.microsoft.graph.models.ResourceAccess::|public|setId(value?:UUID):void com.microsoft.graph.models.ResourceAccess::|public|setOdataType(value?:String):void com.microsoft.graph.models.ResourceAccess::|public|setType(value?:String):void com.microsoft.graph.models.ResourceAccess::|static|public|createFromDiscriminatorValue(parseNode:ParseNode):ResourceAccess +com.microsoft.graph.models.ResourceAccessDetail::|protected|backingStore:BackingStore +com.microsoft.graph.models.ResourceAccessDetail::|public|constructor():void +com.microsoft.graph.models.ResourceAccessDetail::|public|getAccessType():ResourceAccessType +com.microsoft.graph.models.ResourceAccessDetail::|public|getAdditionalData():Map +com.microsoft.graph.models.ResourceAccessDetail::|public|getBackingStore():BackingStore +com.microsoft.graph.models.ResourceAccessDetail::|public|getFieldDeserializers():Map> +com.microsoft.graph.models.ResourceAccessDetail::|public|getIdentifier():String +com.microsoft.graph.models.ResourceAccessDetail::|public|getIsCrossPromptInjectionDetected():Boolean +com.microsoft.graph.models.ResourceAccessDetail::|public|getLabelId():String +com.microsoft.graph.models.ResourceAccessDetail::|public|getName():String +com.microsoft.graph.models.ResourceAccessDetail::|public|getOdataType():String +com.microsoft.graph.models.ResourceAccessDetail::|public|getStatus():ResourceAccessStatus +com.microsoft.graph.models.ResourceAccessDetail::|public|getStorageId():String +com.microsoft.graph.models.ResourceAccessDetail::|public|getUrl():String +com.microsoft.graph.models.ResourceAccessDetail::|public|serialize(writer:SerializationWriter):Void +com.microsoft.graph.models.ResourceAccessDetail::|public|setAccessType(value?:ResourceAccessType):void +com.microsoft.graph.models.ResourceAccessDetail::|public|setAdditionalData(value?:Map):void +com.microsoft.graph.models.ResourceAccessDetail::|public|setBackingStore(value:BackingStore):void +com.microsoft.graph.models.ResourceAccessDetail::|public|setIdentifier(value?:String):void +com.microsoft.graph.models.ResourceAccessDetail::|public|setIsCrossPromptInjectionDetected(value?:Boolean):void +com.microsoft.graph.models.ResourceAccessDetail::|public|setLabelId(value?:String):void +com.microsoft.graph.models.ResourceAccessDetail::|public|setName(value?:String):void +com.microsoft.graph.models.ResourceAccessDetail::|public|setOdataType(value?:String):void +com.microsoft.graph.models.ResourceAccessDetail::|public|setStatus(value?:ResourceAccessStatus):void +com.microsoft.graph.models.ResourceAccessDetail::|public|setStorageId(value?:String):void +com.microsoft.graph.models.ResourceAccessDetail::|public|setUrl(value?:String):void +com.microsoft.graph.models.ResourceAccessDetail::|static|public|createFromDiscriminatorValue(parseNode:ParseNode):ResourceAccessDetail +com.microsoft.graph.models.ResourceAccessDetail~~>AdditionalDataHolder; BackedModel; Parsable +com.microsoft.graph.models.ResourceAccessStatus::0000-None +com.microsoft.graph.models.ResourceAccessStatus::0001-Failure +com.microsoft.graph.models.ResourceAccessStatus::0002-Success +com.microsoft.graph.models.ResourceAccessStatus::0003-UnknownFutureValue +com.microsoft.graph.models.ResourceAccessType::0000-None +com.microsoft.graph.models.ResourceAccessType::0001-Read +com.microsoft.graph.models.ResourceAccessType::0002-Write +com.microsoft.graph.models.ResourceAccessType::0003-Create +com.microsoft.graph.models.ResourceAccessType::0004-UnknownFutureValue com.microsoft.graph.models.ResourceAccess~~>AdditionalDataHolder; BackedModel; Parsable com.microsoft.graph.models.ResourceAction::|protected|backingStore:BackingStore com.microsoft.graph.models.ResourceAction::|public|constructor():void @@ -146168,8 +146525,10 @@ com.microsoft.graph.models.security.EdiscoveryNoncustodialDataSourceCollectionRe com.microsoft.graph.models.security.EdiscoveryPurgeDataOperation-->CaseOperation com.microsoft.graph.models.security.EdiscoveryPurgeDataOperation::|public|constructor():void com.microsoft.graph.models.security.EdiscoveryPurgeDataOperation::|public|getFieldDeserializers():Map> +com.microsoft.graph.models.security.EdiscoveryPurgeDataOperation::|public|getReportFileMetadata():java.util.List com.microsoft.graph.models.security.EdiscoveryPurgeDataOperation::|public|OdataType:String com.microsoft.graph.models.security.EdiscoveryPurgeDataOperation::|public|serialize(writer:SerializationWriter):Void +com.microsoft.graph.models.security.EdiscoveryPurgeDataOperation::|public|setReportFileMetadata(value?:java.util.List):void com.microsoft.graph.models.security.EdiscoveryPurgeDataOperation::|static|public|createFromDiscriminatorValue(parseNode:ParseNode):EdiscoveryPurgeDataOperation com.microsoft.graph.models.security.EdiscoveryReviewSet-->DataSet com.microsoft.graph.models.security.EdiscoveryReviewSet::|public|constructor():void @@ -147196,6 +147555,7 @@ com.microsoft.graph.models.security.Incident::|public|getFieldDeserializers():Ma com.microsoft.graph.models.security.Incident::|public|getIncidentWebUrl():String com.microsoft.graph.models.security.Incident::|public|getLastModifiedBy():String com.microsoft.graph.models.security.Incident::|public|getLastUpdateDateTime():OffsetDateTime +com.microsoft.graph.models.security.Incident::|public|getPriorityScore():Integer com.microsoft.graph.models.security.Incident::|public|getRedirectIncidentId():String com.microsoft.graph.models.security.Incident::|public|getResolvingComment():String com.microsoft.graph.models.security.Incident::|public|getSeverity():AlertSeverity @@ -147217,6 +147577,7 @@ com.microsoft.graph.models.security.Incident::|public|setDisplayName(value?:Stri com.microsoft.graph.models.security.Incident::|public|setIncidentWebUrl(value?:String):void com.microsoft.graph.models.security.Incident::|public|setLastModifiedBy(value?:String):void com.microsoft.graph.models.security.Incident::|public|setLastUpdateDateTime(value?:OffsetDateTime):void +com.microsoft.graph.models.security.Incident::|public|setPriorityScore(value?:Integer):void com.microsoft.graph.models.security.Incident::|public|setRedirectIncidentId(value?:String):void com.microsoft.graph.models.security.Incident::|public|setResolvingComment(value?:String):void com.microsoft.graph.models.security.Incident::|public|setSeverity(value?:AlertSeverity):void @@ -148165,6 +148526,7 @@ com.microsoft.graph.models.security.Sensor::|public|getHealthIssues():java.util. com.microsoft.graph.models.security.Sensor::|public|getHealthStatus():SensorHealthStatus com.microsoft.graph.models.security.Sensor::|public|getOpenHealthIssuesCount():Long com.microsoft.graph.models.security.Sensor::|public|getSensorType():SensorType +com.microsoft.graph.models.security.Sensor::|public|getServiceStatus():ServiceStatus com.microsoft.graph.models.security.Sensor::|public|getSettings():SensorSettings com.microsoft.graph.models.security.Sensor::|public|getVersion():String com.microsoft.graph.models.security.Sensor::|public|OdataType:String @@ -148177,18 +148539,21 @@ com.microsoft.graph.models.security.Sensor::|public|setHealthIssues(value?:java. com.microsoft.graph.models.security.Sensor::|public|setHealthStatus(value?:SensorHealthStatus):void com.microsoft.graph.models.security.Sensor::|public|setOpenHealthIssuesCount(value?:Long):void com.microsoft.graph.models.security.Sensor::|public|setSensorType(value?:SensorType):void +com.microsoft.graph.models.security.Sensor::|public|setServiceStatus(value?:ServiceStatus):void com.microsoft.graph.models.security.Sensor::|public|setSettings(value?:SensorSettings):void com.microsoft.graph.models.security.Sensor::|public|setVersion(value?:String):void com.microsoft.graph.models.security.Sensor::|static|public|createFromDiscriminatorValue(parseNode:ParseNode):Sensor com.microsoft.graph.models.security.SensorCandidate-->Entity com.microsoft.graph.models.security.SensorCandidate::|public|constructor():void com.microsoft.graph.models.security.SensorCandidate::|public|getComputerDnsName():String +com.microsoft.graph.models.security.SensorCandidate::|public|getDomainName():String com.microsoft.graph.models.security.SensorCandidate::|public|getFieldDeserializers():Map> com.microsoft.graph.models.security.SensorCandidate::|public|getLastSeenDateTime():OffsetDateTime com.microsoft.graph.models.security.SensorCandidate::|public|getSenseClientVersion():String com.microsoft.graph.models.security.SensorCandidate::|public|OdataType:String com.microsoft.graph.models.security.SensorCandidate::|public|serialize(writer:SerializationWriter):Void com.microsoft.graph.models.security.SensorCandidate::|public|setComputerDnsName(value?:String):void +com.microsoft.graph.models.security.SensorCandidate::|public|setDomainName(value?:String):void com.microsoft.graph.models.security.SensorCandidate::|public|setLastSeenDateTime(value?:OffsetDateTime):void com.microsoft.graph.models.security.SensorCandidate::|public|setSenseClientVersion(value?:String):void com.microsoft.graph.models.security.SensorCandidate::|static|public|createFromDiscriminatorValue(parseNode:ParseNode):SensorCandidate @@ -148301,6 +148666,13 @@ com.microsoft.graph.models.security.ServiceSource::0010-MicrosoftDefenderForClou com.microsoft.graph.models.security.ServiceSource::0011-MicrosoftSentinel com.microsoft.graph.models.security.ServiceSource::0012-MicrosoftInsiderRiskManagement com.microsoft.graph.models.security.ServiceSource::0013-MicrosoftThreatIntelligence +com.microsoft.graph.models.security.ServiceStatus::0000-Stopped +com.microsoft.graph.models.security.ServiceStatus::0001-Starting +com.microsoft.graph.models.security.ServiceStatus::0002-Running +com.microsoft.graph.models.security.ServiceStatus::0003-Disabled +com.microsoft.graph.models.security.ServiceStatus::0004-Onboarding +com.microsoft.graph.models.security.ServiceStatus::0005-Unknown +com.microsoft.graph.models.security.ServiceStatus::0006-UnknownFutureValue com.microsoft.graph.models.security.SinglePropertySchema::|protected|backingStore:BackingStore com.microsoft.graph.models.security.SinglePropertySchema::|public|constructor():void com.microsoft.graph.models.security.SinglePropertySchema::|public|getAdditionalData():Map @@ -152834,14 +153206,53 @@ com.microsoft.graph.models.teamsadministration.PolicyAssignment::|public|setOdat com.microsoft.graph.models.teamsadministration.PolicyAssignment::|public|setPolicyId(value?:String):void com.microsoft.graph.models.teamsadministration.PolicyAssignment::|static|public|createFromDiscriminatorValue(parseNode:ParseNode):PolicyAssignment com.microsoft.graph.models.teamsadministration.PolicyAssignment~~>AdditionalDataHolder; BackedModel; Parsable +com.microsoft.graph.models.teamsadministration.PolicyIdentifierDetail-->Entity +com.microsoft.graph.models.teamsadministration.PolicyIdentifierDetail::|public|constructor():void +com.microsoft.graph.models.teamsadministration.PolicyIdentifierDetail::|public|getFieldDeserializers():Map> +com.microsoft.graph.models.teamsadministration.PolicyIdentifierDetail::|public|getName():String +com.microsoft.graph.models.teamsadministration.PolicyIdentifierDetail::|public|getPolicyId():String +com.microsoft.graph.models.teamsadministration.PolicyIdentifierDetail::|public|OdataType:String +com.microsoft.graph.models.teamsadministration.PolicyIdentifierDetail::|public|serialize(writer:SerializationWriter):Void +com.microsoft.graph.models.teamsadministration.PolicyIdentifierDetail::|public|setName(value?:String):void +com.microsoft.graph.models.teamsadministration.PolicyIdentifierDetail::|public|setPolicyId(value?:String):void +com.microsoft.graph.models.teamsadministration.PolicyIdentifierDetail::|static|public|createFromDiscriminatorValue(parseNode:ParseNode):PolicyIdentifierDetail com.microsoft.graph.models.teamsadministration.TeamsAdminRoot-->Entity com.microsoft.graph.models.teamsadministration.TeamsAdminRoot::|public|constructor():void com.microsoft.graph.models.teamsadministration.TeamsAdminRoot::|public|getFieldDeserializers():Map> +com.microsoft.graph.models.teamsadministration.TeamsAdminRoot::|public|getPolicy():TeamsPolicyAssignment com.microsoft.graph.models.teamsadministration.TeamsAdminRoot::|public|getUserConfigurations():java.util.List com.microsoft.graph.models.teamsadministration.TeamsAdminRoot::|public|OdataType:String com.microsoft.graph.models.teamsadministration.TeamsAdminRoot::|public|serialize(writer:SerializationWriter):Void +com.microsoft.graph.models.teamsadministration.TeamsAdminRoot::|public|setPolicy(value?:TeamsPolicyAssignment):void com.microsoft.graph.models.teamsadministration.TeamsAdminRoot::|public|setUserConfigurations(value?:java.util.List):void com.microsoft.graph.models.teamsadministration.TeamsAdminRoot::|static|public|createFromDiscriminatorValue(parseNode:ParseNode):TeamsAdminRoot +com.microsoft.graph.models.teamsadministration.TeamsPolicyAssignment-->Entity +com.microsoft.graph.models.teamsadministration.TeamsPolicyAssignment::|public|constructor():void +com.microsoft.graph.models.teamsadministration.TeamsPolicyAssignment::|public|getFieldDeserializers():Map> +com.microsoft.graph.models.teamsadministration.TeamsPolicyAssignment::|public|getUserAssignments():java.util.List +com.microsoft.graph.models.teamsadministration.TeamsPolicyAssignment::|public|OdataType:String +com.microsoft.graph.models.teamsadministration.TeamsPolicyAssignment::|public|serialize(writer:SerializationWriter):Void +com.microsoft.graph.models.teamsadministration.TeamsPolicyAssignment::|public|setUserAssignments(value?:java.util.List):void +com.microsoft.graph.models.teamsadministration.TeamsPolicyAssignment::|static|public|createFromDiscriminatorValue(parseNode:ParseNode):TeamsPolicyAssignment +com.microsoft.graph.models.teamsadministration.TeamsPolicyUserAssignment-->Entity +com.microsoft.graph.models.teamsadministration.TeamsPolicyUserAssignment::|public|constructor():void +com.microsoft.graph.models.teamsadministration.TeamsPolicyUserAssignment::|public|getFieldDeserializers():Map> +com.microsoft.graph.models.teamsadministration.TeamsPolicyUserAssignment::|public|getPolicyId():String +com.microsoft.graph.models.teamsadministration.TeamsPolicyUserAssignment::|public|getPolicyType():String +com.microsoft.graph.models.teamsadministration.TeamsPolicyUserAssignment::|public|getUserId():String +com.microsoft.graph.models.teamsadministration.TeamsPolicyUserAssignment::|public|OdataType:String +com.microsoft.graph.models.teamsadministration.TeamsPolicyUserAssignment::|public|serialize(writer:SerializationWriter):Void +com.microsoft.graph.models.teamsadministration.TeamsPolicyUserAssignment::|public|setPolicyId(value?:String):void +com.microsoft.graph.models.teamsadministration.TeamsPolicyUserAssignment::|public|setPolicyType(value?:String):void +com.microsoft.graph.models.teamsadministration.TeamsPolicyUserAssignment::|public|setUserId(value?:String):void +com.microsoft.graph.models.teamsadministration.TeamsPolicyUserAssignment::|static|public|createFromDiscriminatorValue(parseNode:ParseNode):TeamsPolicyUserAssignment +com.microsoft.graph.models.teamsadministration.TeamsPolicyUserAssignmentCollectionResponse-->BaseCollectionPaginationCountResponse +com.microsoft.graph.models.teamsadministration.TeamsPolicyUserAssignmentCollectionResponse::|public|constructor():void +com.microsoft.graph.models.teamsadministration.TeamsPolicyUserAssignmentCollectionResponse::|public|getFieldDeserializers():Map> +com.microsoft.graph.models.teamsadministration.TeamsPolicyUserAssignmentCollectionResponse::|public|getValue():java.util.List +com.microsoft.graph.models.teamsadministration.TeamsPolicyUserAssignmentCollectionResponse::|public|serialize(writer:SerializationWriter):Void +com.microsoft.graph.models.teamsadministration.TeamsPolicyUserAssignmentCollectionResponse::|public|setValue(value?:java.util.List):void +com.microsoft.graph.models.teamsadministration.TeamsPolicyUserAssignmentCollectionResponse::|static|public|createFromDiscriminatorValue(parseNode:ParseNode):TeamsPolicyUserAssignmentCollectionResponse com.microsoft.graph.models.teamsadministration.TeamsUserConfiguration-->Entity com.microsoft.graph.models.teamsadministration.TeamsUserConfiguration::|public|constructor():void com.microsoft.graph.models.teamsadministration.TeamsUserConfiguration::|public|getAccountType():AccountType @@ -153506,7 +153917,6 @@ com.microsoft.graph.models.TemplateScenarios::0005-EmergingThreats com.microsoft.graph.models.TemplateScenarios::0006-UnknownFutureValue com.microsoft.graph.models.TemporaryAccessPassAuthenticationMethod-->AuthenticationMethod com.microsoft.graph.models.TemporaryAccessPassAuthenticationMethod::|public|constructor():void -com.microsoft.graph.models.TemporaryAccessPassAuthenticationMethod::|public|getCreatedDateTime():OffsetDateTime com.microsoft.graph.models.TemporaryAccessPassAuthenticationMethod::|public|getFieldDeserializers():Map> com.microsoft.graph.models.TemporaryAccessPassAuthenticationMethod::|public|getIsUsable():Boolean com.microsoft.graph.models.TemporaryAccessPassAuthenticationMethod::|public|getIsUsableOnce():Boolean @@ -153516,7 +153926,6 @@ com.microsoft.graph.models.TemporaryAccessPassAuthenticationMethod::|public|getS com.microsoft.graph.models.TemporaryAccessPassAuthenticationMethod::|public|getTemporaryAccessPass():String com.microsoft.graph.models.TemporaryAccessPassAuthenticationMethod::|public|OdataType:String com.microsoft.graph.models.TemporaryAccessPassAuthenticationMethod::|public|serialize(writer:SerializationWriter):Void -com.microsoft.graph.models.TemporaryAccessPassAuthenticationMethod::|public|setCreatedDateTime(value?:OffsetDateTime):void com.microsoft.graph.models.TemporaryAccessPassAuthenticationMethod::|public|setIsUsable(value?:Boolean):void com.microsoft.graph.models.TemporaryAccessPassAuthenticationMethod::|public|setIsUsableOnce(value?:Boolean):void com.microsoft.graph.models.TemporaryAccessPassAuthenticationMethod::|public|setLifetimeInMinutes(value?:Integer):void @@ -155506,7 +155915,8 @@ com.microsoft.graph.models.UsageRights::0016-UserDefinedProtectionTypeNotSupport com.microsoft.graph.models.UsageRights::0017-EncryptedProtectionTypeNotSupportedException com.microsoft.graph.models.UsageRights::0018-PurviewClaimsChallengeNotSupportedException com.microsoft.graph.models.UsageRights::0019-Exception -com.microsoft.graph.models.UsageRights::0020-UnknownFutureValue +com.microsoft.graph.models.UsageRights::0020-LabelNotFoundException +com.microsoft.graph.models.UsageRights::0021-UnknownFutureValue com.microsoft.graph.models.UsageRightsIncluded-->Entity com.microsoft.graph.models.UsageRightsIncluded::|public|constructor():void com.microsoft.graph.models.UsageRightsIncluded::|public|getFieldDeserializers():Map> @@ -159557,14 +159967,12 @@ com.microsoft.graph.models.WindowsFirewallNetworkProfile::|static|public|createF com.microsoft.graph.models.WindowsFirewallNetworkProfile~~>AdditionalDataHolder; BackedModel; Parsable com.microsoft.graph.models.WindowsHelloForBusinessAuthenticationMethod-->AuthenticationMethod com.microsoft.graph.models.WindowsHelloForBusinessAuthenticationMethod::|public|constructor():void -com.microsoft.graph.models.WindowsHelloForBusinessAuthenticationMethod::|public|getCreatedDateTime():OffsetDateTime com.microsoft.graph.models.WindowsHelloForBusinessAuthenticationMethod::|public|getDevice():Device com.microsoft.graph.models.WindowsHelloForBusinessAuthenticationMethod::|public|getDisplayName():String com.microsoft.graph.models.WindowsHelloForBusinessAuthenticationMethod::|public|getFieldDeserializers():Map> com.microsoft.graph.models.WindowsHelloForBusinessAuthenticationMethod::|public|getKeyStrength():AuthenticationMethodKeyStrength com.microsoft.graph.models.WindowsHelloForBusinessAuthenticationMethod::|public|OdataType:String com.microsoft.graph.models.WindowsHelloForBusinessAuthenticationMethod::|public|serialize(writer:SerializationWriter):Void -com.microsoft.graph.models.WindowsHelloForBusinessAuthenticationMethod::|public|setCreatedDateTime(value?:OffsetDateTime):void com.microsoft.graph.models.WindowsHelloForBusinessAuthenticationMethod::|public|setDevice(value?:Device):void com.microsoft.graph.models.WindowsHelloForBusinessAuthenticationMethod::|public|setDisplayName(value?:String):void com.microsoft.graph.models.WindowsHelloForBusinessAuthenticationMethod::|public|setKeyStrength(value?:AuthenticationMethodKeyStrength):void @@ -213801,6 +214209,7 @@ com.microsoft.graph.users.item.authentication.AuthenticationRequestBuilder::|pub com.microsoft.graph.users.item.authentication.AuthenticationRequestBuilder::|public|delete():Void com.microsoft.graph.users.item.authentication.AuthenticationRequestBuilder::|public|delete(requestConfiguration?:java.util.function.Consumer):Void com.microsoft.graph.users.item.authentication.AuthenticationRequestBuilder::|public|emailMethods:EmailMethodsRequestBuilder +com.microsoft.graph.users.item.authentication.AuthenticationRequestBuilder::|public|externalAuthenticationMethods:ExternalAuthenticationMethodsRequestBuilder com.microsoft.graph.users.item.authentication.AuthenticationRequestBuilder::|public|fido2Methods:Fido2MethodsRequestBuilder com.microsoft.graph.users.item.authentication.AuthenticationRequestBuilder::|public|get():Authentication com.microsoft.graph.users.item.authentication.AuthenticationRequestBuilder::|public|get(requestConfiguration?:java.util.function.Consumer):Authentication @@ -213887,6 +214296,71 @@ com.microsoft.graph.users.item.authentication.emailmethods.item.EmailAuthenticat com.microsoft.graph.users.item.authentication.emailmethods.item.EmailAuthenticationMethodItemRequestBuilder::|public|toPatchRequestInformation(body:EmailAuthenticationMethod):RequestInformation com.microsoft.graph.users.item.authentication.emailmethods.item.EmailAuthenticationMethodItemRequestBuilder::|public|toPatchRequestInformation(body:EmailAuthenticationMethod; requestConfiguration?:java.util.function.Consumer):RequestInformation com.microsoft.graph.users.item.authentication.emailmethods.item.EmailAuthenticationMethodItemRequestBuilder::|public|withUrl(rawUrl:String):EmailAuthenticationMethodItemRequestBuilder +com.microsoft.graph.users.item.authentication.externalauthenticationmethods.count.CountRequestBuilder-->BaseRequestBuilder +com.microsoft.graph.users.item.authentication.externalauthenticationmethods.count.CountRequestBuilder.GetQueryParameters::|public|filter:String +com.microsoft.graph.users.item.authentication.externalauthenticationmethods.count.CountRequestBuilder.GetQueryParameters::|public|search:String +com.microsoft.graph.users.item.authentication.externalauthenticationmethods.count.CountRequestBuilder.GetQueryParameters::|public|toQueryParameters():Map +com.microsoft.graph.users.item.authentication.externalauthenticationmethods.count.CountRequestBuilder.GetQueryParameters~~>QueryParameters +com.microsoft.graph.users.item.authentication.externalauthenticationmethods.count.CountRequestBuilder.GetRequestConfiguration-->BaseRequestConfiguration +com.microsoft.graph.users.item.authentication.externalauthenticationmethods.count.CountRequestBuilder.GetRequestConfiguration::|public|queryParameters:GetQueryParameters +com.microsoft.graph.users.item.authentication.externalauthenticationmethods.count.CountRequestBuilder::|public|constructor(pathParameters:HashMap; requestAdapter:RequestAdapter):Void +com.microsoft.graph.users.item.authentication.externalauthenticationmethods.count.CountRequestBuilder::|public|constructor(rawUrl:String; requestAdapter:RequestAdapter):Void +com.microsoft.graph.users.item.authentication.externalauthenticationmethods.count.CountRequestBuilder::|public|get():Integer +com.microsoft.graph.users.item.authentication.externalauthenticationmethods.count.CountRequestBuilder::|public|get(requestConfiguration?:java.util.function.Consumer):Integer +com.microsoft.graph.users.item.authentication.externalauthenticationmethods.count.CountRequestBuilder::|public|toGetRequestInformation():RequestInformation +com.microsoft.graph.users.item.authentication.externalauthenticationmethods.count.CountRequestBuilder::|public|toGetRequestInformation(requestConfiguration?:java.util.function.Consumer):RequestInformation +com.microsoft.graph.users.item.authentication.externalauthenticationmethods.count.CountRequestBuilder::|public|withUrl(rawUrl:String):CountRequestBuilder +com.microsoft.graph.users.item.authentication.externalauthenticationmethods.ExternalAuthenticationMethodsRequestBuilder-->BaseRequestBuilder +com.microsoft.graph.users.item.authentication.externalauthenticationmethods.ExternalAuthenticationMethodsRequestBuilder.GetQueryParameters::|public|count:Boolean +com.microsoft.graph.users.item.authentication.externalauthenticationmethods.ExternalAuthenticationMethodsRequestBuilder.GetQueryParameters::|public|expand:String[] +com.microsoft.graph.users.item.authentication.externalauthenticationmethods.ExternalAuthenticationMethodsRequestBuilder.GetQueryParameters::|public|filter:String +com.microsoft.graph.users.item.authentication.externalauthenticationmethods.ExternalAuthenticationMethodsRequestBuilder.GetQueryParameters::|public|orderby:String[] +com.microsoft.graph.users.item.authentication.externalauthenticationmethods.ExternalAuthenticationMethodsRequestBuilder.GetQueryParameters::|public|search:String +com.microsoft.graph.users.item.authentication.externalauthenticationmethods.ExternalAuthenticationMethodsRequestBuilder.GetQueryParameters::|public|select:String[] +com.microsoft.graph.users.item.authentication.externalauthenticationmethods.ExternalAuthenticationMethodsRequestBuilder.GetQueryParameters::|public|skip:Integer +com.microsoft.graph.users.item.authentication.externalauthenticationmethods.ExternalAuthenticationMethodsRequestBuilder.GetQueryParameters::|public|top:Integer +com.microsoft.graph.users.item.authentication.externalauthenticationmethods.ExternalAuthenticationMethodsRequestBuilder.GetQueryParameters::|public|toQueryParameters():Map +com.microsoft.graph.users.item.authentication.externalauthenticationmethods.ExternalAuthenticationMethodsRequestBuilder.GetQueryParameters~~>QueryParameters +com.microsoft.graph.users.item.authentication.externalauthenticationmethods.ExternalAuthenticationMethodsRequestBuilder.GetRequestConfiguration-->BaseRequestConfiguration +com.microsoft.graph.users.item.authentication.externalauthenticationmethods.ExternalAuthenticationMethodsRequestBuilder.GetRequestConfiguration::|public|queryParameters:GetQueryParameters +com.microsoft.graph.users.item.authentication.externalauthenticationmethods.ExternalAuthenticationMethodsRequestBuilder.PostRequestConfiguration-->BaseRequestConfiguration +com.microsoft.graph.users.item.authentication.externalauthenticationmethods.ExternalAuthenticationMethodsRequestBuilder::|public|byExternalAuthenticationMethodId(externalAuthenticationMethodId:String):ExternalAuthenticationMethodItemRequestBuilder +com.microsoft.graph.users.item.authentication.externalauthenticationmethods.ExternalAuthenticationMethodsRequestBuilder::|public|constructor(pathParameters:HashMap; requestAdapter:RequestAdapter):Void +com.microsoft.graph.users.item.authentication.externalauthenticationmethods.ExternalAuthenticationMethodsRequestBuilder::|public|constructor(rawUrl:String; requestAdapter:RequestAdapter):Void +com.microsoft.graph.users.item.authentication.externalauthenticationmethods.ExternalAuthenticationMethodsRequestBuilder::|public|count:CountRequestBuilder +com.microsoft.graph.users.item.authentication.externalauthenticationmethods.ExternalAuthenticationMethodsRequestBuilder::|public|get():ExternalAuthenticationMethodCollectionResponse +com.microsoft.graph.users.item.authentication.externalauthenticationmethods.ExternalAuthenticationMethodsRequestBuilder::|public|get(requestConfiguration?:java.util.function.Consumer):ExternalAuthenticationMethodCollectionResponse +com.microsoft.graph.users.item.authentication.externalauthenticationmethods.ExternalAuthenticationMethodsRequestBuilder::|public|post(body:ExternalAuthenticationMethod):ExternalAuthenticationMethod +com.microsoft.graph.users.item.authentication.externalauthenticationmethods.ExternalAuthenticationMethodsRequestBuilder::|public|post(body:ExternalAuthenticationMethod; requestConfiguration?:java.util.function.Consumer):ExternalAuthenticationMethod +com.microsoft.graph.users.item.authentication.externalauthenticationmethods.ExternalAuthenticationMethodsRequestBuilder::|public|toGetRequestInformation():RequestInformation +com.microsoft.graph.users.item.authentication.externalauthenticationmethods.ExternalAuthenticationMethodsRequestBuilder::|public|toGetRequestInformation(requestConfiguration?:java.util.function.Consumer):RequestInformation +com.microsoft.graph.users.item.authentication.externalauthenticationmethods.ExternalAuthenticationMethodsRequestBuilder::|public|toPostRequestInformation(body:ExternalAuthenticationMethod):RequestInformation +com.microsoft.graph.users.item.authentication.externalauthenticationmethods.ExternalAuthenticationMethodsRequestBuilder::|public|toPostRequestInformation(body:ExternalAuthenticationMethod; requestConfiguration?:java.util.function.Consumer):RequestInformation +com.microsoft.graph.users.item.authentication.externalauthenticationmethods.ExternalAuthenticationMethodsRequestBuilder::|public|withUrl(rawUrl:String):ExternalAuthenticationMethodsRequestBuilder +com.microsoft.graph.users.item.authentication.externalauthenticationmethods.item.ExternalAuthenticationMethodItemRequestBuilder-->BaseRequestBuilder +com.microsoft.graph.users.item.authentication.externalauthenticationmethods.item.ExternalAuthenticationMethodItemRequestBuilder.DeleteRequestConfiguration-->BaseRequestConfiguration +com.microsoft.graph.users.item.authentication.externalauthenticationmethods.item.ExternalAuthenticationMethodItemRequestBuilder.GetQueryParameters::|public|expand:String[] +com.microsoft.graph.users.item.authentication.externalauthenticationmethods.item.ExternalAuthenticationMethodItemRequestBuilder.GetQueryParameters::|public|select:String[] +com.microsoft.graph.users.item.authentication.externalauthenticationmethods.item.ExternalAuthenticationMethodItemRequestBuilder.GetQueryParameters::|public|toQueryParameters():Map +com.microsoft.graph.users.item.authentication.externalauthenticationmethods.item.ExternalAuthenticationMethodItemRequestBuilder.GetQueryParameters~~>QueryParameters +com.microsoft.graph.users.item.authentication.externalauthenticationmethods.item.ExternalAuthenticationMethodItemRequestBuilder.GetRequestConfiguration-->BaseRequestConfiguration +com.microsoft.graph.users.item.authentication.externalauthenticationmethods.item.ExternalAuthenticationMethodItemRequestBuilder.GetRequestConfiguration::|public|queryParameters:GetQueryParameters +com.microsoft.graph.users.item.authentication.externalauthenticationmethods.item.ExternalAuthenticationMethodItemRequestBuilder.PatchRequestConfiguration-->BaseRequestConfiguration +com.microsoft.graph.users.item.authentication.externalauthenticationmethods.item.ExternalAuthenticationMethodItemRequestBuilder::|public|constructor(pathParameters:HashMap; requestAdapter:RequestAdapter):Void +com.microsoft.graph.users.item.authentication.externalauthenticationmethods.item.ExternalAuthenticationMethodItemRequestBuilder::|public|constructor(rawUrl:String; requestAdapter:RequestAdapter):Void +com.microsoft.graph.users.item.authentication.externalauthenticationmethods.item.ExternalAuthenticationMethodItemRequestBuilder::|public|delete():Void +com.microsoft.graph.users.item.authentication.externalauthenticationmethods.item.ExternalAuthenticationMethodItemRequestBuilder::|public|delete(requestConfiguration?:java.util.function.Consumer):Void +com.microsoft.graph.users.item.authentication.externalauthenticationmethods.item.ExternalAuthenticationMethodItemRequestBuilder::|public|get():ExternalAuthenticationMethod +com.microsoft.graph.users.item.authentication.externalauthenticationmethods.item.ExternalAuthenticationMethodItemRequestBuilder::|public|get(requestConfiguration?:java.util.function.Consumer):ExternalAuthenticationMethod +com.microsoft.graph.users.item.authentication.externalauthenticationmethods.item.ExternalAuthenticationMethodItemRequestBuilder::|public|patch(body:ExternalAuthenticationMethod):ExternalAuthenticationMethod +com.microsoft.graph.users.item.authentication.externalauthenticationmethods.item.ExternalAuthenticationMethodItemRequestBuilder::|public|patch(body:ExternalAuthenticationMethod; requestConfiguration?:java.util.function.Consumer):ExternalAuthenticationMethod +com.microsoft.graph.users.item.authentication.externalauthenticationmethods.item.ExternalAuthenticationMethodItemRequestBuilder::|public|toDeleteRequestInformation():RequestInformation +com.microsoft.graph.users.item.authentication.externalauthenticationmethods.item.ExternalAuthenticationMethodItemRequestBuilder::|public|toDeleteRequestInformation(requestConfiguration?:java.util.function.Consumer):RequestInformation +com.microsoft.graph.users.item.authentication.externalauthenticationmethods.item.ExternalAuthenticationMethodItemRequestBuilder::|public|toGetRequestInformation():RequestInformation +com.microsoft.graph.users.item.authentication.externalauthenticationmethods.item.ExternalAuthenticationMethodItemRequestBuilder::|public|toGetRequestInformation(requestConfiguration?:java.util.function.Consumer):RequestInformation +com.microsoft.graph.users.item.authentication.externalauthenticationmethods.item.ExternalAuthenticationMethodItemRequestBuilder::|public|toPatchRequestInformation(body:ExternalAuthenticationMethod):RequestInformation +com.microsoft.graph.users.item.authentication.externalauthenticationmethods.item.ExternalAuthenticationMethodItemRequestBuilder::|public|toPatchRequestInformation(body:ExternalAuthenticationMethod; requestConfiguration?:java.util.function.Consumer):RequestInformation +com.microsoft.graph.users.item.authentication.externalauthenticationmethods.item.ExternalAuthenticationMethodItemRequestBuilder::|public|withUrl(rawUrl:String):ExternalAuthenticationMethodItemRequestBuilder com.microsoft.graph.users.item.authentication.fido2methods.count.CountRequestBuilder-->BaseRequestBuilder com.microsoft.graph.users.item.authentication.fido2methods.count.CountRequestBuilder.GetQueryParameters::|public|filter:String com.microsoft.graph.users.item.authentication.fido2methods.count.CountRequestBuilder.GetQueryParameters::|public|search:String diff --git a/src/main/java/com/microsoft/graph/generated/kiota-lock.json b/src/main/java/com/microsoft/graph/generated/kiota-lock.json index 7e331b6ba96..e1983600d05 100644 --- a/src/main/java/com/microsoft/graph/generated/kiota-lock.json +++ b/src/main/java/com/microsoft/graph/generated/kiota-lock.json @@ -1,8 +1,8 @@ { - "descriptionHash": "B772231A114EE0F151C5CAD415592E6EC30B995AF2CC2035B656C76E0001C925D96ED0F43B5BE31AF65452F62E25448AB3A19A7FBECB1096C50BCB71D40F0E49", + "descriptionHash": "EE655C46667963A6B56284D80428908D898ADF7596E1B9840E2353EEE838BF5BDD1519D02373734226B3D8607AA86D05BD7FA51B4D709F95127054A6D86E6D4D", "descriptionLocation": "../../msgraph-metadata/clean_v10_openapi/openapi.yaml", "lockFileVersion": "1.0.0", - "kiotaVersion": "1.30.0", + "kiotaVersion": "1.31.0", "clientClassName": "BaseGraphServiceClient", "typeAccessModifier": "Public", "clientNamespaceName": "com.Microsoft.Graph", 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 386b166c39e..e829822abac 100644 --- a/src/main/java/com/microsoft/graph/generated/models/Admin.java +++ b/src/main/java/com/microsoft/graph/generated/models/Admin.java @@ -130,7 +130,7 @@ public Sharepoint getSharepoint() { return this.backingStore.get("sharepoint"); } /** - * Gets the teams property value. Represents a collection of user configurations. + * Gets the teams property value. A container for Teams administration functionalities, such as user configurations and policy assignments. * @return a {@link TeamsAdminRoot} */ @jakarta.annotation.Nullable @@ -218,7 +218,7 @@ public void setSharepoint(@jakarta.annotation.Nullable final Sharepoint value) { this.backingStore.set("sharepoint", value); } /** - * Sets the teams property value. Represents a collection of user configurations. + * Sets the teams property value. A container for Teams administration functionalities, such as user configurations and policy assignments. * @param value Value to set for the teams property. */ public void setTeams(@jakarta.annotation.Nullable final TeamsAdminRoot value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/AiAgentInfo.java b/src/main/java/com/microsoft/graph/generated/models/AiAgentInfo.java new file mode 100644 index 00000000000..fd7ac75b0a3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/AiAgentInfo.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 AiAgentInfo extends AiInteractionEntity implements Parsable { + /** + * Instantiates a new {@link AiAgentInfo} and sets the default values. + */ + public AiAgentInfo() { + 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 AiAgentInfo} + */ + @jakarta.annotation.Nonnull + public static AiAgentInfo createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new AiAgentInfo(); + } + /** + * Gets the blueprintId property value. The blueprintId property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getBlueprintId() { + return this.backingStore.get("blueprintId"); + } + /** + * 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("blueprintId", (n) -> { this.setBlueprintId(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); + super.serialize(writer); + writer.writeStringValue("blueprintId", this.getBlueprintId()); + } + /** + * Sets the blueprintId property value. The blueprintId property + * @param value Value to set for the blueprintId property. + */ + public void setBlueprintId(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("blueprintId", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/AiInteractionEntity.java b/src/main/java/com/microsoft/graph/generated/models/AiInteractionEntity.java new file mode 100644 index 00000000000..ac96dc976b7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/AiInteractionEntity.java @@ -0,0 +1,166 @@ +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 AiInteractionEntity implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link AiInteractionEntity} and sets the default values. + */ + public AiInteractionEntity() { + 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 AiInteractionEntity} + */ + @jakarta.annotation.Nonnull + public static AiInteractionEntity 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.aiAgentInfo": return new AiAgentInfo(); + case "#microsoft.graph.aiInteractionPlugin": return new AiInteractionPlugin(); + } + } + return new AiInteractionEntity(); + } + /** + * 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("identifier", (n) -> { this.setIdentifier(n.getStringValue()); }); + deserializerMap.put("name", (n) -> { this.setName(n.getStringValue()); }); + deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); }); + deserializerMap.put("version", (n) -> { this.setVersion(n.getStringValue()); }); + return deserializerMap; + } + /** + * Gets the identifier property value. The identifier property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getIdentifier() { + return this.backingStore.get("identifier"); + } + /** + * 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"); + } + /** + * Gets the version property value. The version property + * @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); + writer.writeStringValue("identifier", this.getIdentifier()); + writer.writeStringValue("name", this.getName()); + writer.writeStringValue("@odata.type", this.getOdataType()); + writer.writeStringValue("version", this.getVersion()); + 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 identifier property value. The identifier property + * @param value Value to set for the identifier property. + */ + public void setIdentifier(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("identifier", 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); + } + /** + * Sets the version property value. The version property + * @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/AiInteractionPlugin.java b/src/main/java/com/microsoft/graph/generated/models/AiInteractionPlugin.java index 7e4c4be03ad..e62bbecac5c 100644 --- a/src/main/java/com/microsoft/graph/generated/models/AiInteractionPlugin.java +++ b/src/main/java/com/microsoft/graph/generated/models/AiInteractionPlugin.java @@ -1,28 +1,18 @@ 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 AiInteractionPlugin implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; +public class AiInteractionPlugin extends AiInteractionEntity implements Parsable { /** * Instantiates a new {@link AiInteractionPlugin} and sets the default values. */ public AiInteractionPlugin() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); + super(); } /** * Creates a new instance of the appropriate class based on discriminator value @@ -34,125 +24,21 @@ public static AiInteractionPlugin createFromDiscriminatorValue(@jakarta.annotati Objects.requireNonNull(parseNode); return new AiInteractionPlugin(); } - /** - * 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("identifier", (n) -> { this.setIdentifier(n.getStringValue()); }); - deserializerMap.put("name", (n) -> { this.setName(n.getStringValue()); }); - deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); }); - deserializerMap.put("version", (n) -> { this.setVersion(n.getStringValue()); }); + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); return deserializerMap; } - /** - * Gets the identifier property value. The unique identifier of the plugin. - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getIdentifier() { - return this.backingStore.get("identifier"); - } - /** - * Gets the name property value. The display name of the plugin. - * @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"); - } - /** - * Gets the version property value. The version of the plugin used. - * @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); - writer.writeStringValue("identifier", this.getIdentifier()); - writer.writeStringValue("name", this.getName()); - writer.writeStringValue("@odata.type", this.getOdataType()); - writer.writeStringValue("version", this.getVersion()); - 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 identifier property value. The unique identifier of the plugin. - * @param value Value to set for the identifier property. - */ - public void setIdentifier(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("identifier", value); - } - /** - * Sets the name property value. The display name of the plugin. - * @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); - } - /** - * Sets the version property value. The version of the plugin used. - * @param value Value to set for the version property. - */ - public void setVersion(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("version", value); + super.serialize(writer); } } diff --git a/src/main/java/com/microsoft/graph/generated/models/Authentication.java b/src/main/java/com/microsoft/graph/generated/models/Authentication.java index 7518486e90c..5a026030445 100644 --- a/src/main/java/com/microsoft/graph/generated/models/Authentication.java +++ b/src/main/java/com/microsoft/graph/generated/models/Authentication.java @@ -32,6 +32,14 @@ public static Authentication createFromDiscriminatorValue(@jakarta.annotation.No public java.util.List getEmailMethods() { return this.backingStore.get("emailMethods"); } + /** + * Gets the externalAuthenticationMethods property value. Represents the external authentication methods registered to a user for authentication using an external identity provider. + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getExternalAuthenticationMethods() { + return this.backingStore.get("externalAuthenticationMethods"); + } /** * Gets the fido2Methods property value. Represents the FIDO2 security keys registered to a user for authentication. * @return a {@link java.util.List} @@ -48,6 +56,7 @@ public java.util.List getFido2Methods() { public Map> getFieldDeserializers() { final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); deserializerMap.put("emailMethods", (n) -> { this.setEmailMethods(n.getCollectionOfObjectValues(EmailAuthenticationMethod::createFromDiscriminatorValue)); }); + deserializerMap.put("externalAuthenticationMethods", (n) -> { this.setExternalAuthenticationMethods(n.getCollectionOfObjectValues(ExternalAuthenticationMethod::createFromDiscriminatorValue)); }); deserializerMap.put("fido2Methods", (n) -> { this.setFido2Methods(n.getCollectionOfObjectValues(Fido2AuthenticationMethod::createFromDiscriminatorValue)); }); deserializerMap.put("methods", (n) -> { this.setMethods(n.getCollectionOfObjectValues(AuthenticationMethod::createFromDiscriminatorValue)); }); deserializerMap.put("microsoftAuthenticatorMethods", (n) -> { this.setMicrosoftAuthenticatorMethods(n.getCollectionOfObjectValues(MicrosoftAuthenticatorAuthenticationMethod::createFromDiscriminatorValue)); }); @@ -140,6 +149,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ Objects.requireNonNull(writer); super.serialize(writer); writer.writeCollectionOfObjectValues("emailMethods", this.getEmailMethods()); + writer.writeCollectionOfObjectValues("externalAuthenticationMethods", this.getExternalAuthenticationMethods()); writer.writeCollectionOfObjectValues("fido2Methods", this.getFido2Methods()); writer.writeCollectionOfObjectValues("methods", this.getMethods()); writer.writeCollectionOfObjectValues("microsoftAuthenticatorMethods", this.getMicrosoftAuthenticatorMethods()); @@ -158,6 +168,13 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ public void setEmailMethods(@jakarta.annotation.Nullable final java.util.List value) { this.backingStore.set("emailMethods", value); } + /** + * Sets the externalAuthenticationMethods property value. Represents the external authentication methods registered to a user for authentication using an external identity provider. + * @param value Value to set for the externalAuthenticationMethods property. + */ + public void setExternalAuthenticationMethods(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("externalAuthenticationMethods", value); + } /** * Sets the fido2Methods property value. Represents the FIDO2 security keys registered to a user for authentication. * @param value Value to set for the fido2Methods property. diff --git a/src/main/java/com/microsoft/graph/generated/models/AuthenticationMethod.java b/src/main/java/com/microsoft/graph/generated/models/AuthenticationMethod.java index e699d58ce20..792ad42c152 100644 --- a/src/main/java/com/microsoft/graph/generated/models/AuthenticationMethod.java +++ b/src/main/java/com/microsoft/graph/generated/models/AuthenticationMethod.java @@ -3,6 +3,7 @@ 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; @@ -27,6 +28,7 @@ public static AuthenticationMethod createFromDiscriminatorValue(@jakarta.annotat final String mappingValue = mappingValueNode.getStringValue(); switch (mappingValue) { case "#microsoft.graph.emailAuthenticationMethod": return new EmailAuthenticationMethod(); + case "#microsoft.graph.externalAuthenticationMethod": return new ExternalAuthenticationMethod(); case "#microsoft.graph.fido2AuthenticationMethod": return new Fido2AuthenticationMethod(); case "#microsoft.graph.microsoftAuthenticatorAuthenticationMethod": return new MicrosoftAuthenticatorAuthenticationMethod(); case "#microsoft.graph.passwordAuthenticationMethod": return new PasswordAuthenticationMethod(); @@ -39,6 +41,14 @@ public static AuthenticationMethod createFromDiscriminatorValue(@jakarta.annotat } return new AuthenticationMethod(); } + /** + * Gets the createdDateTime property value. Represents the date and time when an entity was created. Read-only. + * @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>} @@ -46,6 +56,7 @@ public static AuthenticationMethod createFromDiscriminatorValue(@jakarta.annotat @jakarta.annotation.Nonnull public Map> getFieldDeserializers() { final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("createdDateTime", (n) -> { this.setCreatedDateTime(n.getOffsetDateTimeValue()); }); return deserializerMap; } /** @@ -55,5 +66,13 @@ public Map> getFieldDeserializers public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); super.serialize(writer); + writer.writeOffsetDateTimeValue("createdDateTime", this.getCreatedDateTime()); + } + /** + * Sets the createdDateTime property value. Represents the date and time when an entity was created. Read-only. + * @param value Value to set for the createdDateTime property. + */ + public void setCreatedDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) { + this.backingStore.set("createdDateTime", value); } } diff --git a/src/main/java/com/microsoft/graph/generated/models/CloudPcDomainJoinConfiguration.java b/src/main/java/com/microsoft/graph/generated/models/CloudPcDomainJoinConfiguration.java index fe9ed019c26..7fc05abeccd 100644 --- a/src/main/java/com/microsoft/graph/generated/models/CloudPcDomainJoinConfiguration.java +++ b/src/main/java/com/microsoft/graph/generated/models/CloudPcDomainJoinConfiguration.java @@ -94,7 +94,7 @@ 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. The possible values are: default, australia, canada, usCentral, usEast, usWest, france, germany, europeUnion, unitedKingdom, japan, asia, india, southAmerica, euap, usGovernment, usGovernmentDOD, unknownFutureValue, norway, switzerland, southKorea. Use the Prefer: include-unknown-enum-members request header to get the following values in this evolvable enum: norway, switzerland, southKorea. Read-only. + * 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. Read-only. * @return a {@link CloudPcRegionGroup} */ @jakarta.annotation.Nullable @@ -159,7 +159,7 @@ public void setOnPremisesConnectionId(@jakarta.annotation.Nullable final String 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. The possible values are: default, australia, canada, usCentral, usEast, usWest, france, germany, europeUnion, unitedKingdom, japan, asia, india, southAmerica, euap, usGovernment, usGovernmentDOD, unknownFutureValue, norway, switzerland, southKorea. Use the Prefer: include-unknown-enum-members request header to get the following values in this evolvable enum: norway, switzerland, southKorea. Read-only. + * 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. Read-only. * @param value Value to set for the regionGroup property. */ public void setRegionGroup(@jakarta.annotation.Nullable final CloudPcRegionGroup 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 index bdb2aee9950..d13db07dd73 100644 --- a/src/main/java/com/microsoft/graph/generated/models/CloudPcOnPremisesConnectionHealthCheck.java +++ b/src/main/java/com/microsoft/graph/generated/models/CloudPcOnPremisesConnectionHealthCheck.java @@ -89,7 +89,7 @@ public OffsetDateTime getEndDateTime() { return this.backingStore.get("endDateTime"); } /** - * Gets the errorType property value. The type of error that occurred during this health check. The possible values are: endpointConnectivityCheckCloudPcUrlNotAllowListed, endpointConnectivityCheckWVDUrlNotAllowListed, etc. (The all possible values can refer to cloudPcOnPremisesConnectionHealthCheckErrorType) Read-Only. + * Gets the errorType property value. The type of error that occurred during this health check. Read-only. * @return a {@link CloudPcOnPremisesConnectionHealthCheckErrorType} */ @jakarta.annotation.Nullable @@ -207,7 +207,7 @@ public void setEndDateTime(@jakarta.annotation.Nullable final OffsetDateTime val this.backingStore.set("endDateTime", value); } /** - * Sets the errorType property value. The type of error that occurred during this health check. The possible values are: endpointConnectivityCheckCloudPcUrlNotAllowListed, endpointConnectivityCheckWVDUrlNotAllowListed, etc. (The all possible values can refer to cloudPcOnPremisesConnectionHealthCheckErrorType) Read-Only. + * Sets the errorType property value. The type of error that occurred during this health check. Read-only. * @param value Value to set for the errorType property. */ public void setErrorType(@jakarta.annotation.Nullable final CloudPcOnPremisesConnectionHealthCheckErrorType 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 107f3cfa124..3fb8060c16a 100644 --- a/src/main/java/com/microsoft/graph/generated/models/Entity.java +++ b/src/main/java/com/microsoft/graph/generated/models/Entity.java @@ -121,7 +121,10 @@ import com.microsoft.graph.models.security.WhoisBaseRecord; import com.microsoft.graph.models.security.WhoisHistoryRecord; import com.microsoft.graph.models.security.WhoisRecord; +import com.microsoft.graph.models.teamsadministration.PolicyIdentifierDetail; import com.microsoft.graph.models.teamsadministration.TeamsAdminRoot; +import com.microsoft.graph.models.teamsadministration.TeamsPolicyAssignment; +import com.microsoft.graph.models.teamsadministration.TeamsPolicyUserAssignment; import com.microsoft.graph.models.teamsadministration.TeamsUserConfiguration; import com.microsoft.graph.models.termstore.Group; import com.microsoft.graph.models.termstore.Relation; @@ -518,6 +521,7 @@ private static Entity createFromDiscriminatorValue_0(@jakarta.annotation.Nonnull case "#microsoft.graph.exchangeRestoreSession": return new ExchangeRestoreSession(); case "#microsoft.graph.extension": return new Extension(); case "#microsoft.graph.extensionProperty": return new ExtensionProperty(); + case "#microsoft.graph.externalAuthenticationMethod": return new ExternalAuthenticationMethod(); case "#microsoft.graph.externalConnectors.connectionOperation": return new ConnectionOperation(); case "#microsoft.graph.externalConnectors.externalActivity": return new ExternalActivity(); case "#microsoft.graph.externalConnectors.externalActivityResult": return new ExternalActivityResult(); @@ -685,7 +689,6 @@ private static Entity createFromDiscriminatorValue_0(@jakarta.annotation.Nonnull case "#microsoft.graph.mobileAppCategory": return new MobileAppCategory(); case "#microsoft.graph.mobileAppContent": return new MobileAppContent(); case "#microsoft.graph.mobileAppContentFile": return new MobileAppContentFile(); - case "#microsoft.graph.mobileAppRelationship": return new MobileAppRelationship(); } return null; } @@ -697,6 +700,7 @@ private static Entity createFromDiscriminatorValue_0(@jakarta.annotation.Nonnull @jakarta.annotation.Nonnull private static Entity createFromDiscriminatorValue_1(@jakarta.annotation.Nonnull final String discriminatorValue) { switch (discriminatorValue) { + case "#microsoft.graph.mobileAppRelationship": return new MobileAppRelationship(); case "#microsoft.graph.mobileAppTroubleshootingEvent": return new MobileAppTroubleshootingEvent(); case "#microsoft.graph.mobileContainedApp": return new MobileContainedApp(); case "#microsoft.graph.mobileLobApp": return new MobileLobApp(); @@ -714,6 +718,7 @@ private static Entity createFromDiscriminatorValue_1(@jakarta.annotation.Nonnull case "#microsoft.graph.oAuth2PermissionGrant": return new OAuth2PermissionGrant(); case "#microsoft.graph.offerShiftRequest": return new OfferShiftRequest(); case "#microsoft.graph.officeGraphInsights": return new OfficeGraphInsights(); + case "#microsoft.graph.oidcIdentityProvider": return new OidcIdentityProvider(); case "#microsoft.graph.onAttributeCollectionListener": return new OnAttributeCollectionListener(); case "#microsoft.graph.onAttributeCollectionStartCustomExtension": return new OnAttributeCollectionStartCustomExtension(); case "#microsoft.graph.onAttributeCollectionStartListener": return new OnAttributeCollectionStartListener(); @@ -1041,7 +1046,10 @@ private static Entity createFromDiscriminatorValue_1(@jakarta.annotation.Nonnull case "#microsoft.graph.taskFileAttachment": return new TaskFileAttachment(); case "#microsoft.graph.team": return new Team(); case "#microsoft.graph.teamInfo": return new TeamInfo(); + case "#microsoft.graph.teamsAdministration.policyIdentifierDetail": return new PolicyIdentifierDetail(); case "#microsoft.graph.teamsAdministration.teamsAdminRoot": return new TeamsAdminRoot(); + case "#microsoft.graph.teamsAdministration.teamsPolicyAssignment": return new TeamsPolicyAssignment(); + case "#microsoft.graph.teamsAdministration.teamsPolicyUserAssignment": return new TeamsPolicyUserAssignment(); case "#microsoft.graph.teamsAdministration.teamsUserConfiguration": return new TeamsUserConfiguration(); case "#microsoft.graph.teamsApp": return new TeamsApp(); case "#microsoft.graph.teamsAppDefinition": return new TeamsAppDefinition(); @@ -1192,11 +1200,6 @@ private static Entity createFromDiscriminatorValue_1(@jakarta.annotation.Nonnull case "#microsoft.graph.windowsDefenderAdvancedThreatProtectionConfiguration": return new WindowsDefenderAdvancedThreatProtectionConfiguration(); case "#microsoft.graph.windowsDeviceMalwareState": return new WindowsDeviceMalwareState(); case "#microsoft.graph.windowsHelloForBusinessAuthenticationMethod": return new WindowsHelloForBusinessAuthenticationMethod(); - case "#microsoft.graph.windowsInformationProtection": return new WindowsInformationProtection(); - case "#microsoft.graph.windowsInformationProtectionAppLearningSummary": return new WindowsInformationProtectionAppLearningSummary(); - case "#microsoft.graph.windowsInformationProtectionAppLockerFile": return new WindowsInformationProtectionAppLockerFile(); - case "#microsoft.graph.windowsInformationProtectionNetworkLearningSummary": return new WindowsInformationProtectionNetworkLearningSummary(); - case "#microsoft.graph.windowsInformationProtectionPolicy": return new WindowsInformationProtectionPolicy(); } return null; } @@ -1208,6 +1211,11 @@ private static Entity createFromDiscriminatorValue_1(@jakarta.annotation.Nonnull @jakarta.annotation.Nonnull private static Entity createFromDiscriminatorValue_2(@jakarta.annotation.Nonnull final String discriminatorValue) { switch (discriminatorValue) { + case "#microsoft.graph.windowsInformationProtection": return new WindowsInformationProtection(); + case "#microsoft.graph.windowsInformationProtectionAppLearningSummary": return new WindowsInformationProtectionAppLearningSummary(); + case "#microsoft.graph.windowsInformationProtectionAppLockerFile": return new WindowsInformationProtectionAppLockerFile(); + case "#microsoft.graph.windowsInformationProtectionNetworkLearningSummary": return new WindowsInformationProtectionNetworkLearningSummary(); + case "#microsoft.graph.windowsInformationProtectionPolicy": return new WindowsInformationProtectionPolicy(); case "#microsoft.graph.windowsMalwareInformation": return new WindowsMalwareInformation(); case "#microsoft.graph.windowsMicrosoftEdgeApp": return new WindowsMicrosoftEdgeApp(); case "#microsoft.graph.windowsMobileMSI": return new WindowsMobileMSI(); diff --git a/src/main/java/com/microsoft/graph/generated/models/ExternalAuthenticationMethod.java b/src/main/java/com/microsoft/graph/generated/models/ExternalAuthenticationMethod.java new file mode 100644 index 00000000000..0b3d6eafbc0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/ExternalAuthenticationMethod.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 ExternalAuthenticationMethod extends AuthenticationMethod implements Parsable { + /** + * Instantiates a new {@link ExternalAuthenticationMethod} and sets the default values. + */ + public ExternalAuthenticationMethod() { + super(); + this.setOdataType("#microsoft.graph.externalAuthenticationMethod"); + } + /** + * 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 ExternalAuthenticationMethod} + */ + @jakarta.annotation.Nonnull + public static ExternalAuthenticationMethod createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new ExternalAuthenticationMethod(); + } + /** + * Gets the configurationId property value. A unique identifier used to manage the external auth method within Microsoft Entra ID. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getConfigurationId() { + return this.backingStore.get("configurationId"); + } + /** + * Gets the displayName property value. Custom name given to the registered external authentication method. + * @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("configurationId", (n) -> { this.setConfigurationId(n.getStringValue()); }); + 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); + super.serialize(writer); + writer.writeStringValue("configurationId", this.getConfigurationId()); + writer.writeStringValue("displayName", this.getDisplayName()); + } + /** + * Sets the configurationId property value. A unique identifier used to manage the external auth method within Microsoft Entra ID. + * @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 displayName property value. Custom name given to the registered external authentication method. + * @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/models/ExternalAuthenticationMethodCollectionResponse.java b/src/main/java/com/microsoft/graph/generated/models/ExternalAuthenticationMethodCollectionResponse.java new file mode 100644 index 00000000000..ae7c72f3dcd --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/ExternalAuthenticationMethodCollectionResponse.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 ExternalAuthenticationMethodCollectionResponse extends BaseCollectionPaginationCountResponse implements Parsable { + /** + * Instantiates a new {@link ExternalAuthenticationMethodCollectionResponse} and sets the default values. + */ + public ExternalAuthenticationMethodCollectionResponse() { + 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 ExternalAuthenticationMethodCollectionResponse} + */ + @jakarta.annotation.Nonnull + public static ExternalAuthenticationMethodCollectionResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new ExternalAuthenticationMethodCollectionResponse(); + } + /** + * 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(ExternalAuthenticationMethod::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/Fido2AuthenticationMethod.java b/src/main/java/com/microsoft/graph/generated/models/Fido2AuthenticationMethod.java index 5d22afc1b7a..334e64d2cdb 100644 --- a/src/main/java/com/microsoft/graph/generated/models/Fido2AuthenticationMethod.java +++ b/src/main/java/com/microsoft/graph/generated/models/Fido2AuthenticationMethod.java @@ -3,7 +3,6 @@ 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; @@ -50,14 +49,6 @@ public java.util.List getAttestationCertificates() { public AttestationLevel getAttestationLevel() { return this.backingStore.get("attestationLevel"); } - /** - * Gets the createdDateTime property value. The timestamp when this key was registered to the user. - * @return a {@link OffsetDateTime} - */ - @jakarta.annotation.Nullable - public OffsetDateTime getCreatedDateTime() { - return this.backingStore.get("createdDateTime"); - } /** * Gets the displayName property value. The display name of the key as given by the user. * @return a {@link String} @@ -76,7 +67,6 @@ public Map> getFieldDeserializers deserializerMap.put("aaGuid", (n) -> { this.setAaGuid(n.getStringValue()); }); deserializerMap.put("attestationCertificates", (n) -> { this.setAttestationCertificates(n.getCollectionOfPrimitiveValues(String.class)); }); deserializerMap.put("attestationLevel", (n) -> { this.setAttestationLevel(n.getEnumValue(AttestationLevel::forValue)); }); - deserializerMap.put("createdDateTime", (n) -> { this.setCreatedDateTime(n.getOffsetDateTimeValue()); }); deserializerMap.put("displayName", (n) -> { this.setDisplayName(n.getStringValue()); }); deserializerMap.put("model", (n) -> { this.setModel(n.getStringValue()); }); return deserializerMap; @@ -99,7 +89,6 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeStringValue("aaGuid", this.getAaGuid()); writer.writeCollectionOfPrimitiveValues("attestationCertificates", this.getAttestationCertificates()); writer.writeEnumValue("attestationLevel", this.getAttestationLevel()); - writer.writeOffsetDateTimeValue("createdDateTime", this.getCreatedDateTime()); writer.writeStringValue("displayName", this.getDisplayName()); writer.writeStringValue("model", this.getModel()); } @@ -124,13 +113,6 @@ public void setAttestationCertificates(@jakarta.annotation.Nullable final java.u public void setAttestationLevel(@jakarta.annotation.Nullable final AttestationLevel value) { this.backingStore.set("attestationLevel", value); } - /** - * Sets the createdDateTime property value. The timestamp when this key was registered to the user. - * @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 display name of the key as given by the user. * @param value Value to set for the displayName property. diff --git a/src/main/java/com/microsoft/graph/generated/models/IdentityProviderBase.java b/src/main/java/com/microsoft/graph/generated/models/IdentityProviderBase.java index e614880c138..afbf86bbcb9 100644 --- a/src/main/java/com/microsoft/graph/generated/models/IdentityProviderBase.java +++ b/src/main/java/com/microsoft/graph/generated/models/IdentityProviderBase.java @@ -29,6 +29,7 @@ public static IdentityProviderBase createFromDiscriminatorValue(@jakarta.annotat case "#microsoft.graph.appleManagedIdentityProvider": return new AppleManagedIdentityProvider(); case "#microsoft.graph.builtInIdentityProvider": return new BuiltInIdentityProvider(); case "#microsoft.graph.internalDomainFederation": return new InternalDomainFederation(); + case "#microsoft.graph.oidcIdentityProvider": return new OidcIdentityProvider(); case "#microsoft.graph.samlOrWsFedExternalDomainFederation": return new SamlOrWsFedExternalDomainFederation(); case "#microsoft.graph.samlOrWsFedProvider": return new SamlOrWsFedProvider(); case "#microsoft.graph.socialIdentityProvider": return new SocialIdentityProvider(); diff --git a/src/main/java/com/microsoft/graph/generated/models/MicrosoftAuthenticatorAuthenticationMethod.java b/src/main/java/com/microsoft/graph/generated/models/MicrosoftAuthenticatorAuthenticationMethod.java index 1204a086bb3..bfef9c47289 100644 --- a/src/main/java/com/microsoft/graph/generated/models/MicrosoftAuthenticatorAuthenticationMethod.java +++ b/src/main/java/com/microsoft/graph/generated/models/MicrosoftAuthenticatorAuthenticationMethod.java @@ -3,7 +3,6 @@ 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; @@ -26,14 +25,6 @@ public static MicrosoftAuthenticatorAuthenticationMethod createFromDiscriminator Objects.requireNonNull(parseNode); return new MicrosoftAuthenticatorAuthenticationMethod(); } - /** - * Gets the createdDateTime property value. The date and time that this app was registered. This property is null if the device isn't registered for passwordless Phone Sign-In. - * @return a {@link OffsetDateTime} - */ - @jakarta.annotation.Nullable - public OffsetDateTime getCreatedDateTime() { - return this.backingStore.get("createdDateTime"); - } /** * Gets the device property value. The registered device on which Microsoft Authenticator resides. This property is null if the device isn't registered for passwordless Phone Sign-In. * @return a {@link Device} @@ -65,7 +56,6 @@ public String getDisplayName() { @jakarta.annotation.Nonnull public Map> getFieldDeserializers() { final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); - deserializerMap.put("createdDateTime", (n) -> { this.setCreatedDateTime(n.getOffsetDateTimeValue()); }); deserializerMap.put("device", (n) -> { this.setDevice(n.getObjectValue(Device::createFromDiscriminatorValue)); }); deserializerMap.put("deviceTag", (n) -> { this.setDeviceTag(n.getStringValue()); }); deserializerMap.put("displayName", (n) -> { this.setDisplayName(n.getStringValue()); }); @@ -87,19 +77,11 @@ public String getPhoneAppVersion() { public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); super.serialize(writer); - writer.writeOffsetDateTimeValue("createdDateTime", this.getCreatedDateTime()); writer.writeObjectValue("device", this.getDevice()); writer.writeStringValue("deviceTag", this.getDeviceTag()); writer.writeStringValue("displayName", this.getDisplayName()); writer.writeStringValue("phoneAppVersion", this.getPhoneAppVersion()); } - /** - * Sets the createdDateTime property value. The date and time that this app was registered. This property is null if the device isn't registered for passwordless Phone Sign-In. - * @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 device property value. The registered device on which Microsoft Authenticator resides. This property is null if the device isn't registered for passwordless Phone Sign-In. * @param value Value to set for the device property. diff --git a/src/main/java/com/microsoft/graph/generated/models/OidcAddressInboundClaims.java b/src/main/java/com/microsoft/graph/generated/models/OidcAddressInboundClaims.java new file mode 100644 index 00000000000..ba347a904c6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/OidcAddressInboundClaims.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 OidcAddressInboundClaims implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link OidcAddressInboundClaims} and sets the default values. + */ + public OidcAddressInboundClaims() { + 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 OidcAddressInboundClaims} + */ + @jakarta.annotation.Nonnull + public static OidcAddressInboundClaims createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new OidcAddressInboundClaims(); + } + /** + * 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 country property value. The country property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getCountry() { + return this.backingStore.get("country"); + } + /** + * 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("country", (n) -> { this.setCountry(n.getStringValue()); }); + deserializerMap.put("locality", (n) -> { this.setLocality(n.getStringValue()); }); + deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); }); + deserializerMap.put("postal_code", (n) -> { this.setPostalCode(n.getStringValue()); }); + deserializerMap.put("region", (n) -> { this.setRegion(n.getStringValue()); }); + deserializerMap.put("street_address", (n) -> { this.setStreetAddress(n.getStringValue()); }); + return deserializerMap; + } + /** + * Gets the locality property value. The locality property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getLocality() { + return this.backingStore.get("locality"); + } + /** + * 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 postal_code property value. The postal_code property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getPostalCode() { + return this.backingStore.get("postalCode"); + } + /** + * Gets the region property value. The region property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getRegion() { + return this.backingStore.get("region"); + } + /** + * Gets the street_address property value. The street_address property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getStreetAddress() { + return this.backingStore.get("streetAddress"); + } + /** + * 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("country", this.getCountry()); + writer.writeStringValue("locality", this.getLocality()); + writer.writeStringValue("@odata.type", this.getOdataType()); + writer.writeStringValue("postal_code", this.getPostalCode()); + writer.writeStringValue("region", this.getRegion()); + writer.writeStringValue("street_address", this.getStreetAddress()); + 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 country property value. The country property + * @param value Value to set for the country property. + */ + public void setCountry(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("country", value); + } + /** + * Sets the locality property value. The locality property + * @param value Value to set for the locality property. + */ + public void setLocality(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("locality", 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 postal_code property value. The postal_code property + * @param value Value to set for the postal_code property. + */ + public void setPostalCode(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("postalCode", value); + } + /** + * Sets the region property value. The region property + * @param value Value to set for the region property. + */ + public void setRegion(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("region", value); + } + /** + * Sets the street_address property value. The street_address property + * @param value Value to set for the street_address property. + */ + public void setStreetAddress(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("streetAddress", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/OidcClientAuthentication.java b/src/main/java/com/microsoft/graph/generated/models/OidcClientAuthentication.java new file mode 100644 index 00000000000..86eed232d2b --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/OidcClientAuthentication.java @@ -0,0 +1,115 @@ +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 OidcClientAuthentication implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link OidcClientAuthentication} and sets the default values. + */ + public OidcClientAuthentication() { + 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 OidcClientAuthentication} + */ + @jakarta.annotation.Nonnull + public static OidcClientAuthentication 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.oidcClientSecretAuthentication": return new OidcClientSecretAuthentication(); + case "#microsoft.graph.oidcPrivateJwtKeyClientAuthentication": return new OidcPrivateJwtKeyClientAuthentication(); + } + } + return new OidcClientAuthentication(); + } + /** + * 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/OidcClientSecretAuthentication.java b/src/main/java/com/microsoft/graph/generated/models/OidcClientSecretAuthentication.java new file mode 100644 index 00000000000..1f05c3723cc --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/OidcClientSecretAuthentication.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 OidcClientSecretAuthentication extends OidcClientAuthentication implements Parsable { + /** + * Instantiates a new {@link OidcClientSecretAuthentication} and sets the default values. + */ + public OidcClientSecretAuthentication() { + super(); + this.setOdataType("#microsoft.graph.oidcClientSecretAuthentication"); + } + /** + * 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 OidcClientSecretAuthentication} + */ + @jakarta.annotation.Nonnull + public static OidcClientSecretAuthentication createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new OidcClientSecretAuthentication(); + } + /** + * Gets the clientSecret property value. The clientSecret property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getClientSecret() { + return this.backingStore.get("clientSecret"); + } + /** + * 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("clientSecret", (n) -> { this.setClientSecret(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); + super.serialize(writer); + writer.writeStringValue("clientSecret", this.getClientSecret()); + } + /** + * Sets the clientSecret property value. The clientSecret property + * @param value Value to set for the clientSecret property. + */ + public void setClientSecret(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("clientSecret", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/OidcIdentityProvider.java b/src/main/java/com/microsoft/graph/generated/models/OidcIdentityProvider.java new file mode 100644 index 00000000000..6241e7489a5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/OidcIdentityProvider.java @@ -0,0 +1,165 @@ +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.EnumSet; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class OidcIdentityProvider extends IdentityProviderBase implements Parsable { + /** + * Instantiates a new {@link OidcIdentityProvider} and sets the default values. + */ + public OidcIdentityProvider() { + super(); + this.setOdataType("#microsoft.graph.oidcIdentityProvider"); + } + /** + * 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 OidcIdentityProvider} + */ + @jakarta.annotation.Nonnull + public static OidcIdentityProvider createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new OidcIdentityProvider(); + } + /** + * Gets the clientAuthentication property value. The clientAuthentication property + * @return a {@link OidcClientAuthentication} + */ + @jakarta.annotation.Nullable + public OidcClientAuthentication getClientAuthentication() { + return this.backingStore.get("clientAuthentication"); + } + /** + * Gets the clientId property value. The clientId property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getClientId() { + return this.backingStore.get("clientId"); + } + /** + * 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("clientAuthentication", (n) -> { this.setClientAuthentication(n.getObjectValue(OidcClientAuthentication::createFromDiscriminatorValue)); }); + deserializerMap.put("clientId", (n) -> { this.setClientId(n.getStringValue()); }); + deserializerMap.put("inboundClaimMapping", (n) -> { this.setInboundClaimMapping(n.getObjectValue(OidcInboundClaimMappingOverride::createFromDiscriminatorValue)); }); + deserializerMap.put("issuer", (n) -> { this.setIssuer(n.getStringValue()); }); + deserializerMap.put("responseType", (n) -> { this.setResponseType(n.getEnumSetValue(OidcResponseType::forValue)); }); + deserializerMap.put("scope", (n) -> { this.setScope(n.getStringValue()); }); + deserializerMap.put("wellKnownEndpoint", (n) -> { this.setWellKnownEndpoint(n.getStringValue()); }); + return deserializerMap; + } + /** + * Gets the inboundClaimMapping property value. The inboundClaimMapping property + * @return a {@link OidcInboundClaimMappingOverride} + */ + @jakarta.annotation.Nullable + public OidcInboundClaimMappingOverride getInboundClaimMapping() { + return this.backingStore.get("inboundClaimMapping"); + } + /** + * Gets the issuer property value. The issuer property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getIssuer() { + return this.backingStore.get("issuer"); + } + /** + * Gets the responseType property value. The responseType property + * @return a {@link EnumSet} + */ + @jakarta.annotation.Nullable + public EnumSet getResponseType() { + return this.backingStore.get("responseType"); + } + /** + * Gets the scope property value. The scope property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getScope() { + return this.backingStore.get("scope"); + } + /** + * Gets the wellKnownEndpoint property value. The wellKnownEndpoint property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getWellKnownEndpoint() { + return this.backingStore.get("wellKnownEndpoint"); + } + /** + * 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("clientAuthentication", this.getClientAuthentication()); + writer.writeStringValue("clientId", this.getClientId()); + writer.writeObjectValue("inboundClaimMapping", this.getInboundClaimMapping()); + writer.writeStringValue("issuer", this.getIssuer()); + writer.writeEnumSetValue("responseType", this.getResponseType()); + writer.writeStringValue("scope", this.getScope()); + writer.writeStringValue("wellKnownEndpoint", this.getWellKnownEndpoint()); + } + /** + * Sets the clientAuthentication property value. The clientAuthentication property + * @param value Value to set for the clientAuthentication property. + */ + public void setClientAuthentication(@jakarta.annotation.Nullable final OidcClientAuthentication value) { + this.backingStore.set("clientAuthentication", value); + } + /** + * Sets the clientId property value. The clientId property + * @param value Value to set for the clientId property. + */ + public void setClientId(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("clientId", value); + } + /** + * Sets the inboundClaimMapping property value. The inboundClaimMapping property + * @param value Value to set for the inboundClaimMapping property. + */ + public void setInboundClaimMapping(@jakarta.annotation.Nullable final OidcInboundClaimMappingOverride value) { + this.backingStore.set("inboundClaimMapping", value); + } + /** + * Sets the issuer property value. The issuer property + * @param value Value to set for the issuer property. + */ + public void setIssuer(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("issuer", value); + } + /** + * Sets the responseType property value. The responseType property + * @param value Value to set for the responseType property. + */ + public void setResponseType(@jakarta.annotation.Nullable final EnumSet value) { + this.backingStore.set("responseType", value); + } + /** + * Sets the scope property value. The scope property + * @param value Value to set for the scope property. + */ + public void setScope(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("scope", value); + } + /** + * Sets the wellKnownEndpoint property value. The wellKnownEndpoint property + * @param value Value to set for the wellKnownEndpoint property. + */ + public void setWellKnownEndpoint(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("wellKnownEndpoint", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/OidcInboundClaimMappingOverride.java b/src/main/java/com/microsoft/graph/generated/models/OidcInboundClaimMappingOverride.java new file mode 100644 index 00000000000..b512d627836 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/OidcInboundClaimMappingOverride.java @@ -0,0 +1,260 @@ +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 OidcInboundClaimMappingOverride implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link OidcInboundClaimMappingOverride} and sets the default values. + */ + public OidcInboundClaimMappingOverride() { + 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 OidcInboundClaimMappingOverride} + */ + @jakarta.annotation.Nonnull + public static OidcInboundClaimMappingOverride createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new OidcInboundClaimMappingOverride(); + } + /** + * 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 address property value. The address property + * @return a {@link OidcAddressInboundClaims} + */ + @jakarta.annotation.Nullable + public OidcAddressInboundClaims getAddress() { + return this.backingStore.get("address"); + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * Gets the email property value. The email property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getEmail() { + return this.backingStore.get("email"); + } + /** + * Gets the email_verified property value. The email_verified property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getEmailVerified() { + return this.backingStore.get("emailVerified"); + } + /** + * Gets the family_name property value. The family_name property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getFamilyName() { + return this.backingStore.get("familyName"); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(10); + deserializerMap.put("address", (n) -> { this.setAddress(n.getObjectValue(OidcAddressInboundClaims::createFromDiscriminatorValue)); }); + deserializerMap.put("email", (n) -> { this.setEmail(n.getStringValue()); }); + deserializerMap.put("email_verified", (n) -> { this.setEmailVerified(n.getStringValue()); }); + deserializerMap.put("family_name", (n) -> { this.setFamilyName(n.getStringValue()); }); + deserializerMap.put("given_name", (n) -> { this.setGivenName(n.getStringValue()); }); + deserializerMap.put("name", (n) -> { this.setName(n.getStringValue()); }); + deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); }); + deserializerMap.put("phone_number", (n) -> { this.setPhoneNumber(n.getStringValue()); }); + deserializerMap.put("phone_number_verified", (n) -> { this.setPhoneNumberVerified(n.getStringValue()); }); + deserializerMap.put("sub", (n) -> { this.setSub(n.getStringValue()); }); + return deserializerMap; + } + /** + * Gets the given_name property value. The given_name property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getGivenName() { + return this.backingStore.get("givenName"); + } + /** + * 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"); + } + /** + * Gets the phone_number property value. The phone_number property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getPhoneNumber() { + return this.backingStore.get("phoneNumber"); + } + /** + * Gets the phone_number_verified property value. The phone_number_verified property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getPhoneNumberVerified() { + return this.backingStore.get("phoneNumberVerified"); + } + /** + * Gets the sub property value. The sub property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getSub() { + return this.backingStore.get("sub"); + } + /** + * 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("address", this.getAddress()); + writer.writeStringValue("email", this.getEmail()); + writer.writeStringValue("email_verified", this.getEmailVerified()); + writer.writeStringValue("family_name", this.getFamilyName()); + writer.writeStringValue("given_name", this.getGivenName()); + writer.writeStringValue("name", this.getName()); + writer.writeStringValue("@odata.type", this.getOdataType()); + writer.writeStringValue("phone_number", this.getPhoneNumber()); + writer.writeStringValue("phone_number_verified", this.getPhoneNumberVerified()); + writer.writeStringValue("sub", this.getSub()); + 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 address property value. The address property + * @param value Value to set for the address property. + */ + public void setAddress(@jakarta.annotation.Nullable final OidcAddressInboundClaims value) { + this.backingStore.set("address", 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 email property value. The email property + * @param value Value to set for the email property. + */ + public void setEmail(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("email", value); + } + /** + * Sets the email_verified property value. The email_verified property + * @param value Value to set for the email_verified property. + */ + public void setEmailVerified(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("emailVerified", value); + } + /** + * Sets the family_name property value. The family_name property + * @param value Value to set for the family_name property. + */ + public void setFamilyName(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("familyName", value); + } + /** + * Sets the given_name property value. The given_name property + * @param value Value to set for the given_name property. + */ + public void setGivenName(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("givenName", 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); + } + /** + * Sets the phone_number property value. The phone_number property + * @param value Value to set for the phone_number property. + */ + public void setPhoneNumber(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("phoneNumber", value); + } + /** + * Sets the phone_number_verified property value. The phone_number_verified property + * @param value Value to set for the phone_number_verified property. + */ + public void setPhoneNumberVerified(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("phoneNumberVerified", value); + } + /** + * Sets the sub property value. The sub property + * @param value Value to set for the sub property. + */ + public void setSub(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("sub", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/OidcPrivateJwtKeyClientAuthentication.java b/src/main/java/com/microsoft/graph/generated/models/OidcPrivateJwtKeyClientAuthentication.java new file mode 100644 index 00000000000..ab9acede09f --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/OidcPrivateJwtKeyClientAuthentication.java @@ -0,0 +1,45 @@ +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 OidcPrivateJwtKeyClientAuthentication extends OidcClientAuthentication implements Parsable { + /** + * Instantiates a new {@link OidcPrivateJwtKeyClientAuthentication} and sets the default values. + */ + public OidcPrivateJwtKeyClientAuthentication() { + super(); + this.setOdataType("#microsoft.graph.oidcPrivateJwtKeyClientAuthentication"); + } + /** + * 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 OidcPrivateJwtKeyClientAuthentication} + */ + @jakarta.annotation.Nonnull + public static OidcPrivateJwtKeyClientAuthentication createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new OidcPrivateJwtKeyClientAuthentication(); + } + /** + * 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/OidcResponseType.java b/src/main/java/com/microsoft/graph/generated/models/OidcResponseType.java new file mode 100644 index 00000000000..a1e017fee10 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/OidcResponseType.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 OidcResponseType implements ValuedEnum { + Code("code"), + Id_token("id_token"), + Token("token"), + UnknownFutureValue("unknownFutureValue"); + public final String value; + OidcResponseType(final String value) { + this.value = value; + } + @jakarta.annotation.Nonnull + public String getValue() { return this.value; } + @jakarta.annotation.Nullable + public static OidcResponseType forValue(@jakarta.annotation.Nonnull final String searchValue) { + Objects.requireNonNull(searchValue); + switch(searchValue) { + case "code": return Code; + case "id_token": return Id_token; + case "token": return Token; + case "unknownFutureValue": return UnknownFutureValue; + default: return null; + } + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/PasswordAuthenticationMethod.java b/src/main/java/com/microsoft/graph/generated/models/PasswordAuthenticationMethod.java index b83d4745afc..9995679f88f 100644 --- a/src/main/java/com/microsoft/graph/generated/models/PasswordAuthenticationMethod.java +++ b/src/main/java/com/microsoft/graph/generated/models/PasswordAuthenticationMethod.java @@ -3,7 +3,6 @@ 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; @@ -26,14 +25,6 @@ public static PasswordAuthenticationMethod createFromDiscriminatorValue(@jakarta Objects.requireNonNull(parseNode); return new PasswordAuthenticationMethod(); } - /** - * Gets the createdDateTime property value. The date and time when this password was last updated. This property is currently not populated. Read-only. 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. - * @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>} @@ -41,7 +32,6 @@ public OffsetDateTime getCreatedDateTime() { @jakarta.annotation.Nonnull public Map> getFieldDeserializers() { final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); - deserializerMap.put("createdDateTime", (n) -> { this.setCreatedDateTime(n.getOffsetDateTimeValue()); }); deserializerMap.put("password", (n) -> { this.setPassword(n.getStringValue()); }); return deserializerMap; } @@ -60,16 +50,8 @@ public String getPassword() { public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); super.serialize(writer); - writer.writeOffsetDateTimeValue("createdDateTime", this.getCreatedDateTime()); writer.writeStringValue("password", this.getPassword()); } - /** - * Sets the createdDateTime property value. The date and time when this password was last updated. This property is currently not populated. Read-only. 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. - * @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 password property value. For security, the password is always returned as null from a LIST or GET operation. * @param value Value to set for the password property. diff --git a/src/main/java/com/microsoft/graph/generated/models/PlatformCredentialAuthenticationMethod.java b/src/main/java/com/microsoft/graph/generated/models/PlatformCredentialAuthenticationMethod.java index 0ee2d3157e5..285c000ee89 100644 --- a/src/main/java/com/microsoft/graph/generated/models/PlatformCredentialAuthenticationMethod.java +++ b/src/main/java/com/microsoft/graph/generated/models/PlatformCredentialAuthenticationMethod.java @@ -3,7 +3,6 @@ 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; @@ -26,14 +25,6 @@ public static PlatformCredentialAuthenticationMethod createFromDiscriminatorValu Objects.requireNonNull(parseNode); return new PlatformCredentialAuthenticationMethod(); } - /** - * Gets the createdDateTime property value. The date and time that this Platform Credential Key was registered. - * @return a {@link OffsetDateTime} - */ - @jakarta.annotation.Nullable - public OffsetDateTime getCreatedDateTime() { - return this.backingStore.get("createdDateTime"); - } /** * Gets the device property value. The registered device on which this Platform Credential resides. Supports $expand. When you get a user's Platform Credential registration information, this property is returned only on a single GET and when you specify ?$expand. For example, GET /users/admin@contoso.com/authentication/platformCredentialAuthenticationMethod/_jpuR-TGZtk6aQCLF3BQjA2?$expand=device. * @return a {@link Device} @@ -57,7 +48,6 @@ public String getDisplayName() { @jakarta.annotation.Nonnull public Map> getFieldDeserializers() { final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); - deserializerMap.put("createdDateTime", (n) -> { this.setCreatedDateTime(n.getOffsetDateTimeValue()); }); deserializerMap.put("device", (n) -> { this.setDevice(n.getObjectValue(Device::createFromDiscriminatorValue)); }); deserializerMap.put("displayName", (n) -> { this.setDisplayName(n.getStringValue()); }); deserializerMap.put("keyStrength", (n) -> { this.setKeyStrength(n.getEnumValue(AuthenticationMethodKeyStrength::forValue)); }); @@ -87,19 +77,11 @@ public AuthenticationMethodPlatform getPlatform() { public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); super.serialize(writer); - writer.writeOffsetDateTimeValue("createdDateTime", this.getCreatedDateTime()); writer.writeObjectValue("device", this.getDevice()); writer.writeStringValue("displayName", this.getDisplayName()); writer.writeEnumValue("keyStrength", this.getKeyStrength()); writer.writeEnumValue("platform", this.getPlatform()); } - /** - * Sets the createdDateTime property value. The date and time that this Platform Credential Key was registered. - * @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 device property value. The registered device on which this Platform Credential resides. Supports $expand. When you get a user's Platform Credential registration information, this property is returned only on a single GET and when you specify ?$expand. For example, GET /users/admin@contoso.com/authentication/platformCredentialAuthenticationMethod/_jpuR-TGZtk6aQCLF3BQjA2?$expand=device. * @param value Value to set for the device property. diff --git a/src/main/java/com/microsoft/graph/generated/models/ProcessConversationMetadata.java b/src/main/java/com/microsoft/graph/generated/models/ProcessConversationMetadata.java index 4bfed0a410d..8d1eac539b8 100644 --- a/src/main/java/com/microsoft/graph/generated/models/ProcessConversationMetadata.java +++ b/src/main/java/com/microsoft/graph/generated/models/ProcessConversationMetadata.java @@ -33,6 +33,22 @@ public static ProcessConversationMetadata createFromDiscriminatorValue(@jakarta. public java.util.List getAccessedResources() { return this.backingStore.get("accessedResources"); } + /** + * Gets the accessedResources_v2 property value. The accessedResources_v2 property + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getAccessedResourcesV2() { + return this.backingStore.get("accessedResourcesV2"); + } + /** + * Gets the agents property value. The agents property + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getAgents() { + return this.backingStore.get("agents"); + } /** * The deserialization information for the current model * @return a {@link Map>} @@ -41,6 +57,8 @@ public java.util.List getAccessedResources() { public Map> getFieldDeserializers() { final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); deserializerMap.put("accessedResources", (n) -> { this.setAccessedResources(n.getCollectionOfPrimitiveValues(String.class)); }); + deserializerMap.put("accessedResources_v2", (n) -> { this.setAccessedResourcesV2(n.getCollectionOfObjectValues(ResourceAccessDetail::createFromDiscriminatorValue)); }); + deserializerMap.put("agents", (n) -> { this.setAgents(n.getCollectionOfObjectValues(AiAgentInfo::createFromDiscriminatorValue)); }); deserializerMap.put("parentMessageId", (n) -> { this.setParentMessageId(n.getStringValue()); }); deserializerMap.put("plugins", (n) -> { this.setPlugins(n.getCollectionOfObjectValues(AiInteractionPlugin::createFromDiscriminatorValue)); }); return deserializerMap; @@ -69,6 +87,8 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ Objects.requireNonNull(writer); super.serialize(writer); writer.writeCollectionOfPrimitiveValues("accessedResources", this.getAccessedResources()); + writer.writeCollectionOfObjectValues("accessedResources_v2", this.getAccessedResourcesV2()); + writer.writeCollectionOfObjectValues("agents", this.getAgents()); writer.writeStringValue("parentMessageId", this.getParentMessageId()); writer.writeCollectionOfObjectValues("plugins", this.getPlugins()); } @@ -79,6 +99,20 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ public void setAccessedResources(@jakarta.annotation.Nullable final java.util.List value) { this.backingStore.set("accessedResources", value); } + /** + * Sets the accessedResources_v2 property value. The accessedResources_v2 property + * @param value Value to set for the accessedResources_v2 property. + */ + public void setAccessedResourcesV2(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("accessedResourcesV2", value); + } + /** + * Sets the agents property value. The agents property + * @param value Value to set for the agents property. + */ + public void setAgents(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("agents", value); + } /** * Sets the parentMessageId property value. Identifier of the parent message in a threaded conversation, if applicable. * @param value Value to set for the parentMessageId property. diff --git a/src/main/java/com/microsoft/graph/generated/models/ProtectionPolicyArtifactCount.java b/src/main/java/com/microsoft/graph/generated/models/ProtectionPolicyArtifactCount.java new file mode 100644 index 00000000000..4f0e339900e --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/ProtectionPolicyArtifactCount.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 ProtectionPolicyArtifactCount implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link ProtectionPolicyArtifactCount} and sets the default values. + */ + public ProtectionPolicyArtifactCount() { + 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 ProtectionPolicyArtifactCount} + */ + @jakarta.annotation.Nonnull + public static ProtectionPolicyArtifactCount createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new ProtectionPolicyArtifactCount(); + } + /** + * 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 completed property value. The completed property + * @return a {@link Integer} + */ + @jakarta.annotation.Nullable + public Integer getCompleted() { + return this.backingStore.get("completed"); + } + /** + * Gets the failed property value. The failed property + * @return a {@link Integer} + */ + @jakarta.annotation.Nullable + public Integer getFailed() { + return this.backingStore.get("failed"); + } + /** + * 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("completed", (n) -> { this.setCompleted(n.getIntegerValue()); }); + deserializerMap.put("failed", (n) -> { this.setFailed(n.getIntegerValue()); }); + deserializerMap.put("inProgress", (n) -> { this.setInProgress(n.getIntegerValue()); }); + deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); }); + deserializerMap.put("total", (n) -> { this.setTotal(n.getIntegerValue()); }); + return deserializerMap; + } + /** + * Gets the inProgress property value. The inProgress property + * @return a {@link Integer} + */ + @jakarta.annotation.Nullable + public Integer getInProgress() { + return this.backingStore.get("inProgress"); + } + /** + * 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 total property value. The total property + * @return a {@link Integer} + */ + @jakarta.annotation.Nullable + public Integer getTotal() { + return this.backingStore.get("total"); + } + /** + * 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("completed", this.getCompleted()); + writer.writeIntegerValue("failed", this.getFailed()); + writer.writeIntegerValue("inProgress", this.getInProgress()); + writer.writeStringValue("@odata.type", this.getOdataType()); + writer.writeIntegerValue("total", this.getTotal()); + 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 completed property value. The completed property + * @param value Value to set for the completed property. + */ + public void setCompleted(@jakarta.annotation.Nullable final Integer value) { + this.backingStore.set("completed", value); + } + /** + * Sets the failed property value. The failed property + * @param value Value to set for the failed property. + */ + public void setFailed(@jakarta.annotation.Nullable final Integer value) { + this.backingStore.set("failed", value); + } + /** + * Sets the inProgress property value. The inProgress property + * @param value Value to set for the inProgress property. + */ + public void setInProgress(@jakarta.annotation.Nullable final Integer value) { + this.backingStore.set("inProgress", 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 total property value. The total property + * @param value Value to set for the total property. + */ + public void setTotal(@jakarta.annotation.Nullable final Integer value) { + this.backingStore.set("total", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/ProtectionPolicyBase.java b/src/main/java/com/microsoft/graph/generated/models/ProtectionPolicyBase.java index 9fe89b7cdcf..2058ef71af9 100644 --- a/src/main/java/com/microsoft/graph/generated/models/ProtectionPolicyBase.java +++ b/src/main/java/com/microsoft/graph/generated/models/ProtectionPolicyBase.java @@ -68,12 +68,22 @@ public Map> getFieldDeserializers deserializerMap.put("createdBy", (n) -> { this.setCreatedBy(n.getObjectValue(IdentitySet::createFromDiscriminatorValue)); }); deserializerMap.put("createdDateTime", (n) -> { this.setCreatedDateTime(n.getOffsetDateTimeValue()); }); deserializerMap.put("displayName", (n) -> { this.setDisplayName(n.getStringValue()); }); + deserializerMap.put("isEnabled", (n) -> { this.setIsEnabled(n.getBooleanValue()); }); deserializerMap.put("lastModifiedBy", (n) -> { this.setLastModifiedBy(n.getObjectValue(IdentitySet::createFromDiscriminatorValue)); }); deserializerMap.put("lastModifiedDateTime", (n) -> { this.setLastModifiedDateTime(n.getOffsetDateTimeValue()); }); + deserializerMap.put("protectionPolicyArtifactCount", (n) -> { this.setProtectionPolicyArtifactCount(n.getObjectValue(ProtectionPolicyArtifactCount::createFromDiscriminatorValue)); }); deserializerMap.put("retentionSettings", (n) -> { this.setRetentionSettings(n.getCollectionOfObjectValues(RetentionSetting::createFromDiscriminatorValue)); }); deserializerMap.put("status", (n) -> { this.setStatus(n.getEnumValue(ProtectionPolicyStatus::forValue)); }); return deserializerMap; } + /** + * Gets the isEnabled property value. The isEnabled property + * @return a {@link Boolean} + */ + @jakarta.annotation.Nullable + public Boolean getIsEnabled() { + return this.backingStore.get("isEnabled"); + } /** * Gets the lastModifiedBy property value. The identity of the person who last modified the policy. * @return a {@link IdentitySet} @@ -90,6 +100,14 @@ public IdentitySet getLastModifiedBy() { public OffsetDateTime getLastModifiedDateTime() { return this.backingStore.get("lastModifiedDateTime"); } + /** + * Gets the protectionPolicyArtifactCount property value. The protectionPolicyArtifactCount property + * @return a {@link ProtectionPolicyArtifactCount} + */ + @jakarta.annotation.Nullable + public ProtectionPolicyArtifactCount getProtectionPolicyArtifactCount() { + return this.backingStore.get("protectionPolicyArtifactCount"); + } /** * Gets the retentionSettings property value. Contains the retention setting details for the policy. * @return a {@link java.util.List} @@ -116,8 +134,10 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeObjectValue("createdBy", this.getCreatedBy()); writer.writeOffsetDateTimeValue("createdDateTime", this.getCreatedDateTime()); writer.writeStringValue("displayName", this.getDisplayName()); + writer.writeBooleanValue("isEnabled", this.getIsEnabled()); writer.writeObjectValue("lastModifiedBy", this.getLastModifiedBy()); writer.writeOffsetDateTimeValue("lastModifiedDateTime", this.getLastModifiedDateTime()); + writer.writeObjectValue("protectionPolicyArtifactCount", this.getProtectionPolicyArtifactCount()); writer.writeCollectionOfObjectValues("retentionSettings", this.getRetentionSettings()); writer.writeEnumValue("status", this.getStatus()); } @@ -142,6 +162,13 @@ public void setCreatedDateTime(@jakarta.annotation.Nullable final OffsetDateTime public void setDisplayName(@jakarta.annotation.Nullable final String value) { this.backingStore.set("displayName", value); } + /** + * Sets the isEnabled property value. The isEnabled property + * @param value Value to set for the isEnabled property. + */ + public void setIsEnabled(@jakarta.annotation.Nullable final Boolean value) { + this.backingStore.set("isEnabled", value); + } /** * Sets the lastModifiedBy property value. The identity of the person who last modified the policy. * @param value Value to set for the lastModifiedBy property. @@ -156,6 +183,13 @@ public void setLastModifiedBy(@jakarta.annotation.Nullable final IdentitySet val public void setLastModifiedDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) { this.backingStore.set("lastModifiedDateTime", value); } + /** + * Sets the protectionPolicyArtifactCount property value. The protectionPolicyArtifactCount property + * @param value Value to set for the protectionPolicyArtifactCount property. + */ + public void setProtectionPolicyArtifactCount(@jakarta.annotation.Nullable final ProtectionPolicyArtifactCount value) { + this.backingStore.set("protectionPolicyArtifactCount", value); + } /** * Sets the retentionSettings property value. Contains the retention setting details for the policy. * @param value Value to set for the retentionSettings property. diff --git a/src/main/java/com/microsoft/graph/generated/models/ResourceAccessDetail.java b/src/main/java/com/microsoft/graph/generated/models/ResourceAccessDetail.java new file mode 100644 index 00000000000..dc20daf96e9 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/ResourceAccessDetail.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.util.EnumSet; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class ResourceAccessDetail implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link ResourceAccessDetail} and sets the default values. + */ + public ResourceAccessDetail() { + 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 ResourceAccessDetail} + */ + @jakarta.annotation.Nonnull + public static ResourceAccessDetail createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new ResourceAccessDetail(); + } + /** + * Gets the accessType property value. The accessType property + * @return a {@link EnumSet} + */ + @jakarta.annotation.Nullable + public EnumSet getAccessType() { + return this.backingStore.get("accessType"); + } + /** + * 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>(9); + deserializerMap.put("accessType", (n) -> { this.setAccessType(n.getEnumSetValue(ResourceAccessType::forValue)); }); + deserializerMap.put("identifier", (n) -> { this.setIdentifier(n.getStringValue()); }); + deserializerMap.put("isCrossPromptInjectionDetected", (n) -> { this.setIsCrossPromptInjectionDetected(n.getBooleanValue()); }); + deserializerMap.put("labelId", (n) -> { this.setLabelId(n.getStringValue()); }); + deserializerMap.put("name", (n) -> { this.setName(n.getStringValue()); }); + deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); }); + deserializerMap.put("status", (n) -> { this.setStatus(n.getEnumValue(ResourceAccessStatus::forValue)); }); + deserializerMap.put("storageId", (n) -> { this.setStorageId(n.getStringValue()); }); + deserializerMap.put("url", (n) -> { this.setUrl(n.getStringValue()); }); + return deserializerMap; + } + /** + * Gets the identifier property value. The identifier property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getIdentifier() { + return this.backingStore.get("identifier"); + } + /** + * Gets the isCrossPromptInjectionDetected property value. The isCrossPromptInjectionDetected property + * @return a {@link Boolean} + */ + @jakarta.annotation.Nullable + public Boolean getIsCrossPromptInjectionDetected() { + return this.backingStore.get("isCrossPromptInjectionDetected"); + } + /** + * Gets the labelId property value. The labelId property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getLabelId() { + return this.backingStore.get("labelId"); + } + /** + * 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"); + } + /** + * Gets the status property value. The status property + * @return a {@link ResourceAccessStatus} + */ + @jakarta.annotation.Nullable + public ResourceAccessStatus getStatus() { + return this.backingStore.get("status"); + } + /** + * Gets the storageId property value. The storageId property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getStorageId() { + return this.backingStore.get("storageId"); + } + /** + * Gets the url property value. The url property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getUrl() { + return this.backingStore.get("url"); + } + /** + * 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.writeEnumSetValue("accessType", this.getAccessType()); + writer.writeStringValue("identifier", this.getIdentifier()); + writer.writeBooleanValue("isCrossPromptInjectionDetected", this.getIsCrossPromptInjectionDetected()); + writer.writeStringValue("labelId", this.getLabelId()); + writer.writeStringValue("name", this.getName()); + writer.writeStringValue("@odata.type", this.getOdataType()); + writer.writeEnumValue("status", this.getStatus()); + writer.writeStringValue("storageId", this.getStorageId()); + writer.writeStringValue("url", this.getUrl()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the accessType property value. The accessType property + * @param value Value to set for the accessType property. + */ + public void setAccessType(@jakarta.annotation.Nullable final EnumSet value) { + this.backingStore.set("accessType", value); + } + /** + * 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 identifier property value. The identifier property + * @param value Value to set for the identifier property. + */ + public void setIdentifier(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("identifier", value); + } + /** + * Sets the isCrossPromptInjectionDetected property value. The isCrossPromptInjectionDetected property + * @param value Value to set for the isCrossPromptInjectionDetected property. + */ + public void setIsCrossPromptInjectionDetected(@jakarta.annotation.Nullable final Boolean value) { + this.backingStore.set("isCrossPromptInjectionDetected", value); + } + /** + * Sets the labelId property value. The labelId property + * @param value Value to set for the labelId property. + */ + public void setLabelId(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("labelId", 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); + } + /** + * Sets the status property value. The status property + * @param value Value to set for the status property. + */ + public void setStatus(@jakarta.annotation.Nullable final ResourceAccessStatus value) { + this.backingStore.set("status", value); + } + /** + * Sets the storageId property value. The storageId property + * @param value Value to set for the storageId property. + */ + public void setStorageId(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("storageId", value); + } + /** + * Sets the url property value. The url property + * @param value Value to set for the url property. + */ + public void setUrl(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("url", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/ResourceAccessStatus.java b/src/main/java/com/microsoft/graph/generated/models/ResourceAccessStatus.java new file mode 100644 index 00000000000..a9b0a1828d4 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/ResourceAccessStatus.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 ResourceAccessStatus implements ValuedEnum { + None("none"), + Failure("failure"), + Success("success"), + UnknownFutureValue("unknownFutureValue"); + public final String value; + ResourceAccessStatus(final String value) { + this.value = value; + } + @jakarta.annotation.Nonnull + public String getValue() { return this.value; } + @jakarta.annotation.Nullable + public static ResourceAccessStatus forValue(@jakarta.annotation.Nonnull final String searchValue) { + Objects.requireNonNull(searchValue); + switch(searchValue) { + case "none": return None; + case "failure": return Failure; + case "success": return Success; + case "unknownFutureValue": return UnknownFutureValue; + default: return null; + } + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/ResourceAccessType.java b/src/main/java/com/microsoft/graph/generated/models/ResourceAccessType.java new file mode 100644 index 00000000000..752544ba8ae --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/ResourceAccessType.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 ResourceAccessType implements ValuedEnum { + None("none"), + Read("read"), + Write("write"), + Create("create"), + UnknownFutureValue("unknownFutureValue"); + public final String value; + ResourceAccessType(final String value) { + this.value = value; + } + @jakarta.annotation.Nonnull + public String getValue() { return this.value; } + @jakarta.annotation.Nullable + public static ResourceAccessType forValue(@jakarta.annotation.Nonnull final String searchValue) { + Objects.requireNonNull(searchValue); + switch(searchValue) { + case "none": return None; + case "read": return Read; + case "write": return Write; + case "create": return Create; + case "unknownFutureValue": return UnknownFutureValue; + default: return null; + } + } +} 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 c9eff2788ad..9863011c76d 100644 --- a/src/main/java/com/microsoft/graph/generated/models/ServicePrincipal.java +++ b/src/main/java/com/microsoft/graph/generated/models/ServicePrincipal.java @@ -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 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. + * Gets the servicePrincipalType property value. Identifies whether the service principal represents an application, a managed identity, or a legacy application. This property 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.ServiceIdentity - A service principal that represents an agent identity.SocialIdp - For internal use. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -865,7 +865,7 @@ public void setServicePrincipalNames(@jakarta.annotation.Nullable final java.uti 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 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. + * Sets the servicePrincipalType property value. Identifies whether the service principal represents an application, a managed identity, or a legacy application. This property 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.ServiceIdentity - A service principal that represents an agent identity.SocialIdp - For internal use. * @param value Value to set for the servicePrincipalType property. */ public void setServicePrincipalType(@jakarta.annotation.Nullable final String value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/TemporaryAccessPassAuthenticationMethod.java b/src/main/java/com/microsoft/graph/generated/models/TemporaryAccessPassAuthenticationMethod.java index d9b6b1542ee..4bf9682705e 100644 --- a/src/main/java/com/microsoft/graph/generated/models/TemporaryAccessPassAuthenticationMethod.java +++ b/src/main/java/com/microsoft/graph/generated/models/TemporaryAccessPassAuthenticationMethod.java @@ -26,14 +26,6 @@ public static TemporaryAccessPassAuthenticationMethod createFromDiscriminatorVal Objects.requireNonNull(parseNode); return new TemporaryAccessPassAuthenticationMethod(); } - /** - * Gets the createdDateTime property value. The date and time when the Temporary Access Pass was created. - * @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>} @@ -41,7 +33,6 @@ public OffsetDateTime getCreatedDateTime() { @jakarta.annotation.Nonnull public Map> getFieldDeserializers() { final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); - deserializerMap.put("createdDateTime", (n) -> { this.setCreatedDateTime(n.getOffsetDateTimeValue()); }); deserializerMap.put("isUsable", (n) -> { this.setIsUsable(n.getBooleanValue()); }); deserializerMap.put("isUsableOnce", (n) -> { this.setIsUsableOnce(n.getBooleanValue()); }); deserializerMap.put("lifetimeInMinutes", (n) -> { this.setLifetimeInMinutes(n.getIntegerValue()); }); @@ -105,7 +96,6 @@ public String getTemporaryAccessPass() { public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); super.serialize(writer); - writer.writeOffsetDateTimeValue("createdDateTime", this.getCreatedDateTime()); writer.writeBooleanValue("isUsable", this.getIsUsable()); writer.writeBooleanValue("isUsableOnce", this.getIsUsableOnce()); writer.writeIntegerValue("lifetimeInMinutes", this.getLifetimeInMinutes()); @@ -113,13 +103,6 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeOffsetDateTimeValue("startDateTime", this.getStartDateTime()); writer.writeStringValue("temporaryAccessPass", this.getTemporaryAccessPass()); } - /** - * Sets the createdDateTime property value. The date and time when the Temporary Access Pass was created. - * @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 isUsable property value. The state of the authentication method that indicates whether it's currently usable by the user. * @param value Value to set for the isUsable property. diff --git a/src/main/java/com/microsoft/graph/generated/models/UsageRights.java b/src/main/java/com/microsoft/graph/generated/models/UsageRights.java index 4f0c5aca92a..c820b369fb2 100644 --- a/src/main/java/com/microsoft/graph/generated/models/UsageRights.java +++ b/src/main/java/com/microsoft/graph/generated/models/UsageRights.java @@ -25,6 +25,7 @@ public enum UsageRights implements ValuedEnum { EncryptedProtectionTypeNotSupportedException("encryptedProtectionTypeNotSupportedException"), PurviewClaimsChallengeNotSupportedException("purviewClaimsChallengeNotSupportedException"), Exception("exception"), + LabelNotFoundException("labelNotFoundException"), UnknownFutureValue("unknownFutureValue"); public final String value; UsageRights(final String value) { @@ -56,6 +57,7 @@ public static UsageRights forValue(@jakarta.annotation.Nonnull final String sear case "encryptedProtectionTypeNotSupportedException": return EncryptedProtectionTypeNotSupportedException; case "purviewClaimsChallengeNotSupportedException": return PurviewClaimsChallengeNotSupportedException; case "exception": return Exception; + case "labelNotFoundException": return LabelNotFoundException; case "unknownFutureValue": return UnknownFutureValue; default: return null; } diff --git a/src/main/java/com/microsoft/graph/generated/models/WindowsHelloForBusinessAuthenticationMethod.java b/src/main/java/com/microsoft/graph/generated/models/WindowsHelloForBusinessAuthenticationMethod.java index 1ab044e08a5..8ebd510f599 100644 --- a/src/main/java/com/microsoft/graph/generated/models/WindowsHelloForBusinessAuthenticationMethod.java +++ b/src/main/java/com/microsoft/graph/generated/models/WindowsHelloForBusinessAuthenticationMethod.java @@ -3,7 +3,6 @@ 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; @@ -26,14 +25,6 @@ public static WindowsHelloForBusinessAuthenticationMethod createFromDiscriminato Objects.requireNonNull(parseNode); return new WindowsHelloForBusinessAuthenticationMethod(); } - /** - * Gets the createdDateTime property value. The date and time that this Windows Hello for Business key was registered. - * @return a {@link OffsetDateTime} - */ - @jakarta.annotation.Nullable - public OffsetDateTime getCreatedDateTime() { - return this.backingStore.get("createdDateTime"); - } /** * Gets the device property value. The registered device on which this Windows Hello for Business key resides. Supports $expand. When you get a user's Windows Hello for Business registration information, this property is returned only on a single GET and when you specify ?$expand. For example, GET /users/admin@contoso.com/authentication/windowsHelloForBusinessMethods/_jpuR-TGZtk6aQCLF3BQjA2?$expand=device. * @return a {@link Device} @@ -57,7 +48,6 @@ public String getDisplayName() { @jakarta.annotation.Nonnull public Map> getFieldDeserializers() { final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); - deserializerMap.put("createdDateTime", (n) -> { this.setCreatedDateTime(n.getOffsetDateTimeValue()); }); deserializerMap.put("device", (n) -> { this.setDevice(n.getObjectValue(Device::createFromDiscriminatorValue)); }); deserializerMap.put("displayName", (n) -> { this.setDisplayName(n.getStringValue()); }); deserializerMap.put("keyStrength", (n) -> { this.setKeyStrength(n.getEnumValue(AuthenticationMethodKeyStrength::forValue)); }); @@ -78,18 +68,10 @@ public AuthenticationMethodKeyStrength getKeyStrength() { public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); super.serialize(writer); - writer.writeOffsetDateTimeValue("createdDateTime", this.getCreatedDateTime()); writer.writeObjectValue("device", this.getDevice()); writer.writeStringValue("displayName", this.getDisplayName()); writer.writeEnumValue("keyStrength", this.getKeyStrength()); } - /** - * Sets the createdDateTime property value. The date and time that this Windows Hello for Business key was registered. - * @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 device property value. The registered device on which this Windows Hello for Business key resides. Supports $expand. When you get a user's Windows Hello for Business registration information, this property is returned only on a single GET and when you specify ?$expand. For example, GET /users/admin@contoso.com/authentication/windowsHelloForBusinessMethods/_jpuR-TGZtk6aQCLF3BQjA2?$expand=device. * @param value Value to set for the device property. 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 34b2e7990fb..ca44fde4b30 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 @@ -115,7 +115,7 @@ public String getDescription() { return this.backingStore.get("description"); } /** - * Gets the detectionSource property value. Detection technology or sensor that identified the notable component or activity. The possible values are: unknown, microsoftDefenderForEndpoint, antivirus, smartScreen, customTi, microsoftDefenderForOffice365, automatedInvestigation, microsoftThreatExperts, customDetection, microsoftDefenderForIdentity, cloudAppSecurity, microsoft365Defender, azureAdIdentityProtection, manual, microsoftDataLossPrevention, appGovernancePolicy, appGovernanceDetection, unknownFutureValue, microsoftDefenderForCloud, microsoftDefenderForIoT, microsoftDefenderForServers, microsoftDefenderForStorage, microsoftDefenderForDNS, microsoftDefenderForDatabases, microsoftDefenderForContainers, microsoftDefenderForNetwork, microsoftDefenderForAppService, microsoftDefenderForKeyVault, microsoftDefenderForResourceManager, microsoftDefenderForApiManagement, microsoftSentinel, nrtAlerts, scheduledAlerts, microsoftDefenderThreatIntelligenceAnalytics, builtInMl, microsoftThreatIntelligence, microsoftDefenderForAIServices, securityCopilot. Use the Prefer: include-unknown-enum-members request header to get the following values in this evolvable enum: microsoftDefenderForCloud, microsoftDefenderForIoT, microsoftDefenderForServers, microsoftDefenderForStorage, microsoftDefenderForDNS, microsoftDefenderForDatabases, microsoftDefenderForContainers, microsoftDefenderForNetwork, microsoftDefenderForAppService, microsoftDefenderForKeyVault, microsoftDefenderForResourceManager, microsoftDefenderForApiManagement, microsoftSentinel, nrtAlerts, scheduledAlerts, microsoftDefenderThreatIntelligenceAnalytics, builtInMl, microsoftThreatIntelligence, microsoftDefenderForAIServices, securityCopilot. + * Gets the detectionSource property value. Detection technology or sensor that identified the notable component or activity. * @return a {@link DetectionSource} */ @jakarta.annotation.Nullable @@ -461,7 +461,7 @@ public void setDescription(@jakarta.annotation.Nullable final String value) { this.backingStore.set("description", value); } /** - * Sets the detectionSource property value. Detection technology or sensor that identified the notable component or activity. The possible values are: unknown, microsoftDefenderForEndpoint, antivirus, smartScreen, customTi, microsoftDefenderForOffice365, automatedInvestigation, microsoftThreatExperts, customDetection, microsoftDefenderForIdentity, cloudAppSecurity, microsoft365Defender, azureAdIdentityProtection, manual, microsoftDataLossPrevention, appGovernancePolicy, appGovernanceDetection, unknownFutureValue, microsoftDefenderForCloud, microsoftDefenderForIoT, microsoftDefenderForServers, microsoftDefenderForStorage, microsoftDefenderForDNS, microsoftDefenderForDatabases, microsoftDefenderForContainers, microsoftDefenderForNetwork, microsoftDefenderForAppService, microsoftDefenderForKeyVault, microsoftDefenderForResourceManager, microsoftDefenderForApiManagement, microsoftSentinel, nrtAlerts, scheduledAlerts, microsoftDefenderThreatIntelligenceAnalytics, builtInMl, microsoftThreatIntelligence, microsoftDefenderForAIServices, securityCopilot. Use the Prefer: include-unknown-enum-members request header to get the following values in this evolvable enum: microsoftDefenderForCloud, microsoftDefenderForIoT, microsoftDefenderForServers, microsoftDefenderForStorage, microsoftDefenderForDNS, microsoftDefenderForDatabases, microsoftDefenderForContainers, microsoftDefenderForNetwork, microsoftDefenderForAppService, microsoftDefenderForKeyVault, microsoftDefenderForResourceManager, microsoftDefenderForApiManagement, microsoftSentinel, nrtAlerts, scheduledAlerts, microsoftDefenderThreatIntelligenceAnalytics, builtInMl, microsoftThreatIntelligence, microsoftDefenderForAIServices, securityCopilot. + * Sets the detectionSource property value. Detection technology or sensor that identified the notable component or activity. * @param value Value to set for the detectionSource property. */ public void setDetectionSource(@jakarta.annotation.Nullable final DetectionSource value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/security/EdiscoveryPurgeDataOperation.java b/src/main/java/com/microsoft/graph/generated/models/security/EdiscoveryPurgeDataOperation.java index 9365cad6362..015775953ed 100644 --- a/src/main/java/com/microsoft/graph/generated/models/security/EdiscoveryPurgeDataOperation.java +++ b/src/main/java/com/microsoft/graph/generated/models/security/EdiscoveryPurgeDataOperation.java @@ -31,8 +31,17 @@ public static EdiscoveryPurgeDataOperation createFromDiscriminatorValue(@jakarta @jakarta.annotation.Nonnull public Map> getFieldDeserializers() { final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("reportFileMetadata", (n) -> { this.setReportFileMetadata(n.getCollectionOfObjectValues(ReportFileMetadata::createFromDiscriminatorValue)); }); return deserializerMap; } + /** + * Gets the reportFileMetadata property value. The purge job report file metadata. It contains the properties for report file metadata, including downloadUrl, fileName, and size. + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getReportFileMetadata() { + return this.backingStore.get("reportFileMetadata"); + } /** * Serializes information the current object * @param writer Serialization writer to use to serialize this model @@ -40,5 +49,13 @@ public Map> getFieldDeserializers public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); super.serialize(writer); + writer.writeCollectionOfObjectValues("reportFileMetadata", this.getReportFileMetadata()); + } + /** + * Sets the reportFileMetadata property value. The purge job report file metadata. It contains the properties for report file metadata, including downloadUrl, fileName, and size. + * @param value Value to set for the reportFileMetadata property. + */ + public void setReportFileMetadata(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("reportFileMetadata", value); } } 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 a6eb1b9ba7d..3dfb448b483 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 @@ -117,6 +117,7 @@ public Map> getFieldDeserializers deserializerMap.put("incidentWebUrl", (n) -> { this.setIncidentWebUrl(n.getStringValue()); }); deserializerMap.put("lastModifiedBy", (n) -> { this.setLastModifiedBy(n.getStringValue()); }); deserializerMap.put("lastUpdateDateTime", (n) -> { this.setLastUpdateDateTime(n.getOffsetDateTimeValue()); }); + deserializerMap.put("priorityScore", (n) -> { this.setPriorityScore(n.getIntegerValue()); }); 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)); }); @@ -150,6 +151,14 @@ public String getLastModifiedBy() { public OffsetDateTime getLastUpdateDateTime() { return this.backingStore.get("lastUpdateDateTime"); } + /** + * Gets the priorityScore property value. A priority score for the incident from 0 to 100, with > 85 being the top priority, 15 - 85 medium priority, and < 15 low priority. This score is generated using machine learning and is based on multiple factors, including severity, disruption impact, threat intelligence, alert types, asset criticality, threat analytics, incident rarity, and additional priority signals. The value can also be null which indicates the feature is not open for the tenant or the value of the score is pending calculation. + * @return a {@link Integer} + */ + @jakarta.annotation.Nullable + public Integer getPriorityScore() { + return this.backingStore.get("priorityScore"); + } /** * Gets the redirectIncidentId property value. Only populated in case an incident is grouped with another incident, as part of the logic that processes incidents. In such a case, the status property is redirected. * @return a {@link String} @@ -225,6 +234,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeStringValue("incidentWebUrl", this.getIncidentWebUrl()); writer.writeStringValue("lastModifiedBy", this.getLastModifiedBy()); writer.writeOffsetDateTimeValue("lastUpdateDateTime", this.getLastUpdateDateTime()); + writer.writeIntegerValue("priorityScore", this.getPriorityScore()); writer.writeStringValue("redirectIncidentId", this.getRedirectIncidentId()); writer.writeStringValue("resolvingComment", this.getResolvingComment()); writer.writeEnumValue("severity", this.getSeverity()); @@ -317,6 +327,13 @@ public void setLastModifiedBy(@jakarta.annotation.Nullable final String value) { public void setLastUpdateDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) { this.backingStore.set("lastUpdateDateTime", value); } + /** + * Sets the priorityScore property value. A priority score for the incident from 0 to 100, with > 85 being the top priority, 15 - 85 medium priority, and < 15 low priority. This score is generated using machine learning and is based on multiple factors, including severity, disruption impact, threat intelligence, alert types, asset criticality, threat analytics, incident rarity, and additional priority signals. The value can also be null which indicates the feature is not open for the tenant or the value of the score is pending calculation. + * @param value Value to set for the priorityScore property. + */ + public void setPriorityScore(@jakarta.annotation.Nullable final Integer value) { + this.backingStore.set("priorityScore", value); + } /** * Sets the redirectIncidentId property value. Only populated in case an incident is grouped with another incident, as part of the logic that processes incidents. In such a case, the status property is redirected. * @param value Value to set for the redirectIncidentId property. diff --git a/src/main/java/com/microsoft/graph/generated/models/security/Sensor.java b/src/main/java/com/microsoft/graph/generated/models/security/Sensor.java index 973fecc281e..fa58987ba21 100644 --- a/src/main/java/com/microsoft/graph/generated/models/security/Sensor.java +++ b/src/main/java/com/microsoft/graph/generated/models/security/Sensor.java @@ -73,6 +73,7 @@ public Map> getFieldDeserializers deserializerMap.put("healthStatus", (n) -> { this.setHealthStatus(n.getEnumValue(SensorHealthStatus::forValue)); }); deserializerMap.put("openHealthIssuesCount", (n) -> { this.setOpenHealthIssuesCount(n.getLongValue()); }); deserializerMap.put("sensorType", (n) -> { this.setSensorType(n.getEnumValue(SensorType::forValue)); }); + deserializerMap.put("serviceStatus", (n) -> { this.setServiceStatus(n.getEnumValue(ServiceStatus::forValue)); }); deserializerMap.put("settings", (n) -> { this.setSettings(n.getObjectValue(SensorSettings::createFromDiscriminatorValue)); }); deserializerMap.put("version", (n) -> { this.setVersion(n.getStringValue()); }); return deserializerMap; @@ -109,6 +110,14 @@ public Long getOpenHealthIssuesCount() { public SensorType getSensorType() { return this.backingStore.get("sensorType"); } + /** + * Gets the serviceStatus property value. The serviceStatus property + * @return a {@link ServiceStatus} + */ + @jakarta.annotation.Nullable + public ServiceStatus getServiceStatus() { + return this.backingStore.get("serviceStatus"); + } /** * Gets the settings property value. The settings property * @return a {@link SensorSettings} @@ -140,6 +149,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeEnumValue("healthStatus", this.getHealthStatus()); writer.writeLongValue("openHealthIssuesCount", this.getOpenHealthIssuesCount()); writer.writeEnumValue("sensorType", this.getSensorType()); + writer.writeEnumValue("serviceStatus", this.getServiceStatus()); writer.writeObjectValue("settings", this.getSettings()); writer.writeStringValue("version", this.getVersion()); } @@ -199,6 +209,13 @@ public void setOpenHealthIssuesCount(@jakarta.annotation.Nullable final Long val public void setSensorType(@jakarta.annotation.Nullable final SensorType value) { this.backingStore.set("sensorType", value); } + /** + * Sets the serviceStatus property value. The serviceStatus property + * @param value Value to set for the serviceStatus property. + */ + public void setServiceStatus(@jakarta.annotation.Nullable final ServiceStatus value) { + this.backingStore.set("serviceStatus", value); + } /** * Sets the settings property value. The settings property * @param value Value to set for the settings property. diff --git a/src/main/java/com/microsoft/graph/generated/models/security/SensorCandidate.java b/src/main/java/com/microsoft/graph/generated/models/security/SensorCandidate.java index b46ac1d67e8..abcc4407fbd 100644 --- a/src/main/java/com/microsoft/graph/generated/models/security/SensorCandidate.java +++ b/src/main/java/com/microsoft/graph/generated/models/security/SensorCandidate.java @@ -34,6 +34,14 @@ public static SensorCandidate createFromDiscriminatorValue(@jakarta.annotation.N public String getComputerDnsName() { return this.backingStore.get("computerDnsName"); } + /** + * Gets the domainName property value. The domain name of the sensor. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getDomainName() { + return this.backingStore.get("domainName"); + } /** * The deserialization information for the current model * @return a {@link Map>} @@ -42,6 +50,7 @@ public String getComputerDnsName() { public Map> getFieldDeserializers() { final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); deserializerMap.put("computerDnsName", (n) -> { this.setComputerDnsName(n.getStringValue()); }); + deserializerMap.put("domainName", (n) -> { this.setDomainName(n.getStringValue()); }); deserializerMap.put("lastSeenDateTime", (n) -> { this.setLastSeenDateTime(n.getOffsetDateTimeValue()); }); deserializerMap.put("senseClientVersion", (n) -> { this.setSenseClientVersion(n.getStringValue()); }); return deserializerMap; @@ -70,6 +79,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ Objects.requireNonNull(writer); super.serialize(writer); writer.writeStringValue("computerDnsName", this.getComputerDnsName()); + writer.writeStringValue("domainName", this.getDomainName()); writer.writeOffsetDateTimeValue("lastSeenDateTime", this.getLastSeenDateTime()); writer.writeStringValue("senseClientVersion", this.getSenseClientVersion()); } @@ -80,6 +90,13 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ public void setComputerDnsName(@jakarta.annotation.Nullable final String value) { this.backingStore.set("computerDnsName", value); } + /** + * Sets the domainName property value. The domain name of the sensor. + * @param value Value to set for the domainName property. + */ + public void setDomainName(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("domainName", value); + } /** * Sets the lastSeenDateTime property value. The date and time when the sensor was last seen. * @param value Value to set for the lastSeenDateTime property. diff --git a/src/main/java/com/microsoft/graph/generated/models/security/ServiceStatus.java b/src/main/java/com/microsoft/graph/generated/models/security/ServiceStatus.java new file mode 100644 index 00000000000..b37899aa71c --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/security/ServiceStatus.java @@ -0,0 +1,35 @@ +package com.microsoft.graph.models.security; + +import com.microsoft.kiota.serialization.ValuedEnum; +import java.util.Objects; + +@jakarta.annotation.Generated("com.microsoft.kiota") +public enum ServiceStatus implements ValuedEnum { + Stopped("stopped"), + Starting("starting"), + Running("running"), + Disabled("disabled"), + Onboarding("onboarding"), + Unknown("unknown"), + UnknownFutureValue("unknownFutureValue"); + public final String value; + ServiceStatus(final String value) { + this.value = value; + } + @jakarta.annotation.Nonnull + public String getValue() { return this.value; } + @jakarta.annotation.Nullable + public static ServiceStatus forValue(@jakarta.annotation.Nonnull final String searchValue) { + Objects.requireNonNull(searchValue); + switch(searchValue) { + case "stopped": return Stopped; + case "starting": return Starting; + case "running": return Running; + case "disabled": return Disabled; + case "onboarding": return Onboarding; + case "unknown": return Unknown; + case "unknownFutureValue": return UnknownFutureValue; + default: return null; + } + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/teamsadministration/PolicyIdentifierDetail.java b/src/main/java/com/microsoft/graph/generated/models/teamsadministration/PolicyIdentifierDetail.java new file mode 100644 index 00000000000..9d3cac817bc --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/teamsadministration/PolicyIdentifierDetail.java @@ -0,0 +1,79 @@ +package com.microsoft.graph.models.teamsadministration; + +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 PolicyIdentifierDetail extends Entity implements Parsable { + /** + * Instantiates a new {@link PolicyIdentifierDetail} and sets the default values. + */ + public PolicyIdentifierDetail() { + 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 PolicyIdentifierDetail} + */ + @jakarta.annotation.Nonnull + public static PolicyIdentifierDetail createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new PolicyIdentifierDetail(); + } + /** + * 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("name", (n) -> { this.setName(n.getStringValue()); }); + deserializerMap.put("policyId", (n) -> { this.setPolicyId(n.getStringValue()); }); + return deserializerMap; + } + /** + * Gets the name property value. The display name of the policy instance. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getName() { + return this.backingStore.get("name"); + } + /** + * Gets the policyId property value. The unique ID associated with the policy instance. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getPolicyId() { + return this.backingStore.get("policyId"); + } + /** + * 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("name", this.getName()); + writer.writeStringValue("policyId", this.getPolicyId()); + } + /** + * Sets the name property value. The display name of the policy instance. + * @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 policyId property value. The unique ID associated with the policy instance. + * @param value Value to set for the policyId property. + */ + public void setPolicyId(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("policyId", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/teamsadministration/TeamsAdminRoot.java b/src/main/java/com/microsoft/graph/generated/models/teamsadministration/TeamsAdminRoot.java index abd2b7f9451..a1832ab18f9 100644 --- a/src/main/java/com/microsoft/graph/generated/models/teamsadministration/TeamsAdminRoot.java +++ b/src/main/java/com/microsoft/graph/generated/models/teamsadministration/TeamsAdminRoot.java @@ -32,11 +32,20 @@ public static TeamsAdminRoot createFromDiscriminatorValue(@jakarta.annotation.No @jakarta.annotation.Nonnull public Map> getFieldDeserializers() { final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("policy", (n) -> { this.setPolicy(n.getObjectValue(TeamsPolicyAssignment::createFromDiscriminatorValue)); }); deserializerMap.put("userConfigurations", (n) -> { this.setUserConfigurations(n.getCollectionOfObjectValues(TeamsUserConfiguration::createFromDiscriminatorValue)); }); return deserializerMap; } /** - * Gets the userConfigurations property value. Represents the configuration information of users who have accounts hosted on Microsoft Teams. + * Gets the policy property value. Represents a navigation property to the Teams policy assignment object. + * @return a {@link TeamsPolicyAssignment} + */ + @jakarta.annotation.Nullable + public TeamsPolicyAssignment getPolicy() { + return this.backingStore.get("policy"); + } + /** + * Gets the userConfigurations property value. Represents the configuration information of users who have accounts hosted on Microsoft Teams * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -50,10 +59,18 @@ public java.util.List getUserConfigurations() { public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); super.serialize(writer); + writer.writeObjectValue("policy", this.getPolicy()); writer.writeCollectionOfObjectValues("userConfigurations", this.getUserConfigurations()); } /** - * Sets the userConfigurations property value. Represents the configuration information of users who have accounts hosted on Microsoft Teams. + * Sets the policy property value. Represents a navigation property to the Teams policy assignment object. + * @param value Value to set for the policy property. + */ + public void setPolicy(@jakarta.annotation.Nullable final TeamsPolicyAssignment value) { + this.backingStore.set("policy", value); + } + /** + * Sets the userConfigurations property value. Represents the configuration information of users who have accounts hosted on Microsoft Teams * @param value Value to set for the userConfigurations property. */ public void setUserConfigurations(@jakarta.annotation.Nullable final java.util.List value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/teamsadministration/TeamsPolicyAssignment.java b/src/main/java/com/microsoft/graph/generated/models/teamsadministration/TeamsPolicyAssignment.java new file mode 100644 index 00000000000..a3561763300 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/teamsadministration/TeamsPolicyAssignment.java @@ -0,0 +1,62 @@ +package com.microsoft.graph.models.teamsadministration; + +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 TeamsPolicyAssignment extends Entity implements Parsable { + /** + * Instantiates a new {@link TeamsPolicyAssignment} and sets the default values. + */ + public TeamsPolicyAssignment() { + 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 TeamsPolicyAssignment} + */ + @jakarta.annotation.Nonnull + public static TeamsPolicyAssignment createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new TeamsPolicyAssignment(); + } + /** + * 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("userAssignments", (n) -> { this.setUserAssignments(n.getCollectionOfObjectValues(TeamsPolicyUserAssignment::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the userAssignments property value. The collection of user policy assignments. + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getUserAssignments() { + return this.backingStore.get("userAssignments"); + } + /** + * 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("userAssignments", this.getUserAssignments()); + } + /** + * Sets the userAssignments property value. The collection of user policy assignments. + * @param value Value to set for the userAssignments property. + */ + public void setUserAssignments(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("userAssignments", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/teamsadministration/TeamsPolicyUserAssignment.java b/src/main/java/com/microsoft/graph/generated/models/teamsadministration/TeamsPolicyUserAssignment.java new file mode 100644 index 00000000000..1a169f5e89c --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/teamsadministration/TeamsPolicyUserAssignment.java @@ -0,0 +1,96 @@ +package com.microsoft.graph.models.teamsadministration; + +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 TeamsPolicyUserAssignment extends Entity implements Parsable { + /** + * Instantiates a new {@link TeamsPolicyUserAssignment} and sets the default values. + */ + public TeamsPolicyUserAssignment() { + 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 TeamsPolicyUserAssignment} + */ + @jakarta.annotation.Nonnull + public static TeamsPolicyUserAssignment createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new TeamsPolicyUserAssignment(); + } + /** + * 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("policyId", (n) -> { this.setPolicyId(n.getStringValue()); }); + deserializerMap.put("policyType", (n) -> { this.setPolicyType(n.getStringValue()); }); + deserializerMap.put("userId", (n) -> { this.setUserId(n.getStringValue()); }); + return deserializerMap; + } + /** + * Gets the policyId property value. The unique identifier (GUID) of the policy within the specified policy type. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getPolicyId() { + return this.backingStore.get("policyId"); + } + /** + * Gets the policyType property value. The type of Teams policy assigned or unassigned, such as teamsMeetingBroadcastPolicy. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getPolicyType() { + return this.backingStore.get("policyType"); + } + /** + * Gets the userId property value. The unique identifier (GUID) of the user. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getUserId() { + return this.backingStore.get("userId"); + } + /** + * 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("policyId", this.getPolicyId()); + writer.writeStringValue("policyType", this.getPolicyType()); + writer.writeStringValue("userId", this.getUserId()); + } + /** + * Sets the policyId property value. The unique identifier (GUID) of the policy within the specified policy type. + * @param value Value to set for the policyId property. + */ + public void setPolicyId(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("policyId", value); + } + /** + * Sets the policyType property value. The type of Teams policy assigned or unassigned, such as teamsMeetingBroadcastPolicy. + * @param value Value to set for the policyType property. + */ + public void setPolicyType(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("policyType", value); + } + /** + * Sets the userId property value. The unique identifier (GUID) of the user. + * @param value Value to set for the userId property. + */ + public void setUserId(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("userId", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/teamsadministration/TeamsPolicyUserAssignmentCollectionResponse.java b/src/main/java/com/microsoft/graph/generated/models/teamsadministration/TeamsPolicyUserAssignmentCollectionResponse.java new file mode 100644 index 00000000000..eb1303daace --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/teamsadministration/TeamsPolicyUserAssignmentCollectionResponse.java @@ -0,0 +1,62 @@ +package com.microsoft.graph.models.teamsadministration; + +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 TeamsPolicyUserAssignmentCollectionResponse extends BaseCollectionPaginationCountResponse implements Parsable { + /** + * Instantiates a new {@link TeamsPolicyUserAssignmentCollectionResponse} and sets the default values. + */ + public TeamsPolicyUserAssignmentCollectionResponse() { + 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 TeamsPolicyUserAssignmentCollectionResponse} + */ + @jakarta.annotation.Nonnull + public static TeamsPolicyUserAssignmentCollectionResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new TeamsPolicyUserAssignmentCollectionResponse(); + } + /** + * 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(TeamsPolicyUserAssignment::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/policies/authenticationmethodspolicy/authenticationmethodconfigurations/AuthenticationMethodConfigurationsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/policies/authenticationmethodspolicy/authenticationmethodconfigurations/AuthenticationMethodConfigurationsRequestBuilder.java index 124f73168f1..485675df479 100644 --- a/src/main/java/com/microsoft/graph/generated/policies/authenticationmethodspolicy/authenticationmethodconfigurations/AuthenticationMethodConfigurationsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/policies/authenticationmethodspolicy/authenticationmethodconfigurations/AuthenticationMethodConfigurationsRequestBuilder.java @@ -60,7 +60,7 @@ public AuthenticationMethodConfigurationsRequestBuilder(@jakarta.annotation.Nonn super(requestAdapter, "{+baseurl}/policies/authenticationMethodsPolicy/authenticationMethodConfigurations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * Represents the settings for each authentication method. Automatically expanded on GET /policies/authenticationMethodsPolicy. + * Read the properties and relationships of an externalAuthenticationMethodConfiguration object. * @return a {@link AuthenticationMethodConfigurationCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -69,7 +69,7 @@ public AuthenticationMethodConfigurationCollectionResponse get() { return get(null); } /** - * Represents the settings for each authentication method. Automatically expanded on GET /policies/authenticationMethodsPolicy. + * Read the properties and relationships of an externalAuthenticationMethodConfiguration object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link AuthenticationMethodConfigurationCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -107,7 +107,7 @@ public AuthenticationMethodConfiguration post(@jakarta.annotation.Nonnull final return this.requestAdapter.send(requestInfo, errorMapping, AuthenticationMethodConfiguration::createFromDiscriminatorValue); } /** - * Represents the settings for each authentication method. Automatically expanded on GET /policies/authenticationMethodsPolicy. + * Read the properties and relationships of an externalAuthenticationMethodConfiguration object. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -115,7 +115,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Represents the settings for each authentication method. Automatically expanded on GET /policies/authenticationMethodsPolicy. + * Read the properties and relationships of an externalAuthenticationMethodConfiguration object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -161,7 +161,7 @@ public AuthenticationMethodConfigurationsRequestBuilder withUrl(@jakarta.annotat return new AuthenticationMethodConfigurationsRequestBuilder(rawUrl, requestAdapter); } /** - * Represents the settings for each authentication method. Automatically expanded on GET /policies/authenticationMethodsPolicy. + * Read the properties and relationships of an externalAuthenticationMethodConfiguration object. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/policies/authenticationmethodspolicy/authenticationmethodconfigurations/item/AuthenticationMethodConfigurationItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/policies/authenticationmethodspolicy/authenticationmethodconfigurations/item/AuthenticationMethodConfigurationItemRequestBuilder.java index 573d0dcc070..7ef64f9ef03 100644 --- a/src/main/java/com/microsoft/graph/generated/policies/authenticationmethodspolicy/authenticationmethodconfigurations/item/AuthenticationMethodConfigurationItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/policies/authenticationmethodspolicy/authenticationmethodconfigurations/item/AuthenticationMethodConfigurationItemRequestBuilder.java @@ -37,16 +37,18 @@ public AuthenticationMethodConfigurationItemRequestBuilder(@jakarta.annotation.N super(requestAdapter, "{+baseurl}/policies/authenticationMethodsPolicy/authenticationMethodConfigurations/{authenticationMethodConfiguration%2Did}{?%24expand,%24select}", rawUrl); } /** - * Delete navigation property authenticationMethodConfigurations for policies + * Delete an externalAuthenticationMethodConfiguration object. * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here */ public void delete() { delete(null); } /** - * Delete navigation property authenticationMethodConfigurations for policies + * Delete an externalAuthenticationMethodConfiguration 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); @@ -55,19 +57,21 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Represents the settings for each authentication method. Automatically expanded on GET /policies/authenticationMethodsPolicy. + * Read the properties and relationships of an externalAuthenticationMethodConfiguration object. * @return a {@link AuthenticationMethodConfiguration} * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here */ @jakarta.annotation.Nullable public AuthenticationMethodConfiguration get() { return get(null); } /** - * Represents the settings for each authentication method. Automatically expanded on GET /policies/authenticationMethodsPolicy. + * Read the properties and relationships of an externalAuthenticationMethodConfiguration object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link AuthenticationMethodConfiguration} * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here */ @jakarta.annotation.Nullable public AuthenticationMethodConfiguration get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -77,21 +81,23 @@ public AuthenticationMethodConfiguration get(@jakarta.annotation.Nullable final return this.requestAdapter.send(requestInfo, errorMapping, AuthenticationMethodConfiguration::createFromDiscriminatorValue); } /** - * Update the navigation property authenticationMethodConfigurations in policies + * Update the properties of an externalAuthenticationMethodConfiguration object. * @param body The request body * @return a {@link AuthenticationMethodConfiguration} * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here */ @jakarta.annotation.Nullable public AuthenticationMethodConfiguration patch(@jakarta.annotation.Nonnull final AuthenticationMethodConfiguration body) { return patch(body, null); } /** - * Update the navigation property authenticationMethodConfigurations in policies + * Update the properties of an externalAuthenticationMethodConfiguration object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link AuthenticationMethodConfiguration} * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here */ @jakarta.annotation.Nullable public AuthenticationMethodConfiguration patch(@jakarta.annotation.Nonnull final AuthenticationMethodConfiguration body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -102,7 +108,7 @@ public AuthenticationMethodConfiguration patch(@jakarta.annotation.Nonnull final return this.requestAdapter.send(requestInfo, errorMapping, AuthenticationMethodConfiguration::createFromDiscriminatorValue); } /** - * Delete navigation property authenticationMethodConfigurations for policies + * Delete an externalAuthenticationMethodConfiguration object. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -110,7 +116,7 @@ public RequestInformation toDeleteRequestInformation() { return toDeleteRequestInformation(null); } /** - * Delete navigation property authenticationMethodConfigurations for policies + * Delete an externalAuthenticationMethodConfiguration object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -122,7 +128,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Represents the settings for each authentication method. Automatically expanded on GET /policies/authenticationMethodsPolicy. + * Read the properties and relationships of an externalAuthenticationMethodConfiguration object. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -130,7 +136,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Represents the settings for each authentication method. Automatically expanded on GET /policies/authenticationMethodsPolicy. + * Read the properties and relationships of an externalAuthenticationMethodConfiguration object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -142,7 +148,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Update the navigation property authenticationMethodConfigurations in policies + * Update the properties of an externalAuthenticationMethodConfiguration object. * @param body The request body * @return a {@link RequestInformation} */ @@ -151,7 +157,7 @@ public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull return toPatchRequestInformation(body, null); } /** - * Update the navigation property authenticationMethodConfigurations in policies + * Update the properties of an externalAuthenticationMethodConfiguration object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} @@ -182,7 +188,7 @@ public AuthenticationMethodConfigurationItemRequestBuilder withUrl(@jakarta.anno public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Represents the settings for each authentication method. Automatically expanded on GET /policies/authenticationMethodsPolicy. + * Read the properties and relationships of an externalAuthenticationMethodConfiguration object. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/users/item/authentication/AuthenticationRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/users/item/authentication/AuthenticationRequestBuilder.java index 6e9aa278f96..02d98602ad7 100644 --- a/src/main/java/com/microsoft/graph/generated/users/item/authentication/AuthenticationRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/users/item/authentication/AuthenticationRequestBuilder.java @@ -3,6 +3,7 @@ import com.microsoft.graph.models.Authentication; import com.microsoft.graph.models.odataerrors.ODataError; import com.microsoft.graph.users.item.authentication.emailmethods.EmailMethodsRequestBuilder; +import com.microsoft.graph.users.item.authentication.externalauthenticationmethods.ExternalAuthenticationMethodsRequestBuilder; import com.microsoft.graph.users.item.authentication.fido2methods.Fido2MethodsRequestBuilder; import com.microsoft.graph.users.item.authentication.methods.MethodsRequestBuilder; import com.microsoft.graph.users.item.authentication.microsoftauthenticatormethods.MicrosoftAuthenticatorMethodsRequestBuilder; @@ -39,6 +40,14 @@ public class AuthenticationRequestBuilder extends BaseRequestBuilder { public EmailMethodsRequestBuilder emailMethods() { return new EmailMethodsRequestBuilder(pathParameters, requestAdapter); } + /** + * Provides operations to manage the externalAuthenticationMethods property of the microsoft.graph.authentication entity. + * @return a {@link ExternalAuthenticationMethodsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ExternalAuthenticationMethodsRequestBuilder externalAuthenticationMethods() { + return new ExternalAuthenticationMethodsRequestBuilder(pathParameters, requestAdapter); + } /** * Provides operations to manage the fido2Methods property of the microsoft.graph.authentication entity. * @return a {@link Fido2MethodsRequestBuilder} diff --git a/src/main/java/com/microsoft/graph/generated/users/item/authentication/externalauthenticationmethods/ExternalAuthenticationMethodsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/users/item/authentication/externalauthenticationmethods/ExternalAuthenticationMethodsRequestBuilder.java new file mode 100644 index 00000000000..9efad35a82a --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/users/item/authentication/externalauthenticationmethods/ExternalAuthenticationMethodsRequestBuilder.java @@ -0,0 +1,245 @@ +package com.microsoft.graph.users.item.authentication.externalauthenticationmethods; + +import com.microsoft.graph.models.ExternalAuthenticationMethod; +import com.microsoft.graph.models.ExternalAuthenticationMethodCollectionResponse; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.users.item.authentication.externalauthenticationmethods.count.CountRequestBuilder; +import com.microsoft.graph.users.item.authentication.externalauthenticationmethods.item.ExternalAuthenticationMethodItemRequestBuilder; +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 externalAuthenticationMethods property of the microsoft.graph.authentication entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class ExternalAuthenticationMethodsRequestBuilder 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 externalAuthenticationMethods property of the microsoft.graph.authentication entity. + * @param externalAuthenticationMethodId The unique identifier of externalAuthenticationMethod + * @return a {@link ExternalAuthenticationMethodItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ExternalAuthenticationMethodItemRequestBuilder byExternalAuthenticationMethodId(@jakarta.annotation.Nonnull final String externalAuthenticationMethodId) { + Objects.requireNonNull(externalAuthenticationMethodId); + final HashMap urlTplParams = new HashMap(this.pathParameters); + urlTplParams.put("externalAuthenticationMethod%2Did", externalAuthenticationMethodId); + return new ExternalAuthenticationMethodItemRequestBuilder(urlTplParams, requestAdapter); + } + /** + * Instantiates a new {@link ExternalAuthenticationMethodsRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public ExternalAuthenticationMethodsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/users/{user%2Did}/authentication/externalAuthenticationMethods{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link ExternalAuthenticationMethodsRequestBuilder} 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 ExternalAuthenticationMethodsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/users/{user%2Did}/authentication/externalAuthenticationMethods{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * Represents the external authentication methods registered to a user for authentication using an external identity provider. + * @return a {@link ExternalAuthenticationMethodCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public ExternalAuthenticationMethodCollectionResponse get() { + return get(null); + } + /** + * Represents the external authentication methods registered to a user for authentication using an external identity provider. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link ExternalAuthenticationMethodCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public ExternalAuthenticationMethodCollectionResponse 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, ExternalAuthenticationMethodCollectionResponse::createFromDiscriminatorValue); + } + /** + * Create a new externalAuthenticationMethod object. This API doesn't support self-service operations. + * @param body The request body + * @return a {@link ExternalAuthenticationMethod} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public ExternalAuthenticationMethod post(@jakarta.annotation.Nonnull final ExternalAuthenticationMethod body) { + return post(body, null); + } + /** + * Create a new externalAuthenticationMethod object. This API doesn't support self-service operations. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link ExternalAuthenticationMethod} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public ExternalAuthenticationMethod post(@jakarta.annotation.Nonnull final ExternalAuthenticationMethod 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, ExternalAuthenticationMethod::createFromDiscriminatorValue); + } + /** + * Represents the external authentication methods registered to a user for authentication using an external identity provider. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Represents the external authentication methods registered to a user for authentication using an external identity provider. + * @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 externalAuthenticationMethod object. This API doesn't support self-service operations. + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ExternalAuthenticationMethod body) { + return toPostRequestInformation(body, null); + } + /** + * Create a new externalAuthenticationMethod object. This API doesn't support self-service operations. + * @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 ExternalAuthenticationMethod 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 ExternalAuthenticationMethodsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ExternalAuthenticationMethodsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new ExternalAuthenticationMethodsRequestBuilder(rawUrl, requestAdapter); + } + /** + * Represents the external authentication methods registered to a user for authentication using an external identity provider. + */ + @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/users/item/authentication/externalauthenticationmethods/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/users/item/authentication/externalauthenticationmethods/count/CountRequestBuilder.java new file mode 100644 index 00000000000..8781cf7615c --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/users/item/authentication/externalauthenticationmethods/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +package com.microsoft.graph.users.item.authentication.externalauthenticationmethods.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}/authentication/externalAuthenticationMethods/$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}/authentication/externalAuthenticationMethods/$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/authentication/externalauthenticationmethods/item/ExternalAuthenticationMethodItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/users/item/authentication/externalauthenticationmethods/item/ExternalAuthenticationMethodItemRequestBuilder.java new file mode 100644 index 00000000000..96ae3cd27d8 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/users/item/authentication/externalauthenticationmethods/item/ExternalAuthenticationMethodItemRequestBuilder.java @@ -0,0 +1,230 @@ +package com.microsoft.graph.users.item.authentication.externalauthenticationmethods.item; + +import com.microsoft.graph.models.ExternalAuthenticationMethod; +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 externalAuthenticationMethods property of the microsoft.graph.authentication entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class ExternalAuthenticationMethodItemRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link ExternalAuthenticationMethodItemRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public ExternalAuthenticationMethodItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/users/{user%2Did}/authentication/externalAuthenticationMethods/{externalAuthenticationMethod%2Did}{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link ExternalAuthenticationMethodItemRequestBuilder} 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 ExternalAuthenticationMethodItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/users/{user%2Did}/authentication/externalAuthenticationMethods/{externalAuthenticationMethod%2Did}{?%24expand,%24select}", rawUrl); + } + /** + * Delete an externalAuthenticationMethod object. This API doesn't support self-service operations. + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + public void delete() { + delete(null); + } + /** + * Delete an externalAuthenticationMethod object. This API doesn't support self-service operations. + * @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); + } + /** + * Represents the external authentication methods registered to a user for authentication using an external identity provider. + * @return a {@link ExternalAuthenticationMethod} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public ExternalAuthenticationMethod get() { + return get(null); + } + /** + * Represents the external authentication methods registered to a user for authentication using an external identity provider. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link ExternalAuthenticationMethod} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public ExternalAuthenticationMethod 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, ExternalAuthenticationMethod::createFromDiscriminatorValue); + } + /** + * Update the navigation property externalAuthenticationMethods in users + * @param body The request body + * @return a {@link ExternalAuthenticationMethod} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public ExternalAuthenticationMethod patch(@jakarta.annotation.Nonnull final ExternalAuthenticationMethod body) { + return patch(body, null); + } + /** + * Update the navigation property externalAuthenticationMethods in users + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link ExternalAuthenticationMethod} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public ExternalAuthenticationMethod patch(@jakarta.annotation.Nonnull final ExternalAuthenticationMethod 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, ExternalAuthenticationMethod::createFromDiscriminatorValue); + } + /** + * Delete an externalAuthenticationMethod object. This API doesn't support self-service operations. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation() { + return toDeleteRequestInformation(null); + } + /** + * Delete an externalAuthenticationMethod object. This API doesn't support self-service operations. + * @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, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Represents the external authentication methods registered to a user for authentication using an external identity provider. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Represents the external authentication methods registered to a user for authentication using an external identity provider. + * @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 externalAuthenticationMethods in users + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final ExternalAuthenticationMethod body) { + return toPatchRequestInformation(body, null); + } + /** + * Update the navigation property externalAuthenticationMethods in users + * @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 ExternalAuthenticationMethod body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, 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 ExternalAuthenticationMethodItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ExternalAuthenticationMethodItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new ExternalAuthenticationMethodItemRequestBuilder(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 external authentication methods registered to a user for authentication using an external identity provider. + */ + @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 { + } +}