diff --git a/.github/workflows/preview-and-release.yml b/.github/workflows/preview-and-release.yml index b866c64051b..bc4dc5013db 100644 --- a/.github/workflows/preview-and-release.yml +++ b/.github/workflows/preview-and-release.yml @@ -107,7 +107,7 @@ jobs: run: .\Scripts\getLatestVersion.ps1 shell: pwsh - name: Create tag - uses: rickstaa/action-create-tag@v1.6.4 + uses: rickstaa/action-create-tag@v1.7.1 with: tag: ${{ steps.GetVersion.outputs.tag }} - name: Queue Git Release diff --git a/CHANGELOG.md b/CHANGELOG.md index ee9c65f9f68..76ff2886360 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,36 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed +## [5.76.0] - 2023-11-10 + +### Added + +- CallRecording model and derived requests. +- ChannelSummary model. +- DeviceLocalCredential and DeviceLocalCredentialInfo models and derived requests. +- RemoteDesktopSecurityConfiguration model and derived requests. +- SiteDeltaParameterSet model and derived requests. +- TargetDeviceGroup model and derived requests. +- HostPort, HostPortBanner, HostPortComponent, HostPortProtocol, and HostPortStatus models and derived requests. + +### Changed + +- ExternalConnection model. +- Channel model. +- DelegatedAdminRelationship model. +- Directory model and request builder. +- ExtensionProperty model. +- OnlineMeeting model and request builder. +- ServicePrincipal model and request builder. +- SiteCollection request builder. +- Alert model. +- DetectionSource model. +- Host model and request builder. +- ServiceSource model. +- ThreatIntelligence model and request builder. +- Hostname request builder. +- IpAddress request builder. + ## [5.75.0] - 2023-10-20 ### Added diff --git a/README.md b/README.md index e9f588f198e..bf87a4e6fa6 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ repositories { dependencies { // Include the sdk as a dependency - implementation 'com.microsoft.graph:microsoft-graph:5.75.0' + implementation 'com.microsoft.graph:microsoft-graph:5.76.0' // Uncomment the line below if you are building an android application //implementation 'com.google.guava:guava:30.1.1-android' // This dependency is only needed if you are using the TokenCrendentialAuthProvider @@ -36,7 +36,7 @@ Add the dependency in `dependencies` in pom.xml com.microsoft.graph microsoft-graph - 5.75.0 + 5.76.0 @@ -206,5 +206,6 @@ Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the [MI + diff --git a/android/build.gradle b/android/build.gradle index a8f3a6afaf6..6c96fdc520e 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -9,7 +9,7 @@ buildscript { dependencies { classpath "com.gradle:gradle-enterprise-gradle-plugin:3.15.1" - classpath "com.android.tools.build:gradle:8.1.2" + classpath "com.android.tools.build:gradle:8.1.3" classpath "com.github.ben-manes:gradle-versions-plugin:0.49.0" } } diff --git a/gradle.properties b/gradle.properties index de556a11e48..f5a69ee2df8 100644 --- a/gradle.properties +++ b/gradle.properties @@ -26,7 +26,7 @@ org.gradle.caching=true mavenGroupId = com.microsoft.graph mavenArtifactId = microsoft-graph mavenMajorVersion = 5 -mavenMinorVersion = 75 +mavenMinorVersion = 76 mavenPatchVersion = 0 mavenArtifactSuffix = @@ -129,5 +129,6 @@ mavenCentralPublishingEnabled=false + diff --git a/gradle/dependencies.gradle b/gradle/dependencies.gradle index 2ce1409537d..d478c167ae6 100644 --- a/gradle/dependencies.gradle +++ b/gradle/dependencies.gradle @@ -2,8 +2,8 @@ dependencies { implementation 'com.google.guava:guava:32.1.3-jre' // Use JUnit test framework - testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.0' - testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.10.0' + testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.1' + testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.10.1' testImplementation 'org.mockito:mockito-inline:5.2.0' api 'com.google.code.gson:gson:2.10.1' @@ -11,5 +11,5 @@ dependencies { implementation 'com.squareup.okhttp3:okhttp:4.12.0' // Core Http library - api 'com.microsoft.graph:microsoft-graph-core:2.0.19' + api 'com.microsoft.graph:microsoft-graph-core:2.0.21' } \ No newline at end of file diff --git a/pom.xml b/pom.xml index c0c8e66e528..426dd82668a 100644 --- a/pom.xml +++ b/pom.xml @@ -35,12 +35,12 @@ com.microsoft.graph microsoft-graph-core - 2.0.19 + 2.0.21 org.junit.jupiter junit-jupiter-api - 5.10.0 + 5.10.1 test diff --git a/src/main/java/com/microsoft/graph/callrecords/models/ClientUserAgent.java b/src/main/java/com/microsoft/graph/callrecords/models/ClientUserAgent.java index e4bf1471f42..c76fa0a1cf3 100644 --- a/src/main/java/com/microsoft/graph/callrecords/models/ClientUserAgent.java +++ b/src/main/java/com/microsoft/graph/callrecords/models/ClientUserAgent.java @@ -29,7 +29,7 @@ public class ClientUserAgent extends UserAgent implements IJsonBackedObject { /** * The Azure ADApp Id. - * The unique identifier of the Azure AD application used by this endpoint. + * The unique identifier of the Microsoft Entra application used by this endpoint. */ @SerializedName(value = "azureADAppId", alternate = {"AzureADAppId"}) @Expose diff --git a/src/main/java/com/microsoft/graph/callrecords/models/DirectRoutingLogRow.java b/src/main/java/com/microsoft/graph/callrecords/models/DirectRoutingLogRow.java index 05d1519d663..a895c1d65d2 100644 --- a/src/main/java/com/microsoft/graph/callrecords/models/DirectRoutingLogRow.java +++ b/src/main/java/com/microsoft/graph/callrecords/models/DirectRoutingLogRow.java @@ -39,7 +39,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Callee Number. - * Number of the user or bot who received the call. E.164 format, but may include other data. + * Number of the user or bot who received the call. E.164 format, but might include other data. */ @SerializedName(value = "calleeNumber", alternate = {"CalleeNumber"}) @Expose @@ -48,7 +48,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Call End Sub Reason. - * In addition to the SIP codes, Microsoft has own subcodes that indicate the specific issue. + * In addition to the SIP codes, Microsoft has subcodes that indicate the specific issue. */ @SerializedName(value = "callEndSubReason", alternate = {"CallEndSubReason"}) @Expose @@ -57,7 +57,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Caller Number. - * Number of the user or bot who made the call. E.164 format, but may include other data. + * Number of the user or bot who made the call. E.164 format, but might include other data. */ @SerializedName(value = "callerNumber", alternate = {"CallerNumber"}) @Expose @@ -111,7 +111,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Final Sip Code. - * The code with which the call ended, see RFC 3261. + * The code with which the call ended. For more information, see RFC 3261. */ @SerializedName(value = "finalSipCode", alternate = {"FinalSipCode"}) @Expose @@ -147,7 +147,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Media Bypass Enabled. - * Indicates if the trunk was enabled for media bypass or not. + * Indicates whether the trunk was enabled for media bypass. */ @SerializedName(value = "mediaBypassEnabled", alternate = {"MediaBypassEnabled"}) @Expose @@ -156,7 +156,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Media Path Location. - * The datacenter used for media path in nonbypass call. + * The datacenter used for media path in a nonbypass call. */ @SerializedName(value = "mediaPathLocation", alternate = {"MediaPathLocation"}) @Expose @@ -174,7 +174,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Start Date Time. - * Call start time.For failed and unanswered calls, this can be equal to invite or failure time. + * Call start time.For failed and unanswered calls, this can be equal to the invite or failure time. */ @SerializedName(value = "startDateTime", alternate = {"StartDateTime"}) @Expose @@ -210,7 +210,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The User Id. - * Calling user's ID in Graph. This and other user info will be null/empty for bot call types. GUID. + * Calling user's ID in Microsoft Graph. This and other user information is null/empty for bot call types. GUID. */ @SerializedName(value = "userId", alternate = {"UserId"}) @Expose @@ -219,7 +219,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The User Principal Name. - * UserPrincipalName (sign-in name) in Azure Active Directory. This is usually the same as user's SIP Address, and can be same as user's e-mail address. + * UserPrincipalName (sign-in name) in Microsoft Entra ID. This is usually the same as the user's SIP Address, and can be the same as the user's email address. */ @SerializedName(value = "userPrincipalName", alternate = {"UserPrincipalName"}) @Expose diff --git a/src/main/java/com/microsoft/graph/callrecords/models/PstnCallLogRow.java b/src/main/java/com/microsoft/graph/callrecords/models/PstnCallLogRow.java index 32af6ce45f6..cbca3b15d5a 100644 --- a/src/main/java/com/microsoft/graph/callrecords/models/PstnCallLogRow.java +++ b/src/main/java/com/microsoft/graph/callrecords/models/PstnCallLogRow.java @@ -40,7 +40,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Call Duration Source. - * The source of the call duration data. If the call uses a third-party telecommunications operator via the Operator Connect Program, the operator may provide their own call duration data. In this case, the property value is operator. Otherwise, the value is microsoft. + * The source of the call duration data. If the call uses a third-party telecommunications operator via the Operator Connect Program, the operator can provide their own call duration data. In this case, the property value is operator. Otherwise, the value is microsoft. */ @SerializedName(value = "callDurationSource", alternate = {"CallDurationSource"}) @Expose @@ -76,7 +76,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Call Type. - * Whether the call was a PSTN outbound or inbound call and the type of call such as a call placed by a user or an audio conference. + * Indicates whether the call was a PSTN outbound or inbound call and the type of call, such as a call placed by a user or an audio conference. */ @SerializedName(value = "callType", alternate = {"CallType"}) @Expose @@ -121,7 +121,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Destination Context. - * Whether the call was domestic (within a country or region) or international (outside a country or region) based on the user's location. + * Whether the call was domestic (within a country or region) or international (outside a country or region), based on the user's location. */ @SerializedName(value = "destinationContext", alternate = {"DestinationContext"}) @Expose @@ -184,7 +184,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Operator. - * The telecommunications operator which provided PSTN services for this call. This may be Microsoft, or it may be a third-party operator via the Operator Connect Program. + * The telecommunications operator which provided PSTN services for this call. This might be Microsoft, or it might be a third-party operator via the Operator Connect Program. */ @SerializedName(value = "operator", alternate = {"Operator"}) @Expose @@ -229,7 +229,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The User Id. - * Calling user's ID in Graph. GUID. This and other user info will be null/empty for bot call types (ucapin, ucapout). + * Calling user's ID in Microsoft Graph. GUID. This and other user info will be null/empty for bot call types (ucapin, ucapout). */ @SerializedName(value = "userId", alternate = {"UserId"}) @Expose @@ -238,7 +238,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The User Principal Name. - * The user principal name (sign-in name) in Azure Active Directory. This is usually the same as the user's SIP address, and can be same as the user's e-mail address. + * The user principal name (sign-in name) in Microsoft Entra ID. This is usually the same as the user's SIP address, and can be the same as the user's email address. */ @SerializedName(value = "userPrincipalName", alternate = {"UserPrincipalName"}) @Expose diff --git a/src/main/java/com/microsoft/graph/externalconnectors/models/Acl.java b/src/main/java/com/microsoft/graph/externalconnectors/models/Acl.java index cadf3710477..c945c9bc34e 100644 --- a/src/main/java/com/microsoft/graph/externalconnectors/models/Acl.java +++ b/src/main/java/com/microsoft/graph/externalconnectors/models/Acl.java @@ -59,7 +59,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Value. - * The unique identifer of the identity. For Azure Active Directory identities, value is set to the object identifier of the user, group or tenant for types user, group and everyone (and everyoneExceptGuests) respectively. For external groups value is set to the ID of the externalGroup + * The unique identifer of the identity. For Microsoft Entra identities, value is set to the object identifier of the user, group or tenant for types user, group and everyone (and everyoneExceptGuests) respectively. For external groups value is set to the ID of the externalGroup */ @SerializedName(value = "value", alternate = {"Value"}) @Expose diff --git a/src/main/java/com/microsoft/graph/externalconnectors/models/Configuration.java b/src/main/java/com/microsoft/graph/externalconnectors/models/Configuration.java index be2f9995b76..303796184b0 100644 --- a/src/main/java/com/microsoft/graph/externalconnectors/models/Configuration.java +++ b/src/main/java/com/microsoft/graph/externalconnectors/models/Configuration.java @@ -40,7 +40,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Authorized App Ids. - * A collection of application IDs for registered Azure Active Directory apps that are allowed to manage the externalConnection and to index content in the externalConnection. + * A collection of application IDs for registered Microsoft Entra apps that are allowed to manage the externalConnection and to index content in the externalConnection. */ @SerializedName(value = "authorizedAppIds", alternate = {"AuthorizedAppIds"}) @Expose diff --git a/src/main/java/com/microsoft/graph/externalconnectors/models/ExternalConnection.java b/src/main/java/com/microsoft/graph/externalconnectors/models/ExternalConnection.java index 98de3c2399f..9aa78c7c301 100644 --- a/src/main/java/com/microsoft/graph/externalconnectors/models/ExternalConnection.java +++ b/src/main/java/com/microsoft/graph/externalconnectors/models/ExternalConnection.java @@ -52,6 +52,15 @@ public class ExternalConnection extends Entity implements IJsonBackedObject { @Nullable public Configuration configuration; + /** + * The Connector Id. + * The Teams app ID. Optional. + */ + @SerializedName(value = "connectorId", alternate = {"ConnectorId"}) + @Expose + @Nullable + public String connectorId; + /** * The Description. * Description of the connection displayed in the Microsoft 365 admin center. Optional. diff --git a/src/main/java/com/microsoft/graph/externalconnectors/models/ExternalGroup.java b/src/main/java/com/microsoft/graph/externalconnectors/models/ExternalGroup.java index 9b96e31d619..132b0bbf35c 100644 --- a/src/main/java/com/microsoft/graph/externalconnectors/models/ExternalGroup.java +++ b/src/main/java/com/microsoft/graph/externalconnectors/models/ExternalGroup.java @@ -47,7 +47,7 @@ public class ExternalGroup extends Entity implements IJsonBackedObject { /** * The Members. - * A member added to an externalGroup. You can add Azure Active Directory users, Azure Active Directory groups, or an externalGroup as members. + * A member added to an externalGroup. You can add Microsoft Entra users, Microsoft Entra groups, or an externalGroup as members. */ @SerializedName(value = "members", alternate = {"Members"}) @Expose diff --git a/src/main/java/com/microsoft/graph/externalconnectors/models/Identity.java b/src/main/java/com/microsoft/graph/externalconnectors/models/Identity.java index 1066e67657a..bfe86d9a7fb 100644 --- a/src/main/java/com/microsoft/graph/externalconnectors/models/Identity.java +++ b/src/main/java/com/microsoft/graph/externalconnectors/models/Identity.java @@ -28,7 +28,7 @@ public class Identity extends Entity implements IJsonBackedObject { /** * The Type. - * The type of identity. Possible values are: user or group for Azure AD identities and externalgroup for groups in an external system. + * The type of identity. Possible values are: user or group for Microsoft Entra identities and externalgroup for groups in an external system. */ @SerializedName(value = "type", alternate = {"Type"}) @Expose diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/CustomTaskExtension.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/CustomTaskExtension.java index ba727863925..a0f0bea3119 100644 --- a/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/CustomTaskExtension.java +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/CustomTaskExtension.java @@ -56,7 +56,7 @@ public class CustomTaskExtension extends CustomCalloutExtension implements IJson /** * The Created By. - * The unique identifier of the Azure AD user that created the custom task extension.Supports $filter(eq, ne) and $expand. + * The unique identifier of the Microsoft Entra user that created the custom task extension.Supports $filter(eq, ne) and $expand. */ @SerializedName(value = "createdBy", alternate = {"CreatedBy"}) @Expose @@ -65,7 +65,7 @@ public class CustomTaskExtension extends CustomCalloutExtension implements IJson /** * The Last Modified By. - * The unique identifier of the Azure AD user that modified the custom task extension last.Supports $filter(eq, ne) and $expand. + * The unique identifier of the Microsoft Entra user that modified the custom task extension last.Supports $filter(eq, ne) and $expand. */ @SerializedName(value = "lastModifiedBy", alternate = {"LastModifiedBy"}) @Expose diff --git a/src/main/java/com/microsoft/graph/info/Constants.java b/src/main/java/com/microsoft/graph/info/Constants.java index 2bed5d6eafb..19d133c4212 100644 --- a/src/main/java/com/microsoft/graph/info/Constants.java +++ b/src/main/java/com/microsoft/graph/info/Constants.java @@ -18,7 +18,7 @@ private Constants() { /** The client secret to use for unit testing */ public static final String CLIENTSECRET = "clientsecret"; /** The SDK version */ - public static final String VERSION_NAME = "5.75.0"; + public static final String VERSION_NAME = "5.76.0"; } @@ -106,5 +106,6 @@ private Constants() { + diff --git a/src/main/java/com/microsoft/graph/models/AadUserConversationMember.java b/src/main/java/com/microsoft/graph/models/AadUserConversationMember.java index 0d6317d73cc..05cf49e1a5b 100644 --- a/src/main/java/com/microsoft/graph/models/AadUserConversationMember.java +++ b/src/main/java/com/microsoft/graph/models/AadUserConversationMember.java @@ -37,7 +37,7 @@ public class AadUserConversationMember extends ConversationMember implements IJs /** * The Tenant Id. - * TenantId which the Azure AD user belongs to. + * TenantId which the Microsoft Entra user belongs to. */ @SerializedName(value = "tenantId", alternate = {"TenantId"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/AadUserNotificationRecipient.java b/src/main/java/com/microsoft/graph/models/AadUserNotificationRecipient.java index 406cd89efa3..89fc4122b60 100644 --- a/src/main/java/com/microsoft/graph/models/AadUserNotificationRecipient.java +++ b/src/main/java/com/microsoft/graph/models/AadUserNotificationRecipient.java @@ -27,7 +27,7 @@ public class AadUserNotificationRecipient extends TeamworkNotificationRecipient /** * The User Id. - * Azure AD user identifier. Use the List users method to get this ID. + * Microsoft Entra user identifier. Use the List users method to get this ID. */ @SerializedName(value = "userId", alternate = {"UserId"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/AccessPackageResource.java b/src/main/java/com/microsoft/graph/models/AccessPackageResource.java index 56f40d6b27e..1a379ad5d63 100644 --- a/src/main/java/com/microsoft/graph/models/AccessPackageResource.java +++ b/src/main/java/com/microsoft/graph/models/AccessPackageResource.java @@ -67,7 +67,7 @@ public class AccessPackageResource extends Entity implements IJsonBackedObject { /** * The Origin Id. - * The unique identifier of the resource in the origin system. In the case of an Azure AD group, this is the identifier of the group. + * The unique identifier of the resource in the origin system. In the case of a Microsoft Entra group, this is the identifier of the group. */ @SerializedName(value = "originId", alternate = {"OriginId"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/AccessPackageResourceEnvironment.java b/src/main/java/com/microsoft/graph/models/AccessPackageResourceEnvironment.java index f3ad3d006e1..5b90fc45999 100644 --- a/src/main/java/com/microsoft/graph/models/AccessPackageResourceEnvironment.java +++ b/src/main/java/com/microsoft/graph/models/AccessPackageResourceEnvironment.java @@ -56,7 +56,7 @@ public class AccessPackageResourceEnvironment extends Entity implements IJsonBac /** * The Is Default Environment. - * Determines whether this is default environment or not. It is set to true for all static origin systems, such as Azure AD groups and Azure AD Applications. + * Determines whether this is default environment or not. It is set to true for all static origin systems, such as Microsoft Entra groups and Microsoft Entra Applications. */ @SerializedName(value = "isDefaultEnvironment", alternate = {"IsDefaultEnvironment"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/AccountTargetContent.java b/src/main/java/com/microsoft/graph/models/AccountTargetContent.java index c50b1d07f4e..abe74dc4ee4 100644 --- a/src/main/java/com/microsoft/graph/models/AccountTargetContent.java +++ b/src/main/java/com/microsoft/graph/models/AccountTargetContent.java @@ -40,7 +40,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Type. - * + * The type of account target content. Possible values are: unknown, includeAll, addressBook, unknownFutureValue. */ @SerializedName(value = "type", alternate = {"Type"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/AddressBookAccountTargetContent.java b/src/main/java/com/microsoft/graph/models/AddressBookAccountTargetContent.java index ed410ec653f..39baeebaa15 100644 --- a/src/main/java/com/microsoft/graph/models/AddressBookAccountTargetContent.java +++ b/src/main/java/com/microsoft/graph/models/AddressBookAccountTargetContent.java @@ -28,7 +28,7 @@ public class AddressBookAccountTargetContent extends AccountTargetContent implem /** * The Account Target Emails. - * + * List of user emails targeted for an attack simulation training campaign. */ @SerializedName(value = "accountTargetEmails", alternate = {"AccountTargetEmails"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/Admin.java b/src/main/java/com/microsoft/graph/models/Admin.java index e6abce3efad..32bf7f738a6 100644 --- a/src/main/java/com/microsoft/graph/models/Admin.java +++ b/src/main/java/com/microsoft/graph/models/Admin.java @@ -70,7 +70,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The People. - * + * Represents a setting to control people-related admin settings in the tenant. */ @SerializedName(value = "people", alternate = {"People"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/AttackSimulationOperation.java b/src/main/java/com/microsoft/graph/models/AttackSimulationOperation.java index bdee9c11752..7e5acd78f68 100644 --- a/src/main/java/com/microsoft/graph/models/AttackSimulationOperation.java +++ b/src/main/java/com/microsoft/graph/models/AttackSimulationOperation.java @@ -28,7 +28,7 @@ public class AttackSimulationOperation extends LongRunningOperation implements I /** * The Percentage Completed. - * + * Percentage of completion of the respective operation. */ @SerializedName(value = "percentageCompleted", alternate = {"PercentageCompleted"}) @Expose @@ -37,7 +37,7 @@ public class AttackSimulationOperation extends LongRunningOperation implements I /** * The Tenant Id. - * + * Tenant identifier. */ @SerializedName(value = "tenantId", alternate = {"TenantId"}) @Expose @@ -46,7 +46,7 @@ public class AttackSimulationOperation extends LongRunningOperation implements I /** * The Type. - * + * The attack simulation operation type. Possible values are: createSimulation, updateSimulation, unknownFutureValue. */ @SerializedName(value = "type", alternate = {"Type"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/AttackSimulationRoot.java b/src/main/java/com/microsoft/graph/models/AttackSimulationRoot.java index f4f3ffa604d..9a0bf3d0ea7 100644 --- a/src/main/java/com/microsoft/graph/models/AttackSimulationRoot.java +++ b/src/main/java/com/microsoft/graph/models/AttackSimulationRoot.java @@ -36,7 +36,7 @@ public class AttackSimulationRoot extends Entity implements IJsonBackedObject { /** * The End User Notifications. - * + * Represents an end user's notification for an attack simulation training. */ @SerializedName(value = "endUserNotifications", alternate = {"EndUserNotifications"}) @Expose @@ -45,7 +45,7 @@ public class AttackSimulationRoot extends Entity implements IJsonBackedObject { /** * The Landing Pages. - * + * Represents an attack simulation training landing page. */ @SerializedName(value = "landingPages", alternate = {"LandingPages"}) @Expose @@ -54,7 +54,7 @@ public class AttackSimulationRoot extends Entity implements IJsonBackedObject { /** * The Login Pages. - * + * Represents an attack simulation training login page. */ @SerializedName(value = "loginPages", alternate = {"LoginPages"}) @Expose @@ -63,7 +63,7 @@ public class AttackSimulationRoot extends Entity implements IJsonBackedObject { /** * The Operations. - * + * Represents an attack simulation training operation. */ @SerializedName(value = "operations", alternate = {"Operations"}) @Expose @@ -72,7 +72,7 @@ public class AttackSimulationRoot extends Entity implements IJsonBackedObject { /** * The Payloads. - * + * Represents an attack simulation training campaign payload in a tenant. */ @SerializedName(value = "payloads", alternate = {"Payloads"}) @Expose @@ -99,7 +99,7 @@ public class AttackSimulationRoot extends Entity implements IJsonBackedObject { /** * The Trainings. - * + * Represents details about attack simulation trainings. */ @SerializedName(value = "trainings", alternate = {"Trainings"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/AuthorizationPolicy.java b/src/main/java/com/microsoft/graph/models/AuthorizationPolicy.java index 581e0393ca4..40bbaa36529 100644 --- a/src/main/java/com/microsoft/graph/models/AuthorizationPolicy.java +++ b/src/main/java/com/microsoft/graph/models/AuthorizationPolicy.java @@ -38,7 +38,7 @@ public class AuthorizationPolicy extends PolicyBase implements IJsonBackedObject /** * The Allowed To Use SSPR. - * Indicates whether users can use the Self-Serve Password Reset feature on the tenant. + * Indicates whether users can use the Self-Service Password Reset feature on the tenant. */ @SerializedName(value = "allowedToUseSSPR", alternate = {"AllowedToUseSSPR"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/AzureActiveDirectoryTenant.java b/src/main/java/com/microsoft/graph/models/AzureActiveDirectoryTenant.java index ea4b2c6ec1f..41d95fc0b73 100644 --- a/src/main/java/com/microsoft/graph/models/AzureActiveDirectoryTenant.java +++ b/src/main/java/com/microsoft/graph/models/AzureActiveDirectoryTenant.java @@ -27,7 +27,7 @@ public class AzureActiveDirectoryTenant extends IdentitySource implements IJsonB /** * The Display Name. - * The name of the Azure Active Directory tenant. Read only. + * The name of the Microsoft Entra tenant. Read only. */ @SerializedName(value = "displayName", alternate = {"DisplayName"}) @Expose @@ -36,7 +36,7 @@ public class AzureActiveDirectoryTenant extends IdentitySource implements IJsonB /** * The Tenant Id. - * The ID of the Azure Active Directory tenant. Read only. + * The ID of the Microsoft Entra tenant. Read only. */ @SerializedName(value = "tenantId", alternate = {"TenantId"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/AzureCommunicationServicesUserIdentity.java b/src/main/java/com/microsoft/graph/models/AzureCommunicationServicesUserIdentity.java index cecba35e383..e55dd3504a0 100644 --- a/src/main/java/com/microsoft/graph/models/AzureCommunicationServicesUserIdentity.java +++ b/src/main/java/com/microsoft/graph/models/AzureCommunicationServicesUserIdentity.java @@ -27,7 +27,7 @@ public class AzureCommunicationServicesUserIdentity extends Identity implements /** * The Azure Communication Services Resource Id. - * + * The Azure Communication Services resource ID associated with the user. */ @SerializedName(value = "azureCommunicationServicesResourceId", alternate = {"AzureCommunicationServicesResourceId"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/BaseEndUserNotification.java b/src/main/java/com/microsoft/graph/models/BaseEndUserNotification.java index 766cdf4ce7b..25f0595e36a 100644 --- a/src/main/java/com/microsoft/graph/models/BaseEndUserNotification.java +++ b/src/main/java/com/microsoft/graph/models/BaseEndUserNotification.java @@ -40,7 +40,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Default Language. - * + * The default language for the end user notification. */ @SerializedName(value = "defaultLanguage", alternate = {"DefaultLanguage"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/BitlockerRecoveryKey.java b/src/main/java/com/microsoft/graph/models/BitlockerRecoveryKey.java index f7b068e2278..792b0f182a2 100644 --- a/src/main/java/com/microsoft/graph/models/BitlockerRecoveryKey.java +++ b/src/main/java/com/microsoft/graph/models/BitlockerRecoveryKey.java @@ -28,7 +28,7 @@ public class BitlockerRecoveryKey extends Entity implements IJsonBackedObject { /** * The Created Date Time. - * The date and time when the key was originally backed up to Azure Active Directory. Not nullable. + * The date and time when the key was originally backed up to Microsoft Entra ID. Not nullable. */ @SerializedName(value = "createdDateTime", alternate = {"CreatedDateTime"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/CallRecording.java b/src/main/java/com/microsoft/graph/models/CallRecording.java new file mode 100644 index 00000000000..7922fb0aafb --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/CallRecording.java @@ -0,0 +1,75 @@ +// Template Source: BaseEntity.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.models; +import com.microsoft.graph.serializer.ISerializer; +import com.microsoft.graph.serializer.IJsonBackedObject; +import com.microsoft.graph.serializer.AdditionalDataManager; +import java.util.EnumSet; +import com.microsoft.graph.models.IdentitySet; +import com.microsoft.graph.models.Entity; + + +import com.google.gson.JsonObject; +import com.google.gson.annotations.SerializedName; +import com.google.gson.annotations.Expose; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Call Recording. + */ +public class CallRecording extends Entity implements IJsonBackedObject { + + + /** + * The Created Date Time. + * + */ + @SerializedName(value = "createdDateTime", alternate = {"CreatedDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime createdDateTime; + + /** + * The Meeting Id. + * + */ + @SerializedName(value = "meetingId", alternate = {"MeetingId"}) + @Expose + @Nullable + public String meetingId; + + /** + * The Meeting Organizer. + * + */ + @SerializedName(value = "meetingOrganizer", alternate = {"MeetingOrganizer"}) + @Expose + @Nullable + public IdentitySet meetingOrganizer; + + /** + * The Recording Content Url. + * + */ + @SerializedName(value = "recordingContentUrl", alternate = {"RecordingContentUrl"}) + @Expose + @Nullable + public String recordingContentUrl; + + + /** + * Sets the raw JSON object + * + * @param serializer the serializer + * @param json the JSON object to set this object to + */ + public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { + + } +} diff --git a/src/main/java/com/microsoft/graph/models/Channel.java b/src/main/java/com/microsoft/graph/models/Channel.java index 51a23dc4d32..1043c013ec4 100644 --- a/src/main/java/com/microsoft/graph/models/Channel.java +++ b/src/main/java/com/microsoft/graph/models/Channel.java @@ -10,6 +10,7 @@ import java.util.EnumSet; import com.microsoft.graph.http.BaseCollectionPage; import com.microsoft.graph.models.ChannelMembershipType; +import com.microsoft.graph.models.ChannelSummary; import com.microsoft.graph.models.DriveItem; import com.microsoft.graph.models.Entity; import com.microsoft.graph.requests.ConversationMemberCollectionPage; @@ -86,9 +87,18 @@ public class Channel extends Entity implements IJsonBackedObject { @Nullable public ChannelMembershipType membershipType; + /** + * The Summary. + * Contains summary information about the channel, including number of owners, members, guests, and an indicator for members from other tenants. The summary property will only be returned if it is specified in the $select clause of the Get channel method. + */ + @SerializedName(value = "summary", alternate = {"Summary"}) + @Expose + @Nullable + public ChannelSummary summary; + /** * The Tenant Id. - * The ID of the Azure Active Directory tenant. + * The ID of the Microsoft Entra tenant. */ @SerializedName(value = "tenantId", alternate = {"TenantId"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/ChannelSummary.java b/src/main/java/com/microsoft/graph/models/ChannelSummary.java new file mode 100644 index 00000000000..98ac5511d6e --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/ChannelSummary.java @@ -0,0 +1,86 @@ +// Template Source: BaseEntity.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.models; +import com.microsoft.graph.serializer.ISerializer; +import com.microsoft.graph.serializer.IJsonBackedObject; +import com.microsoft.graph.serializer.AdditionalDataManager; +import java.util.EnumSet; + + +import com.google.gson.JsonObject; +import com.google.gson.annotations.SerializedName; +import com.google.gson.annotations.Expose; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Channel Summary. + */ +public class ChannelSummary implements IJsonBackedObject { + + /** the OData type of the object as returned by the service */ + @SerializedName("@odata.type") + @Expose + @Nullable + public String oDataType; + + private transient AdditionalDataManager additionalDataManager = new AdditionalDataManager(this); + + @Override + @Nonnull + public final AdditionalDataManager additionalDataManager() { + return additionalDataManager; + } + + /** + * The Guests Count. + * Count of guests in a channel. + */ + @SerializedName(value = "guestsCount", alternate = {"GuestsCount"}) + @Expose + @Nullable + public Integer guestsCount; + + /** + * The Has Members From Other Tenants. + * Indicates whether external members are included on the channel. + */ + @SerializedName(value = "hasMembersFromOtherTenants", alternate = {"HasMembersFromOtherTenants"}) + @Expose + @Nullable + public Boolean hasMembersFromOtherTenants; + + /** + * The Members Count. + * Count of members in a channel. + */ + @SerializedName(value = "membersCount", alternate = {"MembersCount"}) + @Expose + @Nullable + public Integer membersCount; + + /** + * The Owners Count. + * Count of owners in a channel. + */ + @SerializedName(value = "ownersCount", alternate = {"OwnersCount"}) + @Expose + @Nullable + public Integer ownersCount; + + + /** + * Sets the raw JSON object + * + * @param serializer the serializer + * @param json the JSON object to set this object to + */ + public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { + + } +} diff --git a/src/main/java/com/microsoft/graph/models/CoachmarkLocation.java b/src/main/java/com/microsoft/graph/models/CoachmarkLocation.java index d7d706437be..2343dcf3e7a 100644 --- a/src/main/java/com/microsoft/graph/models/CoachmarkLocation.java +++ b/src/main/java/com/microsoft/graph/models/CoachmarkLocation.java @@ -40,7 +40,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Length. - * + * Length of coachmark. */ @SerializedName(value = "length", alternate = {"Length"}) @Expose @@ -49,7 +49,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Offset. - * + * Offset of coachmark. */ @SerializedName(value = "offset", alternate = {"Offset"}) @Expose @@ -58,7 +58,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Type. - * + * Type of coachmark location. The possible values are: unknown, fromEmail, subject, externalTag, displayName, messageBody, unknownFutureValue. */ @SerializedName(value = "type", alternate = {"Type"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/CommunicationsApplicationIdentity.java b/src/main/java/com/microsoft/graph/models/CommunicationsApplicationIdentity.java index 01fa50391c2..90d8077f888 100644 --- a/src/main/java/com/microsoft/graph/models/CommunicationsApplicationIdentity.java +++ b/src/main/java/com/microsoft/graph/models/CommunicationsApplicationIdentity.java @@ -27,7 +27,7 @@ public class CommunicationsApplicationIdentity extends Identity implements IJson /** * The Application Type. - * + * First-party Microsoft application that presents this identity. */ @SerializedName(value = "applicationType", alternate = {"ApplicationType"}) @Expose @@ -36,7 +36,7 @@ public class CommunicationsApplicationIdentity extends Identity implements IJson /** * The Hidden. - * + * True if the participant shouldn't be shown in other participants' rosters. */ @SerializedName(value = "hidden", alternate = {"Hidden"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/CommunicationsApplicationInstanceIdentity.java b/src/main/java/com/microsoft/graph/models/CommunicationsApplicationInstanceIdentity.java index f3d08b9df9b..3e301eabd30 100644 --- a/src/main/java/com/microsoft/graph/models/CommunicationsApplicationInstanceIdentity.java +++ b/src/main/java/com/microsoft/graph/models/CommunicationsApplicationInstanceIdentity.java @@ -27,7 +27,7 @@ public class CommunicationsApplicationInstanceIdentity extends Identity implemen /** * The Hidden. - * + * True if the participant shouldn't be shown in other participants' rosters. */ @SerializedName(value = "hidden", alternate = {"Hidden"}) @Expose @@ -36,7 +36,7 @@ public class CommunicationsApplicationInstanceIdentity extends Identity implemen /** * The Tenant Id. - * + * The tenant ID of the application. */ @SerializedName(value = "tenantId", alternate = {"TenantId"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/CommunicationsIdentitySet.java b/src/main/java/com/microsoft/graph/models/CommunicationsIdentitySet.java index 187d34e8e18..bbcd2c86f35 100644 --- a/src/main/java/com/microsoft/graph/models/CommunicationsIdentitySet.java +++ b/src/main/java/com/microsoft/graph/models/CommunicationsIdentitySet.java @@ -29,7 +29,7 @@ public class CommunicationsIdentitySet extends IdentitySet implements IJsonBacke /** * The Application Instance. - * + * The application instance associated with this action. */ @SerializedName(value = "applicationInstance", alternate = {"ApplicationInstance"}) @Expose @@ -38,7 +38,7 @@ public class CommunicationsIdentitySet extends IdentitySet implements IJsonBacke /** * The Asserted Identity. - * + * An identity the participant would like to present itself as to the other participants in the call. */ @SerializedName(value = "assertedIdentity", alternate = {"AssertedIdentity"}) @Expose @@ -47,7 +47,7 @@ public class CommunicationsIdentitySet extends IdentitySet implements IJsonBacke /** * The Azure Communication Services User. - * + * The Azure Communication Services user associated with this action. */ @SerializedName(value = "azureCommunicationServicesUser", alternate = {"AzureCommunicationServicesUser"}) @Expose @@ -56,7 +56,7 @@ public class CommunicationsIdentitySet extends IdentitySet implements IJsonBacke /** * The Encrypted. - * + * The encrypted user associated with this action. */ @SerializedName(value = "encrypted", alternate = {"Encrypted"}) @Expose @@ -65,7 +65,7 @@ public class CommunicationsIdentitySet extends IdentitySet implements IJsonBacke /** * The Endpoint Type. - * + * Type of endpoint that the participant uses. Possible values are: default, voicemail, skypeForBusiness, skypeForBusinessVoipPhone, unknownFutureValue. */ @SerializedName(value = "endpointType", alternate = {"EndpointType"}) @Expose @@ -74,7 +74,7 @@ public class CommunicationsIdentitySet extends IdentitySet implements IJsonBacke /** * The Guest. - * + * The guest user associated with this action. */ @SerializedName(value = "guest", alternate = {"Guest"}) @Expose @@ -83,7 +83,7 @@ public class CommunicationsIdentitySet extends IdentitySet implements IJsonBacke /** * The On Premises. - * + * The Skype for Business on-premises user associated with this action. */ @SerializedName(value = "onPremises", alternate = {"OnPremises"}) @Expose @@ -92,7 +92,7 @@ public class CommunicationsIdentitySet extends IdentitySet implements IJsonBacke /** * The Phone. - * + * The phone user associated with this action. */ @SerializedName(value = "phone", alternate = {"Phone"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/CommunicationsUserIdentity.java b/src/main/java/com/microsoft/graph/models/CommunicationsUserIdentity.java index 287f3214d2c..197f0f784f2 100644 --- a/src/main/java/com/microsoft/graph/models/CommunicationsUserIdentity.java +++ b/src/main/java/com/microsoft/graph/models/CommunicationsUserIdentity.java @@ -27,7 +27,7 @@ public class CommunicationsUserIdentity extends Identity implements IJsonBackedO /** * The Tenant Id. - * + * The user's tenant ID. */ @SerializedName(value = "tenantId", alternate = {"TenantId"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/ConditionalAccessFilter.java b/src/main/java/com/microsoft/graph/models/ConditionalAccessFilter.java index 34599112888..bd11cc2bf2d 100644 --- a/src/main/java/com/microsoft/graph/models/ConditionalAccessFilter.java +++ b/src/main/java/com/microsoft/graph/models/ConditionalAccessFilter.java @@ -49,7 +49,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Rule. - * Rule syntax is similar to that used for membership rules for groups in Azure Active Directory (Azure AD). For details, see rules with multiple expressions + * Rule syntax is similar to that used for membership rules for groups in Microsoft Entra ID. For details, see rules with multiple expressions */ @SerializedName(value = "rule", alternate = {"Rule"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/ConditionalAccessSessionControls.java b/src/main/java/com/microsoft/graph/models/ConditionalAccessSessionControls.java index c91086966ce..39f166d7b52 100644 --- a/src/main/java/com/microsoft/graph/models/ConditionalAccessSessionControls.java +++ b/src/main/java/com/microsoft/graph/models/ConditionalAccessSessionControls.java @@ -61,7 +61,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Disable Resilience Defaults. - * Session control that determines whether it is acceptable for Azure AD to extend existing sessions based on information collected prior to an outage or not. + * Session control that determines whether it is acceptable for Microsoft Entra ID to extend existing sessions based on information collected prior to an outage or not. */ @SerializedName(value = "disableResilienceDefaults", alternate = {"DisableResilienceDefaults"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/CrossCloudAzureActiveDirectoryTenant.java b/src/main/java/com/microsoft/graph/models/CrossCloudAzureActiveDirectoryTenant.java index 9a5e1b0258b..a0820490c13 100644 --- a/src/main/java/com/microsoft/graph/models/CrossCloudAzureActiveDirectoryTenant.java +++ b/src/main/java/com/microsoft/graph/models/CrossCloudAzureActiveDirectoryTenant.java @@ -36,7 +36,7 @@ public class CrossCloudAzureActiveDirectoryTenant extends IdentitySource impleme /** * The Display Name. - * The name of the Azure Active Directory tenant. Read only. + * The name of the Microsoft Entra tenant. Read only. */ @SerializedName(value = "displayName", alternate = {"DisplayName"}) @Expose @@ -45,7 +45,7 @@ public class CrossCloudAzureActiveDirectoryTenant extends IdentitySource impleme /** * The Tenant Id. - * The ID of the Azure Active Directory tenant. Read only. + * The ID of the Microsoft Entra tenant. Read only. */ @SerializedName(value = "tenantId", alternate = {"TenantId"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/CrossTenantAccessPolicy.java b/src/main/java/com/microsoft/graph/models/CrossTenantAccessPolicy.java index a957003a72c..d8446358b94 100644 --- a/src/main/java/com/microsoft/graph/models/CrossTenantAccessPolicy.java +++ b/src/main/java/com/microsoft/graph/models/CrossTenantAccessPolicy.java @@ -39,7 +39,7 @@ public class CrossTenantAccessPolicy extends PolicyBase implements IJsonBackedOb /** * The Default. - * Defines the default configuration for how your organization interacts with external Azure Active Directory organizations. + * Defines the default configuration for how your organization interacts with external Microsoft Entra organizations. */ @SerializedName(value = "default", alternate = {"Default"}) @Expose @@ -48,7 +48,7 @@ public class CrossTenantAccessPolicy extends PolicyBase implements IJsonBackedOb /** * The Partners. - * Defines partner-specific configurations for external Azure Active Directory organizations. + * Defines partner-specific configurations for external Microsoft Entra organizations. */ @SerializedName(value = "partners", alternate = {"Partners"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/CrossTenantAccessPolicyConfigurationDefault.java b/src/main/java/com/microsoft/graph/models/CrossTenantAccessPolicyConfigurationDefault.java index cd443b35723..14df86df76a 100644 --- a/src/main/java/com/microsoft/graph/models/CrossTenantAccessPolicyConfigurationDefault.java +++ b/src/main/java/com/microsoft/graph/models/CrossTenantAccessPolicyConfigurationDefault.java @@ -39,7 +39,7 @@ public class CrossTenantAccessPolicyConfigurationDefault extends Entity implemen /** * The B2b Collaboration Inbound. - * Defines your default configuration for users from other organizations accessing your resources via Azure AD B2B collaboration. + * Defines your default configuration for users from other organizations accessing your resources via Microsoft Entra B2B collaboration. */ @SerializedName(value = "b2bCollaborationInbound", alternate = {"B2bCollaborationInbound"}) @Expose @@ -48,7 +48,7 @@ public class CrossTenantAccessPolicyConfigurationDefault extends Entity implemen /** * The B2b Collaboration Outbound. - * Defines your default configuration for users in your organization going outbound to access resources in another organization via Azure AD B2B collaboration. + * Defines your default configuration for users in your organization going outbound to access resources in another organization via Microsoft Entra B2B collaboration. */ @SerializedName(value = "b2bCollaborationOutbound", alternate = {"B2bCollaborationOutbound"}) @Expose @@ -57,7 +57,7 @@ public class CrossTenantAccessPolicyConfigurationDefault extends Entity implemen /** * The B2b Direct Connect Inbound. - * Defines your default configuration for users from other organizations accessing your resources via Azure AD B2B direct connect. + * Defines your default configuration for users from other organizations accessing your resources via Microsoft Entra B2B direct connect. */ @SerializedName(value = "b2bDirectConnectInbound", alternate = {"B2bDirectConnectInbound"}) @Expose @@ -66,7 +66,7 @@ public class CrossTenantAccessPolicyConfigurationDefault extends Entity implemen /** * The B2b Direct Connect Outbound. - * Defines your default configuration for users in your organization going outbound to access resources in another organization via Azure AD B2B direct connect. + * Defines your default configuration for users in your organization going outbound to access resources in another organization via Microsoft Entra B2B direct connect. */ @SerializedName(value = "b2bDirectConnectOutbound", alternate = {"B2bDirectConnectOutbound"}) @Expose @@ -75,7 +75,7 @@ public class CrossTenantAccessPolicyConfigurationDefault extends Entity implemen /** * The Inbound Trust. - * Determines the default configuration for trusting other Conditional Access claims from external Azure AD organizations. + * Determines the default configuration for trusting other Conditional Access claims from external Microsoft Entra organizations. */ @SerializedName(value = "inboundTrust", alternate = {"InboundTrust"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/CrossTenantAccessPolicyConfigurationPartner.java b/src/main/java/com/microsoft/graph/models/CrossTenantAccessPolicyConfigurationPartner.java index 8d21cc0e1a3..cc193f74574 100644 --- a/src/main/java/com/microsoft/graph/models/CrossTenantAccessPolicyConfigurationPartner.java +++ b/src/main/java/com/microsoft/graph/models/CrossTenantAccessPolicyConfigurationPartner.java @@ -52,7 +52,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The B2b Collaboration Inbound. - * Defines your partner-specific configuration for users from other organizations accessing your resources via Azure AD B2B collaboration. + * Defines your partner-specific configuration for users from other organizations accessing your resources via Microsoft Entra B2B collaboration. */ @SerializedName(value = "b2bCollaborationInbound", alternate = {"B2bCollaborationInbound"}) @Expose @@ -61,7 +61,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The B2b Collaboration Outbound. - * Defines your partner-specific configuration for users in your organization going outbound to access resources in another organization via Azure AD B2B collaboration. + * Defines your partner-specific configuration for users in your organization going outbound to access resources in another organization via Microsoft Entra B2B collaboration. */ @SerializedName(value = "b2bCollaborationOutbound", alternate = {"B2bCollaborationOutbound"}) @Expose @@ -79,7 +79,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The B2b Direct Connect Outbound. - * Defines your partner-specific configuration for users in your organization going outbound to access resources in another organization via Azure AD B2B direct connect. + * Defines your partner-specific configuration for users in your organization going outbound to access resources in another organization via Microsoft Entra B2B direct connect. */ @SerializedName(value = "b2bDirectConnectOutbound", alternate = {"B2bDirectConnectOutbound"}) @Expose @@ -88,7 +88,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Inbound Trust. - * Determines the partner-specific configuration for trusting other Conditional Access claims from external Azure AD organizations. + * Determines the partner-specific configuration for trusting other Conditional Access claims from external Microsoft Entra organizations. */ @SerializedName(value = "inboundTrust", alternate = {"InboundTrust"}) @Expose @@ -106,7 +106,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Tenant Id. - * The tenant identifier for the partner Azure AD organization. Read-only. Key. + * The tenant identifier for the partner Microsoft Entra organization. Read-only. Key. */ @SerializedName(value = "tenantId", alternate = {"TenantId"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/CrossTenantAccessPolicyInboundTrust.java b/src/main/java/com/microsoft/graph/models/CrossTenantAccessPolicyInboundTrust.java index f49c2b89093..521bfd54b07 100644 --- a/src/main/java/com/microsoft/graph/models/CrossTenantAccessPolicyInboundTrust.java +++ b/src/main/java/com/microsoft/graph/models/CrossTenantAccessPolicyInboundTrust.java @@ -39,7 +39,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Is Compliant Device Accepted. - * Specifies whether compliant devices from external Azure AD organizations are trusted. + * Specifies whether compliant devices from external Microsoft Entra organizations are trusted. */ @SerializedName(value = "isCompliantDeviceAccepted", alternate = {"IsCompliantDeviceAccepted"}) @Expose @@ -48,7 +48,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Is Hybrid Azure ADJoined Device Accepted. - * Specifies whether hybrid Azure AD joined devices from external Azure AD organizations are trusted. + * Specifies whether Microsoft Entra hybrid joined devices from external Microsoft Entra organizations are trusted. */ @SerializedName(value = "isHybridAzureADJoinedDeviceAccepted", alternate = {"IsHybridAzureADJoinedDeviceAccepted"}) @Expose @@ -57,7 +57,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Is Mfa Accepted. - * Specifies whether MFA from external Azure AD organizations is trusted. + * Specifies whether MFA from external Microsoft Entra organizations is trusted. */ @SerializedName(value = "isMfaAccepted", alternate = {"IsMfaAccepted"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/CrossTenantIdentitySyncPolicyPartner.java b/src/main/java/com/microsoft/graph/models/CrossTenantIdentitySyncPolicyPartner.java index 102dac500bf..974d8fe9cb7 100644 --- a/src/main/java/com/microsoft/graph/models/CrossTenantIdentitySyncPolicyPartner.java +++ b/src/main/java/com/microsoft/graph/models/CrossTenantIdentitySyncPolicyPartner.java @@ -40,7 +40,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Display Name. - * Display name for the cross-tenant user synchronization policy. Use the name of the partner Azure AD (Azure Active Directory) tenant to easily identify the policy. Optional. + * Display name for the cross-tenant user synchronization policy. Use the name of the partner Microsoft Entra tenant to easily identify the policy. Optional. */ @SerializedName(value = "displayName", alternate = {"DisplayName"}) @Expose @@ -49,7 +49,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Tenant Id. - * Tenant identifier for the partner Azure AD organization. Read-only. + * Tenant identifier for the partner Microsoft Entra organization. Read-only. */ @SerializedName(value = "tenantId", alternate = {"TenantId"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/CustomCalloutExtension.java b/src/main/java/com/microsoft/graph/models/CustomCalloutExtension.java index bd4fe08bd34..4890f486e96 100644 --- a/src/main/java/com/microsoft/graph/models/CustomCalloutExtension.java +++ b/src/main/java/com/microsoft/graph/models/CustomCalloutExtension.java @@ -39,7 +39,7 @@ public class CustomCalloutExtension extends Entity implements IJsonBackedObject /** * The Client Configuration. - * HTTP connection settings that define how long Azure AD can wait for a connection to a logic app, how many times you can retry a timed-out connection and the exception scenarios when retries are allowed. + * HTTP connection settings that define how long Microsoft Entra ID can wait for a connection to a logic app, how many times you can retry a timed-out connection and the exception scenarios when retries are allowed. */ @SerializedName(value = "clientConfiguration", alternate = {"ClientConfiguration"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/CustomExtensionCallbackConfiguration.java b/src/main/java/com/microsoft/graph/models/CustomExtensionCallbackConfiguration.java index 3dfbda368dd..99783451ada 100644 --- a/src/main/java/com/microsoft/graph/models/CustomExtensionCallbackConfiguration.java +++ b/src/main/java/com/microsoft/graph/models/CustomExtensionCallbackConfiguration.java @@ -39,7 +39,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Timeout Duration. - * The maximum duration in ISO 8601 format that Azure AD will wait for a resume action for the callout it sent to the logic app. The valid range for custom extensions in lifecycle workflows is five minutes to three hours. The valid range for custom extensions in entitlement management is between 5 minutes and 14 days. For example, PT3H refers to three hours, P3D refers to three days, PT10M refers to ten minutes. + * The maximum duration in ISO 8601 format that Microsoft Entra ID will wait for a resume action for the callout it sent to the logic app. The valid range for custom extensions in lifecycle workflows is five minutes to three hours. The valid range for custom extensions in entitlement management is between 5 minutes and 14 days. For example, PT3H refers to three hours, P3D refers to three days, PT10M refers to ten minutes. */ @SerializedName(value = "timeoutDuration", alternate = {"TimeoutDuration"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/CustomExtensionClientConfiguration.java b/src/main/java/com/microsoft/graph/models/CustomExtensionClientConfiguration.java index a4a7b8ba312..24e55d7582a 100644 --- a/src/main/java/com/microsoft/graph/models/CustomExtensionClientConfiguration.java +++ b/src/main/java/com/microsoft/graph/models/CustomExtensionClientConfiguration.java @@ -39,7 +39,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Timeout In Milliseconds. - * The max duration in milliseconds that Azure AD waits for a response from the external app before it shuts down the connection. The valid range is between 200 and 2000 milliseconds. Default duration is 1000. + * The max duration in milliseconds that Microsoft Entra ID waits for a response from the external app before it shuts down the connection. The valid range is between 200 and 2000 milliseconds. Default duration is 1000. */ @SerializedName(value = "timeoutInMilliseconds", alternate = {"TimeoutInMilliseconds"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/CustomTrainingSetting.java b/src/main/java/com/microsoft/graph/models/CustomTrainingSetting.java index 35a4217b88e..6df9d507552 100644 --- a/src/main/java/com/microsoft/graph/models/CustomTrainingSetting.java +++ b/src/main/java/com/microsoft/graph/models/CustomTrainingSetting.java @@ -29,7 +29,7 @@ public class CustomTrainingSetting extends TrainingSetting implements IJsonBacke /** * The Assigned To. - * + * A user collection that specifies to whom the training should be assigned. Possible values are: none, allUsers, clickedPayload, compromised, reportedPhish, readButNotClicked, didNothing, unknownFutureValue. */ @SerializedName(value = "assignedTo", alternate = {"AssignedTo"}) @Expose @@ -38,7 +38,7 @@ public class CustomTrainingSetting extends TrainingSetting implements IJsonBacke /** * The Description. - * + * The description of the custom training setting. */ @SerializedName(value = "description", alternate = {"Description"}) @Expose @@ -47,7 +47,7 @@ public class CustomTrainingSetting extends TrainingSetting implements IJsonBacke /** * The Display Name. - * + * The display name of the custom training setting. */ @SerializedName(value = "displayName", alternate = {"DisplayName"}) @Expose @@ -56,7 +56,7 @@ public class CustomTrainingSetting extends TrainingSetting implements IJsonBacke /** * The Duration In Minutes. - * + * Training duration. */ @SerializedName(value = "durationInMinutes", alternate = {"DurationInMinutes"}) @Expose @@ -65,7 +65,7 @@ public class CustomTrainingSetting extends TrainingSetting implements IJsonBacke /** * The Url. - * + * The training URL. */ @SerializedName(value = "url", alternate = {"Url"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/DelegatedAdminAccessContainer.java b/src/main/java/com/microsoft/graph/models/DelegatedAdminAccessContainer.java index 72cd02990b5..d6855fa67b8 100644 --- a/src/main/java/com/microsoft/graph/models/DelegatedAdminAccessContainer.java +++ b/src/main/java/com/microsoft/graph/models/DelegatedAdminAccessContainer.java @@ -40,7 +40,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Access Container Id. - * The identifier of the access container (for example, a security group). For 'securityGroup' access containers, this must be a valid ID of an Azure AD security group in the Microsoft partner's tenant. + * The identifier of the access container (for example, a security group). For 'securityGroup' access containers, this must be a valid ID of a Microsoft Entra security group in the Microsoft partner's tenant. */ @SerializedName(value = "accessContainerId", alternate = {"AccessContainerId"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/DelegatedAdminCustomer.java b/src/main/java/com/microsoft/graph/models/DelegatedAdminCustomer.java index 858b164fd23..8488bf49552 100644 --- a/src/main/java/com/microsoft/graph/models/DelegatedAdminCustomer.java +++ b/src/main/java/com/microsoft/graph/models/DelegatedAdminCustomer.java @@ -29,7 +29,7 @@ public class DelegatedAdminCustomer extends Entity implements IJsonBackedObject /** * The Display Name. - * The Azure AD display name of the customer tenant. Read-only. Supports $orderby. + * The Microsoft Entra ID display name of the customer tenant. Read-only. Supports $orderby. */ @SerializedName(value = "displayName", alternate = {"DisplayName"}) @Expose @@ -38,7 +38,7 @@ public class DelegatedAdminCustomer extends Entity implements IJsonBackedObject /** * The Tenant Id. - * The Azure AD-assigned tenant ID of the customer. Read-only. + * The Microsoft Entra ID-assigned tenant ID of the customer. Read-only. */ @SerializedName(value = "tenantId", alternate = {"TenantId"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/DelegatedAdminRelationship.java b/src/main/java/com/microsoft/graph/models/DelegatedAdminRelationship.java index b1b179348dc..d83b65fcab3 100644 --- a/src/main/java/com/microsoft/graph/models/DelegatedAdminRelationship.java +++ b/src/main/java/com/microsoft/graph/models/DelegatedAdminRelationship.java @@ -50,6 +50,15 @@ public class DelegatedAdminRelationship extends Entity implements IJsonBackedObj @Nullable public java.time.OffsetDateTime activatedDateTime; + /** + * The Auto Extend Duration. + * The duration by which the validity of the relationship is automatically extended, denoted in ISO 8601 format. Supported values are: P0D, PT0S, P180D. The default value is PT0S. PT0S indicates that the relationship expires when the endDateTime is reached and it isn't automatically extended. + */ + @SerializedName(value = "autoExtendDuration", alternate = {"AutoExtendDuration"}) + @Expose + @Nullable + public javax.xml.datatype.Duration autoExtendDuration; + /** * The Created Date Time. * The date and time in ISO 8601 format and in UTC time when the relationship was created. Read-only. diff --git a/src/main/java/com/microsoft/graph/models/DelegatedAdminRelationshipCustomerParticipant.java b/src/main/java/com/microsoft/graph/models/DelegatedAdminRelationshipCustomerParticipant.java index 4a19f83d471..18ee4b0a736 100644 --- a/src/main/java/com/microsoft/graph/models/DelegatedAdminRelationshipCustomerParticipant.java +++ b/src/main/java/com/microsoft/graph/models/DelegatedAdminRelationshipCustomerParticipant.java @@ -39,7 +39,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Display Name. - * The display name of the customer tenant as set by Azure AD. Read-only + * The display name of the customer tenant as set by Microsoft Entra ID. Read-only */ @SerializedName(value = "displayName", alternate = {"DisplayName"}) @Expose @@ -48,7 +48,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Tenant Id. - * The Azure AD-assigned tenant ID of the customer tenant. + * The Microsoft Entra ID-assigned tenant ID of the customer tenant. */ @SerializedName(value = "tenantId", alternate = {"TenantId"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/Device.java b/src/main/java/com/microsoft/graph/models/Device.java index 2a9d4871b23..08f1e2739a5 100644 --- a/src/main/java/com/microsoft/graph/models/Device.java +++ b/src/main/java/com/microsoft/graph/models/Device.java @@ -228,7 +228,7 @@ public class Device extends DirectoryObject implements IJsonBackedObject { /** * The Trust Type. - * Type of trust for the joined device. Read-only. Possible values: Workplace (indicates bring your own personal devices), AzureAd (Cloud only joined devices), ServerAd (on-premises domain joined devices joined to Azure AD). For more details, see Introduction to device management in Azure Active Directory. + * Type of trust for the joined device. Read-only. Possible values: Workplace (indicates bring your own personal devices), AzureAd (Cloud only joined devices), ServerAd (on-premises domain joined devices joined to Microsoft Entra ID). For more details, see Introduction to device management in Microsoft Entra ID. */ @SerializedName(value = "trustType", alternate = {"TrustType"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/DeviceLocalCredential.java b/src/main/java/com/microsoft/graph/models/DeviceLocalCredential.java new file mode 100644 index 00000000000..af455583cb9 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/DeviceLocalCredential.java @@ -0,0 +1,74 @@ +// Template Source: BaseEntity.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.models; +import com.microsoft.graph.serializer.ISerializer; +import com.microsoft.graph.serializer.IJsonBackedObject; +import com.microsoft.graph.serializer.AdditionalDataManager; +import java.util.EnumSet; +import com.microsoft.graph.models.Entity; + + +import com.google.gson.JsonObject; +import com.google.gson.annotations.SerializedName; +import com.google.gson.annotations.Expose; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Device Local Credential. + */ +public class DeviceLocalCredential extends Entity implements IJsonBackedObject { + + + /** + * The Account Name. + * The name of the local admin account for which LAPS is enabled. + */ + @SerializedName(value = "accountName", alternate = {"AccountName"}) + @Expose + @Nullable + public String accountName; + + /** + * The Account Sid. + * The SID of the local admin account for which LAPS is enabled. + */ + @SerializedName(value = "accountSid", alternate = {"AccountSid"}) + @Expose + @Nullable + public String accountSid; + + /** + * The Backup Date Time. + * When the local administrator account credential for the device object was backed up to Azure Active Directory. + */ + @SerializedName(value = "backupDateTime", alternate = {"BackupDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime backupDateTime; + + /** + * The Password Base64. + * The password for the local administrator account that is backed up to Azure Active Directory and returned as a Base64 encoded value. + */ + @SerializedName(value = "passwordBase64", alternate = {"PasswordBase64"}) + @Expose + @Nullable + public String passwordBase64; + + + /** + * Sets the raw JSON object + * + * @param serializer the serializer + * @param json the JSON object to set this object to + */ + public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { + + } +} diff --git a/src/main/java/com/microsoft/graph/models/DeviceLocalCredentialInfo.java b/src/main/java/com/microsoft/graph/models/DeviceLocalCredentialInfo.java new file mode 100644 index 00000000000..27f57f89cbc --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/DeviceLocalCredentialInfo.java @@ -0,0 +1,76 @@ +// Template Source: BaseEntity.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.models; +import com.microsoft.graph.serializer.ISerializer; +import com.microsoft.graph.serializer.IJsonBackedObject; +import com.microsoft.graph.serializer.AdditionalDataManager; +import java.util.EnumSet; +import com.microsoft.graph.http.BaseCollectionPage; +import com.microsoft.graph.models.DeviceLocalCredential; +import com.microsoft.graph.models.Entity; + + +import com.google.gson.JsonObject; +import com.google.gson.annotations.SerializedName; +import com.google.gson.annotations.Expose; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Device Local Credential Info. + */ +public class DeviceLocalCredentialInfo extends Entity implements IJsonBackedObject { + + + /** + * The Credentials. + * The credentials of the device's local administrator account backed up to Azure Active Directory. + */ + @SerializedName(value = "credentials", alternate = {"Credentials"}) + @Expose + @Nullable + public java.util.List credentials; + + /** + * The Device Name. + * Display name of the device that the local credentials are associated with. + */ + @SerializedName(value = "deviceName", alternate = {"DeviceName"}) + @Expose + @Nullable + public String deviceName; + + /** + * The Last Backup Date Time. + * When the local administrator account credential was backed up to Azure Active Directory. + */ + @SerializedName(value = "lastBackupDateTime", alternate = {"LastBackupDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime lastBackupDateTime; + + /** + * The Refresh Date Time. + * When the local administrator account credential will be refreshed and backed up to Azure Active Directory. + */ + @SerializedName(value = "refreshDateTime", alternate = {"RefreshDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime refreshDateTime; + + + /** + * Sets the raw JSON object + * + * @param serializer the serializer + * @param json the JSON object to set this object to + */ + public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { + + } +} diff --git a/src/main/java/com/microsoft/graph/models/Directory.java b/src/main/java/com/microsoft/graph/models/Directory.java index 06f58881da8..61f7f91adbf 100644 --- a/src/main/java/com/microsoft/graph/models/Directory.java +++ b/src/main/java/com/microsoft/graph/models/Directory.java @@ -10,6 +10,7 @@ import java.util.EnumSet; import com.microsoft.graph.http.BaseCollectionPage; import com.microsoft.graph.models.Entity; +import com.microsoft.graph.requests.DeviceLocalCredentialInfoCollectionPage; import com.microsoft.graph.requests.AttributeSetCollectionPage; import com.microsoft.graph.requests.CustomSecurityAttributeDefinitionCollectionPage; import com.microsoft.graph.requests.DirectoryObjectCollectionPage; @@ -31,6 +32,15 @@ public class Directory extends Entity implements IJsonBackedObject { + /** + * The Device Local Credentials. + * The credentials of the device's local administrator account backed up to Microsoft Entra ID. + */ + @SerializedName(value = "deviceLocalCredentials", alternate = {"DeviceLocalCredentials"}) + @Expose + @Nullable + public com.microsoft.graph.requests.DeviceLocalCredentialInfoCollectionPage deviceLocalCredentials; + /** * The Administrative Units. * Conceptual container for user and group directory objects. @@ -93,6 +103,10 @@ public class Directory extends Entity implements IJsonBackedObject { public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { + if (json.has("deviceLocalCredentials")) { + deviceLocalCredentials = serializer.deserializeObject(json.get("deviceLocalCredentials"), com.microsoft.graph.requests.DeviceLocalCredentialInfoCollectionPage.class); + } + if (json.has("administrativeUnits")) { administrativeUnits = serializer.deserializeObject(json.get("administrativeUnits"), com.microsoft.graph.requests.AdministrativeUnitCollectionPage.class); } diff --git a/src/main/java/com/microsoft/graph/models/DirectoryAudit.java b/src/main/java/com/microsoft/graph/models/DirectoryAudit.java index a7e2d599b2a..8568270734c 100644 --- a/src/main/java/com/microsoft/graph/models/DirectoryAudit.java +++ b/src/main/java/com/microsoft/graph/models/DirectoryAudit.java @@ -41,7 +41,7 @@ public class DirectoryAudit extends Entity implements IJsonBackedObject { /** * The Activity Display Name. - * Indicates the activity name or the operation name (examples: 'Create User' and 'Add member to group'). For a list of activities logged, refer to Azure AD audit log categories and activities. Supports $filter (eq, startswith). + * Indicates the activity name or the operation name (examples: 'Create User' and 'Add member to group'). For a list of activities logged, refer to Microsoft Entra audit log categories and activities. Supports $filter (eq, startswith). */ @SerializedName(value = "activityDisplayName", alternate = {"ActivityDisplayName"}) @Expose @@ -59,7 +59,7 @@ public class DirectoryAudit extends Entity implements IJsonBackedObject { /** * The Category. - * Indicates which resource category that's targeted by the activity. For example: UserManagement, GroupManagement, ApplicationManagement, RoleManagement. For a list of categories for activities logged, refer to Azure AD audit log categories and activities. + * Indicates which resource category that's targeted by the activity. For example: UserManagement, GroupManagement, ApplicationManagement, RoleManagement. For a list of categories for activities logged, refer to Microsoft Entra audit log categories and activities. */ @SerializedName(value = "category", alternate = {"Category"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/Domain.java b/src/main/java/com/microsoft/graph/models/Domain.java index 83ad295de23..a0e556b3573 100644 --- a/src/main/java/com/microsoft/graph/models/Domain.java +++ b/src/main/java/com/microsoft/graph/models/Domain.java @@ -31,7 +31,7 @@ public class Domain extends Entity implements IJsonBackedObject { /** * The Authentication Type. - * Indicates the configured authentication type for the domain. The value is either Managed or Federated. Managed indicates a cloud managed domain where Azure AD performs user authentication. Federated indicates authentication is federated with an identity provider such as the tenant's on-premises Active Directory via Active Directory Federation Services. Not nullable. + * Indicates the configured authentication type for the domain. The value is either Managed or Federated. Managed indicates a cloud managed domain where Microsoft Entra ID performs user authentication. Federated indicates authentication is federated with an identity provider such as the tenant's on-premises Active Directory via Active Directory Federation Services. Not nullable. */ @SerializedName(value = "authenticationType", alternate = {"AuthenticationType"}) @Expose @@ -155,7 +155,7 @@ public class Domain extends Entity implements IJsonBackedObject { /** * The Federation Configuration. - * Domain settings configured by a customer when federated with Azure AD. Supports $expand. + * Domain settings configured by a customer when federated with Microsoft Entra ID. Supports $expand. */ @SerializedName(value = "federationConfiguration", alternate = {"FederationConfiguration"}) @Expose @@ -173,7 +173,7 @@ public class Domain extends Entity implements IJsonBackedObject { /** * The Verification Dns Records. - * DNS records that the customer adds to the DNS zone file of the domain before the customer can complete domain ownership verification with Azure AD. Read-only, Nullable. Supports $expand. + * DNS records that the customer adds to the DNS zone file of the domain before the customer can complete domain ownership verification with Microsoft Entra ID. Read-only, Nullable. Supports $expand. */ @SerializedName(value = "verificationDnsRecords", alternate = {"VerificationDnsRecords"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/DriveItem.java b/src/main/java/com/microsoft/graph/models/DriveItem.java index 3efa85bddcd..b5c5332804c 100644 --- a/src/main/java/com/microsoft/graph/models/DriveItem.java +++ b/src/main/java/com/microsoft/graph/models/DriveItem.java @@ -73,7 +73,7 @@ public class DriveItem extends BaseItem implements IJsonBackedObject { /** * The CTag. - * An eTag for the content of the item. This eTag is not changed if only the metadata is changed. Note This property is not returned if the item is a folder. Read-only. + * An eTag for the content of the item. This eTag isn't changed if only the metadata is changed. Note This property isn't returned if the item is a folder. Read-only. */ @SerializedName(value = "cTag", alternate = {"CTag"}) @Expose @@ -172,7 +172,7 @@ public class DriveItem extends BaseItem implements IJsonBackedObject { /** * The Publication. - * Provides information about the published or checked-out state of an item, in locations that support such actions. This property is not returned by default. Read-only. + * Provides information about the published or checked-out state of an item, in locations that support such actions. This property isn't returned by default. Read-only. */ @SerializedName(value = "publication", alternate = {"Publication"}) @Expose @@ -208,7 +208,7 @@ public class DriveItem extends BaseItem implements IJsonBackedObject { /** * The Shared. - * Indicates that the item has been shared with others and provides information about the shared state of the item. Read-only. + * Indicates that the item was shared with others and provides information about the shared state of the item. Read-only. */ @SerializedName(value = "shared", alternate = {"Shared"}) @Expose @@ -262,7 +262,7 @@ public class DriveItem extends BaseItem implements IJsonBackedObject { /** * The Workbook. - * For files that are Excel spreadsheets, accesses the workbook API to work with the spreadsheet's contents. Nullable. + * For files that are Excel spreadsheets, access to the workbook API to work with the spreadsheet's contents. Nullable. */ @SerializedName(value = "workbook", alternate = {"Workbook"}) @Expose @@ -316,7 +316,7 @@ public class DriveItem extends BaseItem implements IJsonBackedObject { /** * The Thumbnails. - * Collection containing [ThumbnailSet][] objects associated with the item. For more info, see [getting thumbnails][]. Read-only. Nullable. + * Collection of [thumbnailSet][] objects associated with the item. For more information, see [getting thumbnails][]. Read-only. Nullable. */ @SerializedName(value = "thumbnails", alternate = {"Thumbnails"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/EducationUser.java b/src/main/java/com/microsoft/graph/models/EducationUser.java index 4c373f2a1eb..23baa2b3158 100644 --- a/src/main/java/com/microsoft/graph/models/EducationUser.java +++ b/src/main/java/com/microsoft/graph/models/EducationUser.java @@ -197,7 +197,7 @@ public class EducationUser extends Entity implements IJsonBackedObject { /** * The On Premises Info. - * Additional information used to associate the Azure Active Directory user with its Active Directory counterpart. + * Additional information used to associate the Microsoft Entra user with its Active Directory counterpart. */ @SerializedName(value = "onPremisesInfo", alternate = {"OnPremisesInfo"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/EmailPayloadDetail.java b/src/main/java/com/microsoft/graph/models/EmailPayloadDetail.java index 643131623cb..91a55de4c5c 100644 --- a/src/main/java/com/microsoft/graph/models/EmailPayloadDetail.java +++ b/src/main/java/com/microsoft/graph/models/EmailPayloadDetail.java @@ -27,7 +27,7 @@ public class EmailPayloadDetail extends PayloadDetail implements IJsonBackedObje /** * The From Email. - * + * Email address of the user. */ @SerializedName(value = "fromEmail", alternate = {"FromEmail"}) @Expose @@ -36,7 +36,7 @@ public class EmailPayloadDetail extends PayloadDetail implements IJsonBackedObje /** * The From Name. - * + * Display name of the user. */ @SerializedName(value = "fromName", alternate = {"FromName"}) @Expose @@ -45,7 +45,7 @@ public class EmailPayloadDetail extends PayloadDetail implements IJsonBackedObje /** * The Is External Sender. - * + * Indicates whether the sender isn't from the user's organization. */ @SerializedName(value = "isExternalSender", alternate = {"IsExternalSender"}) @Expose @@ -54,7 +54,7 @@ public class EmailPayloadDetail extends PayloadDetail implements IJsonBackedObje /** * The Subject. - * + * The subject of the email address sent to the user. */ @SerializedName(value = "subject", alternate = {"Subject"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/EndUserNotification.java b/src/main/java/com/microsoft/graph/models/EndUserNotification.java index 8f609194615..a1eb627b2c1 100644 --- a/src/main/java/com/microsoft/graph/models/EndUserNotification.java +++ b/src/main/java/com/microsoft/graph/models/EndUserNotification.java @@ -33,7 +33,7 @@ public class EndUserNotification extends Entity implements IJsonBackedObject { /** * The Created By. - * + * Identity of the user who created the notification. */ @SerializedName(value = "createdBy", alternate = {"CreatedBy"}) @Expose @@ -42,7 +42,7 @@ public class EndUserNotification extends Entity implements IJsonBackedObject { /** * The Created Date Time. - * + * Date and time when the notification was created. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. */ @SerializedName(value = "createdDateTime", alternate = {"CreatedDateTime"}) @Expose @@ -51,7 +51,7 @@ public class EndUserNotification extends Entity implements IJsonBackedObject { /** * The Description. - * + * Description of the notification as defined by the user. */ @SerializedName(value = "description", alternate = {"Description"}) @Expose @@ -60,7 +60,7 @@ public class EndUserNotification extends Entity implements IJsonBackedObject { /** * The Display Name. - * + * Name of the notification as defined by the user. */ @SerializedName(value = "displayName", alternate = {"DisplayName"}) @Expose @@ -69,7 +69,7 @@ public class EndUserNotification extends Entity implements IJsonBackedObject { /** * The Last Modified By. - * + * Identity of the user who last modified the notification. */ @SerializedName(value = "lastModifiedBy", alternate = {"LastModifiedBy"}) @Expose @@ -78,7 +78,7 @@ public class EndUserNotification extends Entity implements IJsonBackedObject { /** * The Last Modified Date Time. - * + * Date and time when the notification was last modified. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. */ @SerializedName(value = "lastModifiedDateTime", alternate = {"LastModifiedDateTime"}) @Expose @@ -87,7 +87,7 @@ public class EndUserNotification extends Entity implements IJsonBackedObject { /** * The Notification Type. - * + * Type of notification. Possible values are: unknown, positiveReinforcement, noTraining, trainingAssignment, trainingReminder, unknownFutureValue. */ @SerializedName(value = "notificationType", alternate = {"NotificationType"}) @Expose @@ -96,7 +96,7 @@ public class EndUserNotification extends Entity implements IJsonBackedObject { /** * The Source. - * + * The source of the content. Possible values are: unknown, global, tenant, unknownFutureValue. */ @SerializedName(value = "source", alternate = {"Source"}) @Expose @@ -105,7 +105,7 @@ public class EndUserNotification extends Entity implements IJsonBackedObject { /** * The Status. - * + * The status of the notification. Possible values are: unknown, draft, ready, archive, delete, unknownFutureValue. */ @SerializedName(value = "status", alternate = {"Status"}) @Expose @@ -114,7 +114,7 @@ public class EndUserNotification extends Entity implements IJsonBackedObject { /** * The Supported Locales. - * + * Supported locales for endUserNotification content. */ @SerializedName(value = "supportedLocales", alternate = {"SupportedLocales"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/EndUserNotificationDetail.java b/src/main/java/com/microsoft/graph/models/EndUserNotificationDetail.java index 8c5b026fde8..275b79f3711 100644 --- a/src/main/java/com/microsoft/graph/models/EndUserNotificationDetail.java +++ b/src/main/java/com/microsoft/graph/models/EndUserNotificationDetail.java @@ -28,7 +28,7 @@ public class EndUserNotificationDetail extends Entity implements IJsonBackedObje /** * The Email Content. - * + * Email HTML content. */ @SerializedName(value = "emailContent", alternate = {"EmailContent"}) @Expose @@ -37,7 +37,7 @@ public class EndUserNotificationDetail extends Entity implements IJsonBackedObje /** * The Is Default Langauge. - * + * Indicates whether this language is default. */ @SerializedName(value = "isDefaultLangauge", alternate = {"IsDefaultLangauge"}) @Expose @@ -46,7 +46,7 @@ public class EndUserNotificationDetail extends Entity implements IJsonBackedObje /** * The Language. - * + * Notification language. */ @SerializedName(value = "language", alternate = {"Language"}) @Expose @@ -55,7 +55,7 @@ public class EndUserNotificationDetail extends Entity implements IJsonBackedObje /** * The Locale. - * + * Notification locale. */ @SerializedName(value = "locale", alternate = {"Locale"}) @Expose @@ -64,7 +64,7 @@ public class EndUserNotificationDetail extends Entity implements IJsonBackedObje /** * The Sent From. - * + * Email details of the sender. */ @SerializedName(value = "sentFrom", alternate = {"SentFrom"}) @Expose @@ -73,7 +73,7 @@ public class EndUserNotificationDetail extends Entity implements IJsonBackedObje /** * The Subject. - * + * Mail subject. */ @SerializedName(value = "subject", alternate = {"Subject"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/EndUserNotificationSetting.java b/src/main/java/com/microsoft/graph/models/EndUserNotificationSetting.java index 17c4ee013c5..0e70f9968a0 100644 --- a/src/main/java/com/microsoft/graph/models/EndUserNotificationSetting.java +++ b/src/main/java/com/microsoft/graph/models/EndUserNotificationSetting.java @@ -42,7 +42,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Notification Preference. - * + * Notification preference. Possible values are: unknown, microsoft, custom, unknownFutureValue. */ @SerializedName(value = "notificationPreference", alternate = {"NotificationPreference"}) @Expose @@ -51,7 +51,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Positive Reinforcement. - * + * Positive reinforcement detail. */ @SerializedName(value = "positiveReinforcement", alternate = {"PositiveReinforcement"}) @Expose @@ -60,7 +60,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Setting Type. - * + * End user notification type. Possible values are: unknown, noTraining, trainingSelected, noNotification, unknownFutureValue. */ @SerializedName(value = "settingType", alternate = {"SettingType"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/EntitlementManagement.java b/src/main/java/com/microsoft/graph/models/EntitlementManagement.java index cc76ae934cc..3f6ee82a9ac 100644 --- a/src/main/java/com/microsoft/graph/models/EntitlementManagement.java +++ b/src/main/java/com/microsoft/graph/models/EntitlementManagement.java @@ -139,7 +139,7 @@ public class EntitlementManagement extends Entity implements IJsonBackedObject { /** * The Settings. - * The settings that control the behavior of Azure AD entitlement management. + * The settings that control the behavior of Microsoft Entra entitlement management. */ @SerializedName(value = "settings", alternate = {"Settings"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/ExcludeTarget.java b/src/main/java/com/microsoft/graph/models/ExcludeTarget.java index cb7126abe91..5afc0323331 100644 --- a/src/main/java/com/microsoft/graph/models/ExcludeTarget.java +++ b/src/main/java/com/microsoft/graph/models/ExcludeTarget.java @@ -40,7 +40,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Id. - * The object identifier of an Azure Active Directory user or group. + * The object identifier of a Microsoft Entra user or group. */ @SerializedName(value = "id", alternate = {"Id"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/ExtensionProperty.java b/src/main/java/com/microsoft/graph/models/ExtensionProperty.java index 4babb6240f5..036260d8f3a 100644 --- a/src/main/java/com/microsoft/graph/models/ExtensionProperty.java +++ b/src/main/java/com/microsoft/graph/models/ExtensionProperty.java @@ -44,9 +44,18 @@ public class ExtensionProperty extends DirectoryObject implements IJsonBackedObj @Nullable public String dataType; + /** + * The Is Multi Valued. + * + */ + @SerializedName(value = "isMultiValued", alternate = {"IsMultiValued"}) + @Expose + @Nullable + public Boolean isMultiValued; + /** * The Is Synced From On Premises. - * Indicates if this extension property was synced from on-premises active directory using Azure AD Connect. Read-only. + * Indicates if this extension property was synced from on-premises active directory using Microsoft Entra Connect. Read-only. */ @SerializedName(value = "isSyncedFromOnPremises", alternate = {"IsSyncedFromOnPremises"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/FederatedIdentityCredential.java b/src/main/java/com/microsoft/graph/models/FederatedIdentityCredential.java index 65319ab3994..e51d16e9adf 100644 --- a/src/main/java/com/microsoft/graph/models/FederatedIdentityCredential.java +++ b/src/main/java/com/microsoft/graph/models/FederatedIdentityCredential.java @@ -28,7 +28,7 @@ public class FederatedIdentityCredential extends Entity implements IJsonBackedOb /** * The Audiences. - * The audience that can appear in the external token. This field is mandatory and should be set to api://AzureADTokenExchange for Azure AD. It says what Microsoft identity platform should accept in the aud claim in the incoming token. This value represents Azure AD in your external identity provider and has no fixed value across identity providers - you may need to create a new application registration in your identity provider to serve as the audience of this token. This field can only accept a single value and has a limit of 600 characters. Required. + * The audience that can appear in the external token. This field is mandatory and should be set to api://AzureADTokenExchange for Microsoft Entra ID. It says what Microsoft identity platform should accept in the aud claim in the incoming token. This value represents Microsoft Entra ID in your external identity provider and has no fixed value across identity providers - you might need to create a new application registration in your identity provider to serve as the audience of this token. This field can only accept a single value and has a limit of 600 characters. Required. */ @SerializedName(value = "audiences", alternate = {"Audiences"}) @Expose @@ -37,7 +37,7 @@ public class FederatedIdentityCredential extends Entity implements IJsonBackedOb /** * The Description. - * The un-validated, user-provided description of the federated identity credential. It has a limit of 600 characters. Optional. + * The unvalidated description of the federated identity credential, provided by the user. It has a limit of 600 characters. Optional. */ @SerializedName(value = "description", alternate = {"Description"}) @Expose @@ -46,7 +46,7 @@ public class FederatedIdentityCredential extends Entity implements IJsonBackedOb /** * The Issuer. - * The URL of the external identity provider and must match the issuer claim of the external token being exchanged. The combination of the values of issuer and subject must be unique on the app. It has a limit of 600 characters. Required. + * The URL of the external identity provider, which must match the issuer claim of the external token being exchanged. The combination of the values of issuer and subject must be unique within the app. It has a limit of 600 characters. Required. */ @SerializedName(value = "issuer", alternate = {"Issuer"}) @Expose @@ -55,7 +55,7 @@ public class FederatedIdentityCredential extends Entity implements IJsonBackedOb /** * The Name. - * is the unique identifier for the federated identity credential, which has a limit of 120 characters and must be URL friendly. It is immutable once created. Required. Not nullable. Supports $filter (eq). + * The unique identifier for the federated identity credential, which has a limit of 120 characters and must be URL friendly. The string is immutable after it's created. Required. Not nullable. Supports $filter (eq). */ @SerializedName(value = "name", alternate = {"Name"}) @Expose @@ -64,7 +64,7 @@ public class FederatedIdentityCredential extends Entity implements IJsonBackedOb /** * The Subject. - * Required. The identifier of the external software workload within the external identity provider. Like the audience value, it has no fixed format, as each identity provider uses their own - sometimes a GUID, sometimes a colon delimited identifier, sometimes arbitrary strings. The value here must match the sub claim within the token presented to Azure AD. The combination of issuer and subject must be unique on the app. It has a limit of 600 characters. Supports $filter (eq). + * Required. The identifier of the external software workload within the external identity provider. Like the audience value, it has no fixed format; each identity provider uses their own - sometimes a GUID, sometimes a colon delimited identifier, sometimes arbitrary strings. The value here must match the sub claim within the token presented to Microsoft Entra ID. The combination of issuer and subject must be unique within the app. It has a limit of 600 characters. Supports $filter (eq). */ @SerializedName(value = "subject", alternate = {"Subject"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/Group.java b/src/main/java/com/microsoft/graph/models/Group.java index 2b7d788ec37..334e1028da2 100644 --- a/src/main/java/com/microsoft/graph/models/Group.java +++ b/src/main/java/com/microsoft/graph/models/Group.java @@ -101,7 +101,7 @@ public class Group extends DirectoryObject implements IJsonBackedObject { /** * The Expiration Date Time. - * Timestamp of when the group is set to expire. Is null for security groups but for Microsoft 365 groups, it represents when the group is set to expire as defined in the groupLifecyclePolicy. 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. Returned by default. Supports $filter (eq, ne, not, ge, le, in). Read-only. + * Timestamp of when the group is set to expire. It is null for security groups, but for Microsoft 365 groups, it represents when the group is set to expire as defined in the groupLifecyclePolicy. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Returned by default. Supports $filter (eq, ne, not, ge, le, in). Read-only. */ @SerializedName(value = "expirationDateTime", alternate = {"ExpirationDateTime"}) @Expose @@ -110,7 +110,7 @@ public class Group extends DirectoryObject implements IJsonBackedObject { /** * The Group Types. - * Specifies the group type and its membership. If the collection contains Unified, the group is a Microsoft 365 group; otherwise, it's either a security group or distribution group. For details, see groups overview.If the collection includes DynamicMembership, the group has dynamic membership; otherwise, membership is static. Returned by default. Supports $filter (eq, not). + * Specifies the group type and its membership. If the collection contains Unified, the group is a Microsoft 365 group; otherwise, it's either a security group or a distribution group. For details, see groups overview.If the collection includes DynamicMembership, the group has dynamic membership; otherwise, membership is static. Returned by default. Supports $filter (eq, not). */ @SerializedName(value = "groupTypes", alternate = {"GroupTypes"}) @Expose @@ -128,7 +128,7 @@ public class Group extends DirectoryObject implements IJsonBackedObject { /** * The Is Assignable To Role. - * Indicates whether this group can be assigned to an Azure Active Directory role or not. Optional. This property can only be set while creating the group and is immutable. If set to true, the securityEnabled property must also be set to true, visibility must be Hidden, and the group cannot be a dynamic group (that is, groupTypes cannot contain DynamicMembership). Only callers in Global Administrator and Privileged Role Administrator roles can set this property. The caller must also be assigned the RoleManagement.ReadWrite.Directory permission to set this property or update the membership of such groups. For more, see Using a group to manage Azure AD role assignmentsUsing this feature requires a Azure AD Premium P1 license. Returned by default. Supports $filter (eq, ne, not). + * Indicates whether this group can be assigned to a Microsoft Entra role. Optional. This property can only be set while creating the group and is immutable. If set to true, the securityEnabled property must also be set to true, visibility must be Hidden, and the group cannot be a dynamic group (that is, groupTypes cannot contain DynamicMembership). Only callers in Global Administrator and Privileged Role Administrator roles can set this property. The caller must also be assigned the RoleManagement.ReadWrite.Directory permission to set this property or update the membership of such groups. For more, see Using a group to manage Microsoft Entra role assignmentsUsing this feature requires a Microsoft Entra ID P1 license. Returned by default. Supports $filter (eq, ne, not). */ @SerializedName(value = "isAssignableToRole", alternate = {"IsAssignableToRole"}) @Expose @@ -137,7 +137,7 @@ public class Group extends DirectoryObject implements IJsonBackedObject { /** * The License Processing State. - * Indicates status of the group license assignment to all members of the group. Default value is false. Read-only. Possible values: QueuedForProcessing, ProcessingInProgress, and ProcessingComplete.Returned only on $select. Read-only. + * Indicates the status of the group license assignment to all group members. The default value is false. Read-only. Possible values: QueuedForProcessing, ProcessingInProgress, and ProcessingComplete.Returned only on $select. Read-only. */ @SerializedName(value = "licenseProcessingState", alternate = {"LicenseProcessingState"}) @Expose @@ -227,7 +227,7 @@ public class Group extends DirectoryObject implements IJsonBackedObject { /** * The On Premises Sam Account Name. - * Contains the on-premises SAM account name synchronized from the on-premises directory. The property is only populated for customers who are synchronizing their on-premises directory to Azure Active Directory via Azure AD Connect.Returned by default. Supports $filter (eq, ne, not, ge, le, in, startsWith). Read-only. + * Contains the on-premises SAM account name synchronized from the on-premises directory. The property is only populated for customers synchronizing their on-premises directory to Microsoft Entra ID via Microsoft Entra Connect.Returned by default. Supports $filter (eq, ne, not, ge, le, in, startsWith). Read-only. */ @SerializedName(value = "onPremisesSamAccountName", alternate = {"OnPremisesSamAccountName"}) @Expose @@ -236,7 +236,7 @@ public class Group extends DirectoryObject implements IJsonBackedObject { /** * The On Premises Security Identifier. - * Contains the on-premises security identifier (SID) for the group that was synchronized from on-premises to the cloud. Returned by default. Supports $filter (eq including on null values). Read-only. + * Contains the on-premises security identifier (SID) for the group synchronized from on-premises to the cloud. Returned by default. Supports $filter (eq including on null values). Read-only. */ @SerializedName(value = "onPremisesSecurityIdentifier", alternate = {"OnPremisesSecurityIdentifier"}) @Expose @@ -254,7 +254,7 @@ public class Group extends DirectoryObject implements IJsonBackedObject { /** * The Preferred Data Location. - * The preferred data location for the Microsoft 365 group. By default, the group inherits the group creator's preferred data location. To set this property, the calling user must be assigned one of the following Azure AD roles: Global Administrator User Account Administrator Directory Writer Exchange Administrator SharePoint Administrator For more information about this property, see OneDrive Online Multi-Geo. Nullable. Returned by default. + * The preferred data location for the Microsoft 365 group. By default, the group inherits the group creator's preferred data location. To set this property, the calling app must be granted the Directory.ReadWrite.All permission and the user be assigned one of the following Microsoft Entra roles: Global Administrator User Account Administrator Directory Writer Exchange Administrator SharePoint Administrator For more information about this property, see OneDrive Online Multi-Geo. Nullable. Returned by default. */ @SerializedName(value = "preferredDataLocation", alternate = {"PreferredDataLocation"}) @Expose @@ -263,7 +263,7 @@ public class Group extends DirectoryObject implements IJsonBackedObject { /** * The Preferred Language. - * The preferred language for a Microsoft 365 group. Should follow ISO 639-1 Code; for example en-US. Returned by default. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values). + * The preferred language for a Microsoft 365 group. Should follow ISO 639-1 Code; for example, en-US. Returned by default. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values). */ @SerializedName(value = "preferredLanguage", alternate = {"PreferredLanguage"}) @Expose @@ -281,7 +281,7 @@ public class Group extends DirectoryObject implements IJsonBackedObject { /** * The Renewed Date Time. - * Timestamp of when the group was last renewed. This cannot be modified directly and is only updated via the renew service action. 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. Returned by default. Supports $filter (eq, ne, not, ge, le, in). Read-only. + * Timestamp of when the group was last renewed. This cannot be modified directly and is only updated via the renew service action. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Returned by default. Supports $filter (eq, ne, not, ge, le, in). Read-only. */ @SerializedName(value = "renewedDateTime", alternate = {"RenewedDateTime"}) @Expose @@ -326,7 +326,7 @@ public class Group extends DirectoryObject implements IJsonBackedObject { /** * The Visibility. - * Specifies the group join policy and group content visibility for groups. Possible values are: Private, Public, or HiddenMembership. HiddenMembership can be set only for Microsoft 365 groups, when the groups are created. It can't be updated later. Other values of visibility can be updated after group creation. If visibility value is not specified during group creation on Microsoft Graph, a security group is created as Private by default and Microsoft 365 group is Public. Groups assignable to roles are always Private. To learn more, see group visibility options. Returned by default. Nullable. + * Specifies the group join policy and group content visibility for groups. Possible values are: Private, Public, or HiddenMembership. HiddenMembership can be set only for Microsoft 365 groups when the groups are created. It can't be updated later. Other values of visibility can be updated after group creation. If visibility value is not specified during group creation on Microsoft Graph, a security group is created as Private by default, and the Microsoft 365 group is Public. Groups assignable to roles are always Private. To learn more, see group visibility options. Returned by default. Nullable. */ @SerializedName(value = "visibility", alternate = {"Visibility"}) @Expose @@ -335,7 +335,7 @@ public class Group extends DirectoryObject implements IJsonBackedObject { /** * The Allow External Senders. - * Indicates if people external to the organization can send messages to the group. Default value is false. Returned only on $select. Supported only on the Get group API (GET /groups/{ID}). + * Indicates if people external to the organization can send messages to the group. The default value is false. Returned only on $select. Supported only on the Get group API (GET /groups/{ID}). */ @SerializedName(value = "allowExternalSenders", alternate = {"AllowExternalSenders"}) @Expose @@ -362,7 +362,7 @@ public class Group extends DirectoryObject implements IJsonBackedObject { /** * The Hide From Outlook Clients. - * True if the group is not displayed in Outlook clients, such as Outlook for Windows and Outlook on the web; otherwise, false. Default value is false. Returned only on $select. Supported only on the Get group API (GET /groups/{ID}). + * True if the group is not displayed in Outlook clients, such as Outlook for Windows and Outlook on the web; otherwise, false. The default value is false. Returned only on $select. Supported only on the Get group API (GET /groups/{ID}). */ @SerializedName(value = "hideFromOutlookClients", alternate = {"HideFromOutlookClients"}) @Expose @@ -371,7 +371,7 @@ public class Group extends DirectoryObject implements IJsonBackedObject { /** * The Is Subscribed By Mail. - * Indicates whether the signed-in user is subscribed to receive email conversations. Default value is true. Returned only on $select. Supported only on the Get group API (GET /groups/{ID}). + * Indicates whether the signed-in user is subscribed to receive email conversations. The default value is true. Returned only on $select. Supported only on the Get group API (GET /groups/{ID}). */ @SerializedName(value = "isSubscribedByMail", alternate = {"IsSubscribedByMail"}) @Expose @@ -389,7 +389,7 @@ public class Group extends DirectoryObject implements IJsonBackedObject { /** * The Is Archived. - * When a group is associated with a team this property determines whether the team is in read-only mode.To read this property, use the /group/{groupId}/team endpoint or the Get team API. To update this property, use the archiveTeam and unarchiveTeam APIs. + * When a group is associated with a team, this property determines whether the team is in read-only mode.To read this property, use the /group/{groupId}/team endpoint or the Get team API. To update this property, use the archiveTeam and unarchiveTeam APIs. */ @SerializedName(value = "isArchived", alternate = {"IsArchived"}) @Expose @@ -462,7 +462,7 @@ public class Group extends DirectoryObject implements IJsonBackedObject { /** * The Transitive Member Of. - * The groups that a group is a member of, either directly and through nested membership. Nullable. + * The groups that a group is a member of, either directly or through nested membership. Nullable. */ @Nullable public com.microsoft.graph.requests.DirectoryObjectCollectionPage transitiveMemberOf; @@ -476,7 +476,7 @@ public class Group extends DirectoryObject implements IJsonBackedObject { /** * The Accepted Senders. - * The list of users or groups that are allowed to create post's or calendar events in this group. If this list is non-empty then only users or groups listed here are allowed to post. + * The list of users or groups allowed to create posts or calendar events in this group. If this list is non-empty, then only users or groups listed here are allowed to post. */ @Nullable public com.microsoft.graph.requests.DirectoryObjectCollectionPage acceptedSenders; @@ -519,7 +519,7 @@ public class Group extends DirectoryObject implements IJsonBackedObject { /** * The Rejected Senders. - * The list of users or groups that are not allowed to create posts or calendar events in this group. Nullable + * The list of users or groups not allowed to create posts or calendar events in this group. Nullable */ @Nullable public com.microsoft.graph.requests.DirectoryObjectCollectionPage rejectedSenders; diff --git a/src/main/java/com/microsoft/graph/models/GroupMembers.java b/src/main/java/com/microsoft/graph/models/GroupMembers.java index 39e4fe4fa7f..aa99512a649 100644 --- a/src/main/java/com/microsoft/graph/models/GroupMembers.java +++ b/src/main/java/com/microsoft/graph/models/GroupMembers.java @@ -27,7 +27,7 @@ public class GroupMembers extends SubjectSet implements IJsonBackedObject { /** * The Description. - * The name of the group in Azure AD. Read only. + * The name of the group in Microsoft Entra ID. Read only. */ @SerializedName(value = "description", alternate = {"Description"}) @Expose @@ -36,7 +36,7 @@ public class GroupMembers extends SubjectSet implements IJsonBackedObject { /** * The Group Id. - * The ID of the group in Azure AD. + * The ID of the group in Microsoft Entra ID. */ @SerializedName(value = "groupId", alternate = {"GroupId"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/IncludeAllAccountTargetContent.java b/src/main/java/com/microsoft/graph/models/IncludeAllAccountTargetContent.java index 62377db4990..2e7cf9e785d 100644 --- a/src/main/java/com/microsoft/graph/models/IncludeAllAccountTargetContent.java +++ b/src/main/java/com/microsoft/graph/models/IncludeAllAccountTargetContent.java @@ -16,6 +16,7 @@ import com.google.gson.annotations.Expose; import javax.annotation.Nullable; import javax.annotation.Nonnull; +import java.util.HashMap; // **NOTE** This file was generated by a tool and any changes will be overwritten. diff --git a/src/main/java/com/microsoft/graph/models/LandingPage.java b/src/main/java/com/microsoft/graph/models/LandingPage.java index bbb936d489a..67b549df9d7 100644 --- a/src/main/java/com/microsoft/graph/models/LandingPage.java +++ b/src/main/java/com/microsoft/graph/models/LandingPage.java @@ -32,7 +32,7 @@ public class LandingPage extends Entity implements IJsonBackedObject { /** * The Created By. - * + * Identity of the user who created the landing page. */ @SerializedName(value = "createdBy", alternate = {"CreatedBy"}) @Expose @@ -41,7 +41,7 @@ public class LandingPage extends Entity implements IJsonBackedObject { /** * The Created Date Time. - * + * Date and time when the landing page was created. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. */ @SerializedName(value = "createdDateTime", alternate = {"CreatedDateTime"}) @Expose @@ -50,7 +50,7 @@ public class LandingPage extends Entity implements IJsonBackedObject { /** * The Description. - * + * Description of the landing page as defined by the user. */ @SerializedName(value = "description", alternate = {"Description"}) @Expose @@ -59,7 +59,7 @@ public class LandingPage extends Entity implements IJsonBackedObject { /** * The Display Name. - * + * The display name of the landing page. */ @SerializedName(value = "displayName", alternate = {"DisplayName"}) @Expose @@ -68,7 +68,7 @@ public class LandingPage extends Entity implements IJsonBackedObject { /** * The Last Modified By. - * + * Email identity of the user who last modified the landing page. */ @SerializedName(value = "lastModifiedBy", alternate = {"LastModifiedBy"}) @Expose @@ -77,7 +77,7 @@ public class LandingPage extends Entity implements IJsonBackedObject { /** * The Last Modified Date Time. - * + * Date and time when the landing page was last modified. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. */ @SerializedName(value = "lastModifiedDateTime", alternate = {"LastModifiedDateTime"}) @Expose @@ -86,7 +86,7 @@ public class LandingPage extends Entity implements IJsonBackedObject { /** * The Locale. - * + * Content locale. */ @SerializedName(value = "locale", alternate = {"Locale"}) @Expose @@ -95,7 +95,7 @@ public class LandingPage extends Entity implements IJsonBackedObject { /** * The Source. - * + * The source of the content. Possible values are: unknown, global, tenant, unknownFutureValue. */ @SerializedName(value = "source", alternate = {"Source"}) @Expose @@ -104,7 +104,7 @@ public class LandingPage extends Entity implements IJsonBackedObject { /** * The Status. - * + * The status of the simulation. Possible values are: unknown, draft, ready, archive, delete, unknownFutureValue. */ @SerializedName(value = "status", alternate = {"Status"}) @Expose @@ -113,7 +113,7 @@ public class LandingPage extends Entity implements IJsonBackedObject { /** * The Supported Locales. - * + * Supported locales. */ @SerializedName(value = "supportedLocales", alternate = {"SupportedLocales"}) @Expose @@ -122,7 +122,7 @@ public class LandingPage extends Entity implements IJsonBackedObject { /** * The Details. - * + * The detail information for a landing page associated with a simulation during its creation. */ @SerializedName(value = "details", alternate = {"Details"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/LandingPageDetail.java b/src/main/java/com/microsoft/graph/models/LandingPageDetail.java index 9ed74d832c0..94cefa80ca6 100644 --- a/src/main/java/com/microsoft/graph/models/LandingPageDetail.java +++ b/src/main/java/com/microsoft/graph/models/LandingPageDetail.java @@ -27,7 +27,7 @@ public class LandingPageDetail extends Entity implements IJsonBackedObject { /** * The Content. - * + * Landing page detail content. */ @SerializedName(value = "content", alternate = {"Content"}) @Expose @@ -36,7 +36,7 @@ public class LandingPageDetail extends Entity implements IJsonBackedObject { /** * The Is Default Langauge. - * + * Indicates whether this language detail is default for the landing page. */ @SerializedName(value = "isDefaultLangauge", alternate = {"IsDefaultLangauge"}) @Expose @@ -45,7 +45,7 @@ public class LandingPageDetail extends Entity implements IJsonBackedObject { /** * The Language. - * + * The content language for the landing page. */ @SerializedName(value = "language", alternate = {"Language"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/LoginPage.java b/src/main/java/com/microsoft/graph/models/LoginPage.java index ca3e07cb84e..4ca63104ae4 100644 --- a/src/main/java/com/microsoft/graph/models/LoginPage.java +++ b/src/main/java/com/microsoft/graph/models/LoginPage.java @@ -30,7 +30,7 @@ public class LoginPage extends Entity implements IJsonBackedObject { /** * The Content. - * + * The HTML content of the login page. */ @SerializedName(value = "content", alternate = {"Content"}) @Expose @@ -39,7 +39,7 @@ public class LoginPage extends Entity implements IJsonBackedObject { /** * The Created By. - * + * Identity of the user who created the login page. */ @SerializedName(value = "createdBy", alternate = {"CreatedBy"}) @Expose @@ -48,7 +48,7 @@ public class LoginPage extends Entity implements IJsonBackedObject { /** * The Created Date Time. - * + * Date and time when the login page was created. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. */ @SerializedName(value = "createdDateTime", alternate = {"CreatedDateTime"}) @Expose @@ -57,7 +57,7 @@ public class LoginPage extends Entity implements IJsonBackedObject { /** * The Description. - * + * Description about the login page. */ @SerializedName(value = "description", alternate = {"Description"}) @Expose @@ -66,7 +66,7 @@ public class LoginPage extends Entity implements IJsonBackedObject { /** * The Display Name. - * + * Display name of the login page. */ @SerializedName(value = "displayName", alternate = {"DisplayName"}) @Expose @@ -75,7 +75,7 @@ public class LoginPage extends Entity implements IJsonBackedObject { /** * The Language. - * + * The content language of the login page. */ @SerializedName(value = "language", alternate = {"Language"}) @Expose @@ -84,7 +84,7 @@ public class LoginPage extends Entity implements IJsonBackedObject { /** * The Last Modified By. - * + * Identity of the user who last modified the login page. */ @SerializedName(value = "lastModifiedBy", alternate = {"LastModifiedBy"}) @Expose @@ -93,7 +93,7 @@ public class LoginPage extends Entity implements IJsonBackedObject { /** * The Last Modified Date Time. - * + * Date and time when the login page was last modified. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. */ @SerializedName(value = "lastModifiedDateTime", alternate = {"LastModifiedDateTime"}) @Expose @@ -102,7 +102,7 @@ public class LoginPage extends Entity implements IJsonBackedObject { /** * The Source. - * + * The source of the content. Possible values are: unknown, global, tenant, unknownFutureValue. */ @SerializedName(value = "source", alternate = {"Source"}) @Expose @@ -111,7 +111,7 @@ public class LoginPage extends Entity implements IJsonBackedObject { /** * The Status. - * + * The login page status. Possible values are: unknown, draft, ready, archive, delete, unknownFutureValue. */ @SerializedName(value = "status", alternate = {"Status"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/MicrosoftCustomTrainingSetting.java b/src/main/java/com/microsoft/graph/models/MicrosoftCustomTrainingSetting.java index f36fa736ac6..6d088a4683a 100644 --- a/src/main/java/com/microsoft/graph/models/MicrosoftCustomTrainingSetting.java +++ b/src/main/java/com/microsoft/graph/models/MicrosoftCustomTrainingSetting.java @@ -30,7 +30,7 @@ public class MicrosoftCustomTrainingSetting extends TrainingSetting implements I /** * The Completion Date Time. - * + * The completion date and time of the training. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. */ @SerializedName(value = "completionDateTime", alternate = {"CompletionDateTime"}) @Expose @@ -39,7 +39,7 @@ public class MicrosoftCustomTrainingSetting extends TrainingSetting implements I /** * The Training Assignment Mappings. - * + * The mapping details of the associated training. */ @SerializedName(value = "trainingAssignmentMappings", alternate = {"TrainingAssignmentMappings"}) @Expose @@ -48,7 +48,7 @@ public class MicrosoftCustomTrainingSetting extends TrainingSetting implements I /** * The Training Completion Duration. - * + * The training completion duration that needs to be provided before scheduling the training. Possible values are: week, fortnite, month, unknownFutureValue. */ @SerializedName(value = "trainingCompletionDuration", alternate = {"TrainingCompletionDuration"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/MicrosoftManagedTrainingSetting.java b/src/main/java/com/microsoft/graph/models/MicrosoftManagedTrainingSetting.java index 1162fc47a47..10b7e00cbc0 100644 --- a/src/main/java/com/microsoft/graph/models/MicrosoftManagedTrainingSetting.java +++ b/src/main/java/com/microsoft/graph/models/MicrosoftManagedTrainingSetting.java @@ -28,7 +28,7 @@ public class MicrosoftManagedTrainingSetting extends TrainingSetting implements /** * The Completion Date Time. - * + * The completion date for the training. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. */ @SerializedName(value = "completionDateTime", alternate = {"CompletionDateTime"}) @Expose @@ -37,7 +37,7 @@ public class MicrosoftManagedTrainingSetting extends TrainingSetting implements /** * The Training Completion Duration. - * + * The training completion duration that needs to be provided before scheduling the training. The possible values are: week, fortnite, month, unknownFutureValue. */ @SerializedName(value = "trainingCompletionDuration", alternate = {"TrainingCompletionDuration"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/MicrosoftTrainingAssignmentMapping.java b/src/main/java/com/microsoft/graph/models/MicrosoftTrainingAssignmentMapping.java index 1b0315300c4..29c0d6b3501 100644 --- a/src/main/java/com/microsoft/graph/models/MicrosoftTrainingAssignmentMapping.java +++ b/src/main/java/com/microsoft/graph/models/MicrosoftTrainingAssignmentMapping.java @@ -30,7 +30,7 @@ public class MicrosoftTrainingAssignmentMapping extends TrainingSetting implemen /** * The Assigned To. - * + * A user collection that specifies to whom the training should be assigned. Possible values are: none, allUsers, clickedPayload, compromised, reportedPhish, readButNotClicked, didNothing, unknownFutureValue. */ @SerializedName(value = "assignedTo", alternate = {"AssignedTo"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/NoTrainingNotificationSetting.java b/src/main/java/com/microsoft/graph/models/NoTrainingNotificationSetting.java index 3f845f695ab..a07d4cba7f2 100644 --- a/src/main/java/com/microsoft/graph/models/NoTrainingNotificationSetting.java +++ b/src/main/java/com/microsoft/graph/models/NoTrainingNotificationSetting.java @@ -28,7 +28,7 @@ public class NoTrainingNotificationSetting extends EndUserNotificationSetting im /** * The Simulation Notification. - * + * The notification for the user who is part of the simulation. */ @SerializedName(value = "simulationNotification", alternate = {"SimulationNotification"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/OAuthConsentAppDetail.java b/src/main/java/com/microsoft/graph/models/OAuthConsentAppDetail.java index af81ec517af..15b61baab98 100644 --- a/src/main/java/com/microsoft/graph/models/OAuthConsentAppDetail.java +++ b/src/main/java/com/microsoft/graph/models/OAuthConsentAppDetail.java @@ -40,7 +40,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The App Scope. - * + * App scope. Possible values are: unknown, readCalendar, readContact, readMail, readAllChat, readAllFile, readAndWriteMail, sendMail, unknownFutureValue. */ @SerializedName(value = "appScope", alternate = {"AppScope"}) @Expose @@ -49,7 +49,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Display Logo. - * + * App display logo. */ @SerializedName(value = "displayLogo", alternate = {"DisplayLogo"}) @Expose @@ -58,7 +58,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Display Name. - * + * App name. */ @SerializedName(value = "displayName", alternate = {"DisplayName"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/OnlineMeeting.java b/src/main/java/com/microsoft/graph/models/OnlineMeeting.java index 1b11a67f100..e127e391918 100644 --- a/src/main/java/com/microsoft/graph/models/OnlineMeeting.java +++ b/src/main/java/com/microsoft/graph/models/OnlineMeeting.java @@ -22,6 +22,7 @@ import com.microsoft.graph.models.WatermarkProtectionValues; import com.microsoft.graph.models.Entity; import com.microsoft.graph.requests.MeetingAttendanceReportCollectionPage; +import com.microsoft.graph.requests.CallRecordingCollectionPage; import com.microsoft.graph.requests.CallTranscriptCollectionPage; @@ -273,6 +274,15 @@ public class OnlineMeeting extends Entity implements IJsonBackedObject { @Nullable public com.microsoft.graph.requests.MeetingAttendanceReportCollectionPage attendanceReports; + /** + * The Recordings. + * + */ + @SerializedName(value = "recordings", alternate = {"Recordings"}) + @Expose + @Nullable + public com.microsoft.graph.requests.CallRecordingCollectionPage recordings; + /** * The Transcripts. * The transcripts of an online meeting. Read-only. @@ -296,6 +306,10 @@ public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final J attendanceReports = serializer.deserializeObject(json.get("attendanceReports"), com.microsoft.graph.requests.MeetingAttendanceReportCollectionPage.class); } + if (json.has("recordings")) { + recordings = serializer.deserializeObject(json.get("recordings"), com.microsoft.graph.requests.CallRecordingCollectionPage.class); + } + if (json.has("transcripts")) { transcripts = serializer.deserializeObject(json.get("transcripts"), com.microsoft.graph.requests.CallTranscriptCollectionPage.class); } diff --git a/src/main/java/com/microsoft/graph/models/Payload.java b/src/main/java/com/microsoft/graph/models/Payload.java index 68a55b94e96..56700e63509 100644 --- a/src/main/java/com/microsoft/graph/models/Payload.java +++ b/src/main/java/com/microsoft/graph/models/Payload.java @@ -39,7 +39,7 @@ public class Payload extends Entity implements IJsonBackedObject { /** * The Brand. - * + * The branch of a payload. Possible values are: unknown, other, americanExpress, capitalOne, dhl, docuSign, dropbox, facebook, firstAmerican, microsoft, netflix, scotiabank, sendGrid, stewartTitle, tesco, wellsFargo, syrinxCloud, adobe, teams, zoom, unknownFutureValue. */ @SerializedName(value = "brand", alternate = {"Brand"}) @Expose @@ -48,7 +48,7 @@ public class Payload extends Entity implements IJsonBackedObject { /** * The Complexity. - * + * The complexity of a payload. Possible values are: unknown, low, medium, high, unknownFutureValue. */ @SerializedName(value = "complexity", alternate = {"Complexity"}) @Expose @@ -57,7 +57,7 @@ public class Payload extends Entity implements IJsonBackedObject { /** * The Created By. - * + * Identity of the user who created the attack simulation and training campaign payload. */ @SerializedName(value = "createdBy", alternate = {"CreatedBy"}) @Expose @@ -66,7 +66,7 @@ public class Payload extends Entity implements IJsonBackedObject { /** * The Created Date Time. - * + * Date and time when the attack simulation and training campaign payload. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. */ @SerializedName(value = "createdDateTime", alternate = {"CreatedDateTime"}) @Expose @@ -75,7 +75,7 @@ public class Payload extends Entity implements IJsonBackedObject { /** * The Description. - * + * Description of the attack simulation and training campaign payload. */ @SerializedName(value = "description", alternate = {"Description"}) @Expose @@ -84,7 +84,7 @@ public class Payload extends Entity implements IJsonBackedObject { /** * The Detail. - * + * Additional details about the payload. */ @SerializedName(value = "detail", alternate = {"Detail"}) @Expose @@ -93,7 +93,7 @@ public class Payload extends Entity implements IJsonBackedObject { /** * The Display Name. - * + * Display name of the attack simulation and training campaign payload. Supports $filter and $orderby. */ @SerializedName(value = "displayName", alternate = {"DisplayName"}) @Expose @@ -102,7 +102,7 @@ public class Payload extends Entity implements IJsonBackedObject { /** * The Industry. - * + * Industry of a payload. Possible values are: unknown, other, banking, businessServices, consumerServices, education, energy, construction, consulting, financialServices, government, hospitality, insurance, legal, courierServices, IT, healthcare, manufacturing, retail, telecom, realEstate, unknownFutureValue. */ @SerializedName(value = "industry", alternate = {"Industry"}) @Expose @@ -111,7 +111,7 @@ public class Payload extends Entity implements IJsonBackedObject { /** * The Is Automated. - * + * Indicates whether the attack simulation and training campaign payload was created from an automation flow. Supports $filter and $orderby. */ @SerializedName(value = "isAutomated", alternate = {"IsAutomated"}) @Expose @@ -120,7 +120,7 @@ public class Payload extends Entity implements IJsonBackedObject { /** * The Is Controversial. - * + * Indicates whether the payload is controversial. */ @SerializedName(value = "isControversial", alternate = {"IsControversial"}) @Expose @@ -129,7 +129,7 @@ public class Payload extends Entity implements IJsonBackedObject { /** * The Is Current Event. - * + * Indicates whether the payload is from any recent event. */ @SerializedName(value = "isCurrentEvent", alternate = {"IsCurrentEvent"}) @Expose @@ -138,7 +138,7 @@ public class Payload extends Entity implements IJsonBackedObject { /** * The Language. - * + * Payload language. */ @SerializedName(value = "language", alternate = {"Language"}) @Expose @@ -147,7 +147,7 @@ public class Payload extends Entity implements IJsonBackedObject { /** * The Last Modified By. - * + * Identity of the user who most recently modified the attack simulation and training campaign payload. */ @SerializedName(value = "lastModifiedBy", alternate = {"LastModifiedBy"}) @Expose @@ -156,7 +156,7 @@ public class Payload extends Entity implements IJsonBackedObject { /** * The Last Modified Date Time. - * + * Date and time when the attack simulation and training campaign payload was last modified. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. */ @SerializedName(value = "lastModifiedDateTime", alternate = {"LastModifiedDateTime"}) @Expose @@ -165,7 +165,7 @@ public class Payload extends Entity implements IJsonBackedObject { /** * The Payload Tags. - * + * Free text tags for a payload. */ @SerializedName(value = "payloadTags", alternate = {"PayloadTags"}) @Expose @@ -174,7 +174,7 @@ public class Payload extends Entity implements IJsonBackedObject { /** * The Platform. - * + * The payload delivery platform for a simulation. Possible values are: unknown, sms, email, teams, unknownFutureValue. */ @SerializedName(value = "platform", alternate = {"Platform"}) @Expose @@ -183,7 +183,7 @@ public class Payload extends Entity implements IJsonBackedObject { /** * The Predicted Compromise Rate. - * + * Predicted probability for a payload to phish a targeted user. */ @SerializedName(value = "predictedCompromiseRate", alternate = {"PredictedCompromiseRate"}) @Expose @@ -192,7 +192,7 @@ public class Payload extends Entity implements IJsonBackedObject { /** * The Simulation Attack Type. - * + * Attack type of the attack simulation and training campaign. Supports $filter and $orderby. Possible values are: unknown, social, cloud, endpoint, unknownFutureValue. */ @SerializedName(value = "simulationAttackType", alternate = {"SimulationAttackType"}) @Expose @@ -201,7 +201,7 @@ public class Payload extends Entity implements IJsonBackedObject { /** * The Source. - * + * Simulation content source. Supports $filter and $orderby. Possible values are: unknown, global, tenant, unknownFutureValue. */ @SerializedName(value = "source", alternate = {"Source"}) @Expose @@ -210,7 +210,7 @@ public class Payload extends Entity implements IJsonBackedObject { /** * The Status. - * + * Simulation content status. Supports $filter and $orderby. Possible values are: unknown, draft, ready, archive, delete, unknownFutureValue. */ @SerializedName(value = "status", alternate = {"Status"}) @Expose @@ -219,7 +219,7 @@ public class Payload extends Entity implements IJsonBackedObject { /** * The Technique. - * + * The social engineering technique used in the attack simulation and training campaign. Supports $filter and $orderby. Possible values are: unknown, credentialHarvesting, attachmentMalware, driveByUrl, linkInAttachment, linkToMalwareFile, unknownFutureValue, oAuthConsentGrant. Note that you must use the Prefer: include-unknown-enum-members request header to get the following values from this evolvable enum: oAuthConsentGrant. For more information on the types of social engineering attack techniques, see simulations. */ @SerializedName(value = "technique", alternate = {"Technique"}) @Expose @@ -228,7 +228,7 @@ public class Payload extends Entity implements IJsonBackedObject { /** * The Theme. - * + * The theme of a payload. Possible values are: unknown, other, accountActivation, accountVerification, billing, cleanUpMail, controversial, documentReceived, expense, fax, financeReport, incomingMessages, invoice, itemReceived, loginAlert, mailReceived, password, payment, payroll, personalizedOffer, quarantine, remoteWork, reviewMessage, securityUpdate, serviceSuspended, signatureRequired, upgradeMailboxStorage, verifyMailbox, voicemail, advertisement, employeeEngagement, unknownFutureValue. */ @SerializedName(value = "theme", alternate = {"Theme"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/PayloadCoachmark.java b/src/main/java/com/microsoft/graph/models/PayloadCoachmark.java index bd31019cb65..29c8a85d84f 100644 --- a/src/main/java/com/microsoft/graph/models/PayloadCoachmark.java +++ b/src/main/java/com/microsoft/graph/models/PayloadCoachmark.java @@ -40,7 +40,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Coachmark Location. - * + * The coachmark location. */ @SerializedName(value = "coachmarkLocation", alternate = {"CoachmarkLocation"}) @Expose @@ -49,7 +49,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Description. - * + * The description about the coachmark. */ @SerializedName(value = "description", alternate = {"Description"}) @Expose @@ -58,7 +58,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Indicator. - * + * The coachmark indicator. */ @SerializedName(value = "indicator", alternate = {"Indicator"}) @Expose @@ -67,7 +67,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Is Valid. - * + * Indicates whether the coachmark is valid or not. */ @SerializedName(value = "isValid", alternate = {"IsValid"}) @Expose @@ -76,7 +76,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Language. - * + * The coachmark language. */ @SerializedName(value = "language", alternate = {"Language"}) @Expose @@ -85,7 +85,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Order. - * + * The coachmark order. */ @SerializedName(value = "order", alternate = {"Order"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/PayloadDetail.java b/src/main/java/com/microsoft/graph/models/PayloadDetail.java index 076f2e9f006..d8f13c46d4b 100644 --- a/src/main/java/com/microsoft/graph/models/PayloadDetail.java +++ b/src/main/java/com/microsoft/graph/models/PayloadDetail.java @@ -41,7 +41,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Coachmarks. - * + * Payload coachmark details. */ @SerializedName(value = "coachmarks", alternate = {"Coachmarks"}) @Expose @@ -50,7 +50,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Content. - * + * Payload content details. */ @SerializedName(value = "content", alternate = {"Content"}) @Expose @@ -59,7 +59,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Phishing Url. - * + * The phishing URL used to target a user. */ @SerializedName(value = "phishingUrl", alternate = {"PhishingUrl"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/PeopleAdminSettings.java b/src/main/java/com/microsoft/graph/models/PeopleAdminSettings.java index c83655fdc60..af135cd1157 100644 --- a/src/main/java/com/microsoft/graph/models/PeopleAdminSettings.java +++ b/src/main/java/com/microsoft/graph/models/PeopleAdminSettings.java @@ -29,7 +29,7 @@ public class PeopleAdminSettings extends Entity implements IJsonBackedObject { /** * The Profile Card Properties. - * + * Contains a collection of the properties an administrator has defined as visible on the Microsoft 365 profile card. */ @SerializedName(value = "profileCardProperties", alternate = {"ProfileCardProperties"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/PositiveReinforcementNotification.java b/src/main/java/com/microsoft/graph/models/PositiveReinforcementNotification.java index 41901e438e4..a7a7222caf8 100644 --- a/src/main/java/com/microsoft/graph/models/PositiveReinforcementNotification.java +++ b/src/main/java/com/microsoft/graph/models/PositiveReinforcementNotification.java @@ -28,7 +28,7 @@ public class PositiveReinforcementNotification extends BaseEndUserNotification i /** * The Delivery Preference. - * + * Delivery preference. Possible values are: unknown, deliverImmedietly, deliverAfterCampaignEnd, unknownFutureValue. */ @SerializedName(value = "deliveryPreference", alternate = {"DeliveryPreference"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/ProfileCardAnnotation.java b/src/main/java/com/microsoft/graph/models/ProfileCardAnnotation.java index 2a4ec2ae282..1126cddf1c3 100644 --- a/src/main/java/com/microsoft/graph/models/ProfileCardAnnotation.java +++ b/src/main/java/com/microsoft/graph/models/ProfileCardAnnotation.java @@ -41,7 +41,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Display Name. - * + * If present, the value of this field is used by the profile card as the default property label in the experience (for example, 'Cost Center'). */ @SerializedName(value = "displayName", alternate = {"DisplayName"}) @Expose @@ -50,7 +50,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Localizations. - * + * Each resource in this collection represents the localized value of the attribute name for a given language, used as the default label for that locale. For example, a user with a nb-NO client gets 'Kostnadssenter' as the attribute label, rather than 'Cost Center.' */ @SerializedName(value = "localizations", alternate = {"Localizations"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/ProfileCardProperty.java b/src/main/java/com/microsoft/graph/models/ProfileCardProperty.java index 68b9a5f7405..820b2a1d21d 100644 --- a/src/main/java/com/microsoft/graph/models/ProfileCardProperty.java +++ b/src/main/java/com/microsoft/graph/models/ProfileCardProperty.java @@ -29,7 +29,7 @@ public class ProfileCardProperty extends Entity implements IJsonBackedObject { /** * The Annotations. - * + * Allows an administrator to set a custom display label for the directory property and localize it for the users in their tenant. */ @SerializedName(value = "annotations", alternate = {"Annotations"}) @Expose @@ -38,7 +38,7 @@ public class ProfileCardProperty extends Entity implements IJsonBackedObject { /** * The Directory Property Name. - * + * Identifies a profileCardProperty resource in Get, Update, or Delete operations. Allows an administrator to surface hidden Microsoft Entra ID properties on the Microsoft 365 profile card within their tenant. When present, the Microsoft Entra ID field referenced in this property is visible to all users in your tenant on the contact pane of the profile card. Allowed values for this field are: UserPrincipalName, Fax, StreetAddress, PostalCode, StateOrProvince, Alias, CustomAttribute1, CustomAttribute2, CustomAttribute3, CustomAttribute4, CustomAttribute5, CustomAttribute6, CustomAttribute7, CustomAttribute8, CustomAttribute9, CustomAttribute10, CustomAttribute11, CustomAttribute12, CustomAttribute13, CustomAttribute14, CustomAttribute15. */ @SerializedName(value = "directoryPropertyName", alternate = {"DirectoryPropertyName"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/RemoteDesktopSecurityConfiguration.java b/src/main/java/com/microsoft/graph/models/RemoteDesktopSecurityConfiguration.java new file mode 100644 index 00000000000..83247e38d33 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/RemoteDesktopSecurityConfiguration.java @@ -0,0 +1,62 @@ +// Template Source: BaseEntity.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.models; +import com.microsoft.graph.serializer.ISerializer; +import com.microsoft.graph.serializer.IJsonBackedObject; +import com.microsoft.graph.serializer.AdditionalDataManager; +import java.util.EnumSet; +import com.microsoft.graph.http.BaseCollectionPage; +import com.microsoft.graph.models.Entity; +import com.microsoft.graph.requests.TargetDeviceGroupCollectionPage; + + +import com.google.gson.JsonObject; +import com.google.gson.annotations.SerializedName; +import com.google.gson.annotations.Expose; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Remote Desktop Security Configuration. + */ +public class RemoteDesktopSecurityConfiguration extends Entity implements IJsonBackedObject { + + + /** + * The Is Remote Desktop Protocol Enabled. + * Determines if Microsoft Entra ID RDS authentication protocol for RDP is enabled. + */ + @SerializedName(value = "isRemoteDesktopProtocolEnabled", alternate = {"IsRemoteDesktopProtocolEnabled"}) + @Expose + @Nullable + public Boolean isRemoteDesktopProtocolEnabled; + + /** + * The Target Device Groups. + * The collection of target device groups that are associated with the RDS security configuration that will be enabled for SSO when a client connects to the target device over RDP using the new Microsoft Entra ID RDS authentication protocol. + */ + @SerializedName(value = "targetDeviceGroups", alternate = {"TargetDeviceGroups"}) + @Expose + @Nullable + public com.microsoft.graph.requests.TargetDeviceGroupCollectionPage targetDeviceGroups; + + + /** + * Sets the raw JSON object + * + * @param serializer the serializer + * @param json the JSON object to set this object to + */ + public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { + + + if (json.has("targetDeviceGroups")) { + targetDeviceGroups = serializer.deserializeObject(json.get("targetDeviceGroups"), com.microsoft.graph.requests.TargetDeviceGroupCollectionPage.class); + } + } +} diff --git a/src/main/java/com/microsoft/graph/models/ServicePrincipal.java b/src/main/java/com/microsoft/graph/models/ServicePrincipal.java index 20b3ec0a0a3..66036e185af 100644 --- a/src/main/java/com/microsoft/graph/models/ServicePrincipal.java +++ b/src/main/java/com/microsoft/graph/models/ServicePrincipal.java @@ -19,6 +19,7 @@ import com.microsoft.graph.models.ResourceSpecificPermission; import com.microsoft.graph.models.SamlSingleSignOnSettings; import com.microsoft.graph.models.VerifiedPublisher; +import com.microsoft.graph.models.RemoteDesktopSecurityConfiguration; import com.microsoft.graph.models.Synchronization; import com.microsoft.graph.models.DirectoryObject; import com.microsoft.graph.requests.AppManagementPolicyCollectionPage; @@ -452,6 +453,15 @@ public class ServicePrincipal extends DirectoryObject implements IJsonBackedObje @Nullable public com.microsoft.graph.requests.DirectoryObjectCollectionPage owners; + /** + * The Remote Desktop Security Configuration. + * The remoteDesktopSecurityConfiguration object applied to this service principal. Supports $filter (eq) for isRemoteDesktopProtocolEnabled property. + */ + @SerializedName(value = "remoteDesktopSecurityConfiguration", alternate = {"RemoteDesktopSecurityConfiguration"}) + @Expose + @Nullable + public RemoteDesktopSecurityConfiguration remoteDesktopSecurityConfiguration; + /** * The Token Issuance Policies. * The tokenIssuancePolicies assigned to this service principal. diff --git a/src/main/java/com/microsoft/graph/models/SignIn.java b/src/main/java/com/microsoft/graph/models/SignIn.java index 59697977ce7..772dec3d550 100644 --- a/src/main/java/com/microsoft/graph/models/SignIn.java +++ b/src/main/java/com/microsoft/graph/models/SignIn.java @@ -55,7 +55,7 @@ public class SignIn extends Entity implements IJsonBackedObject { /** * The Applied Conditional Access Policies. - * Provides a list of conditional access policies that are triggered by the corresponding sign-in activity. + * Provides a list of conditional access policies that are triggered by the corresponding sign-in activity. Apps need additional Conditional Access-related privileges to read the details of this property. For more information, see Viewing applied conditional access (CA) policies in sign-ins. */ @SerializedName(value = "appliedConditionalAccessPolicies", alternate = {"AppliedConditionalAccessPolicies"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/Simulation.java b/src/main/java/com/microsoft/graph/models/Simulation.java index d254e0ae362..742e5be5805 100644 --- a/src/main/java/com/microsoft/graph/models/Simulation.java +++ b/src/main/java/com/microsoft/graph/models/Simulation.java @@ -40,7 +40,7 @@ public class Simulation extends Entity implements IJsonBackedObject { /** * The Attack Technique. - * The social engineering technique used in the attack simulation and training campaign. Supports $filter and $orderby. Possible values are: unknown, credentialHarvesting, attachmentMalware, driveByUrl, linkInAttachment, linkToMalwareFile, unknownFutureValue. For more information on the types of social engineering attack techniques, see simulations. + * The social engineering technique used in the attack simulation and training campaign. Supports $filter and $orderby. Possible values are: unknown, credentialHarvesting, attachmentMalware, driveByUrl, linkInAttachment, linkToMalwareFile, unknownFutureValue, oAuthConsentGrant. Note that you must use the Prefer: include-unknown-enum-members request header to get the following values from this evolvable enum: oAuthConsentGrant. For more information on the types of social engineering attack techniques, see simulations. */ @SerializedName(value = "attackTechnique", alternate = {"AttackTechnique"}) @Expose @@ -112,7 +112,7 @@ public class Simulation extends Entity implements IJsonBackedObject { /** * The Duration In Days. - * + * Simulation duration in days. */ @SerializedName(value = "durationInDays", alternate = {"DurationInDays"}) @Expose @@ -121,7 +121,7 @@ public class Simulation extends Entity implements IJsonBackedObject { /** * The End User Notification Setting. - * + * Details about the end user notification setting. */ @SerializedName(value = "endUserNotificationSetting", alternate = {"EndUserNotificationSetting"}) @Expose @@ -130,7 +130,7 @@ public class Simulation extends Entity implements IJsonBackedObject { /** * The Excluded Account Target. - * + * Users excluded from the simulation. */ @SerializedName(value = "excludedAccountTarget", alternate = {"ExcludedAccountTarget"}) @Expose @@ -139,7 +139,7 @@ public class Simulation extends Entity implements IJsonBackedObject { /** * The Included Account Target. - * + * Users targeted in the simulation. */ @SerializedName(value = "includedAccountTarget", alternate = {"IncludedAccountTarget"}) @Expose @@ -184,7 +184,7 @@ public class Simulation extends Entity implements IJsonBackedObject { /** * The OAuth Consent App Detail. - * + * OAuth app details for the OAuth technique. */ @SerializedName(value = "oAuthConsentAppDetail", alternate = {"OAuthConsentAppDetail"}) @Expose @@ -220,7 +220,7 @@ public class Simulation extends Entity implements IJsonBackedObject { /** * The Training Setting. - * + * Details about the training settings for a simulation. */ @SerializedName(value = "trainingSetting", alternate = {"TrainingSetting"}) @Expose @@ -229,7 +229,7 @@ public class Simulation extends Entity implements IJsonBackedObject { /** * The Landing Page. - * + * The landing page associated with a simulation during its creation. */ @SerializedName(value = "landingPage", alternate = {"LandingPage"}) @Expose @@ -238,7 +238,7 @@ public class Simulation extends Entity implements IJsonBackedObject { /** * The Login Page. - * + * The login page associated with a simulation during its creation. */ @SerializedName(value = "loginPage", alternate = {"LoginPage"}) @Expose @@ -247,7 +247,7 @@ public class Simulation extends Entity implements IJsonBackedObject { /** * The Payload. - * + * The payload associated with a simulation during its creation. */ @SerializedName(value = "payload", alternate = {"Payload"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/SimulationNotification.java b/src/main/java/com/microsoft/graph/models/SimulationNotification.java index 2b2cf154d97..8f36cfd1670 100644 --- a/src/main/java/com/microsoft/graph/models/SimulationNotification.java +++ b/src/main/java/com/microsoft/graph/models/SimulationNotification.java @@ -28,7 +28,7 @@ public class SimulationNotification extends BaseEndUserNotification implements I /** * The Targetted User Type. - * + * Target user type. Possible values are: unknown, clicked, compromised, allUsers, unknownFutureValue. */ @SerializedName(value = "targettedUserType", alternate = {"TargettedUserType"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/SiteDeltaParameterSet.java b/src/main/java/com/microsoft/graph/models/SiteDeltaParameterSet.java new file mode 100644 index 00000000000..0214a2a78cd --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/SiteDeltaParameterSet.java @@ -0,0 +1,69 @@ +// Template Source: BaseMethodParameterSet.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.models; + +import com.microsoft.graph.models.Site; +import com.google.gson.annotations.Expose; +import com.google.gson.annotations.SerializedName; +import javax.annotation.Nonnull; +import javax.annotation.Nullable; +import com.google.gson.JsonObject; +import java.util.EnumSet; +import java.util.ArrayList; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Site Delta Parameter Set. + */ +public class SiteDeltaParameterSet { + + /** + * Instiaciates a new SiteDeltaParameterSet + */ + public SiteDeltaParameterSet() {} + /** + * Instiaciates a new SiteDeltaParameterSet + * @param builder builder bearing the parameters to initialize from + */ + protected SiteDeltaParameterSet(@Nonnull final SiteDeltaParameterSetBuilder builder) { + } + /** + * Gets a new builder for the body + * @return a new builder + */ + @Nonnull + public static SiteDeltaParameterSetBuilder newBuilder() { + return new SiteDeltaParameterSetBuilder(); + } + /** + * Fluent builder for the SiteDeltaParameterSet + */ + public static final class SiteDeltaParameterSetBuilder { + /** + * Instanciates a new SiteDeltaParameterSetBuilder + */ + @Nullable + protected SiteDeltaParameterSetBuilder(){} + /** + * Buils the resulting body object to be passed to the request + * @return the body object to pass to the request + */ + @Nonnull + public SiteDeltaParameterSet build() { + return new SiteDeltaParameterSet(this); + } + } + /** + * Gets the functions options from the properties that have been set + * @return a list of function options for the request + */ + @Nonnull + public java.util.List getFunctionOptions() { + final ArrayList result = new ArrayList<>(); + return result; + } +} diff --git a/src/main/java/com/microsoft/graph/models/TargetDeviceGroup.java b/src/main/java/com/microsoft/graph/models/TargetDeviceGroup.java new file mode 100644 index 00000000000..02aefebeeda --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/TargetDeviceGroup.java @@ -0,0 +1,47 @@ +// Template Source: BaseEntity.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.models; +import com.microsoft.graph.serializer.ISerializer; +import com.microsoft.graph.serializer.IJsonBackedObject; +import com.microsoft.graph.serializer.AdditionalDataManager; +import java.util.EnumSet; +import com.microsoft.graph.models.Entity; + + +import com.google.gson.JsonObject; +import com.google.gson.annotations.SerializedName; +import com.google.gson.annotations.Expose; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Target Device Group. + */ +public class TargetDeviceGroup extends Entity implements IJsonBackedObject { + + + /** + * The Display Name. + * Display name for the target device group. + */ + @SerializedName(value = "displayName", alternate = {"DisplayName"}) + @Expose + @Nullable + public String displayName; + + + /** + * Sets the raw JSON object + * + * @param serializer the serializer + * @param json the JSON object to set this object to + */ + public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { + + } +} diff --git a/src/main/java/com/microsoft/graph/models/Training.java b/src/main/java/com/microsoft/graph/models/Training.java index 5c99f62de76..aff35f74e02 100644 --- a/src/main/java/com/microsoft/graph/models/Training.java +++ b/src/main/java/com/microsoft/graph/models/Training.java @@ -33,7 +33,7 @@ public class Training extends Entity implements IJsonBackedObject { /** * The Availability Status. - * + * Training availability status. Possible values are: unknown, notAvailable, available, archive, delete, unknownFutureValue. */ @SerializedName(value = "availabilityStatus", alternate = {"AvailabilityStatus"}) @Expose @@ -42,7 +42,7 @@ public class Training extends Entity implements IJsonBackedObject { /** * The Created By. - * + * Identity of the user who created the training. */ @SerializedName(value = "createdBy", alternate = {"CreatedBy"}) @Expose @@ -51,7 +51,7 @@ public class Training extends Entity implements IJsonBackedObject { /** * The Created Date Time. - * + * Date and time when the training was created. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. */ @SerializedName(value = "createdDateTime", alternate = {"CreatedDateTime"}) @Expose @@ -60,7 +60,7 @@ public class Training extends Entity implements IJsonBackedObject { /** * The Description. - * + * The description for the training. */ @SerializedName(value = "description", alternate = {"Description"}) @Expose @@ -69,7 +69,7 @@ public class Training extends Entity implements IJsonBackedObject { /** * The Display Name. - * + * The display name for the training. */ @SerializedName(value = "displayName", alternate = {"DisplayName"}) @Expose @@ -78,7 +78,7 @@ public class Training extends Entity implements IJsonBackedObject { /** * The Duration In Minutes. - * + * Training duration. */ @SerializedName(value = "durationInMinutes", alternate = {"DurationInMinutes"}) @Expose @@ -87,7 +87,7 @@ public class Training extends Entity implements IJsonBackedObject { /** * The Has Evaluation. - * + * Indicates whether the training has any evaluation. */ @SerializedName(value = "hasEvaluation", alternate = {"HasEvaluation"}) @Expose @@ -96,7 +96,7 @@ public class Training extends Entity implements IJsonBackedObject { /** * The Last Modified By. - * + * Identity of the user who last modified the training. */ @SerializedName(value = "lastModifiedBy", alternate = {"LastModifiedBy"}) @Expose @@ -105,7 +105,7 @@ public class Training extends Entity implements IJsonBackedObject { /** * The Last Modified Date Time. - * + * Date and time when the training was last modified. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. */ @SerializedName(value = "lastModifiedDateTime", alternate = {"LastModifiedDateTime"}) @Expose @@ -114,7 +114,7 @@ public class Training extends Entity implements IJsonBackedObject { /** * The Source. - * + * Training content source. Possible values are: unknown, global, tenant, unknownFutureValue. */ @SerializedName(value = "source", alternate = {"Source"}) @Expose @@ -123,7 +123,7 @@ public class Training extends Entity implements IJsonBackedObject { /** * The Supported Locales. - * + * Supported locales for content for the associated training. */ @SerializedName(value = "supportedLocales", alternate = {"SupportedLocales"}) @Expose @@ -132,7 +132,7 @@ public class Training extends Entity implements IJsonBackedObject { /** * The Tags. - * + * Training tags. */ @SerializedName(value = "tags", alternate = {"Tags"}) @Expose @@ -141,7 +141,7 @@ public class Training extends Entity implements IJsonBackedObject { /** * The Type. - * + * The type of training. Possible values are: unknown, phishing, unknownFutureValue. */ @SerializedName(value = "type", alternate = {"Type"}) @Expose @@ -150,7 +150,7 @@ public class Training extends Entity implements IJsonBackedObject { /** * The Language Details. - * + * Language specific details on a training. */ @SerializedName(value = "languageDetails", alternate = {"LanguageDetails"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/TrainingLanguageDetail.java b/src/main/java/com/microsoft/graph/models/TrainingLanguageDetail.java index 84f1a34c6ae..c81544c9799 100644 --- a/src/main/java/com/microsoft/graph/models/TrainingLanguageDetail.java +++ b/src/main/java/com/microsoft/graph/models/TrainingLanguageDetail.java @@ -28,7 +28,7 @@ public class TrainingLanguageDetail extends Entity implements IJsonBackedObject /** * The Content. - * + * Language specific content for the training. */ @SerializedName(value = "content", alternate = {"Content"}) @Expose @@ -37,7 +37,7 @@ public class TrainingLanguageDetail extends Entity implements IJsonBackedObject /** * The Created By. - * + * Identity of the user who created the language details. */ @SerializedName(value = "createdBy", alternate = {"CreatedBy"}) @Expose @@ -46,7 +46,7 @@ public class TrainingLanguageDetail extends Entity implements IJsonBackedObject /** * The Created Date Time. - * + * Date and time when the language details were created. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. */ @SerializedName(value = "createdDateTime", alternate = {"CreatedDateTime"}) @Expose @@ -55,7 +55,7 @@ public class TrainingLanguageDetail extends Entity implements IJsonBackedObject /** * The Description. - * + * Description as defined by the user. */ @SerializedName(value = "description", alternate = {"Description"}) @Expose @@ -64,7 +64,7 @@ public class TrainingLanguageDetail extends Entity implements IJsonBackedObject /** * The Display Name. - * + * Display name as defined by the user. */ @SerializedName(value = "displayName", alternate = {"DisplayName"}) @Expose @@ -73,7 +73,7 @@ public class TrainingLanguageDetail extends Entity implements IJsonBackedObject /** * The Is Default Langauge. - * + * Indicates whether the training has a default language. */ @SerializedName(value = "isDefaultLangauge", alternate = {"IsDefaultLangauge"}) @Expose @@ -82,7 +82,7 @@ public class TrainingLanguageDetail extends Entity implements IJsonBackedObject /** * The Last Modified By. - * + * Identity of the user who last modified the details. */ @SerializedName(value = "lastModifiedBy", alternate = {"LastModifiedBy"}) @Expose @@ -91,7 +91,7 @@ public class TrainingLanguageDetail extends Entity implements IJsonBackedObject /** * The Last Modified Date Time. - * + * Date and time when the trainingLanguageDetail was last modified. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. */ @SerializedName(value = "lastModifiedDateTime", alternate = {"LastModifiedDateTime"}) @Expose @@ -100,7 +100,7 @@ public class TrainingLanguageDetail extends Entity implements IJsonBackedObject /** * The Locale. - * + * Content locale for the training detail. */ @SerializedName(value = "locale", alternate = {"Locale"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/TrainingNotificationSetting.java b/src/main/java/com/microsoft/graph/models/TrainingNotificationSetting.java index b2b9c4fb8ca..5eb7545e27e 100644 --- a/src/main/java/com/microsoft/graph/models/TrainingNotificationSetting.java +++ b/src/main/java/com/microsoft/graph/models/TrainingNotificationSetting.java @@ -29,7 +29,7 @@ public class TrainingNotificationSetting extends EndUserNotificationSetting impl /** * The Training Assignment. - * + * Training assignment details. */ @SerializedName(value = "trainingAssignment", alternate = {"TrainingAssignment"}) @Expose @@ -38,7 +38,7 @@ public class TrainingNotificationSetting extends EndUserNotificationSetting impl /** * The Training Reminder. - * + * Training reminder details. */ @SerializedName(value = "trainingReminder", alternate = {"TrainingReminder"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/TrainingReminderNotification.java b/src/main/java/com/microsoft/graph/models/TrainingReminderNotification.java index 224d7deedef..d0d5f4a83a3 100644 --- a/src/main/java/com/microsoft/graph/models/TrainingReminderNotification.java +++ b/src/main/java/com/microsoft/graph/models/TrainingReminderNotification.java @@ -28,7 +28,7 @@ public class TrainingReminderNotification extends BaseEndUserNotification implem /** * The Delivery Frequency. - * + * Configurable frequency for the reminder email introduced during simulation creation. Possible values are: unknown, weekly, biWeekly, unknownFutureValue. */ @SerializedName(value = "deliveryFrequency", alternate = {"DeliveryFrequency"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/TrainingSetting.java b/src/main/java/com/microsoft/graph/models/TrainingSetting.java index a7fe6596b8a..1d59abee08c 100644 --- a/src/main/java/com/microsoft/graph/models/TrainingSetting.java +++ b/src/main/java/com/microsoft/graph/models/TrainingSetting.java @@ -40,7 +40,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Setting Type. - * + * Type of setting. Possible values are: microsoftCustom, microsoftManaged, noTraining, custom, unknownFutureValue. */ @SerializedName(value = "settingType", alternate = {"SettingType"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/User.java b/src/main/java/com/microsoft/graph/models/User.java index c1581969290..0d20fcaa525 100644 --- a/src/main/java/com/microsoft/graph/models/User.java +++ b/src/main/java/com/microsoft/graph/models/User.java @@ -1080,7 +1080,7 @@ public class User extends DirectoryObject implements IJsonBackedObject { /** * The Photos. - * + * The collection of the user's profile photos in different sizes. Read-only. */ @SerializedName(value = "photos", alternate = {"Photos"}) @Expose diff --git a/src/main/java/com/microsoft/graph/requests/CallRecordingCollectionPage.java b/src/main/java/com/microsoft/graph/requests/CallRecordingCollectionPage.java new file mode 100644 index 00000000000..c12c3184860 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/CallRecordingCollectionPage.java @@ -0,0 +1,40 @@ +// Template Source: BaseEntityCollectionPage.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; +import com.microsoft.graph.models.CallRecording; +import com.microsoft.graph.requests.CallRecordingCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.requests.CallRecordingCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Call Recording Collection Page. + */ +public class CallRecordingCollectionPage extends BaseCollectionPage { + + /** + * A collection page for CallRecording + * + * @param response the serialized CallRecordingCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public CallRecordingCollectionPage(@Nonnull final CallRecordingCollectionResponse response, @Nonnull final CallRecordingCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for CallRecording + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public CallRecordingCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final CallRecordingCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/CallRecordingCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/CallRecordingCollectionRequest.java new file mode 100644 index 00000000000..eebb904e33f --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/CallRecordingCollectionRequest.java @@ -0,0 +1,173 @@ +// Template Source: BaseEntityCollectionRequest.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.OnlineMeeting; +import com.microsoft.graph.models.CallRecording; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.options.QueryOption; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseEntityCollectionRequest; +import com.microsoft.graph.requests.CallRecordingCollectionResponse; +import com.microsoft.graph.requests.CallRecordingCollectionRequestBuilder; +import com.microsoft.graph.requests.CallRecordingCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Call Recording Collection Request. + */ +public class CallRecordingCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of CallRecording + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public CallRecordingCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, CallRecordingCollectionResponse.class, CallRecordingCollectionPage.class, CallRecordingCollectionRequestBuilder.class); + } + + /** + * Creates a new CallRecording + * @param newCallRecording the CallRecording to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final CallRecording newCallRecording) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new CallRecordingRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newCallRecording); + } + + /** + * Creates a new CallRecording + * @param newCallRecording the CallRecording to create + * @return the newly created object + */ + @Nonnull + public CallRecording post(@Nonnull final CallRecording newCallRecording) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new CallRecordingRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newCallRecording); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public CallRecordingCollectionRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + @Nonnull + public CallRecordingCollectionRequest filter(@Nonnull final String value) { + addFilterOption(value); + return this; + } + + /** + * Sets the order by clause for the request + * + * @param value the order by clause + * @return the updated request + */ + @Nonnull + public CallRecordingCollectionRequest orderBy(@Nonnull final String value) { + addOrderByOption(value); + return this; + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public CallRecordingCollectionRequest select(@Nonnull final String value) { + addSelectOption(value); + return this; + } + + /** + * Sets the top value for the request + * + * @param value the max number of items to return + * @return the updated request + */ + @Nonnull + public CallRecordingCollectionRequest top(final int value) { + addTopOption(value); + return this; + } + + /** + * Sets the count value for the request + * + * @param value whether or not to return the count of objects with the request + * @return the updated request + */ + @Nonnull + public CallRecordingCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public CallRecordingCollectionRequest count() { + addCountOption(true); + return this; + } + /** + * Sets the skip value for the request + * + * @param value of the number of items to skip + * @return the updated request + */ + @Nonnull + public CallRecordingCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public CallRecordingCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/requests/CallRecordingCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/CallRecordingCollectionRequestBuilder.java new file mode 100644 index 00000000000..2116c940c72 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/CallRecordingCollectionRequestBuilder.java @@ -0,0 +1,51 @@ +// Template Source: BaseEntityCollectionRequestBuilder.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.OnlineMeeting; +import com.microsoft.graph.models.CallRecording; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.CallRecordingCollectionRequestBuilder; +import com.microsoft.graph.requests.CallRecordingRequestBuilder; +import com.microsoft.graph.requests.CallRecordingCollectionRequest; +import com.microsoft.graph.http.BaseCollectionRequestBuilder; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.PrimitiveRequestBuilder; +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Call Recording Collection Request Builder. + */ +public class CallRecordingCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of OnlineMeeting + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public CallRecordingCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, CallRecordingRequestBuilder.class, CallRecordingCollectionRequest.class); + } + + + + /** + * Gets the raw count request for the collection + * @return The raw count request for the collection + */ + @Nonnull + public PrimitiveRequestBuilder count() { + return new PrimitiveRequestBuilder(getRequestUrlWithAdditionalSegment("$count"), getClient(), null, Long.class); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/CallRecordingCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/CallRecordingCollectionResponse.java new file mode 100644 index 00000000000..0f43bab5990 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/CallRecordingCollectionResponse.java @@ -0,0 +1,18 @@ +// Template Source: BaseEntityCollectionResponse.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; +import com.microsoft.graph.models.CallRecording; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Call Recording Collection Response. + */ +public class CallRecordingCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/requests/CallRecordingContentStreamRequest.java b/src/main/java/com/microsoft/graph/requests/CallRecordingContentStreamRequest.java new file mode 100644 index 00000000000..0177aaf84e2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/CallRecordingContentStreamRequest.java @@ -0,0 +1,81 @@ +// Template Source: BaseStreamRequest.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.CallRecording; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseStreamRequest; + +import java.io.InputStream; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Call Recording Content Stream Request. + */ +public class CallRecordingContentStreamRequest extends BaseStreamRequest { + + /** + * The request for the CallRecordingContentStream + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public CallRecordingContentStreamRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, CallRecording.class); + } + + /** + * Gets the contents of this stream + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(); + } + + /** + * Gets the contents of this stream + * + * @return the stream that the caller needs to close + * @throws ClientException an exception occurs if there was an error while the request was sent + */ + @Nullable + public InputStream get() throws ClientException { + return send(); + } + + /** + * Uploads to the stream + * + * @param fileContents the contents of the stream to upload + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final byte[] fileContents) { + return sendAsync(fileContents); + } + + /** + * Uploads to the stream + * + * @param fileContents the contents of the stream to upload + * @return the result of the upload + * @throws ClientException an exception occurs if there was an error while the request was sent + */ + @Nullable + public CallRecording put(@Nonnull final byte[] fileContents) throws ClientException { + return send(fileContents); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/CallRecordingContentStreamRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/CallRecordingContentStreamRequestBuilder.java new file mode 100644 index 00000000000..95a704a2a6f --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/CallRecordingContentStreamRequestBuilder.java @@ -0,0 +1,58 @@ +// Template Source: BaseEntityStreamRequestBuilder.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.CallRecording; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseRequestBuilder; +import java.io.InputStream; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Call Recording Content Stream Request Builder. + */ +public class CallRecordingContentStreamRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the CallRecordingContentStream + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public CallRecordingContentStreamRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + /** + * Creates the request + * + * @param requestOptions the options for this request + * @return the CallRecordingContentStreamRequest instance + */ + @Nonnull + public CallRecordingContentStreamRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the request with specific options instead of the existing options + * + * @param requestOptions the options for this request + * @return the CallRecordingContentStreamRequest instance + */ + @Nonnull + public CallRecordingContentStreamRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new CallRecordingContentStreamRequest(getRequestUrl(), getClient(), requestOptions); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/CallRecordingRequest.java b/src/main/java/com/microsoft/graph/requests/CallRecordingRequest.java new file mode 100644 index 00000000000..613fe2e1cb3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/CallRecordingRequest.java @@ -0,0 +1,173 @@ +// Template Source: BaseEntityRequest.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.CallRecording; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseRequest; +import com.microsoft.graph.http.HttpMethod; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Call Recording Request. + */ +public class CallRecordingRequest extends BaseRequest { + + /** + * The request for the CallRecording + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public CallRecordingRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, CallRecording.class); + } + + /** + * Gets the CallRecording from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the CallRecording from the service + * + * @return the CallRecording from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public CallRecording get() throws ClientException { + return send(HttpMethod.GET, null); + } + + /** + * Delete this item from the service + * + * @return a future with the deletion result + */ + @Nonnull + public java.util.concurrent.CompletableFuture deleteAsync() { + return sendAsync(HttpMethod.DELETE, null); + } + + /** + * Delete this item from the service + * @return the resulting response if the service returns anything on deletion + * + * @throws ClientException if there was an exception during the delete operation + */ + @Nullable + public CallRecording delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this CallRecording with a source + * + * @param sourceCallRecording the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final CallRecording sourceCallRecording) { + return sendAsync(HttpMethod.PATCH, sourceCallRecording); + } + + /** + * Patches this CallRecording with a source + * + * @param sourceCallRecording the source object with updates + * @return the updated CallRecording + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public CallRecording patch(@Nonnull final CallRecording sourceCallRecording) throws ClientException { + return send(HttpMethod.PATCH, sourceCallRecording); + } + + /** + * Creates a CallRecording with a new object + * + * @param newCallRecording the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final CallRecording newCallRecording) { + return sendAsync(HttpMethod.POST, newCallRecording); + } + + /** + * Creates a CallRecording with a new object + * + * @param newCallRecording the new object to create + * @return the created CallRecording + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public CallRecording post(@Nonnull final CallRecording newCallRecording) throws ClientException { + return send(HttpMethod.POST, newCallRecording); + } + + /** + * Creates a CallRecording with a new object + * + * @param newCallRecording the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final CallRecording newCallRecording) { + return sendAsync(HttpMethod.PUT, newCallRecording); + } + + /** + * Creates a CallRecording with a new object + * + * @param newCallRecording the object to create/update + * @return the created CallRecording + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public CallRecording put(@Nonnull final CallRecording newCallRecording) throws ClientException { + return send(HttpMethod.PUT, newCallRecording); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public CallRecordingRequest select(@Nonnull final String value) { + addSelectOption(value); + return this; + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public CallRecordingRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/CallRecordingRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/CallRecordingRequestBuilder.java new file mode 100644 index 00000000000..6ad9141a717 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/CallRecordingRequestBuilder.java @@ -0,0 +1,69 @@ +// Template Source: BaseEntityRequestBuilder.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.CallRecording; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseRequestBuilder; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Call Recording Request Builder. + */ +public class CallRecordingRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the CallRecording + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public CallRecordingRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + /** + * Creates the request + * + * @param requestOptions the options for this request + * @return the CallRecordingRequest instance + */ + @Nonnull + public CallRecordingRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the request with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for this request + * @return the CallRecordingRequest instance + */ + @Nonnull + public CallRecordingRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.CallRecordingRequest(getRequestUrl(), getClient(), requestOptions); + } + + + + /** + * Gets the request builder for content + * + * @return the CallRecordingContentStreamRequestBuilder instance + */ + @Nonnull + public CallRecordingContentStreamRequestBuilder content() { + return new CallRecordingContentStreamRequestBuilder(getRequestUrlWithAdditionalSegment("content"), getClient(), null); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/DeviceLocalCredentialInfoCollectionPage.java b/src/main/java/com/microsoft/graph/requests/DeviceLocalCredentialInfoCollectionPage.java new file mode 100644 index 00000000000..833f48f96c9 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/DeviceLocalCredentialInfoCollectionPage.java @@ -0,0 +1,40 @@ +// Template Source: BaseEntityCollectionPage.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; +import com.microsoft.graph.models.DeviceLocalCredentialInfo; +import com.microsoft.graph.requests.DeviceLocalCredentialInfoCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.requests.DeviceLocalCredentialInfoCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Device Local Credential Info Collection Page. + */ +public class DeviceLocalCredentialInfoCollectionPage extends BaseCollectionPage { + + /** + * A collection page for DeviceLocalCredentialInfo + * + * @param response the serialized DeviceLocalCredentialInfoCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public DeviceLocalCredentialInfoCollectionPage(@Nonnull final DeviceLocalCredentialInfoCollectionResponse response, @Nonnull final DeviceLocalCredentialInfoCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for DeviceLocalCredentialInfo + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public DeviceLocalCredentialInfoCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final DeviceLocalCredentialInfoCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/DeviceLocalCredentialInfoCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/DeviceLocalCredentialInfoCollectionRequest.java new file mode 100644 index 00000000000..49574806b9a --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/DeviceLocalCredentialInfoCollectionRequest.java @@ -0,0 +1,173 @@ +// Template Source: BaseEntityCollectionRequest.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.Directory; +import com.microsoft.graph.models.DeviceLocalCredentialInfo; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.options.QueryOption; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseEntityCollectionRequest; +import com.microsoft.graph.requests.DeviceLocalCredentialInfoCollectionResponse; +import com.microsoft.graph.requests.DeviceLocalCredentialInfoCollectionRequestBuilder; +import com.microsoft.graph.requests.DeviceLocalCredentialInfoCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Device Local Credential Info Collection Request. + */ +public class DeviceLocalCredentialInfoCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of DeviceLocalCredentialInfo + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public DeviceLocalCredentialInfoCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, DeviceLocalCredentialInfoCollectionResponse.class, DeviceLocalCredentialInfoCollectionPage.class, DeviceLocalCredentialInfoCollectionRequestBuilder.class); + } + + /** + * Creates a new DeviceLocalCredentialInfo + * @param newDeviceLocalCredentialInfo the DeviceLocalCredentialInfo to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final DeviceLocalCredentialInfo newDeviceLocalCredentialInfo) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new DeviceLocalCredentialInfoRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newDeviceLocalCredentialInfo); + } + + /** + * Creates a new DeviceLocalCredentialInfo + * @param newDeviceLocalCredentialInfo the DeviceLocalCredentialInfo to create + * @return the newly created object + */ + @Nonnull + public DeviceLocalCredentialInfo post(@Nonnull final DeviceLocalCredentialInfo newDeviceLocalCredentialInfo) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new DeviceLocalCredentialInfoRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newDeviceLocalCredentialInfo); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public DeviceLocalCredentialInfoCollectionRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + @Nonnull + public DeviceLocalCredentialInfoCollectionRequest filter(@Nonnull final String value) { + addFilterOption(value); + return this; + } + + /** + * Sets the order by clause for the request + * + * @param value the order by clause + * @return the updated request + */ + @Nonnull + public DeviceLocalCredentialInfoCollectionRequest orderBy(@Nonnull final String value) { + addOrderByOption(value); + return this; + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public DeviceLocalCredentialInfoCollectionRequest select(@Nonnull final String value) { + addSelectOption(value); + return this; + } + + /** + * Sets the top value for the request + * + * @param value the max number of items to return + * @return the updated request + */ + @Nonnull + public DeviceLocalCredentialInfoCollectionRequest top(final int value) { + addTopOption(value); + return this; + } + + /** + * Sets the count value for the request + * + * @param value whether or not to return the count of objects with the request + * @return the updated request + */ + @Nonnull + public DeviceLocalCredentialInfoCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public DeviceLocalCredentialInfoCollectionRequest count() { + addCountOption(true); + return this; + } + /** + * Sets the skip value for the request + * + * @param value of the number of items to skip + * @return the updated request + */ + @Nonnull + public DeviceLocalCredentialInfoCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public DeviceLocalCredentialInfoCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/requests/DeviceLocalCredentialInfoCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/DeviceLocalCredentialInfoCollectionRequestBuilder.java new file mode 100644 index 00000000000..97081717252 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/DeviceLocalCredentialInfoCollectionRequestBuilder.java @@ -0,0 +1,51 @@ +// Template Source: BaseEntityCollectionRequestBuilder.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.Directory; +import com.microsoft.graph.models.DeviceLocalCredentialInfo; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.DeviceLocalCredentialInfoCollectionRequestBuilder; +import com.microsoft.graph.requests.DeviceLocalCredentialInfoRequestBuilder; +import com.microsoft.graph.requests.DeviceLocalCredentialInfoCollectionRequest; +import com.microsoft.graph.http.BaseCollectionRequestBuilder; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.PrimitiveRequestBuilder; +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Device Local Credential Info Collection Request Builder. + */ +public class DeviceLocalCredentialInfoCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of Directory + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public DeviceLocalCredentialInfoCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, DeviceLocalCredentialInfoRequestBuilder.class, DeviceLocalCredentialInfoCollectionRequest.class); + } + + + + /** + * Gets the raw count request for the collection + * @return The raw count request for the collection + */ + @Nonnull + public PrimitiveRequestBuilder count() { + return new PrimitiveRequestBuilder(getRequestUrlWithAdditionalSegment("$count"), getClient(), null, Long.class); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/DeviceLocalCredentialInfoCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/DeviceLocalCredentialInfoCollectionResponse.java new file mode 100644 index 00000000000..8f0b13a4bcb --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/DeviceLocalCredentialInfoCollectionResponse.java @@ -0,0 +1,18 @@ +// Template Source: BaseEntityCollectionResponse.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; +import com.microsoft.graph.models.DeviceLocalCredentialInfo; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Device Local Credential Info Collection Response. + */ +public class DeviceLocalCredentialInfoCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/requests/DeviceLocalCredentialInfoRequest.java b/src/main/java/com/microsoft/graph/requests/DeviceLocalCredentialInfoRequest.java new file mode 100644 index 00000000000..25ebdf4f6d3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/DeviceLocalCredentialInfoRequest.java @@ -0,0 +1,173 @@ +// Template Source: BaseEntityRequest.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.DeviceLocalCredentialInfo; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseRequest; +import com.microsoft.graph.http.HttpMethod; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Device Local Credential Info Request. + */ +public class DeviceLocalCredentialInfoRequest extends BaseRequest { + + /** + * The request for the DeviceLocalCredentialInfo + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public DeviceLocalCredentialInfoRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, DeviceLocalCredentialInfo.class); + } + + /** + * Gets the DeviceLocalCredentialInfo from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the DeviceLocalCredentialInfo from the service + * + * @return the DeviceLocalCredentialInfo from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public DeviceLocalCredentialInfo get() throws ClientException { + return send(HttpMethod.GET, null); + } + + /** + * Delete this item from the service + * + * @return a future with the deletion result + */ + @Nonnull + public java.util.concurrent.CompletableFuture deleteAsync() { + return sendAsync(HttpMethod.DELETE, null); + } + + /** + * Delete this item from the service + * @return the resulting response if the service returns anything on deletion + * + * @throws ClientException if there was an exception during the delete operation + */ + @Nullable + public DeviceLocalCredentialInfo delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this DeviceLocalCredentialInfo with a source + * + * @param sourceDeviceLocalCredentialInfo the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final DeviceLocalCredentialInfo sourceDeviceLocalCredentialInfo) { + return sendAsync(HttpMethod.PATCH, sourceDeviceLocalCredentialInfo); + } + + /** + * Patches this DeviceLocalCredentialInfo with a source + * + * @param sourceDeviceLocalCredentialInfo the source object with updates + * @return the updated DeviceLocalCredentialInfo + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public DeviceLocalCredentialInfo patch(@Nonnull final DeviceLocalCredentialInfo sourceDeviceLocalCredentialInfo) throws ClientException { + return send(HttpMethod.PATCH, sourceDeviceLocalCredentialInfo); + } + + /** + * Creates a DeviceLocalCredentialInfo with a new object + * + * @param newDeviceLocalCredentialInfo the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final DeviceLocalCredentialInfo newDeviceLocalCredentialInfo) { + return sendAsync(HttpMethod.POST, newDeviceLocalCredentialInfo); + } + + /** + * Creates a DeviceLocalCredentialInfo with a new object + * + * @param newDeviceLocalCredentialInfo the new object to create + * @return the created DeviceLocalCredentialInfo + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public DeviceLocalCredentialInfo post(@Nonnull final DeviceLocalCredentialInfo newDeviceLocalCredentialInfo) throws ClientException { + return send(HttpMethod.POST, newDeviceLocalCredentialInfo); + } + + /** + * Creates a DeviceLocalCredentialInfo with a new object + * + * @param newDeviceLocalCredentialInfo the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final DeviceLocalCredentialInfo newDeviceLocalCredentialInfo) { + return sendAsync(HttpMethod.PUT, newDeviceLocalCredentialInfo); + } + + /** + * Creates a DeviceLocalCredentialInfo with a new object + * + * @param newDeviceLocalCredentialInfo the object to create/update + * @return the created DeviceLocalCredentialInfo + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public DeviceLocalCredentialInfo put(@Nonnull final DeviceLocalCredentialInfo newDeviceLocalCredentialInfo) throws ClientException { + return send(HttpMethod.PUT, newDeviceLocalCredentialInfo); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public DeviceLocalCredentialInfoRequest select(@Nonnull final String value) { + addSelectOption(value); + return this; + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public DeviceLocalCredentialInfoRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/DeviceLocalCredentialInfoRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/DeviceLocalCredentialInfoRequestBuilder.java new file mode 100644 index 00000000000..96a3f2aa841 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/DeviceLocalCredentialInfoRequestBuilder.java @@ -0,0 +1,59 @@ +// Template Source: BaseEntityRequestBuilder.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.DeviceLocalCredentialInfo; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseRequestBuilder; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Device Local Credential Info Request Builder. + */ +public class DeviceLocalCredentialInfoRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the DeviceLocalCredentialInfo + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public DeviceLocalCredentialInfoRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + /** + * Creates the request + * + * @param requestOptions the options for this request + * @return the DeviceLocalCredentialInfoRequest instance + */ + @Nonnull + public DeviceLocalCredentialInfoRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the request with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for this request + * @return the DeviceLocalCredentialInfoRequest instance + */ + @Nonnull + public DeviceLocalCredentialInfoRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.DeviceLocalCredentialInfoRequest(getRequestUrl(), getClient(), requestOptions); + } + + +} diff --git a/src/main/java/com/microsoft/graph/requests/DirectoryRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/DirectoryRequestBuilder.java index a809e9fdc41..bd9dc7b9cb2 100644 --- a/src/main/java/com/microsoft/graph/requests/DirectoryRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/DirectoryRequestBuilder.java @@ -56,6 +56,26 @@ public DirectoryRequest buildRequest(@Nonnull final java.util.List { + + /** + * The request for the RemoteDesktopSecurityConfiguration + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public RemoteDesktopSecurityConfigurationRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, RemoteDesktopSecurityConfiguration.class); + } + + /** + * Gets the RemoteDesktopSecurityConfiguration from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the RemoteDesktopSecurityConfiguration from the service + * + * @return the RemoteDesktopSecurityConfiguration from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public RemoteDesktopSecurityConfiguration get() throws ClientException { + return send(HttpMethod.GET, null); + } + + /** + * Delete this item from the service + * + * @return a future with the deletion result + */ + @Nonnull + public java.util.concurrent.CompletableFuture deleteAsync() { + return sendAsync(HttpMethod.DELETE, null); + } + + /** + * Delete this item from the service + * @return the resulting response if the service returns anything on deletion + * + * @throws ClientException if there was an exception during the delete operation + */ + @Nullable + public RemoteDesktopSecurityConfiguration delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this RemoteDesktopSecurityConfiguration with a source + * + * @param sourceRemoteDesktopSecurityConfiguration the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final RemoteDesktopSecurityConfiguration sourceRemoteDesktopSecurityConfiguration) { + return sendAsync(HttpMethod.PATCH, sourceRemoteDesktopSecurityConfiguration); + } + + /** + * Patches this RemoteDesktopSecurityConfiguration with a source + * + * @param sourceRemoteDesktopSecurityConfiguration the source object with updates + * @return the updated RemoteDesktopSecurityConfiguration + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public RemoteDesktopSecurityConfiguration patch(@Nonnull final RemoteDesktopSecurityConfiguration sourceRemoteDesktopSecurityConfiguration) throws ClientException { + return send(HttpMethod.PATCH, sourceRemoteDesktopSecurityConfiguration); + } + + /** + * Creates a RemoteDesktopSecurityConfiguration with a new object + * + * @param newRemoteDesktopSecurityConfiguration the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final RemoteDesktopSecurityConfiguration newRemoteDesktopSecurityConfiguration) { + return sendAsync(HttpMethod.POST, newRemoteDesktopSecurityConfiguration); + } + + /** + * Creates a RemoteDesktopSecurityConfiguration with a new object + * + * @param newRemoteDesktopSecurityConfiguration the new object to create + * @return the created RemoteDesktopSecurityConfiguration + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public RemoteDesktopSecurityConfiguration post(@Nonnull final RemoteDesktopSecurityConfiguration newRemoteDesktopSecurityConfiguration) throws ClientException { + return send(HttpMethod.POST, newRemoteDesktopSecurityConfiguration); + } + + /** + * Creates a RemoteDesktopSecurityConfiguration with a new object + * + * @param newRemoteDesktopSecurityConfiguration the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final RemoteDesktopSecurityConfiguration newRemoteDesktopSecurityConfiguration) { + return sendAsync(HttpMethod.PUT, newRemoteDesktopSecurityConfiguration); + } + + /** + * Creates a RemoteDesktopSecurityConfiguration with a new object + * + * @param newRemoteDesktopSecurityConfiguration the object to create/update + * @return the created RemoteDesktopSecurityConfiguration + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public RemoteDesktopSecurityConfiguration put(@Nonnull final RemoteDesktopSecurityConfiguration newRemoteDesktopSecurityConfiguration) throws ClientException { + return send(HttpMethod.PUT, newRemoteDesktopSecurityConfiguration); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public RemoteDesktopSecurityConfigurationRequest select(@Nonnull final String value) { + addSelectOption(value); + return this; + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public RemoteDesktopSecurityConfigurationRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/RemoteDesktopSecurityConfigurationRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/RemoteDesktopSecurityConfigurationRequestBuilder.java new file mode 100644 index 00000000000..5464c83fe12 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/RemoteDesktopSecurityConfigurationRequestBuilder.java @@ -0,0 +1,79 @@ +// Template Source: BaseEntityRequestBuilder.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.RemoteDesktopSecurityConfiguration; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseRequestBuilder; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Remote Desktop Security Configuration Request Builder. + */ +public class RemoteDesktopSecurityConfigurationRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the RemoteDesktopSecurityConfiguration + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public RemoteDesktopSecurityConfigurationRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + /** + * Creates the request + * + * @param requestOptions the options for this request + * @return the RemoteDesktopSecurityConfigurationRequest instance + */ + @Nonnull + public RemoteDesktopSecurityConfigurationRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the request with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for this request + * @return the RemoteDesktopSecurityConfigurationRequest instance + */ + @Nonnull + public RemoteDesktopSecurityConfigurationRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.RemoteDesktopSecurityConfigurationRequest(getRequestUrl(), getClient(), requestOptions); + } + + + /** + * Gets a request builder for the TargetDeviceGroup collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.requests.TargetDeviceGroupCollectionRequestBuilder targetDeviceGroups() { + return new com.microsoft.graph.requests.TargetDeviceGroupCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("targetDeviceGroups"), getClient(), null); + } + + /** + * Gets a request builder for the TargetDeviceGroup item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.requests.TargetDeviceGroupRequestBuilder targetDeviceGroups(@Nonnull final String id) { + return new com.microsoft.graph.requests.TargetDeviceGroupRequestBuilder(getRequestUrlWithAdditionalSegment("targetDeviceGroups") + "/" + id, getClient(), null); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/ServicePrincipalRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/ServicePrincipalRequestBuilder.java index 9f55d49571f..fd4d8cfeed8 100644 --- a/src/main/java/com/microsoft/graph/requests/ServicePrincipalRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/ServicePrincipalRequestBuilder.java @@ -590,6 +590,16 @@ public com.microsoft.graph.requests.UserCollectionRequestBuilder ownersAsUser() public com.microsoft.graph.requests.UserRequestBuilder ownersAsUser(@Nonnull final String id) { return new com.microsoft.graph.requests.UserRequestBuilder(getRequestUrlWithAdditionalSegment("owners") + "/" + id + "/microsoft.graph.user", getClient(), null); } + + /** + * Gets the request builder for RemoteDesktopSecurityConfiguration + * + * @return the RemoteDesktopSecurityConfigurationRequestBuilder instance + */ + @Nonnull + public com.microsoft.graph.requests.RemoteDesktopSecurityConfigurationRequestBuilder remoteDesktopSecurityConfiguration() { + return new com.microsoft.graph.requests.RemoteDesktopSecurityConfigurationRequestBuilder(getRequestUrlWithAdditionalSegment("remoteDesktopSecurityConfiguration"), getClient(), null); + } /** * Gets a request builder for the TokenIssuancePolicy collection * diff --git a/src/main/java/com/microsoft/graph/requests/SiteCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/SiteCollectionRequestBuilder.java index 1e280b6e5b8..164eabb4ebc 100644 --- a/src/main/java/com/microsoft/graph/requests/SiteCollectionRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/SiteCollectionRequestBuilder.java @@ -20,6 +20,7 @@ import com.microsoft.graph.requests.SiteCollectionRequest; import com.microsoft.graph.requests.SiteAddCollectionRequestBuilder; import com.microsoft.graph.requests.SiteRemoveCollectionRequestBuilder; +import com.microsoft.graph.requests.SiteDeltaCollectionRequestBuilder; import com.microsoft.graph.requests.SiteGetAllSitesCollectionRequestBuilder; import com.microsoft.graph.http.BaseCollectionRequestBuilder; import com.microsoft.graph.core.IBaseClient; @@ -69,6 +70,15 @@ public SiteRemoveCollectionRequestBuilder remove(@Nonnull final SiteRemoveParame return new SiteRemoveCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.remove"), getClient(), null, parameters); } + /** + * Gets a builder to execute the method + * @return the request builder collection + */ + @Nonnull + public SiteDeltaCollectionRequestBuilder delta() { + return new SiteDeltaCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.delta"), getClient(), null); + } + /** * Gets a builder to execute the method * @return the request builder collection diff --git a/src/main/java/com/microsoft/graph/requests/SiteDeltaCollectionPage.java b/src/main/java/com/microsoft/graph/requests/SiteDeltaCollectionPage.java new file mode 100644 index 00000000000..68553c4ddf6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/SiteDeltaCollectionPage.java @@ -0,0 +1,47 @@ +// Template Source: BaseMethodCollectionPage.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.Site; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.http.DeltaCollectionPage; +import com.microsoft.graph.requests.SiteDeltaCollectionRequestBuilder; +import com.microsoft.graph.requests.SiteDeltaCollectionPage; +import com.microsoft.graph.requests.SiteDeltaCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Site Delta Collection Page. + */ +public class SiteDeltaCollectionPage extends DeltaCollectionPage { + + /** + * A collection page for Site. + * + * @param response The serialized SiteDeltaCollectionResponse from the service + * @param builder The request builder for the next collection page + */ + public SiteDeltaCollectionPage(@Nonnull final SiteDeltaCollectionResponse response, @Nonnull final SiteDeltaCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for SiteDelta + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public SiteDeltaCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final SiteDeltaCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/SiteDeltaCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/SiteDeltaCollectionRequest.java new file mode 100644 index 00000000000..f86633fc4f0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/SiteDeltaCollectionRequest.java @@ -0,0 +1,165 @@ +// Template Source: BaseMethodCollectionRequest.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.Site; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.SiteDeltaCollectionRequestBuilder; +import com.microsoft.graph.requests.SiteDeltaCollectionResponse; +import com.microsoft.graph.models.Site; +import com.microsoft.graph.options.QueryOption; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseDeltaCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Site Delta Collection Request. + */ +public class SiteDeltaCollectionRequest extends BaseDeltaCollectionRequest { + + + /** + * The request for this SiteDelta + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public SiteDeltaCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, SiteDeltaCollectionResponse.class, SiteDeltaCollectionPage.class, SiteDeltaCollectionRequestBuilder.class); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public SiteDeltaCollectionRequest select(@Nonnull final String value) { + addSelectOption(value); + return this; + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public SiteDeltaCollectionRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + @Nonnull + public SiteDeltaCollectionRequest filter(@Nonnull final String value) { + addFilterOption(value); + return this; + } + + /** + * Sets the order by clause for the request + * + * @param value the order by clause + * @return the updated request + */ + @Nonnull + public SiteDeltaCollectionRequest orderBy(@Nonnull final String value) { + addOrderByOption(value); + return this; + } + + /** + * Sets the count value for the request + * + * @param value whether or not to return the count of objects with the request + * @return the updated request + */ + @Nonnull + public SiteDeltaCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public SiteDeltaCollectionRequest count() { + addCountOption(true); + return this; + } + + /** + * Sets the top value for the request + * + * @param value the max number of items to return + * @return the updated request + */ + @Nonnull + public SiteDeltaCollectionRequest top(final int value) { + addTopOption(value); + return this; + } + /** + * Sets the skip value for the request + * + * @param value of the number of items to skip + * @return the updated request + */ + @Nonnull + public SiteDeltaCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public SiteDeltaCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } + + /** + * Add Delta token for request + * @param deltaToken - Token to resume sync + * @return the updated request + */ + @Nonnull + public SiteDeltaCollectionRequest deltaToken(@Nonnull final String deltaToken) { + addDeltaTokenOption(deltaToken, "token"); + return this; + } + /** + * Parses the Delta token from the Delta Link and adds it for request + * @param deltaLink - Delta Link provided by previous response to resume sync + * @return the updated request + */ + @Nonnull + public SiteDeltaCollectionRequest deltaLink(@Nonnull final String deltaLink) { + addDeltaTokenOption(getDeltaTokenFromLink(deltaLink), "token"); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/SiteDeltaCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/SiteDeltaCollectionRequestBuilder.java new file mode 100644 index 00000000000..8369f6bd50c --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/SiteDeltaCollectionRequestBuilder.java @@ -0,0 +1,52 @@ +// Template Source: BaseMethodCollectionRequestBuilder.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.Site; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.SiteDeltaCollectionRequestBuilder; +import com.microsoft.graph.requests.SiteDeltaCollectionRequest; +import com.microsoft.graph.requests.SiteDeltaCollectionResponse; +import com.microsoft.graph.options.FunctionOption; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseFunctionCollectionRequestBuilder; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Site Delta Collection Request Builder. + */ +public class SiteDeltaCollectionRequestBuilder extends BaseFunctionCollectionRequestBuilder { + + /** + * The request builder for this collection of Site + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public SiteDeltaCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, SiteDeltaCollectionRequestBuilder.class, SiteDeltaCollectionRequest.class); + } + /** + * Creates the request + * + * @param requestOptions the options for this request + * @return the SiteDeltaCollectionRequest instance + */ + @Override + @Nonnull + public SiteDeltaCollectionRequest buildRequest(@Nullable final java.util.List requestOptions) { + final SiteDeltaCollectionRequest request = super.buildRequest(requestOptions); + return request; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/SiteDeltaCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/SiteDeltaCollectionResponse.java new file mode 100644 index 00000000000..b0b0e837302 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/SiteDeltaCollectionResponse.java @@ -0,0 +1,20 @@ +// Template Source: BaseMethodCollectionResponse.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; +import com.microsoft.graph.models.Site; + + +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Site Delta Collection Response. + */ +public class SiteDeltaCollectionResponse extends BaseCollectionResponse { +} diff --git a/src/main/java/com/microsoft/graph/requests/TargetDeviceGroupCollectionPage.java b/src/main/java/com/microsoft/graph/requests/TargetDeviceGroupCollectionPage.java new file mode 100644 index 00000000000..8f4a20d5fb7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/TargetDeviceGroupCollectionPage.java @@ -0,0 +1,40 @@ +// Template Source: BaseEntityCollectionPage.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; +import com.microsoft.graph.models.TargetDeviceGroup; +import com.microsoft.graph.requests.TargetDeviceGroupCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.requests.TargetDeviceGroupCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Target Device Group Collection Page. + */ +public class TargetDeviceGroupCollectionPage extends BaseCollectionPage { + + /** + * A collection page for TargetDeviceGroup + * + * @param response the serialized TargetDeviceGroupCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public TargetDeviceGroupCollectionPage(@Nonnull final TargetDeviceGroupCollectionResponse response, @Nonnull final TargetDeviceGroupCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for TargetDeviceGroup + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public TargetDeviceGroupCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final TargetDeviceGroupCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/TargetDeviceGroupCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/TargetDeviceGroupCollectionRequest.java new file mode 100644 index 00000000000..c712f1e625b --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/TargetDeviceGroupCollectionRequest.java @@ -0,0 +1,173 @@ +// Template Source: BaseEntityCollectionRequest.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.RemoteDesktopSecurityConfiguration; +import com.microsoft.graph.models.TargetDeviceGroup; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.options.QueryOption; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseEntityCollectionRequest; +import com.microsoft.graph.requests.TargetDeviceGroupCollectionResponse; +import com.microsoft.graph.requests.TargetDeviceGroupCollectionRequestBuilder; +import com.microsoft.graph.requests.TargetDeviceGroupCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Target Device Group Collection Request. + */ +public class TargetDeviceGroupCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of TargetDeviceGroup + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public TargetDeviceGroupCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, TargetDeviceGroupCollectionResponse.class, TargetDeviceGroupCollectionPage.class, TargetDeviceGroupCollectionRequestBuilder.class); + } + + /** + * Creates a new TargetDeviceGroup + * @param newTargetDeviceGroup the TargetDeviceGroup to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final TargetDeviceGroup newTargetDeviceGroup) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new TargetDeviceGroupRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newTargetDeviceGroup); + } + + /** + * Creates a new TargetDeviceGroup + * @param newTargetDeviceGroup the TargetDeviceGroup to create + * @return the newly created object + */ + @Nonnull + public TargetDeviceGroup post(@Nonnull final TargetDeviceGroup newTargetDeviceGroup) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new TargetDeviceGroupRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newTargetDeviceGroup); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public TargetDeviceGroupCollectionRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + @Nonnull + public TargetDeviceGroupCollectionRequest filter(@Nonnull final String value) { + addFilterOption(value); + return this; + } + + /** + * Sets the order by clause for the request + * + * @param value the order by clause + * @return the updated request + */ + @Nonnull + public TargetDeviceGroupCollectionRequest orderBy(@Nonnull final String value) { + addOrderByOption(value); + return this; + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public TargetDeviceGroupCollectionRequest select(@Nonnull final String value) { + addSelectOption(value); + return this; + } + + /** + * Sets the top value for the request + * + * @param value the max number of items to return + * @return the updated request + */ + @Nonnull + public TargetDeviceGroupCollectionRequest top(final int value) { + addTopOption(value); + return this; + } + + /** + * Sets the count value for the request + * + * @param value whether or not to return the count of objects with the request + * @return the updated request + */ + @Nonnull + public TargetDeviceGroupCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public TargetDeviceGroupCollectionRequest count() { + addCountOption(true); + return this; + } + /** + * Sets the skip value for the request + * + * @param value of the number of items to skip + * @return the updated request + */ + @Nonnull + public TargetDeviceGroupCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public TargetDeviceGroupCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/requests/TargetDeviceGroupCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/TargetDeviceGroupCollectionRequestBuilder.java new file mode 100644 index 00000000000..f8701e48bcc --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/TargetDeviceGroupCollectionRequestBuilder.java @@ -0,0 +1,51 @@ +// Template Source: BaseEntityCollectionRequestBuilder.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.RemoteDesktopSecurityConfiguration; +import com.microsoft.graph.models.TargetDeviceGroup; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.TargetDeviceGroupCollectionRequestBuilder; +import com.microsoft.graph.requests.TargetDeviceGroupRequestBuilder; +import com.microsoft.graph.requests.TargetDeviceGroupCollectionRequest; +import com.microsoft.graph.http.BaseCollectionRequestBuilder; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.PrimitiveRequestBuilder; +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Target Device Group Collection Request Builder. + */ +public class TargetDeviceGroupCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of RemoteDesktopSecurityConfiguration + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public TargetDeviceGroupCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, TargetDeviceGroupRequestBuilder.class, TargetDeviceGroupCollectionRequest.class); + } + + + + /** + * Gets the raw count request for the collection + * @return The raw count request for the collection + */ + @Nonnull + public PrimitiveRequestBuilder count() { + return new PrimitiveRequestBuilder(getRequestUrlWithAdditionalSegment("$count"), getClient(), null, Long.class); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/TargetDeviceGroupCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/TargetDeviceGroupCollectionResponse.java new file mode 100644 index 00000000000..408fe568f75 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/TargetDeviceGroupCollectionResponse.java @@ -0,0 +1,18 @@ +// Template Source: BaseEntityCollectionResponse.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; +import com.microsoft.graph.models.TargetDeviceGroup; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Target Device Group Collection Response. + */ +public class TargetDeviceGroupCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/requests/TargetDeviceGroupRequest.java b/src/main/java/com/microsoft/graph/requests/TargetDeviceGroupRequest.java new file mode 100644 index 00000000000..8802d15d0e1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/TargetDeviceGroupRequest.java @@ -0,0 +1,173 @@ +// Template Source: BaseEntityRequest.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.TargetDeviceGroup; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseRequest; +import com.microsoft.graph.http.HttpMethod; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Target Device Group Request. + */ +public class TargetDeviceGroupRequest extends BaseRequest { + + /** + * The request for the TargetDeviceGroup + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public TargetDeviceGroupRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, TargetDeviceGroup.class); + } + + /** + * Gets the TargetDeviceGroup from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the TargetDeviceGroup from the service + * + * @return the TargetDeviceGroup from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public TargetDeviceGroup get() throws ClientException { + return send(HttpMethod.GET, null); + } + + /** + * Delete this item from the service + * + * @return a future with the deletion result + */ + @Nonnull + public java.util.concurrent.CompletableFuture deleteAsync() { + return sendAsync(HttpMethod.DELETE, null); + } + + /** + * Delete this item from the service + * @return the resulting response if the service returns anything on deletion + * + * @throws ClientException if there was an exception during the delete operation + */ + @Nullable + public TargetDeviceGroup delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this TargetDeviceGroup with a source + * + * @param sourceTargetDeviceGroup the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final TargetDeviceGroup sourceTargetDeviceGroup) { + return sendAsync(HttpMethod.PATCH, sourceTargetDeviceGroup); + } + + /** + * Patches this TargetDeviceGroup with a source + * + * @param sourceTargetDeviceGroup the source object with updates + * @return the updated TargetDeviceGroup + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public TargetDeviceGroup patch(@Nonnull final TargetDeviceGroup sourceTargetDeviceGroup) throws ClientException { + return send(HttpMethod.PATCH, sourceTargetDeviceGroup); + } + + /** + * Creates a TargetDeviceGroup with a new object + * + * @param newTargetDeviceGroup the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final TargetDeviceGroup newTargetDeviceGroup) { + return sendAsync(HttpMethod.POST, newTargetDeviceGroup); + } + + /** + * Creates a TargetDeviceGroup with a new object + * + * @param newTargetDeviceGroup the new object to create + * @return the created TargetDeviceGroup + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public TargetDeviceGroup post(@Nonnull final TargetDeviceGroup newTargetDeviceGroup) throws ClientException { + return send(HttpMethod.POST, newTargetDeviceGroup); + } + + /** + * Creates a TargetDeviceGroup with a new object + * + * @param newTargetDeviceGroup the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final TargetDeviceGroup newTargetDeviceGroup) { + return sendAsync(HttpMethod.PUT, newTargetDeviceGroup); + } + + /** + * Creates a TargetDeviceGroup with a new object + * + * @param newTargetDeviceGroup the object to create/update + * @return the created TargetDeviceGroup + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public TargetDeviceGroup put(@Nonnull final TargetDeviceGroup newTargetDeviceGroup) throws ClientException { + return send(HttpMethod.PUT, newTargetDeviceGroup); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public TargetDeviceGroupRequest select(@Nonnull final String value) { + addSelectOption(value); + return this; + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public TargetDeviceGroupRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/TargetDeviceGroupRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/TargetDeviceGroupRequestBuilder.java new file mode 100644 index 00000000000..3715a25fa53 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/TargetDeviceGroupRequestBuilder.java @@ -0,0 +1,59 @@ +// Template Source: BaseEntityRequestBuilder.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.TargetDeviceGroup; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseRequestBuilder; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Target Device Group Request Builder. + */ +public class TargetDeviceGroupRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the TargetDeviceGroup + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public TargetDeviceGroupRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + /** + * Creates the request + * + * @param requestOptions the options for this request + * @return the TargetDeviceGroupRequest instance + */ + @Nonnull + public TargetDeviceGroupRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the request with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for this request + * @return the TargetDeviceGroupRequest instance + */ + @Nonnull + public TargetDeviceGroupRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.TargetDeviceGroupRequest(getRequestUrl(), getClient(), requestOptions); + } + + +} diff --git a/src/main/java/com/microsoft/graph/security/requests/HostPortCollectionPage.java b/src/main/java/com/microsoft/graph/security/requests/HostPortCollectionPage.java new file mode 100644 index 00000000000..2b66482cae9 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/HostPortCollectionPage.java @@ -0,0 +1,40 @@ +// Template Source: BaseEntityCollectionPage.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.security.requests; +import com.microsoft.graph.security.models.HostPort; +import com.microsoft.graph.security.requests.HostPortCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.security.requests.HostPortCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Host Port Collection Page. + */ +public class HostPortCollectionPage extends BaseCollectionPage { + + /** + * A collection page for HostPort + * + * @param response the serialized HostPortCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public HostPortCollectionPage(@Nonnull final HostPortCollectionResponse response, @Nonnull final HostPortCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for HostPort + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public HostPortCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final HostPortCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/HostPortCollectionReferenceRequest.java b/src/main/java/com/microsoft/graph/security/requests/HostPortCollectionReferenceRequest.java new file mode 100644 index 00000000000..e1ceaa009d5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/HostPortCollectionReferenceRequest.java @@ -0,0 +1,127 @@ +// Template Source: BaseEntityCollectionReferenceRequest.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.Host; +import com.microsoft.graph.security.models.HostPort; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.security.requests.HostPortWithReferenceRequest; +import com.microsoft.graph.security.requests.HostPortReferenceRequestBuilder; +import com.microsoft.graph.security.requests.HostPortWithReferenceRequestBuilder; +import com.microsoft.graph.security.requests.HostPortCollectionWithReferencesRequest; +import com.microsoft.graph.security.requests.HostPortCollectionWithReferencesRequestBuilder; +import com.microsoft.graph.security.models.HostPort; +import com.microsoft.graph.options.QueryOption; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseCollectionWithReferencesRequest; +import com.microsoft.graph.http.BaseCollectionWithReferencesRequestBuilder; +import com.microsoft.graph.http.ReferenceRequestBody; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Host Port Collection Reference Request. + */ +public class HostPortCollectionReferenceRequest extends BaseCollectionWithReferencesRequest { + + /** + * The request builder for this collection of HostPort + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostPortCollectionReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, HostPortCollectionResponse.class, HostPortCollectionWithReferencesPage.class, HostPortCollectionWithReferencesRequestBuilder.class); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public HostPortCollectionReferenceRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + @Nonnull + public HostPortCollectionReferenceRequest filter(@Nonnull final String value) { + addFilterOption(value); + return this; + } + + /** + * Sets the order by clause for the request + * + * @param value the sort clause + * @return the updated request + */ + @Nonnull + public HostPortCollectionReferenceRequest orderBy(@Nonnull final String value) { + addOrderByOption(value); + return this; + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public HostPortCollectionReferenceRequest select(@Nonnull final String value) { + addSelectOption(value); + return this; + } + + /** + * Sets the top value for the request + * + * @param value the max number of items to return + * @return the updated request + */ + @Nonnull + public HostPortCollectionReferenceRequest top(final int value) { + addTopOption(value); + return this; + } + /** + * Sets the count value for the request + * + * @param value whether or not to return the count of objects with the request + * @return the updated request + */ + @Nonnull + public HostPortCollectionReferenceRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public HostPortCollectionReferenceRequest count() { + addCountOption(true); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/HostPortCollectionReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/security/requests/HostPortCollectionReferenceRequestBuilder.java new file mode 100644 index 00000000000..22676290f02 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/HostPortCollectionReferenceRequestBuilder.java @@ -0,0 +1,37 @@ +// Template Source: BaseEntityCollectionReferenceRequestBuilder.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.Host; +import com.microsoft.graph.security.models.HostPort; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.http.BaseCollectionReferenceRequestBuilder; +import com.microsoft.graph.core.IBaseClient; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Host Port Collection Reference Request Builder. + */ +public class HostPortCollectionReferenceRequestBuilder extends BaseCollectionReferenceRequestBuilder { + + /** + * The request builder for this collection of HostPort + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostPortCollectionReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, HostPortReferenceRequestBuilder.class, HostPortCollectionReferenceRequest.class); + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/HostPortCollectionRequest.java b/src/main/java/com/microsoft/graph/security/requests/HostPortCollectionRequest.java new file mode 100644 index 00000000000..0bf6262c2ef --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/HostPortCollectionRequest.java @@ -0,0 +1,173 @@ +// Template Source: BaseEntityCollectionRequest.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.ThreatIntelligence; +import com.microsoft.graph.security.models.HostPort; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.options.QueryOption; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseEntityCollectionRequest; +import com.microsoft.graph.security.requests.HostPortCollectionResponse; +import com.microsoft.graph.security.requests.HostPortCollectionRequestBuilder; +import com.microsoft.graph.security.requests.HostPortCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Host Port Collection Request. + */ +public class HostPortCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of HostPort + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostPortCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, HostPortCollectionResponse.class, HostPortCollectionPage.class, HostPortCollectionRequestBuilder.class); + } + + /** + * Creates a new HostPort + * @param newHostPort the HostPort to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final HostPort newHostPort) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new HostPortRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newHostPort); + } + + /** + * Creates a new HostPort + * @param newHostPort the HostPort to create + * @return the newly created object + */ + @Nonnull + public HostPort post(@Nonnull final HostPort newHostPort) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new HostPortRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newHostPort); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public HostPortCollectionRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + @Nonnull + public HostPortCollectionRequest filter(@Nonnull final String value) { + addFilterOption(value); + return this; + } + + /** + * Sets the order by clause for the request + * + * @param value the order by clause + * @return the updated request + */ + @Nonnull + public HostPortCollectionRequest orderBy(@Nonnull final String value) { + addOrderByOption(value); + return this; + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public HostPortCollectionRequest select(@Nonnull final String value) { + addSelectOption(value); + return this; + } + + /** + * Sets the top value for the request + * + * @param value the max number of items to return + * @return the updated request + */ + @Nonnull + public HostPortCollectionRequest top(final int value) { + addTopOption(value); + return this; + } + + /** + * Sets the count value for the request + * + * @param value whether or not to return the count of objects with the request + * @return the updated request + */ + @Nonnull + public HostPortCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public HostPortCollectionRequest count() { + addCountOption(true); + return this; + } + /** + * Sets the skip value for the request + * + * @param value of the number of items to skip + * @return the updated request + */ + @Nonnull + public HostPortCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public HostPortCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/security/requests/HostPortCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/security/requests/HostPortCollectionRequestBuilder.java new file mode 100644 index 00000000000..79335fcde12 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/HostPortCollectionRequestBuilder.java @@ -0,0 +1,51 @@ +// Template Source: BaseEntityCollectionRequestBuilder.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.ThreatIntelligence; +import com.microsoft.graph.security.models.HostPort; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.security.requests.HostPortCollectionRequestBuilder; +import com.microsoft.graph.security.requests.HostPortRequestBuilder; +import com.microsoft.graph.security.requests.HostPortCollectionRequest; +import com.microsoft.graph.http.BaseCollectionRequestBuilder; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.PrimitiveRequestBuilder; +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Host Port Collection Request Builder. + */ +public class HostPortCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of ThreatIntelligence + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostPortCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, HostPortRequestBuilder.class, HostPortCollectionRequest.class); + } + + + + /** + * Gets the raw count request for the collection + * @return The raw count request for the collection + */ + @Nonnull + public PrimitiveRequestBuilder count() { + return new PrimitiveRequestBuilder(getRequestUrlWithAdditionalSegment("$count"), getClient(), null, Long.class); + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/HostPortCollectionResponse.java b/src/main/java/com/microsoft/graph/security/requests/HostPortCollectionResponse.java new file mode 100644 index 00000000000..2b74de178ff --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/HostPortCollectionResponse.java @@ -0,0 +1,18 @@ +// Template Source: BaseEntityCollectionResponse.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.security.requests; +import com.microsoft.graph.security.models.HostPort; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Host Port Collection Response. + */ +public class HostPortCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/security/requests/HostPortCollectionWithReferencesPage.java b/src/main/java/com/microsoft/graph/security/requests/HostPortCollectionWithReferencesPage.java new file mode 100644 index 00000000000..b6098ed792b --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/HostPortCollectionWithReferencesPage.java @@ -0,0 +1,52 @@ +// Template Source: BaseEntityCollectionWithReferencesPage.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.Host; +import com.microsoft.graph.security.models.HostPort; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.security.requests.HostPortCollectionWithReferencesRequestBuilder; +import com.microsoft.graph.security.requests.HostPortCollectionWithReferencesPage; +import com.microsoft.graph.security.requests.HostPortCollectionResponse; +import com.microsoft.graph.security.models.HostPort; +import com.google.gson.JsonObject; +import com.google.gson.annotations.SerializedName; +import com.google.gson.annotations.Expose; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Host Port Collection With References Page. + */ +public class HostPortCollectionWithReferencesPage extends BaseCollectionPage { + + /** + * A collection page for HostPort + * + * @param response the serialized HostPortCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public HostPortCollectionWithReferencesPage(@Nonnull final HostPortCollectionResponse response, @Nullable final HostPortCollectionWithReferencesRequestBuilder builder) { + super(response.value, builder, response.additionalDataManager()); + } + + /** + * Creates the collection page for HostPort + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public HostPortCollectionWithReferencesPage(@Nonnull final java.util.List pageContents, @Nullable final HostPortCollectionWithReferencesRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/HostPortCollectionWithReferencesRequest.java b/src/main/java/com/microsoft/graph/security/requests/HostPortCollectionWithReferencesRequest.java new file mode 100644 index 00000000000..b582641beb4 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/HostPortCollectionWithReferencesRequest.java @@ -0,0 +1,128 @@ +// Template Source: BaseEntityCollectionWithReferencesRequest.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.Host; +import com.microsoft.graph.security.models.HostPort; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.security.models.HostPort; +import com.microsoft.graph.security.requests.HostPortWithReferenceRequest; +import com.microsoft.graph.security.requests.HostPortReferenceRequestBuilder; +import com.microsoft.graph.security.requests.HostPortWithReferenceRequestBuilder; +import com.microsoft.graph.security.requests.HostPortCollectionWithReferencesRequest; +import com.microsoft.graph.security.requests.HostPortCollectionWithReferencesRequest; +import com.microsoft.graph.security.requests.HostPortCollectionWithReferencesRequestBuilder; +import com.microsoft.graph.options.QueryOption; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseCollectionWithReferencesRequest; +import com.microsoft.graph.http.BaseCollectionWithReferencesRequestBuilder; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Host Port Collection With References Request. + */ +public class HostPortCollectionWithReferencesRequest extends BaseCollectionWithReferencesRequest { + + /** + * The request builder for this collection of HostPort + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostPortCollectionWithReferencesRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, HostPortCollectionResponse.class, HostPortCollectionWithReferencesPage.class, HostPortCollectionWithReferencesRequestBuilder.class); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public HostPortCollectionWithReferencesRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + @Nonnull + public HostPortCollectionWithReferencesRequest filter(@Nonnull final String value) { + addFilterOption(value); + return this; + } + + /** + * Sets the order by clause for the request + * + * @param value the order by clause + * @return the updated request + */ + @Nonnull + public HostPortCollectionWithReferencesRequest orderBy(@Nonnull final String value) { + addOrderByOption(value); + return this; + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public HostPortCollectionWithReferencesRequest select(@Nonnull final String value) { + addSelectOption(value); + return this; + } + + /** + * Sets the top value for the request + * + * @param value the max number of items to return + * @return the updated request + */ + @Nonnull + public HostPortCollectionWithReferencesRequest top(final int value) { + addTopOption(value); + return this; + } + + /** + * Sets the count value for the request + * + * @param value whether or not to return the count of objects with the request + * @return the updated request + */ + @Nonnull + public HostPortCollectionWithReferencesRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public HostPortCollectionWithReferencesRequest count() { + addCountOption(true); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/HostPortCollectionWithReferencesRequestBuilder.java b/src/main/java/com/microsoft/graph/security/requests/HostPortCollectionWithReferencesRequestBuilder.java new file mode 100644 index 00000000000..35aa49fdffb --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/HostPortCollectionWithReferencesRequestBuilder.java @@ -0,0 +1,37 @@ +// Template Source: BaseEntityCollectionWithReferencesRequestBuilder.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.Host; +import com.microsoft.graph.security.models.HostPort; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.http.BaseCollectionWithReferencesRequestBuilder; +import com.microsoft.graph.core.IBaseClient; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Host Port Collection With References Request Builder. + */ +public class HostPortCollectionWithReferencesRequestBuilder extends BaseCollectionWithReferencesRequestBuilder { + + /** + * The request builder for this collection of Host + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostPortCollectionWithReferencesRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, HostPortReferenceRequestBuilder.class, HostPortCollectionReferenceRequest.class, HostPortCollectionReferenceRequestBuilder.class); + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/models/Alert.java b/src/main/java/com/microsoft/graph/securitynamespace/models/Alert.java index 1daf0bec031..1fe19008a44 100644 --- a/src/main/java/com/microsoft/graph/securitynamespace/models/Alert.java +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/Alert.java @@ -215,6 +215,15 @@ public class Alert extends Entity implements IJsonBackedObject { @Nullable public java.util.List mitreTechniques; + /** + * The Product Name. + * + */ + @SerializedName(value = "productName", alternate = {"ProductName"}) + @Expose + @Nullable + public String productName; + /** * The Provider Alert Id. * The ID of the alert as it appears in the security provider product that generated the alert. diff --git a/src/main/java/com/microsoft/graph/securitynamespace/models/DetectionSource.java b/src/main/java/com/microsoft/graph/securitynamespace/models/DetectionSource.java index ce357e94a1c..226c39a6156 100644 --- a/src/main/java/com/microsoft/graph/securitynamespace/models/DetectionSource.java +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/DetectionSource.java @@ -88,6 +88,70 @@ public enum DetectionSource */ MICROSOFT_DEFENDER_FOR_CLOUD, /** + * microsoft Defender For Io T + */ + MICROSOFT_DEFENDER_FOR_IO_T, + /** + * microsoft Defender For Servers + */ + MICROSOFT_DEFENDER_FOR_SERVERS, + /** + * microsoft Defender For Storage + */ + MICROSOFT_DEFENDER_FOR_STORAGE, + /** + * microsoft Defender For DNS + */ + MICROSOFT_DEFENDER_FOR_DNS, + /** + * microsoft Defender For Databases + */ + MICROSOFT_DEFENDER_FOR_DATABASES, + /** + * microsoft Defender For Containers + */ + MICROSOFT_DEFENDER_FOR_CONTAINERS, + /** + * microsoft Defender For Network + */ + MICROSOFT_DEFENDER_FOR_NETWORK, + /** + * microsoft Defender For App Service + */ + MICROSOFT_DEFENDER_FOR_APP_SERVICE, + /** + * microsoft Defender For Key Vault + */ + MICROSOFT_DEFENDER_FOR_KEY_VAULT, + /** + * microsoft Defender For Resource Manager + */ + MICROSOFT_DEFENDER_FOR_RESOURCE_MANAGER, + /** + * microsoft Defender For Api Management + */ + MICROSOFT_DEFENDER_FOR_API_MANAGEMENT, + /** + * nrt Alerts + */ + NRT_ALERTS, + /** + * scheduled Alerts + */ + SCHEDULED_ALERTS, + /** + * microsoft Defender Threat Intelligence Analytics + */ + MICROSOFT_DEFENDER_THREAT_INTELLIGENCE_ANALYTICS, + /** + * built In Ml + */ + BUILT_IN_ML, + /** + * microsoft Sentinel + */ + MICROSOFT_SENTINEL, + /** * For DetectionSource values that were not expected from the service */ UNEXPECTED_VALUE diff --git a/src/main/java/com/microsoft/graph/securitynamespace/models/Host.java b/src/main/java/com/microsoft/graph/securitynamespace/models/Host.java index 5497cab1412..b800be87b7b 100644 --- a/src/main/java/com/microsoft/graph/securitynamespace/models/Host.java +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/Host.java @@ -14,6 +14,7 @@ import com.microsoft.graph.security.models.Artifact; import com.microsoft.graph.security.requests.HostComponentCollectionPage; import com.microsoft.graph.security.requests.HostCookieCollectionPage; +import com.microsoft.graph.security.requests.HostPortCollectionPage; import com.microsoft.graph.security.requests.HostSslCertificateCollectionPage; import com.microsoft.graph.security.requests.SubdomainCollectionPage; import com.microsoft.graph.security.requests.HostTrackerCollectionPage; @@ -53,7 +54,7 @@ public class Host extends Artifact implements IJsonBackedObject { /** * The Child Host Pairs. - * The hostPairs that are resources associated with a host, where that host is the parentHost and has an outgoing pairing to a cihldHost. + * The hostPairs that are resources associated with a host, where that host is the parentHost and has an outgoing pairing to a childHost. */ @Nullable public com.microsoft.graph.security.requests.HostPairCollectionPage childHostPairs; @@ -100,6 +101,13 @@ public class Host extends Artifact implements IJsonBackedObject { @Nullable public com.microsoft.graph.security.requests.PassiveDnsRecordCollectionPage passiveDnsReverse; + /** + * The Ports. + * The hostPorts associated with a host. + */ + @Nullable + public com.microsoft.graph.security.requests.HostPortCollectionPage ports; + /** * The Reputation. * Represents a calculated reputation of this host. @@ -177,6 +185,10 @@ public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final J passiveDnsReverse = serializer.deserializeObject(json.get("passiveDnsReverse"), com.microsoft.graph.security.requests.PassiveDnsRecordCollectionPage.class); } + if (json.has("ports")) { + ports = serializer.deserializeObject(json.get("ports"), com.microsoft.graph.security.requests.HostPortCollectionPage.class); + } + if (json.has("sslCertificates")) { sslCertificates = serializer.deserializeObject(json.get("sslCertificates"), com.microsoft.graph.security.requests.HostSslCertificateCollectionPage.class); } diff --git a/src/main/java/com/microsoft/graph/securitynamespace/models/HostPort.java b/src/main/java/com/microsoft/graph/securitynamespace/models/HostPort.java new file mode 100644 index 00000000000..d34a8dfd7e6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/HostPort.java @@ -0,0 +1,144 @@ +// Template Source: BaseEntity.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.security.models; +import com.microsoft.graph.serializer.ISerializer; +import com.microsoft.graph.serializer.IJsonBackedObject; +import com.microsoft.graph.serializer.AdditionalDataManager; +import java.util.EnumSet; +import com.microsoft.graph.http.BaseCollectionPage; +import com.microsoft.graph.security.models.HostPortBanner; +import com.microsoft.graph.security.models.HostPortProtocol; +import com.microsoft.graph.security.models.HostPortComponent; +import com.microsoft.graph.security.models.HostPortStatus; +import com.microsoft.graph.security.models.Host; +import com.microsoft.graph.security.models.SslCertificate; +import com.microsoft.graph.models.Entity; + + +import com.google.gson.JsonObject; +import com.google.gson.annotations.SerializedName; +import com.google.gson.annotations.Expose; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Host Port. + */ +public class HostPort extends Entity implements IJsonBackedObject { + + + /** + * The Banners. + * The hostPortBanners retrieved from scanning the port. + */ + @SerializedName(value = "banners", alternate = {"Banners"}) + @Expose + @Nullable + public java.util.List banners; + + /** + * The First Seen Date Time. + * The first date and time when Microsoft Defender Threat Intelligence observed the hostPort. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014, is 2014-01-01T00:00:00Z. + */ + @SerializedName(value = "firstSeenDateTime", alternate = {"FirstSeenDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime firstSeenDateTime; + + /** + * The Last Scan Date Time. + * The last date and time when Microsoft Defender Threat Intelligence scanned the hostPort. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014, is 2014-01-01T00:00:00Z. + */ + @SerializedName(value = "lastScanDateTime", alternate = {"LastScanDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime lastScanDateTime; + + /** + * The Last Seen Date Time. + * The last date and time when Microsoft Defender Threat Intelligence observed the hostPort. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014, is 2014-01-01T00:00:00Z. + */ + @SerializedName(value = "lastSeenDateTime", alternate = {"LastSeenDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime lastSeenDateTime; + + /** + * The Port. + * The numerical identifier of the port which is standardized across the internet. + */ + @SerializedName(value = "port", alternate = {"Port"}) + @Expose + @Nullable + public Integer port; + + /** + * The Protocol. + * The general protocol used to scan the port. The possible values are: tcp, udp, unknownFutureValue. + */ + @SerializedName(value = "protocol", alternate = {"Protocol"}) + @Expose + @Nullable + public HostPortProtocol protocol; + + /** + * The Services. + * The hostPortComponents retrieved from scanning the port. + */ + @SerializedName(value = "services", alternate = {"Services"}) + @Expose + @Nullable + public java.util.List services; + + /** + * The Status. + * The status of the port. The possible values are: open, filtered, closed, unknownFutureValue. + */ + @SerializedName(value = "status", alternate = {"Status"}) + @Expose + @Nullable + public HostPortStatus status; + + /** + * The Times Observed. + * The total amount of times that Microsoft Defender Threat Intelligence has observed the hostPort in all its scans. + */ + @SerializedName(value = "timesObserved", alternate = {"TimesObserved"}) + @Expose + @Nullable + public Integer timesObserved; + + /** + * The Host. + * The host related to this hostPort. This is a reverse navigation property. When you navigate to hostPorts from a host, assume that this is a return reference. + */ + @SerializedName(value = "host", alternate = {"Host"}) + @Expose + @Nullable + public Host host; + + /** + * The Most Recent Ssl Certificate. + * The most recent sslCertificate used to communicate on the port. + */ + @SerializedName(value = "mostRecentSslCertificate", alternate = {"MostRecentSslCertificate"}) + @Expose + @Nullable + public SslCertificate mostRecentSslCertificate; + + + /** + * Sets the raw JSON object + * + * @param serializer the serializer + * @param json the JSON object to set this object to + */ + public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { + + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/models/HostPortBanner.java b/src/main/java/com/microsoft/graph/securitynamespace/models/HostPortBanner.java new file mode 100644 index 00000000000..ee1024c252d --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/HostPortBanner.java @@ -0,0 +1,95 @@ +// Template Source: BaseEntity.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.security.models; +import com.microsoft.graph.serializer.ISerializer; +import com.microsoft.graph.serializer.IJsonBackedObject; +import com.microsoft.graph.serializer.AdditionalDataManager; +import java.util.EnumSet; + + +import com.google.gson.JsonObject; +import com.google.gson.annotations.SerializedName; +import com.google.gson.annotations.Expose; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Host Port Banner. + */ +public class HostPortBanner implements IJsonBackedObject { + + /** the OData type of the object as returned by the service */ + @SerializedName("@odata.type") + @Expose + @Nullable + public String oDataType; + + private transient AdditionalDataManager additionalDataManager = new AdditionalDataManager(this); + + @Override + @Nonnull + public final AdditionalDataManager additionalDataManager() { + return additionalDataManager; + } + + /** + * The Banner. + * The text response received from a web component when scanning a hostPort. + */ + @SerializedName(value = "banner", alternate = {"Banner"}) + @Expose + @Nullable + public String banner; + + /** + * The First Seen Date Time. + * The first date and time when Microsoft Defender Threat Intelligence observed the hostPortBanner. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014, is 2014-01-01T00:00:00Z. + */ + @SerializedName(value = "firstSeenDateTime", alternate = {"FirstSeenDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime firstSeenDateTime; + + /** + * The Last Seen Date Time. + * The last date and time when Microsoft Defender Threat Intelligence observed the hostPortBanner. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014, is 2014-01-01T00:00:00Z. + */ + @SerializedName(value = "lastSeenDateTime", alternate = {"LastSeenDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime lastSeenDateTime; + + /** + * The Scan Protocol. + * The specific protocol used to scan the hostPort. + */ + @SerializedName(value = "scanProtocol", alternate = {"ScanProtocol"}) + @Expose + @Nullable + public String scanProtocol; + + /** + * The Times Observed. + * The total amount of times that Microsoft Defender Threat Intelligence has observed the hostPortBanner in all its scans. + */ + @SerializedName(value = "timesObserved", alternate = {"TimesObserved"}) + @Expose + @Nullable + public Integer timesObserved; + + + /** + * Sets the raw JSON object + * + * @param serializer the serializer + * @param json the JSON object to set this object to + */ + public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { + + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/models/HostPortComponent.java b/src/main/java/com/microsoft/graph/securitynamespace/models/HostPortComponent.java new file mode 100644 index 00000000000..cb2a04fc056 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/HostPortComponent.java @@ -0,0 +1,87 @@ +// Template Source: BaseEntity.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.security.models; +import com.microsoft.graph.serializer.ISerializer; +import com.microsoft.graph.serializer.IJsonBackedObject; +import com.microsoft.graph.serializer.AdditionalDataManager; +import java.util.EnumSet; +import com.microsoft.graph.security.models.HostComponent; + + +import com.google.gson.JsonObject; +import com.google.gson.annotations.SerializedName; +import com.google.gson.annotations.Expose; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Host Port Component. + */ +public class HostPortComponent implements IJsonBackedObject { + + /** the OData type of the object as returned by the service */ + @SerializedName("@odata.type") + @Expose + @Nullable + public String oDataType; + + private transient AdditionalDataManager additionalDataManager = new AdditionalDataManager(this); + + @Override + @Nonnull + public final AdditionalDataManager additionalDataManager() { + return additionalDataManager; + } + + /** + * The First Seen Date Time. + * The first date and time when Microsoft Defender Threat Intelligence observed the hostPortComponent. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014, is 2014-01-01T00:00:00Z. + */ + @SerializedName(value = "firstSeenDateTime", alternate = {"FirstSeenDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime firstSeenDateTime; + + /** + * The Is Recent. + * Indicates whether this hostPortComponent is recent, which is determined by whether the hostPortComponent was observed either at the same time or after the latest hostPortBanner in the scan history, or within two days of the latest scan of the hostPort when there are no hostPortBanners in the scan history. + */ + @SerializedName(value = "isRecent", alternate = {"IsRecent"}) + @Expose + @Nullable + public Boolean isRecent; + + /** + * The Last Seen Date Time. + * The last date and time when Microsoft Defender Threat Intelligence observed the hostPortComponent. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014, is 2014-01-01T00:00:00Z. + */ + @SerializedName(value = "lastSeenDateTime", alternate = {"LastSeenDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime lastSeenDateTime; + + /** + * The Component. + * + */ + @SerializedName(value = "component", alternate = {"Component"}) + @Expose + @Nullable + public HostComponent component; + + + /** + * Sets the raw JSON object + * + * @param serializer the serializer + * @param json the JSON object to set this object to + */ + public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { + + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/models/HostPortProtocol.java b/src/main/java/com/microsoft/graph/securitynamespace/models/HostPortProtocol.java new file mode 100644 index 00000000000..43f4356a9f5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/HostPortProtocol.java @@ -0,0 +1,30 @@ +// Template Source: Enum.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.security.models; + + +/** + * The Enum Host Port Protocol. +*/ +public enum HostPortProtocol +{ + /** + * tcp + */ + TCP, + /** + * udp + */ + UDP, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For HostPortProtocol values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/models/HostPortStatus.java b/src/main/java/com/microsoft/graph/securitynamespace/models/HostPortStatus.java new file mode 100644 index 00000000000..b0de301f411 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/HostPortStatus.java @@ -0,0 +1,34 @@ +// Template Source: Enum.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.security.models; + + +/** + * The Enum Host Port Status. +*/ +public enum HostPortStatus +{ + /** + * open + */ + OPEN, + /** + * filtered + */ + FILTERED, + /** + * closed + */ + CLOSED, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For HostPortStatus values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/models/ServiceSource.java b/src/main/java/com/microsoft/graph/securitynamespace/models/ServiceSource.java index 8bfad949214..e4e5354e8ac 100644 --- a/src/main/java/com/microsoft/graph/securitynamespace/models/ServiceSource.java +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/ServiceSource.java @@ -56,6 +56,10 @@ public enum ServiceSource */ MICROSOFT_DEFENDER_FOR_CLOUD, /** + * microsoft Sentinel + */ + MICROSOFT_SENTINEL, + /** * For ServiceSource values that were not expected from the service */ UNEXPECTED_VALUE diff --git a/src/main/java/com/microsoft/graph/securitynamespace/models/ThreatIntelligence.java b/src/main/java/com/microsoft/graph/securitynamespace/models/ThreatIntelligence.java index d734e33bb82..b10af652a3d 100644 --- a/src/main/java/com/microsoft/graph/securitynamespace/models/ThreatIntelligence.java +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/ThreatIntelligence.java @@ -15,6 +15,7 @@ import com.microsoft.graph.security.requests.HostComponentCollectionPage; import com.microsoft.graph.security.requests.HostCookieCollectionPage; import com.microsoft.graph.security.requests.HostPairCollectionPage; +import com.microsoft.graph.security.requests.HostPortCollectionPage; import com.microsoft.graph.security.requests.HostCollectionPage; import com.microsoft.graph.security.requests.HostSslCertificateCollectionPage; import com.microsoft.graph.security.requests.HostTrackerCollectionPage; @@ -87,6 +88,15 @@ public class ThreatIntelligence extends Entity implements IJsonBackedObject { @Nullable public com.microsoft.graph.security.requests.HostPairCollectionPage hostPairs; + /** + * The Host Ports. + * Retrieve details about hostPort objects.Note: List retrieval is not yet supported. + */ + @SerializedName(value = "hostPorts", alternate = {"HostPorts"}) + @Expose + @Nullable + public com.microsoft.graph.security.requests.HostPortCollectionPage hostPorts; + /** * The Hosts. * Refers to host objects that Microsoft Threat Intelligence has observed.Note: List retrieval is not yet supported. @@ -216,6 +226,10 @@ public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final J hostPairs = serializer.deserializeObject(json.get("hostPairs"), com.microsoft.graph.security.requests.HostPairCollectionPage.class); } + if (json.has("hostPorts")) { + hostPorts = serializer.deserializeObject(json.get("hostPorts"), com.microsoft.graph.security.requests.HostPortCollectionPage.class); + } + if (json.has("hosts")) { hosts = serializer.deserializeObject(json.get("hosts"), com.microsoft.graph.security.requests.HostCollectionPage.class); } diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/HostPortReferenceRequest.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostPortReferenceRequest.java new file mode 100644 index 00000000000..087aae2e1ef --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostPortReferenceRequest.java @@ -0,0 +1,90 @@ +// Template Source: BaseEntityReferenceRequest.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.HostPort; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.options.QueryOption; +import com.microsoft.graph.http.BaseReferenceRequest; +import com.microsoft.graph.http.HttpMethod; +import com.microsoft.graph.core.IBaseClient; +import com.google.gson.JsonPrimitive; +import com.google.gson.JsonObject; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Host Port Reference Request. + */ +public class HostPortReferenceRequest extends BaseReferenceRequest { + + /** + * The request for the HostPort + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostPortReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, HostPort.class); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public HostPortReferenceRequest select(@Nonnull final String value) { + addSelectOption(value); + return this; + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public HostPortReferenceRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + /** + * Puts the HostPort + * + * @param srcHostPort the HostPort reference to PUT + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final HostPort srcHostPort) { + final JsonObject payload = new JsonObject(); + payload.add("@odata.id", new JsonPrimitive(this.getClient().getServiceRoot() + "/host/{id}/ports/" + srcHostPort.id)); + return sendAsync(HttpMethod.PUT, payload); + } + + /** + * Puts the HostPort + * + * @param srcHostPort the HostPort reference to PUT + * @return the HostPort + * @throws ClientException an exception occurs if there was an error while the request was sent + */ + @Nullable + public HostPort put(@Nonnull final HostPort srcHostPort) throws ClientException { + final JsonObject payload = new JsonObject(); + payload.add("@odata.id", new JsonPrimitive(this.getClient().getServiceRoot() + "/host/{id}/ports/" + srcHostPort.id)); + return send(HttpMethod.PUT, payload); + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/HostPortReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostPortReferenceRequestBuilder.java new file mode 100644 index 00000000000..761ed9b8ad2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostPortReferenceRequestBuilder.java @@ -0,0 +1,37 @@ + +// Template Source: BaseEntityReferenceRequestBuilder.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.HostPort; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.http.BaseReferenceRequestBuilder; +import com.microsoft.graph.core.IBaseClient; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Host Port Reference Request Builder. + */ +public class HostPortReferenceRequestBuilder extends BaseReferenceRequestBuilder { + + /** + * The request builder for the HostPort + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostPortReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, HostPortReferenceRequest.class); + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/HostPortRequest.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostPortRequest.java new file mode 100644 index 00000000000..8fd5c4c1658 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostPortRequest.java @@ -0,0 +1,173 @@ +// Template Source: BaseEntityRequest.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.HostPort; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseRequest; +import com.microsoft.graph.http.HttpMethod; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Host Port Request. + */ +public class HostPortRequest extends BaseRequest { + + /** + * The request for the HostPort + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostPortRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, HostPort.class); + } + + /** + * Gets the HostPort from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the HostPort from the service + * + * @return the HostPort from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public HostPort get() throws ClientException { + return send(HttpMethod.GET, null); + } + + /** + * Delete this item from the service + * + * @return a future with the deletion result + */ + @Nonnull + public java.util.concurrent.CompletableFuture deleteAsync() { + return sendAsync(HttpMethod.DELETE, null); + } + + /** + * Delete this item from the service + * @return the resulting response if the service returns anything on deletion + * + * @throws ClientException if there was an exception during the delete operation + */ + @Nullable + public HostPort delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this HostPort with a source + * + * @param sourceHostPort the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final HostPort sourceHostPort) { + return sendAsync(HttpMethod.PATCH, sourceHostPort); + } + + /** + * Patches this HostPort with a source + * + * @param sourceHostPort the source object with updates + * @return the updated HostPort + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public HostPort patch(@Nonnull final HostPort sourceHostPort) throws ClientException { + return send(HttpMethod.PATCH, sourceHostPort); + } + + /** + * Creates a HostPort with a new object + * + * @param newHostPort the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final HostPort newHostPort) { + return sendAsync(HttpMethod.POST, newHostPort); + } + + /** + * Creates a HostPort with a new object + * + * @param newHostPort the new object to create + * @return the created HostPort + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public HostPort post(@Nonnull final HostPort newHostPort) throws ClientException { + return send(HttpMethod.POST, newHostPort); + } + + /** + * Creates a HostPort with a new object + * + * @param newHostPort the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final HostPort newHostPort) { + return sendAsync(HttpMethod.PUT, newHostPort); + } + + /** + * Creates a HostPort with a new object + * + * @param newHostPort the object to create/update + * @return the created HostPort + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public HostPort put(@Nonnull final HostPort newHostPort) throws ClientException { + return send(HttpMethod.PUT, newHostPort); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public HostPortRequest select(@Nonnull final String value) { + addSelectOption(value); + return this; + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public HostPortRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/HostPortRequestBuilder.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostPortRequestBuilder.java new file mode 100644 index 00000000000..7435486dedb --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostPortRequestBuilder.java @@ -0,0 +1,79 @@ +// Template Source: BaseEntityRequestBuilder.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.HostPort; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseRequestBuilder; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Host Port Request Builder. + */ +public class HostPortRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the HostPort + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostPortRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + /** + * Creates the request + * + * @param requestOptions the options for this request + * @return the HostPortRequest instance + */ + @Nonnull + public HostPortRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the request with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for this request + * @return the HostPortRequest instance + */ + @Nonnull + public HostPortRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.security.requests.HostPortRequest(getRequestUrl(), getClient(), requestOptions); + } + + + + /** + * Gets the request builder for Host + * + * @return the HostWithReferenceRequestBuilder instance + */ + @Nonnull + public com.microsoft.graph.security.requests.HostWithReferenceRequestBuilder host() { + return new com.microsoft.graph.security.requests.HostWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("host"), getClient(), null); + } + + /** + * Gets the request builder for SslCertificate + * + * @return the SslCertificateWithReferenceRequestBuilder instance + */ + @Nonnull + public com.microsoft.graph.security.requests.SslCertificateWithReferenceRequestBuilder mostRecentSslCertificate() { + return new com.microsoft.graph.security.requests.SslCertificateWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("mostRecentSslCertificate"), getClient(), null); + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/HostPortWithReferenceRequest.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostPortWithReferenceRequest.java new file mode 100644 index 00000000000..3c3d4bd1f70 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostPortWithReferenceRequest.java @@ -0,0 +1,63 @@ +// Template Source: BaseEntityWithReferenceRequest.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.HostPort; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.options.QueryOption; +import com.microsoft.graph.http.BaseWithReferenceRequest; +import com.microsoft.graph.http.HttpMethod; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.serializer.IJsonBackedObject; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Host Port With Reference Request. + */ +public class HostPortWithReferenceRequest extends BaseWithReferenceRequest { + + /** + * The request for the HostPort + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostPortWithReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, HostPort.class); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public HostPortWithReferenceRequest select(@Nonnull final String value) { + addSelectOption(value); + return this; + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public HostPortWithReferenceRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/HostPortWithReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostPortWithReferenceRequestBuilder.java new file mode 100644 index 00000000000..c0564cc3176 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostPortWithReferenceRequestBuilder.java @@ -0,0 +1,36 @@ +// Template Source: BaseEntityWithReferenceRequestBuilder.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.HostPort; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.http.BaseWithReferenceRequestBuilder; +import com.microsoft.graph.core.IBaseClient; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Host Port With Reference Request Builder. + */ +public class HostPortWithReferenceRequestBuilder extends BaseWithReferenceRequestBuilder { + + /** + * The request builder for the HostPort + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostPortWithReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, HostPortWithReferenceRequest.class, HostPortReferenceRequestBuilder.class); + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/HostRequestBuilder.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostRequestBuilder.java index b56f4ff6c84..5def761d7fc 100644 --- a/src/main/java/com/microsoft/graph/securitynamespace/requests/HostRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostRequestBuilder.java @@ -196,6 +196,26 @@ public com.microsoft.graph.security.requests.PassiveDnsRecordCollectionWithRefer public com.microsoft.graph.security.requests.PassiveDnsRecordWithReferenceRequestBuilder passiveDnsReverse(@Nonnull final String id) { return new com.microsoft.graph.security.requests.PassiveDnsRecordWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("passiveDnsReverse") + "/" + id, getClient(), null); } + /** + * Gets a request builder for the HostPort collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.security.requests.HostPortCollectionWithReferencesRequestBuilder ports() { + return new com.microsoft.graph.security.requests.HostPortCollectionWithReferencesRequestBuilder(getRequestUrlWithAdditionalSegment("ports"), getClient(), null); + } + + /** + * Gets a request builder for the HostPort item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.security.requests.HostPortWithReferenceRequestBuilder ports(@Nonnull final String id) { + return new com.microsoft.graph.security.requests.HostPortWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("ports") + "/" + id, getClient(), null); + } /** * Gets the request builder for HostReputation diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/HostnameRequestBuilder.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostnameRequestBuilder.java index 3ead90c1ec3..4255537ad6d 100644 --- a/src/main/java/com/microsoft/graph/securitynamespace/requests/HostnameRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostnameRequestBuilder.java @@ -196,6 +196,26 @@ public com.microsoft.graph.security.requests.PassiveDnsRecordCollectionWithRefer public com.microsoft.graph.security.requests.PassiveDnsRecordWithReferenceRequestBuilder passiveDnsReverse(@Nonnull final String id) { return new com.microsoft.graph.security.requests.PassiveDnsRecordWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("passiveDnsReverse") + "/" + id, getClient(), null); } + /** + * Gets a request builder for the HostPort collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.security.requests.HostPortCollectionWithReferencesRequestBuilder ports() { + return new com.microsoft.graph.security.requests.HostPortCollectionWithReferencesRequestBuilder(getRequestUrlWithAdditionalSegment("ports"), getClient(), null); + } + + /** + * Gets a request builder for the HostPort item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.security.requests.HostPortWithReferenceRequestBuilder ports(@Nonnull final String id) { + return new com.microsoft.graph.security.requests.HostPortWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("ports") + "/" + id, getClient(), null); + } /** * Gets the request builder for HostReputation diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/IpAddressRequestBuilder.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/IpAddressRequestBuilder.java index 84bd99ad9c2..7d3c7ad3f99 100644 --- a/src/main/java/com/microsoft/graph/securitynamespace/requests/IpAddressRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/IpAddressRequestBuilder.java @@ -196,6 +196,26 @@ public com.microsoft.graph.security.requests.PassiveDnsRecordCollectionWithRefer public com.microsoft.graph.security.requests.PassiveDnsRecordWithReferenceRequestBuilder passiveDnsReverse(@Nonnull final String id) { return new com.microsoft.graph.security.requests.PassiveDnsRecordWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("passiveDnsReverse") + "/" + id, getClient(), null); } + /** + * Gets a request builder for the HostPort collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.security.requests.HostPortCollectionWithReferencesRequestBuilder ports() { + return new com.microsoft.graph.security.requests.HostPortCollectionWithReferencesRequestBuilder(getRequestUrlWithAdditionalSegment("ports"), getClient(), null); + } + + /** + * Gets a request builder for the HostPort item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.security.requests.HostPortWithReferenceRequestBuilder ports(@Nonnull final String id) { + return new com.microsoft.graph.security.requests.HostPortWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("ports") + "/" + id, getClient(), null); + } /** * Gets the request builder for HostReputation diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/ThreatIntelligenceRequestBuilder.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/ThreatIntelligenceRequestBuilder.java index 64d2b28f619..fb8aef2bc32 100644 --- a/src/main/java/com/microsoft/graph/securitynamespace/requests/ThreatIntelligenceRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/ThreatIntelligenceRequestBuilder.java @@ -156,6 +156,26 @@ public com.microsoft.graph.security.requests.HostPairCollectionRequestBuilder ho public com.microsoft.graph.security.requests.HostPairRequestBuilder hostPairs(@Nonnull final String id) { return new com.microsoft.graph.security.requests.HostPairRequestBuilder(getRequestUrlWithAdditionalSegment("hostPairs") + "/" + id, getClient(), null); } + /** + * Gets a request builder for the HostPort collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.security.requests.HostPortCollectionRequestBuilder hostPorts() { + return new com.microsoft.graph.security.requests.HostPortCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("hostPorts"), getClient(), null); + } + + /** + * Gets a request builder for the HostPort item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.security.requests.HostPortRequestBuilder hostPorts(@Nonnull final String id) { + return new com.microsoft.graph.security.requests.HostPortRequestBuilder(getRequestUrlWithAdditionalSegment("hostPorts") + "/" + id, getClient(), null); + } /** * Gets a request builder for the Host collection *