diff --git a/CHANGELOG.md b/CHANGELOG.md index 0a330f371c4..ecbf9a55b7c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed +## [0.78.0] - 2023-08-10 + +### Changed + +- Weekly generation. + ## [0.77.0] - 2023-07-28 ### Changed diff --git a/README.md b/README.md index 8a94d990c75..3e6319e2c0f 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ repositories { dependencies { // Include the sdk as a dependency - implementation 'com.microsoft.graph:microsoft-graph-beta:0.77.0-SNAPSHOT' + implementation 'com.microsoft.graph:microsoft-graph-beta:0.78.0-SNAPSHOT' // 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 @@ -37,7 +37,7 @@ Add the dependency in `dependencies` in pom.xml com.microsoft.graph microsoft-graph-beta - 0.77.0-SNAPSHOT + 0.78.0-SNAPSHOT @@ -149,3 +149,4 @@ Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the [MI [Third-party notices](THIRD%20PARTY%20NOTICES) + diff --git a/gradle.properties b/gradle.properties index d43ce53605a..0efa9a08f6a 100644 --- a/gradle.properties +++ b/gradle.properties @@ -26,7 +26,7 @@ org.gradle.caching=true mavenGroupId = com.microsoft.graph mavenArtifactId = microsoft-graph-beta mavenMajorVersion = 0 -mavenMinorVersion = 77 +mavenMinorVersion = 78 mavenPatchVersion = 0 mavenArtifactSuffix = @@ -112,5 +112,6 @@ mavenCentralPublishingEnabled=false + 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 bb69be28f84..bcc6a03592b 100644 --- a/src/main/java/com/microsoft/graph/callrecords/models/PstnCallLogRow.java +++ b/src/main/java/com/microsoft/graph/callrecords/models/PstnCallLogRow.java @@ -274,7 +274,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The User Id. - * The unique identifier (GUID) of the user in Azure Active Directory. This and other user info will be null/empty for bot call types (ucap_in, ucap_out). + * The unique identifier (GUID) of the user in Azure Active Directory. This and other user info will be null/empty for bot call types (ucapin, ucapout). */ @SerializedName(value = "userId", alternate = {"UserId"}) @Expose diff --git a/src/main/java/com/microsoft/graph/devicemanagementnamespace/models/AlertImpact.java b/src/main/java/com/microsoft/graph/devicemanagementnamespace/models/AlertImpact.java index 14f74343ad6..d189cd2e20c 100644 --- a/src/main/java/com/microsoft/graph/devicemanagementnamespace/models/AlertImpact.java +++ b/src/main/java/com/microsoft/graph/devicemanagementnamespace/models/AlertImpact.java @@ -8,7 +8,9 @@ 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.devicemanagement.models.AggregationType; +import com.microsoft.graph.models.KeyValuePair; import com.google.gson.JsonObject; @@ -47,6 +49,15 @@ public final AdditionalDataManager additionalDataManager() { @Nullable public AggregationType aggregationType; + /** + * The Alert Impact Details. + * The detail information of the impact. For example, if the Frontline Cloud PCs near concurrency limit alert is triggered, the details contain the impacted Frontline license SKU name, such as Windows 365 Frontline 2 vCPU/8GB/128GB, and the corresponding impacted value. + */ + @SerializedName(value = "alertImpactDetails", alternate = {"AlertImpactDetails"}) + @Expose + @Nullable + public java.util.List alertImpactDetails; + /** * The Value. * The number value of the impact. For the aggregation types of count and affectedCloudPcCount, the value indicates the number of affected instances. For example, 6 affectedCloudPcCount means that 6 Cloud PCs are affected. For the aggregation types of percentage and affectedCloudPcPercentage, the value indicates the percent of affected instances. For example, 12 affectedCloudPcPercentage means that 12% of Cloud PCs are affected. diff --git a/src/main/java/com/microsoft/graph/devicemanagementnamespace/models/AlertRecord.java b/src/main/java/com/microsoft/graph/devicemanagementnamespace/models/AlertRecord.java index 65872a3c613..abfe123c9be 100644 --- a/src/main/java/com/microsoft/graph/devicemanagementnamespace/models/AlertRecord.java +++ b/src/main/java/com/microsoft/graph/devicemanagementnamespace/models/AlertRecord.java @@ -31,7 +31,7 @@ public class AlertRecord extends Entity implements IJsonBackedObject { /** * The Alert Impact. - * The impact of the alert event. Consists of a number followed by the aggregation type. For example, 6 affectedCloudPcCount means that 6 Cloud PCs are affected. 12 affectedCloudPcPercentage means 12% of Cloud PCs are affected. + * The impact of the alert event. Consists of a list of key-value pair and a number followed by the aggregation type. For example, 6 affectedCloudPcCount means that 6 Cloud PCs are affected. 12 affectedCloudPcPercentage means 12% of Cloud PCs are affected. The list of key-value pair indicates the details of the alert impact. */ @SerializedName(value = "alertImpact", alternate = {"AlertImpact"}) @Expose @@ -49,7 +49,7 @@ public class AlertRecord extends Entity implements IJsonBackedObject { /** * The Alert Rule Template. - * The rule template of the alert event. The possible values are: cloudPcProvisionScenario, cloudPcImageUploadScenario, cloudPcOnPremiseNetworkConnectionCheckScenario, unknownFutureValue. + * The rule template of the alert event. The possible values are: cloudPcProvisionScenario, cloudPcImageUploadScenario, cloudPcOnPremiseNetworkConnectionCheckScenario, unknownFutureValue, cloudPcInGracePeriodScenario. Note that you must use the Prefer: include-unknown-enum-members request header to get the following values from this evolvable enum: cloudPcInGracePeriodScenario. */ @SerializedName(value = "alertRuleTemplate", alternate = {"AlertRuleTemplate"}) @Expose diff --git a/src/main/java/com/microsoft/graph/devicemanagementnamespace/models/AlertRule.java b/src/main/java/com/microsoft/graph/devicemanagementnamespace/models/AlertRule.java index 81ca3b662b2..b022ee936fd 100644 --- a/src/main/java/com/microsoft/graph/devicemanagementnamespace/models/AlertRule.java +++ b/src/main/java/com/microsoft/graph/devicemanagementnamespace/models/AlertRule.java @@ -32,7 +32,7 @@ public class AlertRule extends Entity implements IJsonBackedObject { /** * The Alert Rule Template. - * The rule template of the alert event. The possible values are: cloudPcProvisionScenario, cloudPcImageUploadScenario, cloudPcOnPremiseNetworkConnectionCheckScenario, unknownFutureValue. + * The rule template of the alert event. The possible values are: cloudPcProvisionScenario, cloudPcImageUploadScenario, cloudPcOnPremiseNetworkConnectionCheckScenario, unknownFutureValue, cloudPcInGracePeriodScenario. Note that you must use the Prefer: include-unknown-enum-members request header to get the following values from this evolvable enum: cloudPcInGracePeriodScenario. */ @SerializedName(value = "alertRuleTemplate", alternate = {"AlertRuleTemplate"}) @Expose diff --git a/src/main/java/com/microsoft/graph/devicemanagementnamespace/models/AlertRuleTemplate.java b/src/main/java/com/microsoft/graph/devicemanagementnamespace/models/AlertRuleTemplate.java index 2e0e8ea714f..1ef671c619b 100644 --- a/src/main/java/com/microsoft/graph/devicemanagementnamespace/models/AlertRuleTemplate.java +++ b/src/main/java/com/microsoft/graph/devicemanagementnamespace/models/AlertRuleTemplate.java @@ -32,6 +32,10 @@ public enum AlertRuleTemplate */ CLOUD_PC_IN_GRACE_PERIOD_SCENARIO, /** + * cloud Pc Frontline Insufficient Licenses Scenario + */ + CLOUD_PC_FRONTLINE_INSUFFICIENT_LICENSES_SCENARIO, + /** * For AlertRuleTemplate values that were not expected from the service */ UNEXPECTED_VALUE diff --git a/src/main/java/com/microsoft/graph/devicemanagementnamespace/models/PortalNotification.java b/src/main/java/com/microsoft/graph/devicemanagementnamespace/models/PortalNotification.java index c7b9b86cd9e..7aab3cb8787 100644 --- a/src/main/java/com/microsoft/graph/devicemanagementnamespace/models/PortalNotification.java +++ b/src/main/java/com/microsoft/graph/devicemanagementnamespace/models/PortalNotification.java @@ -78,7 +78,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Alert Rule Template. - * The associated alert rule template. The possible values are: cloudPcProvisionScenario, cloudPcImageUploadScenario, cloudPcOnPremiseNetworkConnectionCheckScenario, unknownFutureValue. + * The associated alert rule template. The possible values are: cloudPcProvisionScenario, cloudPcImageUploadScenario, cloudPcOnPremiseNetworkConnectionCheckScenario, unknownFutureValue, cloudPcInGracePeriodScenario. Note that you must use the Prefer: include-unknown-enum-members request header to get the following values from this evolvable enum: cloudPcInGracePeriodScenario. */ @SerializedName(value = "alertRuleTemplate", alternate = {"AlertRuleTemplate"}) @Expose diff --git a/src/main/java/com/microsoft/graph/externalconnectors/models/ComplianceSettings.java b/src/main/java/com/microsoft/graph/externalconnectors/models/ComplianceSettings.java index 194a3e3ee58..2e423680ecb 100644 --- a/src/main/java/com/microsoft/graph/externalconnectors/models/ComplianceSettings.java +++ b/src/main/java/com/microsoft/graph/externalconnectors/models/ComplianceSettings.java @@ -41,7 +41,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The EDiscovery Result Templates. - * Enables the developer to define the appearance of the content and configure conditions that dictate when the template should be displayed. Maximum of two eDiscovery result templates per connection. + * */ @SerializedName(value = "eDiscoveryResultTemplates", alternate = {"EDiscoveryResultTemplates"}) @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 89f642a977d..9f68d5cf257 100644 --- a/src/main/java/com/microsoft/graph/externalconnectors/models/ExternalConnection.java +++ b/src/main/java/com/microsoft/graph/externalconnectors/models/ExternalConnection.java @@ -48,7 +48,7 @@ public class ExternalConnection extends Entity implements IJsonBackedObject { /** * The Compliance Settings. - * The settings required for the connection to participate in eDiscovery, such as the display templates for eDiscovery results. + * */ @SerializedName(value = "complianceSettings", alternate = {"ComplianceSettings"}) @Expose @@ -84,7 +84,7 @@ public class ExternalConnection extends Entity implements IJsonBackedObject { /** * The Enabled Content Experiences. - * The list of content experiences the connection will participate in. Possible values are search and compliance. + * The list of content experiences the connection will participate in. Possible values are search. */ @SerializedName(value = "enabledContentExperiences", alternate = {"EnabledContentExperiences"}) @Expose diff --git a/src/main/java/com/microsoft/graph/info/Constants.java b/src/main/java/com/microsoft/graph/info/Constants.java index ee8ecd06b1f..1105d766ab9 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 = "0.77.0"; + public static final String VERSION_NAME = "0.78.0"; } @@ -87,5 +87,6 @@ private Constants() { + diff --git a/src/main/java/com/microsoft/graph/models/AccessPackageResourceAttribute.java b/src/main/java/com/microsoft/graph/models/AccessPackageResourceAttribute.java index bf7a6bc3166..c46310969a0 100644 --- a/src/main/java/com/microsoft/graph/models/AccessPackageResourceAttribute.java +++ b/src/main/java/com/microsoft/graph/models/AccessPackageResourceAttribute.java @@ -50,7 +50,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Attribute Name. - * The name of the attribute in the end system. If the destination is accessPackageUserDirectoryAttributeStore, then a user property such as jobTitle or a directory schema extension for the user object type, such as extension_2b676109c7c74ae2b41549205f1947ed_personalTitle. + * The name of the attribute in the end system. If the destination is accessPackageUserDirectoryAttributeStore, then a user property such as jobTitle or a directory schema extension for the user object type, such as extension2b676109c7c74ae2b41549205f1947edpersonalTitle. */ @SerializedName(value = "attributeName", alternate = {"AttributeName"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/AgreementFileData.java b/src/main/java/com/microsoft/graph/models/AgreementFileData.java index c6ca3af373e..4af2b11439f 100644 --- a/src/main/java/com/microsoft/graph/models/AgreementFileData.java +++ b/src/main/java/com/microsoft/graph/models/AgreementFileData.java @@ -39,7 +39,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Data. - * Data that represents the terms of use PDF document. Read-only. Note: You can use the .NET Convert.ToBase64String method to convert your file to binary data for uploading using the Create agreements API. A sample syntax using this method in PowerShell is [convert]::ToBase64String((Get-Content -path 'your_file_path' -Encoding byte)). + * Data that represents the terms of use PDF document. Read-only. Note: You can use the .NET Convert.ToBase64String method to convert your file to binary data for uploading using the Create agreements API. A sample syntax using this method in PowerShell is [convert]::ToBase64String((Get-Content -path 'yourfilepath' -Encoding byte)). */ @SerializedName(value = "data", alternate = {"Data"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/AndroidDeviceOwnerDelegatedAppScopeType.java b/src/main/java/com/microsoft/graph/models/AndroidDeviceOwnerDelegatedAppScopeType.java new file mode 100644 index 00000000000..d87fcc873f3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/AndroidDeviceOwnerDelegatedAppScopeType.java @@ -0,0 +1,38 @@ +// 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.models; + + +/** + * The Enum Android Device Owner Delegated App Scope Type. +*/ +public enum AndroidDeviceOwnerDelegatedAppScopeType +{ + /** + * unspecified + */ + UNSPECIFIED, + /** + * certificate Install + */ + CERTIFICATE_INSTALL, + /** + * capture Network Activity Log + */ + CAPTURE_NETWORK_ACTIVITY_LOG, + /** + * capture Security Log + */ + CAPTURE_SECURITY_LOG, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For AndroidDeviceOwnerDelegatedAppScopeType values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/AndroidDeviceOwnerDelegatedScopeAppSetting.java b/src/main/java/com/microsoft/graph/models/AndroidDeviceOwnerDelegatedScopeAppSetting.java new file mode 100644 index 00000000000..4366669afa2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/AndroidDeviceOwnerDelegatedScopeAppSetting.java @@ -0,0 +1,71 @@ +// 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.AppListItem; +import com.microsoft.graph.models.AndroidDeviceOwnerDelegatedAppScopeType; + + +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 Android Device Owner Delegated Scope App Setting. + */ +public class AndroidDeviceOwnerDelegatedScopeAppSetting 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 App Detail. + * Information about the app like Name, AppStoreUrl, Publisher and AppId + */ + @SerializedName(value = "appDetail", alternate = {"AppDetail"}) + @Expose + @Nullable + public AppListItem appDetail; + + /** + * The App Scopes. + * List of scopes an app has been assigned. + */ + @SerializedName(value = "appScopes", alternate = {"AppScopes"}) + @Expose + @Nullable + public java.util.List appScopes; + + + /** + * 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/AndroidDeviceOwnerGeneralDeviceConfiguration.java b/src/main/java/com/microsoft/graph/models/AndroidDeviceOwnerGeneralDeviceConfiguration.java index 76b81f7f399..dbdef389396 100644 --- a/src/main/java/com/microsoft/graph/models/AndroidDeviceOwnerGeneralDeviceConfiguration.java +++ b/src/main/java/com/microsoft/graph/models/AndroidDeviceOwnerGeneralDeviceConfiguration.java @@ -9,6 +9,7 @@ import com.microsoft.graph.serializer.AdditionalDataManager; import java.util.EnumSet; import com.microsoft.graph.http.BaseCollectionPage; +import com.microsoft.graph.models.AndroidDeviceOwnerDelegatedScopeAppSetting; import com.microsoft.graph.models.AndroidDeviceOwnerAppAutoUpdatePolicyType; import com.microsoft.graph.models.AndroidDeviceOwnerDefaultAppPermissionPolicyType; import com.microsoft.graph.models.AppListItem; @@ -62,6 +63,15 @@ public class AndroidDeviceOwnerGeneralDeviceConfiguration extends DeviceConfigur @Nullable public Boolean accountsBlockModification; + /** + * The Android Device Owner Delegated Scope App Settings. + * Specifies the list of managed apps with app details and its associated delegated scope(s). This collection can contain a maximum of 500 elements. + */ + @SerializedName(value = "androidDeviceOwnerDelegatedScopeAppSettings", alternate = {"AndroidDeviceOwnerDelegatedScopeAppSettings"}) + @Expose + @Nullable + public java.util.List androidDeviceOwnerDelegatedScopeAppSettings; + /** * The Apps Allow Install From Unknown Sources. * Indicates whether or not the user is allowed to enable to unknown sources setting. diff --git a/src/main/java/com/microsoft/graph/models/AndroidDeviceOwnerVpnConfiguration.java b/src/main/java/com/microsoft/graph/models/AndroidDeviceOwnerVpnConfiguration.java index aef9098549f..2c197b6fe18 100644 --- a/src/main/java/com/microsoft/graph/models/AndroidDeviceOwnerVpnConfiguration.java +++ b/src/main/java/com/microsoft/graph/models/AndroidDeviceOwnerVpnConfiguration.java @@ -87,6 +87,15 @@ public class AndroidDeviceOwnerVpnConfiguration extends VpnConfiguration impleme @Nullable public String microsoftTunnelSiteId; + /** + * The Proxy Exclusion List. + * List of hosts to exclude using the proxy on connections for. These hosts can use wildcards such as *.example.com. + */ + @SerializedName(value = "proxyExclusionList", alternate = {"ProxyExclusionList"}) + @Expose + @Nullable + public java.util.List proxyExclusionList; + /** * The Proxy Server. * Proxy server. diff --git a/src/main/java/com/microsoft/graph/models/AndroidForWorkGeneralDeviceConfiguration.java b/src/main/java/com/microsoft/graph/models/AndroidForWorkGeneralDeviceConfiguration.java index b49bd8a8f6c..68f88198d26 100644 --- a/src/main/java/com/microsoft/graph/models/AndroidForWorkGeneralDeviceConfiguration.java +++ b/src/main/java/com/microsoft/graph/models/AndroidForWorkGeneralDeviceConfiguration.java @@ -40,6 +40,15 @@ public class AndroidForWorkGeneralDeviceConfiguration extends DeviceConfiguratio @Nullable public java.util.List allowedGoogleAccountDomains; + /** + * The Block Unified Password For Work Profile. + * Prevent using unified password for unlocking device and work profile. + */ + @SerializedName(value = "blockUnifiedPasswordForWorkProfile", alternate = {"BlockUnifiedPasswordForWorkProfile"}) + @Expose + @Nullable + public Boolean blockUnifiedPasswordForWorkProfile; + /** * The Password Block Face Unlock. * Indicates whether or not to block face unlock. diff --git a/src/main/java/com/microsoft/graph/models/AndroidLobApp.java b/src/main/java/com/microsoft/graph/models/AndroidLobApp.java index 5b5e3cfc489..25560e5d720 100644 --- a/src/main/java/com/microsoft/graph/models/AndroidLobApp.java +++ b/src/main/java/com/microsoft/graph/models/AndroidLobApp.java @@ -9,6 +9,7 @@ import com.microsoft.graph.serializer.AdditionalDataManager; import java.util.EnumSet; import com.microsoft.graph.models.AndroidMinimumOperatingSystem; +import com.microsoft.graph.models.AndroidTargetedPlatforms; import com.microsoft.graph.models.MobileLobApp; @@ -62,6 +63,15 @@ public class AndroidLobApp extends MobileLobApp implements IJsonBackedObject { @Nullable public String packageId; + /** + * The Targeted Platforms. + * The platforms to which the application can be targeted. If not specified, will defauilt to Android Device Administrator. + */ + @SerializedName(value = "targetedPlatforms", alternate = {"TargetedPlatforms"}) + @Expose + @Nullable + public EnumSet targetedPlatforms; + /** * The Version Code. * The version code of Android Line of Business (LoB) app. diff --git a/src/main/java/com/microsoft/graph/models/AndroidTargetedPlatforms.java b/src/main/java/com/microsoft/graph/models/AndroidTargetedPlatforms.java new file mode 100644 index 00000000000..56355b71c8a --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/AndroidTargetedPlatforms.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.models; + + +/** + * The Enum Android Targeted Platforms. +*/ +public enum AndroidTargetedPlatforms +{ + /** + * android Device Administrator + */ + ANDROID_DEVICE_ADMINISTRATOR, + /** + * android Open Source Project + */ + ANDROID_OPEN_SOURCE_PROJECT, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For AndroidTargetedPlatforms values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/AndroidWorkProfileGeneralDeviceConfiguration.java b/src/main/java/com/microsoft/graph/models/AndroidWorkProfileGeneralDeviceConfiguration.java index ffddb856030..f815d7028c7 100644 --- a/src/main/java/com/microsoft/graph/models/AndroidWorkProfileGeneralDeviceConfiguration.java +++ b/src/main/java/com/microsoft/graph/models/AndroidWorkProfileGeneralDeviceConfiguration.java @@ -40,6 +40,15 @@ public class AndroidWorkProfileGeneralDeviceConfiguration extends DeviceConfigur @Nullable public java.util.List allowedGoogleAccountDomains; + /** + * The Block Unified Password For Work Profile. + * Prevent using unified password for unlocking device and work profile. + */ + @SerializedName(value = "blockUnifiedPasswordForWorkProfile", alternate = {"BlockUnifiedPasswordForWorkProfile"}) + @Expose + @Nullable + public Boolean blockUnifiedPasswordForWorkProfile; + /** * The Password Block Face Unlock. * Indicates whether or not to block face unlock. diff --git a/src/main/java/com/microsoft/graph/models/AndroidWorkProfileVpnConfiguration.java b/src/main/java/com/microsoft/graph/models/AndroidWorkProfileVpnConfiguration.java index a93ce9ff178..f0669b8ce95 100644 --- a/src/main/java/com/microsoft/graph/models/AndroidWorkProfileVpnConfiguration.java +++ b/src/main/java/com/microsoft/graph/models/AndroidWorkProfileVpnConfiguration.java @@ -115,6 +115,15 @@ public class AndroidWorkProfileVpnConfiguration extends DeviceConfiguration impl @Nullable public String microsoftTunnelSiteId; + /** + * The Proxy Exclusion List. + * List of hosts to exclude using the proxy on connections for. These hosts can use wildcards such as *.example.com. + */ + @SerializedName(value = "proxyExclusionList", alternate = {"ProxyExclusionList"}) + @Expose + @Nullable + public java.util.List proxyExclusionList; + /** * The Proxy Server. * Proxy server. diff --git a/src/main/java/com/microsoft/graph/models/AssignmentReviewSettings.java b/src/main/java/com/microsoft/graph/models/AssignmentReviewSettings.java index 0b359062761..24a73cd0778 100644 --- a/src/main/java/com/microsoft/graph/models/AssignmentReviewSettings.java +++ b/src/main/java/com/microsoft/graph/models/AssignmentReviewSettings.java @@ -105,7 +105,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Reviewer Type. - * Who should be asked to do the review, either Self or Reviewers. + * Who should be asked to do the review, either Self, Reviewers or Manager. */ @SerializedName(value = "reviewerType", alternate = {"ReviewerType"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/BaseItemVersion.java b/src/main/java/com/microsoft/graph/models/BaseItemVersion.java index 8a1660a8bb3..ab65211ae28 100644 --- a/src/main/java/com/microsoft/graph/models/BaseItemVersion.java +++ b/src/main/java/com/microsoft/graph/models/BaseItemVersion.java @@ -38,7 +38,7 @@ public class BaseItemVersion extends Entity implements IJsonBackedObject { /** * The Last Modified Date Time. - * Date and time the version was last modified. Read-only. + * Date and time when the version was last modified. Read-only. */ @SerializedName(value = "lastModifiedDateTime", alternate = {"LastModifiedDateTime"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/CallRecording.java b/src/main/java/com/microsoft/graph/models/CallRecording.java index 0a3f38f3322..6bf4f634508 100644 --- a/src/main/java/com/microsoft/graph/models/CallRecording.java +++ b/src/main/java/com/microsoft/graph/models/CallRecording.java @@ -27,7 +27,7 @@ public class CallRecording extends Entity implements IJsonBackedObject { /** * The Created Date Time. - * + * Date and time at which the recording was created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. */ @SerializedName(value = "createdDateTime", alternate = {"CreatedDateTime"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/CloudPcProvisioningPolicy.java b/src/main/java/com/microsoft/graph/models/CloudPcProvisioningPolicy.java index de46910efc6..93dc7dd5d31 100644 --- a/src/main/java/com/microsoft/graph/models/CloudPcProvisioningPolicy.java +++ b/src/main/java/com/microsoft/graph/models/CloudPcProvisioningPolicy.java @@ -129,7 +129,7 @@ public class CloudPcProvisioningPolicy extends Entity implements IJsonBackedObje /** * The Image Id. - * The ID of the OS image you want to provision on Cloud PCs. The format for a gallery type image is: {publisher_offer_sku}. Supported values for each of the parameters are as follows:publisher: Microsoftwindowsdesktop. offer: windows-ent-cpc. sku: 21h1-ent-cpc-m365, 21h1-ent-cpc-os, 20h2-ent-cpc-m365, 20h2-ent-cpc-os, 20h1-ent-cpc-m365, 20h1-ent-cpc-os, 19h2-ent-cpc-m365 and 19h2-ent-cpc-os. + * The ID of the OS image you want to provision on Cloud PCs. The format for a gallery type image is: {publisheroffersku}. Supported values for each of the parameters are as follows:publisher: Microsoftwindowsdesktop. offer: windows-ent-cpc. sku: 21h1-ent-cpc-m365, 21h1-ent-cpc-os, 20h2-ent-cpc-m365, 20h2-ent-cpc-os, 20h1-ent-cpc-m365, 20h1-ent-cpc-os, 19h2-ent-cpc-m365 and 19h2-ent-cpc-os. */ @SerializedName(value = "imageId", alternate = {"ImageId"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/CloudPcUserSetting.java b/src/main/java/com/microsoft/graph/models/CloudPcUserSetting.java index c50a96289b4..7393c7c20b8 100644 --- a/src/main/java/com/microsoft/graph/models/CloudPcUserSetting.java +++ b/src/main/java/com/microsoft/graph/models/CloudPcUserSetting.java @@ -66,7 +66,7 @@ public class CloudPcUserSetting extends Entity implements IJsonBackedObject { /** * The Reset Enabled. - * + * Indicates whether an end user is allowed to reset their Cloud PC. When true, the user is allowed to reset their Cloud PC. When false, end-user initiated reset is not allowed. The default value is false. */ @SerializedName(value = "resetEnabled", alternate = {"ResetEnabled"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/CloudRealtimeCommunicationInfo.java b/src/main/java/com/microsoft/graph/models/CloudRealtimeCommunicationInfo.java new file mode 100644 index 00000000000..d6de15b42c6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/CloudRealtimeCommunicationInfo.java @@ -0,0 +1,59 @@ +// 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 Cloud Realtime Communication Info. + */ +public class CloudRealtimeCommunicationInfo 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 Is Sip Enabled. + * + */ + @SerializedName(value = "isSipEnabled", alternate = {"IsSipEnabled"}) + @Expose + @Nullable + public Boolean isSipEnabled; + + + /** + * 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/CompanySubscription.java b/src/main/java/com/microsoft/graph/models/CompanySubscription.java index ba484a14dd8..91c4cc41d67 100644 --- a/src/main/java/com/microsoft/graph/models/CompanySubscription.java +++ b/src/main/java/com/microsoft/graph/models/CompanySubscription.java @@ -65,8 +65,10 @@ public class CompanySubscription extends Entity implements IJsonBackedObject { /** * The Ocp Subscription Id. - * - */ + * + * @deprecated The property ocpSubscriptionId is deprecated and will be removed on August 31, 2023. Please use commerceSubscriptionId instead. + */ + @Deprecated @SerializedName(value = "ocpSubscriptionId", alternate = {"OcpSubscriptionId"}) @Expose @Nullable diff --git a/src/main/java/com/microsoft/graph/models/ConditionalAccessPlatforms.java b/src/main/java/com/microsoft/graph/models/ConditionalAccessPlatforms.java index 3cabee4e059..002e137446f 100644 --- a/src/main/java/com/microsoft/graph/models/ConditionalAccessPlatforms.java +++ b/src/main/java/com/microsoft/graph/models/ConditionalAccessPlatforms.java @@ -50,7 +50,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Include Platforms. - * Possible values are: android, iOS, windows, windowsPhone, macOS, all, unknownFutureValue,linux``. + * Possible values are: android, iOS, windows, windowsPhone, macOS, all, unknownFutureValue,linux. */ @SerializedName(value = "includePlatforms", alternate = {"IncludePlatforms"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/ContentInfo.java b/src/main/java/com/microsoft/graph/models/ContentInfo.java index ada43225688..b8de68a7b71 100644 --- a/src/main/java/com/microsoft/graph/models/ContentInfo.java +++ b/src/main/java/com/microsoft/graph/models/ContentInfo.java @@ -61,7 +61,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Metadata. - * Existing Microsoft Purview Information Protection metadata is passed as key/value pairs, where the key is the MSIP_Label_GUID_PropName. + * Existing Microsoft Purview Information Protection metadata is passed as key/value pairs, where the key is the MSIPLabelGUID_PropName. */ @SerializedName(value = "metadata", alternate = {"Metadata"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/CrossTenantAccessPolicyConfigurationPartner.java b/src/main/java/com/microsoft/graph/models/CrossTenantAccessPolicyConfigurationPartner.java index fe28e256608..a40460b18d2 100644 --- a/src/main/java/com/microsoft/graph/models/CrossTenantAccessPolicyConfigurationPartner.java +++ b/src/main/java/com/microsoft/graph/models/CrossTenantAccessPolicyConfigurationPartner.java @@ -96,6 +96,15 @@ public final AdditionalDataManager additionalDataManager() { @Nullable public CrossTenantAccessPolicyInboundTrust inboundTrust; + /** + * The Is In Multi Tenant Organization. + * + */ + @SerializedName(value = "isInMultiTenantOrganization", alternate = {"IsInMultiTenantOrganization"}) + @Expose + @Nullable + public Boolean isInMultiTenantOrganization; + /** * The Is Service Provider. * Identifies whether the partner-specific configuration is a Cloud Service Provider for your organization. diff --git a/src/main/java/com/microsoft/graph/models/CryptographySuite.java b/src/main/java/com/microsoft/graph/models/CryptographySuite.java index 0ed7c1809ec..1900069e0df 100644 --- a/src/main/java/com/microsoft/graph/models/CryptographySuite.java +++ b/src/main/java/com/microsoft/graph/models/CryptographySuite.java @@ -44,7 +44,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Authentication Transform Constants. - * Authentication Transform Constants. Possible values are: md5_96, sha1_96, sha_256_128, aes128Gcm, aes192Gcm, aes256Gcm. + * Authentication Transform Constants. Possible values are: md596, sha196, sha256128, aes128Gcm, aes192Gcm, aes256Gcm. */ @SerializedName(value = "authenticationTransformConstants", alternate = {"AuthenticationTransformConstants"}) @Expose @@ -80,7 +80,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Integrity Check Method. - * Integrity Check Method. Possible values are: sha2_256, sha1_96, sha1_160, sha2_384, sha2_512, md5. + * Integrity Check Method. Possible values are: sha2256, sha196, sha1160, sha2384, sha2_512, md5. */ @SerializedName(value = "integrityCheckMethod", alternate = {"IntegrityCheckMethod"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/CustomExtensionClientConfiguration.java b/src/main/java/com/microsoft/graph/models/CustomExtensionClientConfiguration.java index 35926196f66..d47200aae79 100644 --- a/src/main/java/com/microsoft/graph/models/CustomExtensionClientConfiguration.java +++ b/src/main/java/com/microsoft/graph/models/CustomExtensionClientConfiguration.java @@ -37,9 +37,18 @@ public final AdditionalDataManager additionalDataManager() { return additionalDataManager; } + /** + * The Maximum Retries. + * The max number of retries that Azure AD will make to the external API. Values of 0 or 1 are supported. If null, the default for the service will apply. + */ + @SerializedName(value = "maximumRetries", alternate = {"MaximumRetries"}) + @Expose + @Nullable + public Integer maximumRetries; + /** * The Timeout In Milliseconds. - * The max duration in milliseconds that Azure AD will wait 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 Azure AD will wait for a response from the external app before it shuts down the connection. The valid range is between 200 and 2000 milliseconds. If null, the default for the service will apply. */ @SerializedName(value = "timeoutInMilliseconds", alternate = {"TimeoutInMilliseconds"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/CustomExtensionOverwriteConfiguration.java b/src/main/java/com/microsoft/graph/models/CustomExtensionOverwriteConfiguration.java new file mode 100644 index 00000000000..a35117a718f --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/CustomExtensionOverwriteConfiguration.java @@ -0,0 +1,60 @@ +// 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.CustomExtensionClientConfiguration; + + +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 Custom Extension Overwrite Configuration. + */ +public class CustomExtensionOverwriteConfiguration 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 Client Configuration. + * + */ + @SerializedName(value = "clientConfiguration", alternate = {"ClientConfiguration"}) + @Expose + @Nullable + public CustomExtensionClientConfiguration clientConfiguration; + + + /** + * 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/DefaultUserRolePermissions.java b/src/main/java/com/microsoft/graph/models/DefaultUserRolePermissions.java index f26dfdcbb86..52e3ff69045 100644 --- a/src/main/java/com/microsoft/graph/models/DefaultUserRolePermissions.java +++ b/src/main/java/com/microsoft/graph/models/DefaultUserRolePermissions.java @@ -75,7 +75,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Allowed To Read Other Users. - * Indicates whether the default user role can read other users. + * Indicates whether the default user role can read other users. DO NOT SET THIS VALUE TO false. */ @SerializedName(value = "allowedToReadOtherUsers", alternate = {"AllowedToReadOtherUsers"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/DeviceGeoLocation.java b/src/main/java/com/microsoft/graph/models/DeviceGeoLocation.java index 067b955f460..f6d2de3d342 100644 --- a/src/main/java/com/microsoft/graph/models/DeviceGeoLocation.java +++ b/src/main/java/com/microsoft/graph/models/DeviceGeoLocation.java @@ -73,15 +73,6 @@ public final AdditionalDataManager additionalDataManager() { @Nullable public java.time.OffsetDateTime lastCollectedDateTime; - /** - * The Last Collected Date Time Utc. - * Time at which location was recorded, relative to UTC - */ - @SerializedName(value = "lastCollectedDateTimeUtc", alternate = {"LastCollectedDateTimeUtc"}) - @Expose - @Nullable - public java.time.OffsetDateTime lastCollectedDateTimeUtc; - /** * The Latitude. * Latitude coordinate of the device's location diff --git a/src/main/java/com/microsoft/graph/models/DeviceManagement.java b/src/main/java/com/microsoft/graph/models/DeviceManagement.java index dd251d03298..b3037a0e9a1 100644 --- a/src/main/java/com/microsoft/graph/models/DeviceManagement.java +++ b/src/main/java/com/microsoft/graph/models/DeviceManagement.java @@ -306,7 +306,7 @@ public class DeviceManagement extends Entity implements IJsonBackedObject { /** * The Subscriptions. - * Tenant's Subscription. Possible values are: none, intune, office365, intunePremium, intune_EDU, intune_SMB. + * Tenant's Subscription. Possible values are: none, intune, office365, intunePremium, intuneEDU, intuneSMB. */ @SerializedName(value = "subscriptions", alternate = {"Subscriptions"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/DeviceManagementConfigurationReferredSettingInformation.java b/src/main/java/com/microsoft/graph/models/DeviceManagementConfigurationReferredSettingInformation.java index 761f2f7c726..fa54edf786f 100644 --- a/src/main/java/com/microsoft/graph/models/DeviceManagementConfigurationReferredSettingInformation.java +++ b/src/main/java/com/microsoft/graph/models/DeviceManagementConfigurationReferredSettingInformation.java @@ -39,7 +39,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Setting Definition Id. - * Setting definition id that is being referred to a setting. Applicable for reusable setting + * Setting definition id that is being referred to a setting. Applicable for reusable setting. */ @SerializedName(value = "settingDefinitionId", alternate = {"SettingDefinitionId"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/DeviceManagementConfigurationSimpleSettingCollectionDefinition.java b/src/main/java/com/microsoft/graph/models/DeviceManagementConfigurationSimpleSettingCollectionDefinition.java index e569c859191..24483ee9855 100644 --- a/src/main/java/com/microsoft/graph/models/DeviceManagementConfigurationSimpleSettingCollectionDefinition.java +++ b/src/main/java/com/microsoft/graph/models/DeviceManagementConfigurationSimpleSettingCollectionDefinition.java @@ -27,7 +27,7 @@ public class DeviceManagementConfigurationSimpleSettingCollectionDefinition exte /** * The Maximum Count. - * Maximum number of simple settings in the collection. Valid values 1 to 100 + * Maximum number of simple settings in the collection */ @SerializedName(value = "maximumCount", alternate = {"MaximumCount"}) @Expose @@ -36,7 +36,7 @@ public class DeviceManagementConfigurationSimpleSettingCollectionDefinition exte /** * The Minimum Count. - * Minimum number of simple settings in the collection. Valid values 1 to 100 + * Minimum number of simple settings in the collection */ @SerializedName(value = "minimumCount", alternate = {"MinimumCount"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/DeviceManagementConfigurationStringSettingValueDefinition.java b/src/main/java/com/microsoft/graph/models/DeviceManagementConfigurationStringSettingValueDefinition.java index e72e9d5a8ee..e70ca7958e2 100644 --- a/src/main/java/com/microsoft/graph/models/DeviceManagementConfigurationStringSettingValueDefinition.java +++ b/src/main/java/com/microsoft/graph/models/DeviceManagementConfigurationStringSettingValueDefinition.java @@ -38,7 +38,7 @@ public class DeviceManagementConfigurationStringSettingValueDefinition extends D /** * The Format. - * Pre-defined format of the string. Possible values are: none, email, guid, ip, base64, url, version, xml, date, time, binary, regEx, json, dateTime, surfaceHub, bashScript, unknownFutureValue. + * Pre-defined format of the string. Possible values are: none, email, guid, ip, base64, url, version, xml, date, time, binary, regEx, json, dateTime, surfaceHub. */ @SerializedName(value = "format", alternate = {"Format"}) @Expose @@ -65,7 +65,7 @@ public class DeviceManagementConfigurationStringSettingValueDefinition extends D /** * The Maximum Length. - * Maximum length of string. Valid values 0 to 87516 + * Maximum length of string */ @SerializedName(value = "maximumLength", alternate = {"MaximumLength"}) @Expose @@ -74,7 +74,7 @@ public class DeviceManagementConfigurationStringSettingValueDefinition extends D /** * The Minimum Length. - * Minimum length of string. Valid values 0 to 87516 + * Minimum length of string */ @SerializedName(value = "minimumLength", alternate = {"MinimumLength"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/DeviceManagementConfigurationTemplateFamily.java b/src/main/java/com/microsoft/graph/models/DeviceManagementConfigurationTemplateFamily.java index ee19aa97699..eca2c1f4c67 100644 --- a/src/main/java/com/microsoft/graph/models/DeviceManagementConfigurationTemplateFamily.java +++ b/src/main/java/com/microsoft/graph/models/DeviceManagementConfigurationTemplateFamily.java @@ -68,6 +68,10 @@ public enum DeviceManagementConfigurationTemplateFamily */ DEVICE_CONFIGURATION_SCRIPTS, /** + * device Configuration Policies + */ + DEVICE_CONFIGURATION_POLICIES, + /** * For DeviceManagementConfigurationTemplateFamily values that were not expected from the service */ UNEXPECTED_VALUE diff --git a/src/main/java/com/microsoft/graph/models/DeviceManagementReportsGetAutopilotDeploymentStatusParameterSet.java b/src/main/java/com/microsoft/graph/models/DeviceManagementReportsGetAutopilotDeploymentDeviceInformationParameterSet.java similarity index 77% rename from src/main/java/com/microsoft/graph/models/DeviceManagementReportsGetAutopilotDeploymentStatusParameterSet.java rename to src/main/java/com/microsoft/graph/models/DeviceManagementReportsGetAutopilotDeploymentDeviceInformationParameterSet.java index 0d9a47e5be9..27de8ec0712 100644 --- a/src/main/java/com/microsoft/graph/models/DeviceManagementReportsGetAutopilotDeploymentStatusParameterSet.java +++ b/src/main/java/com/microsoft/graph/models/DeviceManagementReportsGetAutopilotDeploymentDeviceInformationParameterSet.java @@ -17,9 +17,9 @@ // **NOTE** This file was generated by a tool and any changes will be overwritten. /** - * The class for the Device Management Reports Get Autopilot Deployment Status Parameter Set. + * The class for the Device Management Reports Get Autopilot Deployment Device Information Parameter Set. */ -public class DeviceManagementReportsGetAutopilotDeploymentStatusParameterSet { +public class DeviceManagementReportsGetAutopilotDeploymentDeviceInformationParameterSet { /** * The name. * @@ -103,14 +103,14 @@ public class DeviceManagementReportsGetAutopilotDeploymentStatusParameterSet { /** - * Instiaciates a new DeviceManagementReportsGetAutopilotDeploymentStatusParameterSet + * Instiaciates a new DeviceManagementReportsGetAutopilotDeploymentDeviceInformationParameterSet */ - public DeviceManagementReportsGetAutopilotDeploymentStatusParameterSet() {} + public DeviceManagementReportsGetAutopilotDeploymentDeviceInformationParameterSet() {} /** - * Instiaciates a new DeviceManagementReportsGetAutopilotDeploymentStatusParameterSet + * Instiaciates a new DeviceManagementReportsGetAutopilotDeploymentDeviceInformationParameterSet * @param builder builder bearing the parameters to initialize from */ - protected DeviceManagementReportsGetAutopilotDeploymentStatusParameterSet(@Nonnull final DeviceManagementReportsGetAutopilotDeploymentStatusParameterSetBuilder builder) { + protected DeviceManagementReportsGetAutopilotDeploymentDeviceInformationParameterSet(@Nonnull final DeviceManagementReportsGetAutopilotDeploymentDeviceInformationParameterSetBuilder builder) { this.name = builder.name; this.select = builder.select; this.search = builder.search; @@ -126,13 +126,13 @@ protected DeviceManagementReportsGetAutopilotDeploymentStatusParameterSet(@Nonnu * @return a new builder */ @Nonnull - public static DeviceManagementReportsGetAutopilotDeploymentStatusParameterSetBuilder newBuilder() { - return new DeviceManagementReportsGetAutopilotDeploymentStatusParameterSetBuilder(); + public static DeviceManagementReportsGetAutopilotDeploymentDeviceInformationParameterSetBuilder newBuilder() { + return new DeviceManagementReportsGetAutopilotDeploymentDeviceInformationParameterSetBuilder(); } /** - * Fluent builder for the DeviceManagementReportsGetAutopilotDeploymentStatusParameterSet + * Fluent builder for the DeviceManagementReportsGetAutopilotDeploymentDeviceInformationParameterSet */ - public static final class DeviceManagementReportsGetAutopilotDeploymentStatusParameterSetBuilder { + public static final class DeviceManagementReportsGetAutopilotDeploymentDeviceInformationParameterSetBuilder { /** * The name parameter value */ @@ -144,7 +144,7 @@ public static final class DeviceManagementReportsGetAutopilotDeploymentStatusPar * @return the current builder object */ @Nonnull - public DeviceManagementReportsGetAutopilotDeploymentStatusParameterSetBuilder withName(@Nullable final String val) { + public DeviceManagementReportsGetAutopilotDeploymentDeviceInformationParameterSetBuilder withName(@Nullable final String val) { this.name = val; return this; } @@ -159,7 +159,7 @@ public DeviceManagementReportsGetAutopilotDeploymentStatusParameterSetBuilder wi * @return the current builder object */ @Nonnull - public DeviceManagementReportsGetAutopilotDeploymentStatusParameterSetBuilder withSelect(@Nullable final java.util.List val) { + public DeviceManagementReportsGetAutopilotDeploymentDeviceInformationParameterSetBuilder withSelect(@Nullable final java.util.List val) { this.select = val; return this; } @@ -174,7 +174,7 @@ public DeviceManagementReportsGetAutopilotDeploymentStatusParameterSetBuilder wi * @return the current builder object */ @Nonnull - public DeviceManagementReportsGetAutopilotDeploymentStatusParameterSetBuilder withSearch(@Nullable final String val) { + public DeviceManagementReportsGetAutopilotDeploymentDeviceInformationParameterSetBuilder withSearch(@Nullable final String val) { this.search = val; return this; } @@ -189,7 +189,7 @@ public DeviceManagementReportsGetAutopilotDeploymentStatusParameterSetBuilder wi * @return the current builder object */ @Nonnull - public DeviceManagementReportsGetAutopilotDeploymentStatusParameterSetBuilder withGroupBy(@Nullable final java.util.List val) { + public DeviceManagementReportsGetAutopilotDeploymentDeviceInformationParameterSetBuilder withGroupBy(@Nullable final java.util.List val) { this.groupBy = val; return this; } @@ -204,7 +204,7 @@ public DeviceManagementReportsGetAutopilotDeploymentStatusParameterSetBuilder wi * @return the current builder object */ @Nonnull - public DeviceManagementReportsGetAutopilotDeploymentStatusParameterSetBuilder withOrderBy(@Nullable final java.util.List val) { + public DeviceManagementReportsGetAutopilotDeploymentDeviceInformationParameterSetBuilder withOrderBy(@Nullable final java.util.List val) { this.orderBy = val; return this; } @@ -219,7 +219,7 @@ public DeviceManagementReportsGetAutopilotDeploymentStatusParameterSetBuilder wi * @return the current builder object */ @Nonnull - public DeviceManagementReportsGetAutopilotDeploymentStatusParameterSetBuilder withSkip(@Nullable final Integer val) { + public DeviceManagementReportsGetAutopilotDeploymentDeviceInformationParameterSetBuilder withSkip(@Nullable final Integer val) { this.skip = val; return this; } @@ -234,7 +234,7 @@ public DeviceManagementReportsGetAutopilotDeploymentStatusParameterSetBuilder wi * @return the current builder object */ @Nonnull - public DeviceManagementReportsGetAutopilotDeploymentStatusParameterSetBuilder withTop(@Nullable final Integer val) { + public DeviceManagementReportsGetAutopilotDeploymentDeviceInformationParameterSetBuilder withTop(@Nullable final Integer val) { this.top = val; return this; } @@ -249,7 +249,7 @@ public DeviceManagementReportsGetAutopilotDeploymentStatusParameterSetBuilder wi * @return the current builder object */ @Nonnull - public DeviceManagementReportsGetAutopilotDeploymentStatusParameterSetBuilder withSessionId(@Nullable final String val) { + public DeviceManagementReportsGetAutopilotDeploymentDeviceInformationParameterSetBuilder withSessionId(@Nullable final String val) { this.sessionId = val; return this; } @@ -264,22 +264,22 @@ public DeviceManagementReportsGetAutopilotDeploymentStatusParameterSetBuilder wi * @return the current builder object */ @Nonnull - public DeviceManagementReportsGetAutopilotDeploymentStatusParameterSetBuilder withFilter(@Nullable final String val) { + public DeviceManagementReportsGetAutopilotDeploymentDeviceInformationParameterSetBuilder withFilter(@Nullable final String val) { this.filter = val; return this; } /** - * Instanciates a new DeviceManagementReportsGetAutopilotDeploymentStatusParameterSetBuilder + * Instanciates a new DeviceManagementReportsGetAutopilotDeploymentDeviceInformationParameterSetBuilder */ @Nullable - protected DeviceManagementReportsGetAutopilotDeploymentStatusParameterSetBuilder(){} + protected DeviceManagementReportsGetAutopilotDeploymentDeviceInformationParameterSetBuilder(){} /** * Buils the resulting body object to be passed to the request * @return the body object to pass to the request */ @Nonnull - public DeviceManagementReportsGetAutopilotDeploymentStatusParameterSet build() { - return new DeviceManagementReportsGetAutopilotDeploymentStatusParameterSet(this); + public DeviceManagementReportsGetAutopilotDeploymentDeviceInformationParameterSet build() { + return new DeviceManagementReportsGetAutopilotDeploymentDeviceInformationParameterSet(this); } } /** diff --git a/src/main/java/com/microsoft/graph/models/DirectoryAudit.java b/src/main/java/com/microsoft/graph/models/DirectoryAudit.java index 4b7ee6b17e0..47ab9ab1491 100644 --- a/src/main/java/com/microsoft/graph/models/DirectoryAudit.java +++ b/src/main/java/com/microsoft/graph/models/DirectoryAudit.java @@ -32,7 +32,7 @@ public class DirectoryAudit extends Entity implements IJsonBackedObject { /** * The Activity Date Time. - * Indicates the date and time the activity was performed. The Timestamp type is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * Indicates the date and time the activity was performed. The Timestamp type is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.Supports $filter (eq, ge, le) and $orderby. */ @SerializedName(value = "activityDateTime", alternate = {"ActivityDateTime"}) @Expose @@ -41,7 +41,7 @@ public class DirectoryAudit extends Entity implements IJsonBackedObject { /** * The Activity Display Name. - * Indicates the activity name or the operation name (E.g. 'Create User', 'Add member to group'). For a list of activities logged, refer to Azure AD audit log categories and activities. + * Indicates the activity name or the operation name (E.g. 'Create User', 'Add member to group'). For a list of activities logged, refer to Azure AD audit log categories and activities. Supports $filter (eq, startswith). */ @SerializedName(value = "activityDisplayName", alternate = {"ActivityDisplayName"}) @Expose @@ -68,7 +68,7 @@ public class DirectoryAudit extends Entity implements IJsonBackedObject { /** * The Correlation Id. - * Indicates a unique ID that helps correlate activities that span across various services. Can be used to trace logs across services. + * Indicates a unique ID that helps correlate activities that span across various services. Can be used to trace logs across services. Supports $filter (eq). */ @SerializedName(value = "correlationId", alternate = {"CorrelationId"}) @Expose @@ -77,7 +77,7 @@ public class DirectoryAudit extends Entity implements IJsonBackedObject { /** * The Initiated By. - * Indicates information about the user or app initiated the activity. + * Indicates information about the user or app initiated the activity. Supports $filter (eq) for user/id, user/displayName, user/userPrincipalName, app/appId, app/displayName; and $filter (startswith) for user/userPrincipalName. */ @SerializedName(value = "initiatedBy", alternate = {"InitiatedBy"}) @Expose @@ -86,7 +86,7 @@ public class DirectoryAudit extends Entity implements IJsonBackedObject { /** * The Logged By Service. - * Indicates information on which service initiated the activity (For example: Self-service Password Management, Core Directory, B2C, Invited Users, Microsoft Identity Manager, Privileged Identity Management. + * Indicates information on which service initiated the activity (For example: Self-service Password Management, Core Directory, B2C, Invited Users, Microsoft Identity Manager, Privileged Identity Management. Supports $filter (eq). */ @SerializedName(value = "loggedByService", alternate = {"LoggedByService"}) @Expose @@ -122,7 +122,7 @@ public class DirectoryAudit extends Entity implements IJsonBackedObject { /** * The Target Resources. - * Information about the resource that changed due to the activity. + * Information about the resource that changed due to the activity. Supports $filter (eq) for id and displayName; and $filter (startswith) for displayName. */ @SerializedName(value = "targetResources", alternate = {"TargetResources"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/DomainPromoteToInitialParameterSet.java b/src/main/java/com/microsoft/graph/models/DomainPromoteToInitialParameterSet.java new file mode 100644 index 00000000000..72861308688 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/DomainPromoteToInitialParameterSet.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.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 Domain Promote To Initial Parameter Set. + */ +public class DomainPromoteToInitialParameterSet { + + /** + * Instiaciates a new DomainPromoteToInitialParameterSet + */ + public DomainPromoteToInitialParameterSet() {} + /** + * Instiaciates a new DomainPromoteToInitialParameterSet + * @param builder builder bearing the parameters to initialize from + */ + protected DomainPromoteToInitialParameterSet(@Nonnull final DomainPromoteToInitialParameterSetBuilder builder) { + } + /** + * Gets a new builder for the body + * @return a new builder + */ + @Nonnull + public static DomainPromoteToInitialParameterSetBuilder newBuilder() { + return new DomainPromoteToInitialParameterSetBuilder(); + } + /** + * Fluent builder for the DomainPromoteToInitialParameterSet + */ + public static final class DomainPromoteToInitialParameterSetBuilder { + /** + * Instanciates a new DomainPromoteToInitialParameterSetBuilder + */ + @Nullable + protected DomainPromoteToInitialParameterSetBuilder(){} + /** + * Buils the resulting body object to be passed to the request + * @return the body object to pass to the request + */ + @Nonnull + public DomainPromoteToInitialParameterSet build() { + return new DomainPromoteToInitialParameterSet(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/EducationAssignment.java b/src/main/java/com/microsoft/graph/models/EducationAssignment.java index 2985b813c28..066d35d33e9 100644 --- a/src/main/java/com/microsoft/graph/models/EducationAssignment.java +++ b/src/main/java/com/microsoft/graph/models/EducationAssignment.java @@ -200,6 +200,15 @@ public class EducationAssignment extends Entity implements IJsonBackedObject { @Nullable public java.time.OffsetDateTime lastModifiedDateTime; + /** + * The Module Url. + * + */ + @SerializedName(value = "moduleUrl", alternate = {"ModuleUrl"}) + @Expose + @Nullable + public String moduleUrl; + /** * The Notification Channel Url. * Optional field to specify the URL of the channel to post the assignment publish notification. If not specified or null, defaults to the General channel. This field only applies to assignments where the assignTo value is educationAssignmentClassRecipient. Updating the notificationChannelUrl is not allowed after the assignment has been published. diff --git a/src/main/java/com/microsoft/graph/models/MacOSMdatpApp.java b/src/main/java/com/microsoft/graph/models/EducationChannelResource.java similarity index 77% rename from src/main/java/com/microsoft/graph/models/MacOSMdatpApp.java rename to src/main/java/com/microsoft/graph/models/EducationChannelResource.java index 8a9b00a880b..a56d17ae1ca 100644 --- a/src/main/java/com/microsoft/graph/models/MacOSMdatpApp.java +++ b/src/main/java/com/microsoft/graph/models/EducationChannelResource.java @@ -8,7 +8,7 @@ import com.microsoft.graph.serializer.IJsonBackedObject; import com.microsoft.graph.serializer.AdditionalDataManager; import java.util.EnumSet; -import com.microsoft.graph.models.MobileApp; +import com.microsoft.graph.models.EducationResource; import com.google.gson.JsonObject; @@ -20,11 +20,20 @@ // **NOTE** This file was generated by a tool and any changes will be overwritten. /** - * The class for the Mac OSMdatp App. + * The class for the Education Channel Resource. */ -public class MacOSMdatpApp extends MobileApp implements IJsonBackedObject { +public class EducationChannelResource extends EducationResource implements IJsonBackedObject { + /** + * The Url. + * + */ + @SerializedName(value = "url", alternate = {"Url"}) + @Expose + @Nullable + public String url; + /** * Sets the raw JSON object diff --git a/src/main/java/com/microsoft/graph/models/EducationClass.java b/src/main/java/com/microsoft/graph/models/EducationClass.java index fc43ff89159..344383f7fa5 100644 --- a/src/main/java/com/microsoft/graph/models/EducationClass.java +++ b/src/main/java/com/microsoft/graph/models/EducationClass.java @@ -19,6 +19,7 @@ import com.microsoft.graph.models.Entity; import com.microsoft.graph.requests.EducationCategoryCollectionPage; import com.microsoft.graph.requests.EducationAssignmentCollectionPage; +import com.microsoft.graph.requests.EducationModuleCollectionPage; import com.microsoft.graph.requests.EducationSchoolCollectionPage; @@ -180,6 +181,15 @@ public class EducationClass extends Entity implements IJsonBackedObject { @Nullable public EducationAssignmentSettings assignmentSettings; + /** + * The Modules. + * + */ + @SerializedName(value = "modules", alternate = {"Modules"}) + @Expose + @Nullable + public com.microsoft.graph.requests.EducationModuleCollectionPage modules; + /** * The Group. * @@ -228,6 +238,10 @@ public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final J assignments = serializer.deserializeObject(json.get("assignments"), com.microsoft.graph.requests.EducationAssignmentCollectionPage.class); } + if (json.has("modules")) { + modules = serializer.deserializeObject(json.get("modules"), com.microsoft.graph.requests.EducationModuleCollectionPage.class); + } + if (json.has("members")) { members = serializer.deserializeObject(json.get("members"), com.microsoft.graph.requests.EducationUserCollectionPage.class); } diff --git a/src/main/java/com/microsoft/graph/models/EducationLinkedAssignmentResource.java b/src/main/java/com/microsoft/graph/models/EducationLinkedAssignmentResource.java new file mode 100644 index 00000000000..25c65620582 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/EducationLinkedAssignmentResource.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.EducationResource; + + +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 Education Linked Assignment Resource. + */ +public class EducationLinkedAssignmentResource extends EducationResource implements IJsonBackedObject { + + + /** + * The Url. + * + */ + @SerializedName(value = "url", alternate = {"Url"}) + @Expose + @Nullable + public String url; + + + /** + * 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/EducationModule.java b/src/main/java/com/microsoft/graph/models/EducationModule.java new file mode 100644 index 00000000000..908f52a047c --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/EducationModule.java @@ -0,0 +1,136 @@ +// 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.IdentitySet; +import com.microsoft.graph.models.EducationModuleStatus; +import com.microsoft.graph.models.Entity; +import com.microsoft.graph.requests.EducationModuleResourceCollectionPage; + + +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 Education Module. + */ +public class EducationModule extends Entity implements IJsonBackedObject { + + + /** + * The Created By. + * + */ + @SerializedName(value = "createdBy", alternate = {"CreatedBy"}) + @Expose + @Nullable + public IdentitySet createdBy; + + /** + * The Created Date Time. + * + */ + @SerializedName(value = "createdDateTime", alternate = {"CreatedDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime createdDateTime; + + /** + * The Description. + * + */ + @SerializedName(value = "description", alternate = {"Description"}) + @Expose + @Nullable + public String description; + + /** + * The Display Name. + * + */ + @SerializedName(value = "displayName", alternate = {"DisplayName"}) + @Expose + @Nullable + public String displayName; + + /** + * The Is Pinned. + * + */ + @SerializedName(value = "isPinned", alternate = {"IsPinned"}) + @Expose + @Nullable + public Boolean isPinned; + + /** + * The Last Modified By. + * + */ + @SerializedName(value = "lastModifiedBy", alternate = {"LastModifiedBy"}) + @Expose + @Nullable + public IdentitySet lastModifiedBy; + + /** + * The Last Modified Date Time. + * + */ + @SerializedName(value = "lastModifiedDateTime", alternate = {"LastModifiedDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime lastModifiedDateTime; + + /** + * The Resources Folder Url. + * + */ + @SerializedName(value = "resourcesFolderUrl", alternate = {"ResourcesFolderUrl"}) + @Expose + @Nullable + public String resourcesFolderUrl; + + /** + * The Status. + * + */ + @SerializedName(value = "status", alternate = {"Status"}) + @Expose + @Nullable + public EducationModuleStatus status; + + /** + * The Resources. + * + */ + @SerializedName(value = "resources", alternate = {"Resources"}) + @Expose + @Nullable + public com.microsoft.graph.requests.EducationModuleResourceCollectionPage resources; + + + /** + * 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("resources")) { + resources = serializer.deserializeObject(json.get("resources"), com.microsoft.graph.requests.EducationModuleResourceCollectionPage.class); + } + } +} diff --git a/src/main/java/com/microsoft/graph/models/EducationModulePinParameterSet.java b/src/main/java/com/microsoft/graph/models/EducationModulePinParameterSet.java new file mode 100644 index 00000000000..096d5eacf68 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/EducationModulePinParameterSet.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.EducationModule; +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 Education Module Pin Parameter Set. + */ +public class EducationModulePinParameterSet { + + /** + * Instiaciates a new EducationModulePinParameterSet + */ + public EducationModulePinParameterSet() {} + /** + * Instiaciates a new EducationModulePinParameterSet + * @param builder builder bearing the parameters to initialize from + */ + protected EducationModulePinParameterSet(@Nonnull final EducationModulePinParameterSetBuilder builder) { + } + /** + * Gets a new builder for the body + * @return a new builder + */ + @Nonnull + public static EducationModulePinParameterSetBuilder newBuilder() { + return new EducationModulePinParameterSetBuilder(); + } + /** + * Fluent builder for the EducationModulePinParameterSet + */ + public static final class EducationModulePinParameterSetBuilder { + /** + * Instanciates a new EducationModulePinParameterSetBuilder + */ + @Nullable + protected EducationModulePinParameterSetBuilder(){} + /** + * Buils the resulting body object to be passed to the request + * @return the body object to pass to the request + */ + @Nonnull + public EducationModulePinParameterSet build() { + return new EducationModulePinParameterSet(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/EducationModulePublishParameterSet.java b/src/main/java/com/microsoft/graph/models/EducationModulePublishParameterSet.java new file mode 100644 index 00000000000..24c04fecc3d --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/EducationModulePublishParameterSet.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.EducationModule; +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 Education Module Publish Parameter Set. + */ +public class EducationModulePublishParameterSet { + + /** + * Instiaciates a new EducationModulePublishParameterSet + */ + public EducationModulePublishParameterSet() {} + /** + * Instiaciates a new EducationModulePublishParameterSet + * @param builder builder bearing the parameters to initialize from + */ + protected EducationModulePublishParameterSet(@Nonnull final EducationModulePublishParameterSetBuilder builder) { + } + /** + * Gets a new builder for the body + * @return a new builder + */ + @Nonnull + public static EducationModulePublishParameterSetBuilder newBuilder() { + return new EducationModulePublishParameterSetBuilder(); + } + /** + * Fluent builder for the EducationModulePublishParameterSet + */ + public static final class EducationModulePublishParameterSetBuilder { + /** + * Instanciates a new EducationModulePublishParameterSetBuilder + */ + @Nullable + protected EducationModulePublishParameterSetBuilder(){} + /** + * Buils the resulting body object to be passed to the request + * @return the body object to pass to the request + */ + @Nonnull + public EducationModulePublishParameterSet build() { + return new EducationModulePublishParameterSet(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/EducationModuleResource.java b/src/main/java/com/microsoft/graph/models/EducationModuleResource.java new file mode 100644 index 00000000000..92579ac83e1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/EducationModuleResource.java @@ -0,0 +1,48 @@ +// 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.EducationResource; +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 Education Module Resource. + */ +public class EducationModuleResource extends Entity implements IJsonBackedObject { + + + /** + * The Resource. + * + */ + @SerializedName(value = "resource", alternate = {"Resource"}) + @Expose + @Nullable + public EducationResource resource; + + + /** + * 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/EducationModuleSetUpResourcesFolderParameterSet.java b/src/main/java/com/microsoft/graph/models/EducationModuleSetUpResourcesFolderParameterSet.java new file mode 100644 index 00000000000..d0b0aecbf3b --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/EducationModuleSetUpResourcesFolderParameterSet.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.EducationModule; +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 Education Module Set Up Resources Folder Parameter Set. + */ +public class EducationModuleSetUpResourcesFolderParameterSet { + + /** + * Instiaciates a new EducationModuleSetUpResourcesFolderParameterSet + */ + public EducationModuleSetUpResourcesFolderParameterSet() {} + /** + * Instiaciates a new EducationModuleSetUpResourcesFolderParameterSet + * @param builder builder bearing the parameters to initialize from + */ + protected EducationModuleSetUpResourcesFolderParameterSet(@Nonnull final EducationModuleSetUpResourcesFolderParameterSetBuilder builder) { + } + /** + * Gets a new builder for the body + * @return a new builder + */ + @Nonnull + public static EducationModuleSetUpResourcesFolderParameterSetBuilder newBuilder() { + return new EducationModuleSetUpResourcesFolderParameterSetBuilder(); + } + /** + * Fluent builder for the EducationModuleSetUpResourcesFolderParameterSet + */ + public static final class EducationModuleSetUpResourcesFolderParameterSetBuilder { + /** + * Instanciates a new EducationModuleSetUpResourcesFolderParameterSetBuilder + */ + @Nullable + protected EducationModuleSetUpResourcesFolderParameterSetBuilder(){} + /** + * Buils the resulting body object to be passed to the request + * @return the body object to pass to the request + */ + @Nonnull + public EducationModuleSetUpResourcesFolderParameterSet build() { + return new EducationModuleSetUpResourcesFolderParameterSet(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/EducationModuleStatus.java b/src/main/java/com/microsoft/graph/models/EducationModuleStatus.java new file mode 100644 index 00000000000..05ff1f49aca --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/EducationModuleStatus.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.models; + + +/** + * The Enum Education Module Status. +*/ +public enum EducationModuleStatus +{ + /** + * draft + */ + DRAFT, + /** + * published + */ + PUBLISHED, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For EducationModuleStatus values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/EducationModuleUnpinParameterSet.java b/src/main/java/com/microsoft/graph/models/EducationModuleUnpinParameterSet.java new file mode 100644 index 00000000000..74595b57fb9 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/EducationModuleUnpinParameterSet.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.EducationModule; +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 Education Module Unpin Parameter Set. + */ +public class EducationModuleUnpinParameterSet { + + /** + * Instiaciates a new EducationModuleUnpinParameterSet + */ + public EducationModuleUnpinParameterSet() {} + /** + * Instiaciates a new EducationModuleUnpinParameterSet + * @param builder builder bearing the parameters to initialize from + */ + protected EducationModuleUnpinParameterSet(@Nonnull final EducationModuleUnpinParameterSetBuilder builder) { + } + /** + * Gets a new builder for the body + * @return a new builder + */ + @Nonnull + public static EducationModuleUnpinParameterSetBuilder newBuilder() { + return new EducationModuleUnpinParameterSetBuilder(); + } + /** + * Fluent builder for the EducationModuleUnpinParameterSet + */ + public static final class EducationModuleUnpinParameterSetBuilder { + /** + * Instanciates a new EducationModuleUnpinParameterSetBuilder + */ + @Nullable + protected EducationModuleUnpinParameterSetBuilder(){} + /** + * Buils the resulting body object to be passed to the request + * @return the body object to pass to the request + */ + @Nonnull + public EducationModuleUnpinParameterSet build() { + return new EducationModuleUnpinParameterSet(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/GovernanceRuleSetting.java b/src/main/java/com/microsoft/graph/models/GovernanceRuleSetting.java index 50f1cc91a94..8b3b020332d 100644 --- a/src/main/java/com/microsoft/graph/models/GovernanceRuleSetting.java +++ b/src/main/java/com/microsoft/graph/models/GovernanceRuleSetting.java @@ -48,7 +48,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Setting. - * The settings of the rule. The value is a JSON string with a list of pairs in the format of Parameter_Name:Parameter_Value. For example, {'permanentAssignment':false,'maximumGrantPeriodInMinutes':129600} + * The settings of the rule. The value is a JSON string with a list of pairs in the format of ParameterName:ParameterValue. For example, {'permanentAssignment':false,'maximumGrantPeriodInMinutes':129600} */ @SerializedName(value = "setting", alternate = {"Setting"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/Identity.java b/src/main/java/com/microsoft/graph/models/Identity.java index 175cf64bc6e..6651da65cf2 100644 --- a/src/main/java/com/microsoft/graph/models/Identity.java +++ b/src/main/java/com/microsoft/graph/models/Identity.java @@ -39,7 +39,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Display Name. - * The display name of the identity. This property is read-only. + * The display name of the identity. Note that this might not always be available or up to date. For example, if a user changes their display name, the API might show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. */ @SerializedName(value = "displayName", alternate = {"DisplayName"}) @Expose @@ -48,7 +48,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Id. - * The identifier of the identity. This property is read-only. + * Unique identifier for the identity. */ @SerializedName(value = "id", alternate = {"Id"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/IdentityProvider.java b/src/main/java/com/microsoft/graph/models/IdentityProvider.java index bbb81500fea..8a96c6ac776 100644 --- a/src/main/java/com/microsoft/graph/models/IdentityProvider.java +++ b/src/main/java/com/microsoft/graph/models/IdentityProvider.java @@ -38,7 +38,7 @@ public class IdentityProvider extends Entity implements IJsonBackedObject { /** * The Client Secret. - * The client secret for the application obtained when registering the application with the identity provider. This is write-only. A read operation will return ****. This is a required field. Required. Not nullable. + * The client secret for the application obtained when registering the application with the identity provider. This is write-only. A read operation will return . This is a required field. Required. Not nullable. */ @SerializedName(value = "clientSecret", alternate = {"ClientSecret"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/IdentitySet.java b/src/main/java/com/microsoft/graph/models/IdentitySet.java index 37f7d7f4373..408590c8153 100644 --- a/src/main/java/com/microsoft/graph/models/IdentitySet.java +++ b/src/main/java/com/microsoft/graph/models/IdentitySet.java @@ -40,7 +40,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Application. - * Optional. The application associated with this action. + * The Identity of the Application. This property is read-only. */ @SerializedName(value = "application", alternate = {"Application"}) @Expose @@ -49,7 +49,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Device. - * Optional. The device associated with this action. + * The Identity of the Device. This property is read-only. */ @SerializedName(value = "device", alternate = {"Device"}) @Expose @@ -58,7 +58,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The User. - * Optional. The user associated with this action. + * The Identity of the User. This property is read-only. */ @SerializedName(value = "user", alternate = {"User"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/IosVpnSecurityAssociationParameters.java b/src/main/java/com/microsoft/graph/models/IosVpnSecurityAssociationParameters.java index ebb14d67e1c..b01e6490469 100644 --- a/src/main/java/com/microsoft/graph/models/IosVpnSecurityAssociationParameters.java +++ b/src/main/java/com/microsoft/graph/models/IosVpnSecurityAssociationParameters.java @@ -68,7 +68,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Security Integrity Algorithm. - * Integrity algorithm. Possible values are: sha2_256, sha1_96, sha1_160, sha2_384, sha2_512, md5. + * Integrity algorithm. Possible values are: sha2256, sha196, sha1160, sha2384, sha2_512, md5. */ @SerializedName(value = "securityIntegrityAlgorithm", alternate = {"SecurityIntegrityAlgorithm"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/KeyValue.java b/src/main/java/com/microsoft/graph/models/KeyValue.java index 5f4fd362798..db2e719e7f3 100644 --- a/src/main/java/com/microsoft/graph/models/KeyValue.java +++ b/src/main/java/com/microsoft/graph/models/KeyValue.java @@ -39,7 +39,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Key. - * Contains the name of the field that a value is associated with. + * Key. */ @SerializedName(value = "key", alternate = {"Key"}) @Expose @@ -48,7 +48,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Value. - * Contains the corresponding value for the specified key. + * Value. */ @SerializedName(value = "value", alternate = {"Value"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/MacOSWebClip.java b/src/main/java/com/microsoft/graph/models/MacOSWebClip.java new file mode 100644 index 00000000000..86ffe133109 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/MacOSWebClip.java @@ -0,0 +1,65 @@ +// 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.MobileApp; + + +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 Mac OSWeb Clip. + */ +public class MacOSWebClip extends MobileApp implements IJsonBackedObject { + + + /** + * The App Url. + * The web app URL starting with http:// or https://, such as https://learn.microsoft.com/en-us/mem/. + */ + @SerializedName(value = "appUrl", alternate = {"AppUrl"}) + @Expose + @Nullable + public String appUrl; + + /** + * The Full Screen Enabled. + * Whether or not to open the web clip as a full-screen web app. Defaults to false. If TRUE, opens the web clip as a full-screen web app. If FALSE, the web clip opens inside of another app. + */ + @SerializedName(value = "fullScreenEnabled", alternate = {"FullScreenEnabled"}) + @Expose + @Nullable + public Boolean fullScreenEnabled; + + /** + * The Pre Composed Icon Enabled. + * Whether or not the icon for the app is precomosed. Defaults to false. If TRUE, prevents SpringBoard from adding "shine" to the icon. If FALSE, SpringBoard can add "shine". + */ + @SerializedName(value = "preComposedIconEnabled", alternate = {"PreComposedIconEnabled"}) + @Expose + @Nullable + public Boolean preComposedIconEnabled; + + + /** + * 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/MacOsLobAppAssignmentSettings.java b/src/main/java/com/microsoft/graph/models/MacOsLobAppAssignmentSettings.java index 9bd8f5ca6c0..8ca093bfc90 100644 --- a/src/main/java/com/microsoft/graph/models/MacOsLobAppAssignmentSettings.java +++ b/src/main/java/com/microsoft/graph/models/MacOsLobAppAssignmentSettings.java @@ -27,7 +27,7 @@ public class MacOsLobAppAssignmentSettings extends MobileAppAssignmentSettings i /** * The Uninstall On Device Removal. - * Whether or not to uninstall the app when device is removed from Intune. + * When TRUE, indicates that the app should be uninstalled when the device is removed from Intune. When FALSE, indicates that the app will not be uninstalled when the device is removed from Intune. */ @SerializedName(value = "uninstallOnDeviceRemoval", alternate = {"UninstallOnDeviceRemoval"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/ManagedAndroidLobApp.java b/src/main/java/com/microsoft/graph/models/ManagedAndroidLobApp.java index 27399358d84..bf5aa3d2e25 100644 --- a/src/main/java/com/microsoft/graph/models/ManagedAndroidLobApp.java +++ b/src/main/java/com/microsoft/graph/models/ManagedAndroidLobApp.java @@ -9,6 +9,7 @@ import com.microsoft.graph.serializer.AdditionalDataManager; import java.util.EnumSet; import com.microsoft.graph.models.AndroidMinimumOperatingSystem; +import com.microsoft.graph.models.AndroidTargetedPlatforms; import com.microsoft.graph.models.ManagedMobileLobApp; @@ -62,6 +63,15 @@ public class ManagedAndroidLobApp extends ManagedMobileLobApp implements IJsonBa @Nullable public String packageId; + /** + * The Targeted Platforms. + * The platforms to which the application can be targeted. If not specified, will defauilt to Android Device Administrator. + */ + @SerializedName(value = "targetedPlatforms", alternate = {"TargetedPlatforms"}) + @Expose + @Nullable + public EnumSet targetedPlatforms; + /** * The Version Code. * The version code of managed Android Line of Business (LoB) app. diff --git a/src/main/java/com/microsoft/graph/models/ManagedDevice.java b/src/main/java/com/microsoft/graph/models/ManagedDevice.java index 4a767809b2a..30f87eaa1f0 100644 --- a/src/main/java/com/microsoft/graph/models/ManagedDevice.java +++ b/src/main/java/com/microsoft/graph/models/ManagedDevice.java @@ -665,6 +665,15 @@ public class ManagedDevice extends Entity implements IJsonBackedObject { @Nullable public java.util.List roleScopeTagIds; + /** + * The Security Patch Level. + * This indicates the security patch level of the operating system. These special updates contain important security fixes. For iOS/MacOS they are in (a) format. For android its in 2017-08-07 format. This property is read-only. + */ + @SerializedName(value = "securityPatchLevel", alternate = {"SecurityPatchLevel"}) + @Expose + @Nullable + public String securityPatchLevel; + /** * The Serial Number. * SerialNumber. This property is read-only. diff --git a/src/main/java/com/microsoft/graph/models/MobileThreatPartnerTenantState.java b/src/main/java/com/microsoft/graph/models/MobileThreatPartnerTenantState.java index 7cf06b11c22..676b4da638e 100644 --- a/src/main/java/com/microsoft/graph/models/MobileThreatPartnerTenantState.java +++ b/src/main/java/com/microsoft/graph/models/MobileThreatPartnerTenantState.java @@ -28,6 +28,18 @@ public enum MobileThreatPartnerTenantState */ UNRESPONSIVE, /** + * not Set Up + */ + NOT_SET_UP, + /** + * error + */ + ERROR, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** * For MobileThreatPartnerTenantState values that were not expected from the service */ UNEXPECTED_VALUE diff --git a/src/main/java/com/microsoft/graph/models/MultiTenantOrganization.java b/src/main/java/com/microsoft/graph/models/MultiTenantOrganization.java new file mode 100644 index 00000000000..6f8f8eed8c9 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/MultiTenantOrganization.java @@ -0,0 +1,100 @@ +// 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.MultiTenantOrganizationState; +import com.microsoft.graph.models.MultiTenantOrganizationJoinRequestRecord; +import com.microsoft.graph.models.Entity; +import com.microsoft.graph.requests.MultiTenantOrganizationMemberCollectionPage; + + +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 Multi Tenant Organization. + */ +public class MultiTenantOrganization extends Entity implements IJsonBackedObject { + + + /** + * The Created Date Time. + * + */ + @SerializedName(value = "createdDateTime", alternate = {"CreatedDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime createdDateTime; + + /** + * The Description. + * + */ + @SerializedName(value = "description", alternate = {"Description"}) + @Expose + @Nullable + public String description; + + /** + * The Display Name. + * + */ + @SerializedName(value = "displayName", alternate = {"DisplayName"}) + @Expose + @Nullable + public String displayName; + + /** + * The State. + * + */ + @SerializedName(value = "state", alternate = {"State"}) + @Expose + @Nullable + public MultiTenantOrganizationState state; + + /** + * The Join Request. + * + */ + @SerializedName(value = "joinRequest", alternate = {"JoinRequest"}) + @Expose + @Nullable + public MultiTenantOrganizationJoinRequestRecord joinRequest; + + /** + * The Tenants. + * + */ + @SerializedName(value = "tenants", alternate = {"Tenants"}) + @Expose + @Nullable + public com.microsoft.graph.requests.MultiTenantOrganizationMemberCollectionPage tenants; + + + /** + * 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("tenants")) { + tenants = serializer.deserializeObject(json.get("tenants"), com.microsoft.graph.requests.MultiTenantOrganizationMemberCollectionPage.class); + } + } +} diff --git a/src/main/java/com/microsoft/graph/models/MultiTenantOrganizationIdentitySyncPolicyTemplate.java b/src/main/java/com/microsoft/graph/models/MultiTenantOrganizationIdentitySyncPolicyTemplate.java new file mode 100644 index 00000000000..5e324526e82 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/MultiTenantOrganizationIdentitySyncPolicyTemplate.java @@ -0,0 +1,58 @@ +// 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.TemplateApplicationLevel; +import com.microsoft.graph.models.CrossTenantUserSyncInbound; +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 Multi Tenant Organization Identity Sync Policy Template. + */ +public class MultiTenantOrganizationIdentitySyncPolicyTemplate extends Entity implements IJsonBackedObject { + + + /** + * The Template Application Level. + * + */ + @SerializedName(value = "templateApplicationLevel", alternate = {"TemplateApplicationLevel"}) + @Expose + @Nullable + public EnumSet templateApplicationLevel; + + /** + * The User Sync Inbound. + * + */ + @SerializedName(value = "userSyncInbound", alternate = {"UserSyncInbound"}) + @Expose + @Nullable + public CrossTenantUserSyncInbound userSyncInbound; + + + /** + * 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/MultiTenantOrganizationJoinRequestRecord.java b/src/main/java/com/microsoft/graph/models/MultiTenantOrganizationJoinRequestRecord.java new file mode 100644 index 00000000000..5fe791bbe06 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/MultiTenantOrganizationJoinRequestRecord.java @@ -0,0 +1,77 @@ +// 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.MultiTenantOrganizationMemberState; +import com.microsoft.graph.models.MultiTenantOrganizationMemberRole; +import com.microsoft.graph.models.MultiTenantOrganizationJoinRequestTransitionDetails; +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 Multi Tenant Organization Join Request Record. + */ +public class MultiTenantOrganizationJoinRequestRecord extends Entity implements IJsonBackedObject { + + + /** + * The Added By Tenant Id. + * + */ + @SerializedName(value = "addedByTenantId", alternate = {"AddedByTenantId"}) + @Expose + @Nullable + public String addedByTenantId; + + /** + * The Member State. + * + */ + @SerializedName(value = "memberState", alternate = {"MemberState"}) + @Expose + @Nullable + public MultiTenantOrganizationMemberState memberState; + + /** + * The Role. + * + */ + @SerializedName(value = "role", alternate = {"Role"}) + @Expose + @Nullable + public MultiTenantOrganizationMemberRole role; + + /** + * The Transition Details. + * + */ + @SerializedName(value = "transitionDetails", alternate = {"TransitionDetails"}) + @Expose + @Nullable + public MultiTenantOrganizationJoinRequestTransitionDetails transitionDetails; + + + /** + * 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/MultiTenantOrganizationJoinRequestTransitionDetails.java b/src/main/java/com/microsoft/graph/models/MultiTenantOrganizationJoinRequestTransitionDetails.java new file mode 100644 index 00000000000..28dc91c3c11 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/MultiTenantOrganizationJoinRequestTransitionDetails.java @@ -0,0 +1,79 @@ +// 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.MultiTenantOrganizationMemberState; +import com.microsoft.graph.models.MultiTenantOrganizationMemberProcessingStatus; + + +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 Multi Tenant Organization Join Request Transition Details. + */ +public class MultiTenantOrganizationJoinRequestTransitionDetails 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 Desired Member State. + * + */ + @SerializedName(value = "desiredMemberState", alternate = {"DesiredMemberState"}) + @Expose + @Nullable + public MultiTenantOrganizationMemberState desiredMemberState; + + /** + * The Details. + * + */ + @SerializedName(value = "details", alternate = {"Details"}) + @Expose + @Nullable + public String details; + + /** + * The Status. + * + */ + @SerializedName(value = "status", alternate = {"Status"}) + @Expose + @Nullable + public MultiTenantOrganizationMemberProcessingStatus status; + + + /** + * 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/MultiTenantOrganizationMember.java b/src/main/java/com/microsoft/graph/models/MultiTenantOrganizationMember.java new file mode 100644 index 00000000000..bdde4ae61e1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/MultiTenantOrganizationMember.java @@ -0,0 +1,113 @@ +// 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.MultiTenantOrganizationMemberRole; +import com.microsoft.graph.models.MultiTenantOrganizationMemberState; +import com.microsoft.graph.models.MultiTenantOrganizationMemberTransitionDetails; +import com.microsoft.graph.models.DirectoryObject; + + +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 Multi Tenant Organization Member. + */ +public class MultiTenantOrganizationMember extends DirectoryObject implements IJsonBackedObject { + + + /** + * The Added By Tenant Id. + * + */ + @SerializedName(value = "addedByTenantId", alternate = {"AddedByTenantId"}) + @Expose + @Nullable + public java.util.UUID addedByTenantId; + + /** + * The Added Date Time. + * + */ + @SerializedName(value = "addedDateTime", alternate = {"AddedDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime addedDateTime; + + /** + * The Display Name. + * + */ + @SerializedName(value = "displayName", alternate = {"DisplayName"}) + @Expose + @Nullable + public String displayName; + + /** + * The Joined Date Time. + * + */ + @SerializedName(value = "joinedDateTime", alternate = {"JoinedDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime joinedDateTime; + + /** + * The Role. + * + */ + @SerializedName(value = "role", alternate = {"Role"}) + @Expose + @Nullable + public MultiTenantOrganizationMemberRole role; + + /** + * The State. + * + */ + @SerializedName(value = "state", alternate = {"State"}) + @Expose + @Nullable + public MultiTenantOrganizationMemberState state; + + /** + * The Tenant Id. + * + */ + @SerializedName(value = "tenantId", alternate = {"TenantId"}) + @Expose + @Nullable + public String tenantId; + + /** + * The Transition Details. + * + */ + @SerializedName(value = "transitionDetails", alternate = {"TransitionDetails"}) + @Expose + @Nullable + public MultiTenantOrganizationMemberTransitionDetails transitionDetails; + + + /** + * 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/MultiTenantOrganizationMemberProcessingStatus.java b/src/main/java/com/microsoft/graph/models/MultiTenantOrganizationMemberProcessingStatus.java new file mode 100644 index 00000000000..d94995c5e24 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/MultiTenantOrganizationMemberProcessingStatus.java @@ -0,0 +1,38 @@ +// 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.models; + + +/** + * The Enum Multi Tenant Organization Member Processing Status. +*/ +public enum MultiTenantOrganizationMemberProcessingStatus +{ + /** + * not Started + */ + NOT_STARTED, + /** + * running + */ + RUNNING, + /** + * succeeded + */ + SUCCEEDED, + /** + * failed + */ + FAILED, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For MultiTenantOrganizationMemberProcessingStatus values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/MultiTenantOrganizationMemberRole.java b/src/main/java/com/microsoft/graph/models/MultiTenantOrganizationMemberRole.java new file mode 100644 index 00000000000..d5dae5bbd4a --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/MultiTenantOrganizationMemberRole.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.models; + + +/** + * The Enum Multi Tenant Organization Member Role. +*/ +public enum MultiTenantOrganizationMemberRole +{ + /** + * owner + */ + OWNER, + /** + * member + */ + MEMBER, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For MultiTenantOrganizationMemberRole values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/MultiTenantOrganizationMemberState.java b/src/main/java/com/microsoft/graph/models/MultiTenantOrganizationMemberState.java new file mode 100644 index 00000000000..bf306293ac3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/MultiTenantOrganizationMemberState.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.models; + + +/** + * The Enum Multi Tenant Organization Member State. +*/ +public enum MultiTenantOrganizationMemberState +{ + /** + * pending + */ + PENDING, + /** + * active + */ + ACTIVE, + /** + * removed + */ + REMOVED, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For MultiTenantOrganizationMemberState values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/MultiTenantOrganizationMemberTransitionDetails.java b/src/main/java/com/microsoft/graph/models/MultiTenantOrganizationMemberTransitionDetails.java new file mode 100644 index 00000000000..00a5ce57b38 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/MultiTenantOrganizationMemberTransitionDetails.java @@ -0,0 +1,89 @@ +// 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.MultiTenantOrganizationMemberRole; +import com.microsoft.graph.models.MultiTenantOrganizationMemberState; +import com.microsoft.graph.models.MultiTenantOrganizationMemberProcessingStatus; + + +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 Multi Tenant Organization Member Transition Details. + */ +public class MultiTenantOrganizationMemberTransitionDetails 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 Desired Role. + * + */ + @SerializedName(value = "desiredRole", alternate = {"DesiredRole"}) + @Expose + @Nullable + public MultiTenantOrganizationMemberRole desiredRole; + + /** + * The Desired State. + * + */ + @SerializedName(value = "desiredState", alternate = {"DesiredState"}) + @Expose + @Nullable + public MultiTenantOrganizationMemberState desiredState; + + /** + * The Details. + * + */ + @SerializedName(value = "details", alternate = {"Details"}) + @Expose + @Nullable + public String details; + + /** + * The Status. + * + */ + @SerializedName(value = "status", alternate = {"Status"}) + @Expose + @Nullable + public MultiTenantOrganizationMemberProcessingStatus status; + + + /** + * 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/MultiTenantOrganizationPartnerConfigurationTemplate.java b/src/main/java/com/microsoft/graph/models/MultiTenantOrganizationPartnerConfigurationTemplate.java new file mode 100644 index 00000000000..4abe1f5f19a --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/MultiTenantOrganizationPartnerConfigurationTemplate.java @@ -0,0 +1,105 @@ +// 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.InboundOutboundPolicyConfiguration; +import com.microsoft.graph.models.CrossTenantAccessPolicyB2BSetting; +import com.microsoft.graph.models.CrossTenantAccessPolicyInboundTrust; +import com.microsoft.graph.models.TemplateApplicationLevel; +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 Multi Tenant Organization Partner Configuration Template. + */ +public class MultiTenantOrganizationPartnerConfigurationTemplate extends Entity implements IJsonBackedObject { + + + /** + * The Automatic User Consent Settings. + * + */ + @SerializedName(value = "automaticUserConsentSettings", alternate = {"AutomaticUserConsentSettings"}) + @Expose + @Nullable + public InboundOutboundPolicyConfiguration automaticUserConsentSettings; + + /** + * The B2b Collaboration Inbound. + * + */ + @SerializedName(value = "b2bCollaborationInbound", alternate = {"B2bCollaborationInbound"}) + @Expose + @Nullable + public CrossTenantAccessPolicyB2BSetting b2bCollaborationInbound; + + /** + * The B2b Collaboration Outbound. + * + */ + @SerializedName(value = "b2bCollaborationOutbound", alternate = {"B2bCollaborationOutbound"}) + @Expose + @Nullable + public CrossTenantAccessPolicyB2BSetting b2bCollaborationOutbound; + + /** + * The B2b Direct Connect Inbound. + * + */ + @SerializedName(value = "b2bDirectConnectInbound", alternate = {"B2bDirectConnectInbound"}) + @Expose + @Nullable + public CrossTenantAccessPolicyB2BSetting b2bDirectConnectInbound; + + /** + * The B2b Direct Connect Outbound. + * + */ + @SerializedName(value = "b2bDirectConnectOutbound", alternate = {"B2bDirectConnectOutbound"}) + @Expose + @Nullable + public CrossTenantAccessPolicyB2BSetting b2bDirectConnectOutbound; + + /** + * The Inbound Trust. + * + */ + @SerializedName(value = "inboundTrust", alternate = {"InboundTrust"}) + @Expose + @Nullable + public CrossTenantAccessPolicyInboundTrust inboundTrust; + + /** + * The Template Application Level. + * + */ + @SerializedName(value = "templateApplicationLevel", alternate = {"TemplateApplicationLevel"}) + @Expose + @Nullable + public EnumSet templateApplicationLevel; + + + /** + * 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/MultiTenantOrganizationPartnerConfigurationTemplateResetToDefaultSettingsParameterSet.java b/src/main/java/com/microsoft/graph/models/MultiTenantOrganizationPartnerConfigurationTemplateResetToDefaultSettingsParameterSet.java new file mode 100644 index 00000000000..8e1b7bc084b --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/MultiTenantOrganizationPartnerConfigurationTemplateResetToDefaultSettingsParameterSet.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.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 Multi Tenant Organization Partner Configuration Template Reset To Default Settings Parameter Set. + */ +public class MultiTenantOrganizationPartnerConfigurationTemplateResetToDefaultSettingsParameterSet { + + /** + * Instiaciates a new MultiTenantOrganizationPartnerConfigurationTemplateResetToDefaultSettingsParameterSet + */ + public MultiTenantOrganizationPartnerConfigurationTemplateResetToDefaultSettingsParameterSet() {} + /** + * Instiaciates a new MultiTenantOrganizationPartnerConfigurationTemplateResetToDefaultSettingsParameterSet + * @param builder builder bearing the parameters to initialize from + */ + protected MultiTenantOrganizationPartnerConfigurationTemplateResetToDefaultSettingsParameterSet(@Nonnull final MultiTenantOrganizationPartnerConfigurationTemplateResetToDefaultSettingsParameterSetBuilder builder) { + } + /** + * Gets a new builder for the body + * @return a new builder + */ + @Nonnull + public static MultiTenantOrganizationPartnerConfigurationTemplateResetToDefaultSettingsParameterSetBuilder newBuilder() { + return new MultiTenantOrganizationPartnerConfigurationTemplateResetToDefaultSettingsParameterSetBuilder(); + } + /** + * Fluent builder for the MultiTenantOrganizationPartnerConfigurationTemplateResetToDefaultSettingsParameterSet + */ + public static final class MultiTenantOrganizationPartnerConfigurationTemplateResetToDefaultSettingsParameterSetBuilder { + /** + * Instanciates a new MultiTenantOrganizationPartnerConfigurationTemplateResetToDefaultSettingsParameterSetBuilder + */ + @Nullable + protected MultiTenantOrganizationPartnerConfigurationTemplateResetToDefaultSettingsParameterSetBuilder(){} + /** + * Buils the resulting body object to be passed to the request + * @return the body object to pass to the request + */ + @Nonnull + public MultiTenantOrganizationPartnerConfigurationTemplateResetToDefaultSettingsParameterSet build() { + return new MultiTenantOrganizationPartnerConfigurationTemplateResetToDefaultSettingsParameterSet(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/MultiTenantOrganizationState.java b/src/main/java/com/microsoft/graph/models/MultiTenantOrganizationState.java new file mode 100644 index 00000000000..1202e254e73 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/MultiTenantOrganizationState.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.models; + + +/** + * The Enum Multi Tenant Organization State. +*/ +public enum MultiTenantOrganizationState +{ + /** + * active + */ + ACTIVE, + /** + * inactive + */ + INACTIVE, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For MultiTenantOrganizationState values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/OAuth2PermissionGrant.java b/src/main/java/com/microsoft/graph/models/OAuth2PermissionGrant.java index fcc9c07f4a1..bc0987961b1 100644 --- a/src/main/java/com/microsoft/graph/models/OAuth2PermissionGrant.java +++ b/src/main/java/com/microsoft/graph/models/OAuth2PermissionGrant.java @@ -27,7 +27,7 @@ public class OAuth2PermissionGrant extends Entity implements IJsonBackedObject { /** * The Client Id. - * The id of the client service principal for the application which is authorized to act on behalf of a signed-in user when accessing an API. Required. Supports $filter (eq only). + * The object id (not appId) of the client service principal for the application which is authorized to act on behalf of a signed-in user when accessing an API. Required. Supports $filter (eq only). */ @SerializedName(value = "clientId", alternate = {"ClientId"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/OnPremisesSipInfo.java b/src/main/java/com/microsoft/graph/models/OnPremisesSipInfo.java new file mode 100644 index 00000000000..5a222a13bdc --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/OnPremisesSipInfo.java @@ -0,0 +1,77 @@ +// 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 On Premises Sip Info. + */ +public class OnPremisesSipInfo 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 Is Sip Enabled. + * + */ + @SerializedName(value = "isSipEnabled", alternate = {"IsSipEnabled"}) + @Expose + @Nullable + public Boolean isSipEnabled; + + /** + * The Sip Deployment Location. + * + */ + @SerializedName(value = "sipDeploymentLocation", alternate = {"SipDeploymentLocation"}) + @Expose + @Nullable + public String sipDeploymentLocation; + + /** + * The Sip Primary Address. + * + */ + @SerializedName(value = "sipPrimaryAddress", alternate = {"SipPrimaryAddress"}) + @Expose + @Nullable + public String sipPrimaryAddress; + + + /** + * 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/OnTokenIssuanceStartCustomExtensionHandler.java b/src/main/java/com/microsoft/graph/models/OnTokenIssuanceStartCustomExtensionHandler.java index 76047f794ba..4c0a2d09583 100644 --- a/src/main/java/com/microsoft/graph/models/OnTokenIssuanceStartCustomExtensionHandler.java +++ b/src/main/java/com/microsoft/graph/models/OnTokenIssuanceStartCustomExtensionHandler.java @@ -8,6 +8,7 @@ import com.microsoft.graph.serializer.IJsonBackedObject; import com.microsoft.graph.serializer.AdditionalDataManager; import java.util.EnumSet; +import com.microsoft.graph.models.CustomExtensionOverwriteConfiguration; import com.microsoft.graph.models.OnTokenIssuanceStartCustomExtension; import com.microsoft.graph.models.OnTokenIssuanceStartHandler; @@ -26,6 +27,15 @@ public class OnTokenIssuanceStartCustomExtensionHandler extends OnTokenIssuanceStartHandler implements IJsonBackedObject { + /** + * The Configuration. + * + */ + @SerializedName(value = "configuration", alternate = {"Configuration"}) + @Expose + @Nullable + public CustomExtensionOverwriteConfiguration configuration; + /** * The Custom Extension. * diff --git a/src/main/java/com/microsoft/graph/models/OnlineMeeting.java b/src/main/java/com/microsoft/graph/models/OnlineMeeting.java index 48beb502a89..4f09a808c56 100644 --- a/src/main/java/com/microsoft/graph/models/OnlineMeeting.java +++ b/src/main/java/com/microsoft/graph/models/OnlineMeeting.java @@ -354,7 +354,7 @@ public class OnlineMeeting extends Entity implements IJsonBackedObject { /** * The Recordings. - * + * The recordings of an online meeting. Read-only. */ @SerializedName(value = "recordings", alternate = {"Recordings"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/OpenIdConnectIdentityProvider.java b/src/main/java/com/microsoft/graph/models/OpenIdConnectIdentityProvider.java index ce7eafbd924..7bed1707394 100644 --- a/src/main/java/com/microsoft/graph/models/OpenIdConnectIdentityProvider.java +++ b/src/main/java/com/microsoft/graph/models/OpenIdConnectIdentityProvider.java @@ -48,7 +48,7 @@ public class OpenIdConnectIdentityProvider extends IdentityProviderBase implemen /** * The Client Secret. - * The client secret for the application obtained when registering the application with the identity provider. The clientSecret has a dependency on responseType. When responseType is code, a secret is required for the auth code exchange.When responseType is id_token the secret is not required because there is no code exchange. The id_token is returned directly from the authorization response. This is write-only. A read operation returns ****. + * The client secret for the application obtained when registering the application with the identity provider. The clientSecret has a dependency on responseType. When responseType is code, a secret is required for the auth code exchange.When responseType is idtoken the secret is not required because there is no code exchange. The idtoken is returned directly from the authorization response. This is write-only. A read operation returns . */ @SerializedName(value = "clientSecret", alternate = {"ClientSecret"}) @Expose @@ -84,7 +84,7 @@ public class OpenIdConnectIdentityProvider extends IdentityProviderBase implemen /** * The Response Type. - * The response type describes the type of information sent back in the initial call to the authorization_endpoint of the custom identity provider. Possible values: code , id_token , token. Required. + * The response type describes the type of information sent back in the initial call to the authorizationendpoint of the custom identity provider. Possible values: code , idtoken , token. Required. */ @SerializedName(value = "responseType", alternate = {"ResponseType"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/OpenIdConnectProvider.java b/src/main/java/com/microsoft/graph/models/OpenIdConnectProvider.java index eee087165f9..2d4bc581d41 100644 --- a/src/main/java/com/microsoft/graph/models/OpenIdConnectProvider.java +++ b/src/main/java/com/microsoft/graph/models/OpenIdConnectProvider.java @@ -59,7 +59,7 @@ public class OpenIdConnectProvider extends IdentityProvider implements IJsonBack /** * The Response Mode. - * The response mode defines the method that should be used to send the data back from the custom identity provider to Azure AD B2C. The following response modes can be used: form_post, query. query response mode means the code or token is returned as a query parameter. form_post response mode is recommended for the best security. The response is transmitted via the HTTP POST method, with the code or token being encoded in the body using the application/x-www-form-urlencoded format. It is a required property. + * The response mode defines the method that should be used to send the data back from the custom identity provider to Azure AD B2C. The following response modes can be used: formpost, query. query response mode means the code or token is returned as a query parameter. formpost response mode is recommended for the best security. The response is transmitted via the HTTP POST method, with the code or token being encoded in the body using the application/x-www-form-urlencoded format. It is a required property. */ @SerializedName(value = "responseMode", alternate = {"ResponseMode"}) @Expose @@ -68,7 +68,7 @@ public class OpenIdConnectProvider extends IdentityProvider implements IJsonBack /** * The Response Type. - * response type describes what kind of information is sent back in the initial call to the authorization_endpoint of the custom identity provider. The following response types can be used: code , id_token , token. It is a required property. + * response type describes what kind of information is sent back in the initial call to the authorizationendpoint of the custom identity provider. The following response types can be used: code , idtoken , token. It is a required property. */ @SerializedName(value = "responseType", alternate = {"ResponseType"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/PasswordProfile.java b/src/main/java/com/microsoft/graph/models/PasswordProfile.java index bc12ba95065..02b224c7b5f 100644 --- a/src/main/java/com/microsoft/graph/models/PasswordProfile.java +++ b/src/main/java/com/microsoft/graph/models/PasswordProfile.java @@ -57,7 +57,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Password. - * The password for the user. This property is required when a user is created. It can be updated, but the user will be required to change the password on the next login. The password must satisfy minimum requirements as specified by the user’s passwordPolicies property. By default, a strong password is required. + * The password for the user. This property is required when a user is created. It can be updated, but the user will be required to change the password on the next login. The password must satisfy minimum requirements as specified by the user's passwordPolicies property. By default, a strong password is required. */ @SerializedName(value = "password", alternate = {"Password"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/PasswordSingleSignOnField.java b/src/main/java/com/microsoft/graph/models/PasswordSingleSignOnField.java index 888d373b032..85b4ab438dd 100644 --- a/src/main/java/com/microsoft/graph/models/PasswordSingleSignOnField.java +++ b/src/main/java/com/microsoft/graph/models/PasswordSingleSignOnField.java @@ -57,7 +57,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Field Id. - * Id used to identity the field type. This is an internal id and possible values are param_1, param_2, param_userName, param_password. + * Id used to identity the field type. This is an internal id and possible values are param1, param2, paramuserName, parampassword. */ @SerializedName(value = "fieldId", alternate = {"FieldId"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/PermissionGrantConditionSet.java b/src/main/java/com/microsoft/graph/models/PermissionGrantConditionSet.java index 0c4d53a7479..5bc20f2e1a4 100644 --- a/src/main/java/com/microsoft/graph/models/PermissionGrantConditionSet.java +++ b/src/main/java/com/microsoft/graph/models/PermissionGrantConditionSet.java @@ -83,7 +83,7 @@ public class PermissionGrantConditionSet extends Entity implements IJsonBackedOb /** * The Permissions. - * The list of id values for the specific permissions to match with, or a list with the single value all to match with any permission. The id of delegated permissions can be found in the publishedPermissionScopes property of the API's **servicePrincipal** object. The id of application permissions can be found in the appRoles property of the API's **servicePrincipal** object. The id of resource-specific application permissions can be found in the resourceSpecificApplicationPermissions property of the API's **servicePrincipal** object. Default is the single value all. + * The list of id values for the specific permissions to match with, or a list with the single value all to match with any permission. The id of delegated permissions can be found in the publishedPermissionScopes property of the API's servicePrincipal object. The id of application permissions can be found in the appRoles property of the API's servicePrincipal object. The id of resource-specific application permissions can be found in the resourceSpecificApplicationPermissions property of the API's servicePrincipal object. Default is the single value all. */ @SerializedName(value = "permissions", alternate = {"Permissions"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/PolicyTemplate.java b/src/main/java/com/microsoft/graph/models/PolicyTemplate.java new file mode 100644 index 00000000000..a54039b0cc0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/PolicyTemplate.java @@ -0,0 +1,58 @@ +// 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.MultiTenantOrganizationIdentitySyncPolicyTemplate; +import com.microsoft.graph.models.MultiTenantOrganizationPartnerConfigurationTemplate; +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 Policy Template. + */ +public class PolicyTemplate extends Entity implements IJsonBackedObject { + + + /** + * The Multi Tenant Organization Identity Synchronization. + * + */ + @SerializedName(value = "multiTenantOrganizationIdentitySynchronization", alternate = {"MultiTenantOrganizationIdentitySynchronization"}) + @Expose + @Nullable + public MultiTenantOrganizationIdentitySyncPolicyTemplate multiTenantOrganizationIdentitySynchronization; + + /** + * The Multi Tenant Organization Partner Configuration. + * + */ + @SerializedName(value = "multiTenantOrganizationPartnerConfiguration", alternate = {"MultiTenantOrganizationPartnerConfiguration"}) + @Expose + @Nullable + public MultiTenantOrganizationPartnerConfigurationTemplate multiTenantOrganizationPartnerConfiguration; + + + /** + * 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/ProvisionedIdentity.java b/src/main/java/com/microsoft/graph/models/ProvisionedIdentity.java index 05dfe3ce5f4..565c3465309 100644 --- a/src/main/java/com/microsoft/graph/models/ProvisionedIdentity.java +++ b/src/main/java/com/microsoft/graph/models/ProvisionedIdentity.java @@ -37,7 +37,7 @@ public class ProvisionedIdentity extends Identity implements IJsonBackedObject { /** * The Identity Type. - * Type of identity that has been provisioned, such as 'user' or 'group'. + * Type of identity that has been provisioned, such as 'user' or 'group'. Supports $filter (eq, contains). */ @SerializedName(value = "identityType", alternate = {"IdentityType"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/ProvisioningObjectSummary.java b/src/main/java/com/microsoft/graph/models/ProvisioningObjectSummary.java index 2eca12df30d..b3e46a698fe 100644 --- a/src/main/java/com/microsoft/graph/models/ProvisioningObjectSummary.java +++ b/src/main/java/com/microsoft/graph/models/ProvisioningObjectSummary.java @@ -48,7 +48,7 @@ public class ProvisioningObjectSummary extends Entity implements IJsonBackedObje /** * The Activity Date Time. - * 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 + * Represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Supports $filter (eq, gt, lt) and orderby. */ @SerializedName(value = "activityDateTime", alternate = {"ActivityDateTime"}) @Expose @@ -57,7 +57,7 @@ public class ProvisioningObjectSummary extends Entity implements IJsonBackedObje /** * The Change Id. - * Unique ID of this change in this cycle. + * Unique ID of this change in this cycle. Supports $filter (eq, contains). */ @SerializedName(value = "changeId", alternate = {"ChangeId"}) @Expose @@ -66,7 +66,7 @@ public class ProvisioningObjectSummary extends Entity implements IJsonBackedObje /** * The Cycle Id. - * Unique ID per job iteration. + * Unique ID per job iteration. Supports $filter (eq, contains). */ @SerializedName(value = "cycleId", alternate = {"CycleId"}) @Expose @@ -75,7 +75,7 @@ public class ProvisioningObjectSummary extends Entity implements IJsonBackedObje /** * The Duration In Milliseconds. - * Indicates how long this provisioning action took to finish. Measured in milliseconds. + * Indicates how long this provisioning action took to finish. Measured in milliseconds. Supports $filter (eq, gt, lt). */ @SerializedName(value = "durationInMilliseconds", alternate = {"DurationInMilliseconds"}) @Expose @@ -84,7 +84,7 @@ public class ProvisioningObjectSummary extends Entity implements IJsonBackedObje /** * The Initiated By. - * Details of who initiated this provisioning. + * Details of who initiated this provisioning. Supports $filter (eq, contains). */ @SerializedName(value = "initiatedBy", alternate = {"InitiatedBy"}) @Expose @@ -93,7 +93,7 @@ public class ProvisioningObjectSummary extends Entity implements IJsonBackedObje /** * The Job Id. - * The unique ID for the whole provisioning job. + * The unique ID for the whole provisioning job. Supports $filter (eq, contains). */ @SerializedName(value = "jobId", alternate = {"JobId"}) @Expose @@ -111,7 +111,7 @@ public class ProvisioningObjectSummary extends Entity implements IJsonBackedObje /** * The Provisioning Action. - * Indicates the activity name or the operation name. Possible values are: create, update, delete, stageddelete, disable, other and unknownFutureValue. For a list of activities logged, refer to Azure AD activity list. + * Indicates the activity name or the operation name. Possible values are: create, update, delete, stageddelete, disable, other and unknownFutureValue. For a list of activities logged, refer to Azure AD activity list. Supports $filter (eq, contains). */ @SerializedName(value = "provisioningAction", alternate = {"ProvisioningAction"}) @Expose @@ -120,7 +120,7 @@ public class ProvisioningObjectSummary extends Entity implements IJsonBackedObje /** * The Provisioning Status Info. - * Details of provisioning status. + * Details of provisioning status. Supports $filter (eq, contains) for status. */ @SerializedName(value = "provisioningStatusInfo", alternate = {"ProvisioningStatusInfo"}) @Expose @@ -138,7 +138,7 @@ public class ProvisioningObjectSummary extends Entity implements IJsonBackedObje /** * The Service Principal. - * Represents the service principal used for provisioning. + * Represents the service principal used for provisioning. Supports $filter (eq) for id and name. */ @SerializedName(value = "servicePrincipal", alternate = {"ServicePrincipal"}) @Expose @@ -147,7 +147,7 @@ public class ProvisioningObjectSummary extends Entity implements IJsonBackedObje /** * The Source Identity. - * Details of source object being provisioned. + * Details of source object being provisioned. Supports $filter (eq, contains) for identityType, id, and displayName. */ @SerializedName(value = "sourceIdentity", alternate = {"SourceIdentity"}) @Expose @@ -156,7 +156,7 @@ public class ProvisioningObjectSummary extends Entity implements IJsonBackedObje /** * The Source System. - * Details of source system of the object being provisioned. + * Details of source system of the object being provisioned. Supports $filter (eq, contains) for displayName. */ @SerializedName(value = "sourceSystem", alternate = {"SourceSystem"}) @Expose @@ -176,7 +176,7 @@ public class ProvisioningObjectSummary extends Entity implements IJsonBackedObje /** * The Target Identity. - * Details of target object being provisioned. + * Details of target object being provisioned. Supports $filter (eq, contains) for identityType, id, and displayName. */ @SerializedName(value = "targetIdentity", alternate = {"TargetIdentity"}) @Expose @@ -185,7 +185,7 @@ public class ProvisioningObjectSummary extends Entity implements IJsonBackedObje /** * The Target System. - * Details of target system of the object being provisioned. + * Details of target system of the object being provisioned. Supports $filter (eq, contains) for displayName. */ @SerializedName(value = "targetSystem", alternate = {"TargetSystem"}) @Expose @@ -194,7 +194,7 @@ public class ProvisioningObjectSummary extends Entity implements IJsonBackedObje /** * The Tenant Id. - * Unique Azure AD tenant ID. + * Unique Azure AD tenant ID. Supports $filter (eq, contains). */ @SerializedName(value = "tenantId", alternate = {"TenantId"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/ProvisioningStatusInfo.java b/src/main/java/com/microsoft/graph/models/ProvisioningStatusInfo.java index 6112f9bc725..5b979229eaa 100644 --- a/src/main/java/com/microsoft/graph/models/ProvisioningStatusInfo.java +++ b/src/main/java/com/microsoft/graph/models/ProvisioningStatusInfo.java @@ -50,7 +50,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Status. - * Possible values are: success, failure, skipped, warning, unknownFutureValue. + * Possible values are: success, failure, skipped, warning, unknownFutureValue. Supports $filter (eq, contains). */ @SerializedName(value = "status", alternate = {"Status"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/RegistryKeyState.java b/src/main/java/com/microsoft/graph/models/RegistryKeyState.java index 713db8c358b..044b8def2c3 100644 --- a/src/main/java/com/microsoft/graph/models/RegistryKeyState.java +++ b/src/main/java/com/microsoft/graph/models/RegistryKeyState.java @@ -42,7 +42,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Hive. - * A Windows registry hive : HKEY_CURRENT_CONFIG HKEY_CURRENT_USER HKEY_LOCAL_MACHINE/SAM HKEY_LOCAL_MACHINE/Security HKEY_LOCAL_MACHINE/Software HKEY_LOCAL_MACHINE/System HKEY_USERS/.Default. Possible values are: unknown, currentConfig, currentUser, localMachineSam, localMachineSecurity, localMachineSoftware, localMachineSystem, usersDefault. + * A Windows registry hive : HKEYCURRENTCONFIG HKEYCURRENTUSER HKEYLOCALMACHINE/SAM HKEYLOCALMACHINE/Security HKEYLOCALMACHINE/Software HKEYLOCALMACHINE/System HKEY_USERS/.Default. Possible values are: unknown, currentConfig, currentUser, localMachineSam, localMachineSecurity, localMachineSoftware, localMachineSystem, usersDefault. */ @SerializedName(value = "hive", alternate = {"Hive"}) @Expose @@ -123,7 +123,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Value Type. - * Registry key value type REG_BINARY REG_DWORD REG_DWORD_LITTLE_ENDIAN REG_DWORD_BIG_ENDIANREG_EXPAND_SZ REG_LINK REG_MULTI_SZ REG_NONE REG_QWORD REG_QWORD_LITTLE_ENDIAN REG_SZ Possible values are: unknown, binary, dword, dwordLittleEndian, dwordBigEndian, expandSz, link, multiSz, none, qword, qwordlittleEndian, sz. + * Registry key value type REGBINARY REGDWORD REGDWORDLITTLEENDIAN REGDWORDBIGENDIANREGEXPANDSZ REGLINK REGMULTISZ REGNONE REGQWORD REGQWORDLITTLEENDIAN REG_SZ Possible values are: unknown, binary, dword, dwordLittleEndian, dwordBigEndian, expandSz, link, multiSz, none, qword, qwordlittleEndian, sz. */ @SerializedName(value = "valueType", alternate = {"ValueType"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/RemoteAction.java b/src/main/java/com/microsoft/graph/models/RemoteAction.java index 130f918b504..70a17d243e7 100644 --- a/src/main/java/com/microsoft/graph/models/RemoteAction.java +++ b/src/main/java/com/microsoft/graph/models/RemoteAction.java @@ -140,6 +140,18 @@ public enum RemoteAction */ UNKNOWN_FUTURE_VALUE, /** + * launch Remote Help + */ + LAUNCH_REMOTE_HELP, + /** + * revoke Apple Vpp Licenses + */ + REVOKE_APPLE_VPP_LICENSES, + /** + * remove Device Firmware Configuration Interface Management + */ + REMOVE_DEVICE_FIRMWARE_CONFIGURATION_INTERFACE_MANAGEMENT, + /** * For RemoteAction values that were not expected from the service */ UNEXPECTED_VALUE diff --git a/src/main/java/com/microsoft/graph/models/SensitivityLabelTarget.java b/src/main/java/com/microsoft/graph/models/SensitivityLabelTarget.java index cf779e37d7c..097d53f97e8 100644 --- a/src/main/java/com/microsoft/graph/models/SensitivityLabelTarget.java +++ b/src/main/java/com/microsoft/graph/models/SensitivityLabelTarget.java @@ -24,14 +24,14 @@ public enum SensitivityLabelTarget */ UNIFIED_GROUP, /** - * unknown Future Value - */ - UNKNOWN_FUTURE_VALUE, - /** * teamwork */ TEAMWORK, /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** * For SensitivityLabelTarget values that were not expected from the service */ UNEXPECTED_VALUE diff --git a/src/main/java/com/microsoft/graph/models/SignIn.java b/src/main/java/com/microsoft/graph/models/SignIn.java index 175adb53de3..21027d774a9 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 App Display Name. - * The application name displayed in the Azure Portal. Supports $filter (eq and startsWith operators only). + * The application name displayed in the Azure Portal. Supports $filter (eq, startsWith). */ @SerializedName(value = "appDisplayName", alternate = {"AppDisplayName"}) @Expose @@ -64,7 +64,7 @@ public class SignIn extends Entity implements IJsonBackedObject { /** * The App Id. - * The application identifier in Azure Active Directory. Supports $filter (eq operator only). + * The application identifier in Azure Active Directory. Supports $filter (eq). */ @SerializedName(value = "appId", alternate = {"AppId"}) @Expose @@ -154,7 +154,7 @@ public class SignIn extends Entity implements IJsonBackedObject { /** * The Authentication Requirement. - * This holds the highest level of authentication needed through all the sign-in steps, for sign-in to succeed. Supports $filter (eq and startsWith operators only). + * This holds the highest level of authentication needed through all the sign-in steps, for sign-in to succeed. Supports $filter (eq, startsWith). */ @SerializedName(value = "authenticationRequirement", alternate = {"AuthenticationRequirement"}) @Expose @@ -190,7 +190,7 @@ public class SignIn extends Entity implements IJsonBackedObject { /** * The Client App Used. - * The legacy client used for sign-in activity. For example: Browser, Exchange ActiveSync, Modern clients, IMAP, MAPI, SMTP, or POP. Supports $filter (eq operator only). + * The legacy client used for sign-in activity. For example: Browser, Exchange ActiveSync, Modern clients, IMAP, MAPI, SMTP, or POP. Supports $filter (eq). */ @SerializedName(value = "clientAppUsed", alternate = {"ClientAppUsed"}) @Expose @@ -208,7 +208,7 @@ public class SignIn extends Entity implements IJsonBackedObject { /** * The Conditional Access Status. - * The status of the conditional access policy triggered. Possible values: success, failure, notApplied, or unknownFutureValue. Supports $filter (eq operator only). + * The status of the conditional access policy triggered. Possible values: success, failure, notApplied, or unknownFutureValue. Supports $filter (eq). */ @SerializedName(value = "conditionalAccessStatus", alternate = {"ConditionalAccessStatus"}) @Expose @@ -217,7 +217,7 @@ public class SignIn extends Entity implements IJsonBackedObject { /** * The Correlation Id. - * The identifier that's sent from the client when sign-in is initiated. This is used for troubleshooting the corresponding sign-in activity when calling for support. Supports $filter (eq operator only). + * The identifier that's sent from the client when sign-in is initiated. This is used for troubleshooting the corresponding sign-in activity when calling for support. Supports $filter (eq). */ @SerializedName(value = "correlationId", alternate = {"CorrelationId"}) @Expose @@ -226,7 +226,7 @@ public class SignIn extends Entity implements IJsonBackedObject { /** * The Created Date Time. - * The date and time the sign-in was initiated. The Timestamp type is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Supports $orderby and $filter (eq, le, and ge operators only). + * The date and time the sign-in was initiated. The Timestamp type is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Supports $orderby, $filter (eq, le, and ge). */ @SerializedName(value = "createdDateTime", alternate = {"CreatedDateTime"}) @Expose @@ -244,7 +244,7 @@ public class SignIn extends Entity implements IJsonBackedObject { /** * The Device Detail. - * The device information from where the sign-in occurred. Includes information such as deviceId, OS, and browser. Supports $filter (eq and startsWith operators only) on browser and operatingSystem properties. + * The device information from where the sign-in occurred. Includes information such as deviceId, OS, and browser. Supports $filter (eq, startsWith) on browser and operatingSystem properties. */ @SerializedName(value = "deviceDetail", alternate = {"DeviceDetail"}) @Expose @@ -298,7 +298,7 @@ public class SignIn extends Entity implements IJsonBackedObject { /** * The Ip Address. - * The IP address of the client from where the sign-in occurred. Supports $filter (eq and startsWith operators only). + * The IP address of the client from where the sign-in occurred. Supports $filter (eq, startsWith). */ @SerializedName(value = "ipAddress", alternate = {"IpAddress"}) @Expose @@ -334,7 +334,7 @@ public class SignIn extends Entity implements IJsonBackedObject { /** * The Location. - * The city, state, and 2 letter country code from where the sign-in occurred. Supports $filter (eq and startsWith operators only) on city, state, and countryOrRegion properties. + * The city, state, and 2 letter country code from where the sign-in occurred. Supports $filter (eq, startsWith) on city, state, and countryOrRegion properties. */ @SerializedName(value = "location", alternate = {"Location"}) @Expose @@ -370,7 +370,7 @@ public class SignIn extends Entity implements IJsonBackedObject { /** * The Original Request Id. - * The request identifier of the first request in the authentication sequence. Supports $filter (eq operator only). + * The request identifier of the first request in the authentication sequence. Supports $filter (eq). */ @SerializedName(value = "originalRequestId", alternate = {"OriginalRequestId"}) @Expose @@ -397,7 +397,7 @@ public class SignIn extends Entity implements IJsonBackedObject { /** * The Resource Display Name. - * The name of the resource that the user signed in to. Supports $filter (eq operator only). + * The name of the resource that the user signed in to. Supports $filter (eq). */ @SerializedName(value = "resourceDisplayName", alternate = {"ResourceDisplayName"}) @Expose @@ -406,7 +406,7 @@ public class SignIn extends Entity implements IJsonBackedObject { /** * The Resource Id. - * The identifier of the resource that the user signed in to. Supports $filter (eq operator only). + * The identifier of the resource that the user signed in to. Supports $filter (eq). */ @SerializedName(value = "resourceId", alternate = {"ResourceId"}) @Expose @@ -433,7 +433,7 @@ public class SignIn extends Entity implements IJsonBackedObject { /** * The Risk Detail. - * The reason behind a specific state of a risky user, sign-in, or a risk event. Possible values: none, adminGeneratedTemporaryPassword, userPerformedSecuredPasswordChange, userPerformedSecuredPasswordReset, adminConfirmedSigninSafe, aiConfirmedSigninSafe, userPassedMFADrivenByRiskBasedPolicy, adminDismissedAllRiskForUser, adminConfirmedSigninCompromised, or unknownFutureValue. The value none means that no action has been performed on the user or sign-in so far. Supports $filter (eq operator only). Note: Details for this property are only available for Azure AD Premium P2 customers. All other customers are returned hidden. + * The reason behind a specific state of a risky user, sign-in, or a risk event. Possible values: none, adminGeneratedTemporaryPassword, userPerformedSecuredPasswordChange, userPerformedSecuredPasswordReset, adminConfirmedSigninSafe, aiConfirmedSigninSafe, userPassedMFADrivenByRiskBasedPolicy, adminDismissedAllRiskForUser, adminConfirmedSigninCompromised, or unknownFutureValue. The value none means that no action has been performed on the user or sign-in so far. Supports $filter (eq). Note: Details for this property are only available for Azure AD Premium P2 customers. All other customers are returned hidden. */ @SerializedName(value = "riskDetail", alternate = {"RiskDetail"}) @Expose @@ -442,7 +442,7 @@ public class SignIn extends Entity implements IJsonBackedObject { /** * The Risk Event Types_v2. - * The list of risk event types associated with the sign-in. Possible values: unlikelyTravel, anonymizedIPAddress, maliciousIPAddress, unfamiliarFeatures, malwareInfectedIPAddress, suspiciousIPAddress, leakedCredentials, investigationsThreatIntelligence, generic, or unknownFutureValue. Supports $filter (eq and startsWith operators only). + * The list of risk event types associated with the sign-in. Possible values: unlikelyTravel, anonymizedIPAddress, maliciousIPAddress, unfamiliarFeatures, malwareInfectedIPAddress, suspiciousIPAddress, leakedCredentials, investigationsThreatIntelligence, generic, or unknownFutureValue. Supports $filter (eq, startsWith). */ @SerializedName(value = "riskEventTypes_v2", alternate = {"RiskEventTypes_v2"}) @Expose @@ -451,7 +451,7 @@ public class SignIn extends Entity implements IJsonBackedObject { /** * The Risk Level Aggregated. - * The aggregated risk level. Possible values: none, low, medium, high, hidden, or unknownFutureValue. The value hidden means the user or sign-in was not enabled for Azure AD Identity Protection. Supports $filter (eq operator only). Note: Details for this property are only available for Azure AD Premium P2 customers. All other customers are returned hidden. + * The aggregated risk level. Possible values: none, low, medium, high, hidden, or unknownFutureValue. The value hidden means the user or sign-in was not enabled for Azure AD Identity Protection. Supports $filter (eq). Note: Details for this property are only available for Azure AD Premium P2 customers. All other customers are returned hidden. */ @SerializedName(value = "riskLevelAggregated", alternate = {"RiskLevelAggregated"}) @Expose @@ -460,7 +460,7 @@ public class SignIn extends Entity implements IJsonBackedObject { /** * The Risk Level During Sign In. - * The risk level during sign-in. Possible values: none, low, medium, high, hidden, or unknownFutureValue. The value hidden means the user or sign-in was not enabled for Azure AD Identity Protection. Supports $filter (eq operator only). Note: Details for this property are only available for Azure AD Premium P2 customers. All other customers are returned hidden. + * The risk level during sign-in. Possible values: none, low, medium, high, hidden, or unknownFutureValue. The value hidden means the user or sign-in was not enabled for Azure AD Identity Protection. Supports $filter (eq). Note: Details for this property are only available for Azure AD Premium P2 customers. All other customers are returned hidden. */ @SerializedName(value = "riskLevelDuringSignIn", alternate = {"RiskLevelDuringSignIn"}) @Expose @@ -469,7 +469,7 @@ public class SignIn extends Entity implements IJsonBackedObject { /** * The Risk State. - * The risk state of a risky user, sign-in, or a risk event. Possible values: none, confirmedSafe, remediated, dismissed, atRisk, confirmedCompromised, or unknownFutureValue. Supports $filter (eq operator only). + * The risk state of a risky user, sign-in, or a risk event. Possible values: none, confirmedSafe, remediated, dismissed, atRisk, confirmedCompromised, or unknownFutureValue. Supports $filter (eq). */ @SerializedName(value = "riskState", alternate = {"RiskState"}) @Expose @@ -496,7 +496,7 @@ public class SignIn extends Entity implements IJsonBackedObject { /** * The Service Principal Id. - * The application identifier used for sign-in. This field is populated when you are signing in using an application. Supports $filter (eq and startsWith operators only). + * The application identifier used for sign-in. This field is populated when you are signing in using an application. Supports $filter (eq, startsWith). */ @SerializedName(value = "servicePrincipalId", alternate = {"ServicePrincipalId"}) @Expose @@ -505,7 +505,7 @@ public class SignIn extends Entity implements IJsonBackedObject { /** * The Service Principal Name. - * The application name used for sign-in. This field is populated when you are signing in using an application. Supports $filter (eq and startsWith operators only). + * The application name used for sign-in. This field is populated when you are signing in using an application. Supports $filter (eq, startsWith). */ @SerializedName(value = "servicePrincipalName", alternate = {"ServicePrincipalName"}) @Expose @@ -523,7 +523,7 @@ public class SignIn extends Entity implements IJsonBackedObject { /** * The Sign In Event Types. - * Indicates the category of sign in that the event represents. For user sign ins, the category can be interactiveUser or nonInteractiveUser and corresponds to the value for the isInteractive property on the signin resource. For managed identity sign ins, the category is managedIdentity. For service principal sign ins, the category is servicePrincipal. Possible values are: interactiveUser, nonInteractiveUser, servicePrincipal, managedIdentity, unknownFutureValue. Supports $filter (eq, ne). + * Indicates the category of sign in that the event represents. For user sign ins, the category can be interactiveUser or nonInteractiveUser and corresponds to the value for the isInteractive property on the signin resource. For managed identity sign ins, the category is managedIdentity. For service principal sign ins, the category is servicePrincipal. Possible values are: interactiveUser, nonInteractiveUser, servicePrincipal, managedIdentity, unknownFutureValue. Supports $filter (eq, ne). */ @SerializedName(value = "signInEventTypes", alternate = {"SignInEventTypes"}) @Expose @@ -550,7 +550,7 @@ public class SignIn extends Entity implements IJsonBackedObject { /** * The Status. - * The sign-in status. Includes the error code and description of the error (in case of a sign-in failure). Supports $filter (eq operator only) on errorCode property. + * The sign-in status. Includes the error code and description of the error (in case of a sign-in failure). Supports $filter (eq) on errorCode property. */ @SerializedName(value = "status", alternate = {"Status"}) @Expose @@ -559,7 +559,7 @@ public class SignIn extends Entity implements IJsonBackedObject { /** * The Token Issuer Name. - * The name of the identity provider. For example, sts.microsoft.com. Supports $filter (eq operator only). + * The name of the identity provider. For example, sts.microsoft.com. Supports $filter (eq). */ @SerializedName(value = "tokenIssuerName", alternate = {"TokenIssuerName"}) @Expose @@ -586,7 +586,7 @@ public class SignIn extends Entity implements IJsonBackedObject { /** * The User Agent. - * The user agent information related to sign-in. Supports $filter (eq and startsWith operators only). + * The user agent information related to sign-in. Supports $filter (eq, startsWith). */ @SerializedName(value = "userAgent", alternate = {"UserAgent"}) @Expose @@ -595,7 +595,7 @@ public class SignIn extends Entity implements IJsonBackedObject { /** * The User Display Name. - * The display name of the user. Supports $filter (eq and startsWith operators only). + * The display name of the user. Supports $filter (eq, startsWith). */ @SerializedName(value = "userDisplayName", alternate = {"UserDisplayName"}) @Expose @@ -604,7 +604,7 @@ public class SignIn extends Entity implements IJsonBackedObject { /** * The User Id. - * The identifier of the user. Supports $filter (eq operator only). + * The identifier of the user. Supports $filter (eq). */ @SerializedName(value = "userId", alternate = {"UserId"}) @Expose @@ -613,7 +613,7 @@ public class SignIn extends Entity implements IJsonBackedObject { /** * The User Principal Name. - * The UPN of the user. Supports $filter (eq and startsWith operators only). + * The UPN of the user. Supports $filter (eq, startsWith). */ @SerializedName(value = "userPrincipalName", alternate = {"UserPrincipalName"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/SocialIdentityProvider.java b/src/main/java/com/microsoft/graph/models/SocialIdentityProvider.java index 33693d1eae2..27cc16c9867 100644 --- a/src/main/java/com/microsoft/graph/models/SocialIdentityProvider.java +++ b/src/main/java/com/microsoft/graph/models/SocialIdentityProvider.java @@ -36,7 +36,7 @@ public class SocialIdentityProvider extends IdentityProviderBase implements IJso /** * The Client Secret. - * The client secret for the application that is obtained when the application is registered with the identity provider. This is write-only. A read operation returns ****. Required. + * The client secret for the application that is obtained when the application is registered with the identity provider. This is write-only. A read operation returns . Required. */ @SerializedName(value = "clientSecret", alternate = {"ClientSecret"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/StatusBase.java b/src/main/java/com/microsoft/graph/models/StatusBase.java index bbb446ca68a..f14180fdcc6 100644 --- a/src/main/java/com/microsoft/graph/models/StatusBase.java +++ b/src/main/java/com/microsoft/graph/models/StatusBase.java @@ -42,7 +42,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Status. - * Possible values are: success, warning, failure, skipped, unknownFutureValue. + * Possible values are: success, warning, failure, skipped, unknownFutureValue. Supports $filter (eq, contains). */ @SerializedName(value = "status", alternate = {"Status"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/Subscription.java b/src/main/java/com/microsoft/graph/models/Subscription.java index dd4d5239d50..f56e2b3d407 100644 --- a/src/main/java/com/microsoft/graph/models/Subscription.java +++ b/src/main/java/com/microsoft/graph/models/Subscription.java @@ -99,7 +99,7 @@ public class Subscription extends Entity implements IJsonBackedObject { /** * The Latest Supported Tls Version. - * Optional. Specifies the latest version of Transport Layer Security (TLS) that the notification endpoint, specified by notificationUrl, supports. The possible values are: v1_0, v1_1, v1_2, v1_3. For subscribers whose notification endpoint supports a version lower than the currently recommended version (TLS 1.2), specifying this property by a set timeline allows them to temporarily use their deprecated version of TLS before completing their upgrade to TLS 1.2. For these subscribers, not setting this property per the timeline would result in subscription operations failing. For subscribers whose notification endpoint already supports TLS 1.2, setting this property is optional. In such cases, Microsoft Graph defaults the property to v1_2. + * Optional. Specifies the latest version of Transport Layer Security (TLS) that the notification endpoint, specified by notificationUrl, supports. The possible values are: v10, v11, v12, v13. For subscribers whose notification endpoint supports a version lower than the currently recommended version (TLS 1.2), specifying this property by a set timeline allows them to temporarily use their deprecated version of TLS before completing their upgrade to TLS 1.2. For these subscribers, not setting this property per the timeline would result in subscription operations failing. For subscribers whose notification endpoint already supports TLS 1.2, setting this property is optional. In such cases, Microsoft Graph defaults the property to v1_2. */ @SerializedName(value = "latestSupportedTlsVersion", alternate = {"LatestSupportedTlsVersion"}) @Expose @@ -108,7 +108,7 @@ public class Subscription extends Entity implements IJsonBackedObject { /** * The Lifecycle Notification Url. - * Optional. The URL of the endpoint that receives lifecycle notifications, including subscriptionRemoved, reauthorizationRequired, and missed notifications. This URL must make use of the HTTPS protocol. + * Required for Teams resources if the expirationDateTime value is more than 1 hour from now; optional otherwise. The URL of the endpoint that receives lifecycle notifications, including subscriptionRemoved, reauthorizationRequired, and missed notifications. This URL must make use of the HTTPS protocol. For more information, see Reduce missing subscriptions and change notifications. */ @SerializedName(value = "lifecycleNotificationUrl", alternate = {"LifecycleNotificationUrl"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/TeleconferenceDeviceQuality.java b/src/main/java/com/microsoft/graph/models/TeleconferenceDeviceQuality.java index d05caf24707..3b334b53a26 100644 --- a/src/main/java/com/microsoft/graph/models/TeleconferenceDeviceQuality.java +++ b/src/main/java/com/microsoft/graph/models/TeleconferenceDeviceQuality.java @@ -68,7 +68,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Cloud Service Instance Name. - * The Azure deployed cloud service instance name, such as FrontEnd_IN_3. + * The Azure deployed cloud service instance name, such as FrontEndIN3. */ @SerializedName(value = "cloudServiceInstanceName", alternate = {"CloudServiceInstanceName"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/TemplateApplicationLevel.java b/src/main/java/com/microsoft/graph/models/TemplateApplicationLevel.java new file mode 100644 index 00000000000..020bb7f557a --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/TemplateApplicationLevel.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.models; + + +/** + * The Enum Template Application Level. +*/ +public enum TemplateApplicationLevel +{ + /** + * none + */ + NONE, + /** + * new Partners + */ + NEW_PARTNERS, + /** + * existing Partners + */ + EXISTING_PARTNERS, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For TemplateApplicationLevel values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/TenantRelationship.java b/src/main/java/com/microsoft/graph/models/TenantRelationship.java index 6560b818dee..8a63ed31e59 100644 --- a/src/main/java/com/microsoft/graph/models/TenantRelationship.java +++ b/src/main/java/com/microsoft/graph/models/TenantRelationship.java @@ -9,6 +9,7 @@ import com.microsoft.graph.serializer.AdditionalDataManager; import java.util.EnumSet; import com.microsoft.graph.http.BaseCollectionPage; +import com.microsoft.graph.models.MultiTenantOrganization; import com.microsoft.graph.managedtenants.models.ManagedTenant; import com.microsoft.graph.requests.DelegatedAdminCustomerCollectionPage; import com.microsoft.graph.requests.DelegatedAdminRelationshipCollectionPage; @@ -41,6 +42,15 @@ public final AdditionalDataManager additionalDataManager() { return additionalDataManager; } + /** + * The Multi Tenant Organization. + * + */ + @SerializedName(value = "multiTenantOrganization", alternate = {"MultiTenantOrganization"}) + @Expose + @Nullable + public MultiTenantOrganization multiTenantOrganization; + /** * The Managed Tenants. * The operations available to interact with the multi-tenant management platform. diff --git a/src/main/java/com/microsoft/graph/models/UnifiedRoleDefinition.java b/src/main/java/com/microsoft/graph/models/UnifiedRoleDefinition.java index 3db4394d89e..b2087f290f1 100644 --- a/src/main/java/com/microsoft/graph/models/UnifiedRoleDefinition.java +++ b/src/main/java/com/microsoft/graph/models/UnifiedRoleDefinition.java @@ -31,7 +31,7 @@ public class UnifiedRoleDefinition extends Entity implements IJsonBackedObject { /** * The Allowed Principal Types. - * + * Types of principals that can be assigned the role. Read-only. The possible values are: user, servicePrincipal, group, unknownFutureValue. This is a multi-valued enumeration that can contain up to three values as a comma-separated string. For example, user, group. Supports $filter (eq). */ @SerializedName(value = "allowedPrincipalTypes", alternate = {"AllowedPrincipalTypes"}) @Expose @@ -49,7 +49,7 @@ public class UnifiedRoleDefinition extends Entity implements IJsonBackedObject { /** * The Display Name. - * The display name for the unifiedRoleDefinition. Read-only when isBuiltIn is true. Required. Supports $filter (eq and startsWith operators only). + * The display name for the unifiedRoleDefinition. Read-only when isBuiltIn is true. Required. Supports $filter (eq and startsWith). */ @SerializedName(value = "displayName", alternate = {"DisplayName"}) @Expose @@ -58,7 +58,7 @@ public class UnifiedRoleDefinition extends Entity implements IJsonBackedObject { /** * The Is Built In. - * Flag indicating if the unifiedRoleDefinition is part of the default set included with the product or custom. Read-only. Supports $filter (eq operator only). + * Flag indicating if the unifiedRoleDefinition is part of the default set included with the product or custom. Read-only. Supports $filter (eq). */ @SerializedName(value = "isBuiltIn", alternate = {"IsBuiltIn"}) @Expose @@ -85,7 +85,7 @@ public class UnifiedRoleDefinition extends Entity implements IJsonBackedObject { /** * The Resource Scopes. - * List of scopes permissions granted by the role definition apply to. Currently only / is supported. Read-only when isBuiltIn is true. DO NOT USE. This will be deprecated soon. Attach scope to role assignment + * List of scopes permissions granted by the role definition apply to. Currently only / is supported. Read-only when isBuiltIn is true. DO NOT USE. This will be deprecated soon. Attach scope to role assignment. */ @SerializedName(value = "resourceScopes", alternate = {"ResourceScopes"}) @Expose @@ -112,7 +112,7 @@ public class UnifiedRoleDefinition extends Entity implements IJsonBackedObject { /** * The Version. - * Indicates version of the unifiedRoleDefinition. Read-only when isBuiltIn is true. + * Indicates the version of the unifiedRoleDefinition object. Read-only when isBuiltIn is true. */ @SerializedName(value = "version", alternate = {"Version"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/User.java b/src/main/java/com/microsoft/graph/models/User.java index 73e2e5b0cc7..b09bc2756e5 100644 --- a/src/main/java/com/microsoft/graph/models/User.java +++ b/src/main/java/com/microsoft/graph/models/User.java @@ -13,6 +13,7 @@ import com.microsoft.graph.models.AssignedLicense; import com.microsoft.graph.models.AssignedPlan; import com.microsoft.graph.models.AuthorizationInfo; +import com.microsoft.graph.models.CloudRealtimeCommunicationInfo; import com.microsoft.graph.models.CustomSecurityAttributeValue; import com.microsoft.graph.models.DeviceKey; import com.microsoft.graph.models.EmployeeOrgData; @@ -20,6 +21,7 @@ import com.microsoft.graph.models.LicenseAssignmentState; import com.microsoft.graph.models.OnPremisesExtensionAttributes; import com.microsoft.graph.models.OnPremisesProvisioningError; +import com.microsoft.graph.models.OnPremisesSipInfo; import com.microsoft.graph.models.PasswordProfile; import com.microsoft.graph.models.ProvisionedPlan; import com.microsoft.graph.models.ServiceProvisioningError; @@ -162,6 +164,15 @@ public class User extends DirectoryObject implements IJsonBackedObject { @Nullable public String city; + /** + * The Cloud Realtime Communication Info. + * + */ + @SerializedName(value = "cloudRealtimeCommunicationInfo", alternate = {"CloudRealtimeCommunicationInfo"}) + @Expose + @Nullable + public CloudRealtimeCommunicationInfo cloudRealtimeCommunicationInfo; + /** * The Company Name. * The company name which the user is associated. This property can be useful for describing the company that an external user comes from. The maximum length is 64 characters.Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values). @@ -522,6 +533,15 @@ public class User extends DirectoryObject implements IJsonBackedObject { @Nullable public String onPremisesSecurityIdentifier; + /** + * The On Premises Sip Info. + * + */ + @SerializedName(value = "onPremisesSipInfo", alternate = {"OnPremisesSipInfo"}) + @Expose + @Nullable + public OnPremisesSipInfo onPremisesSipInfo; + /** * The On Premises Sync Enabled. * true if this user object is currently being synced from an on-premises Active Directory (AD); otherwise the user isn't being synced and can be managed in Azure Active Directory (Azure AD). Read-only. Supports $filter (eq, ne, not, in, and eq on null values). diff --git a/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsBatteryHealthDevicePerformance.java b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsBatteryHealthDevicePerformance.java index 35246ba57f9..be3fec3cd09 100644 --- a/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsBatteryHealthDevicePerformance.java +++ b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsBatteryHealthDevicePerformance.java @@ -35,6 +35,15 @@ public class UserExperienceAnalyticsBatteryHealthDevicePerformance extends Entit @Nullable public Integer batteryAgeInDays; + /** + * The Device Battery Count. + * Number of batteries in a user device. Valid values 1 to 2147483647 + */ + @SerializedName(value = "deviceBatteryCount", alternate = {"DeviceBatteryCount"}) + @Expose + @Nullable + public Integer deviceBatteryCount; + /** * The Device Battery Health Score. * A weighted average of a device’s maximum capacity score and runtime estimate score. Values range from 0-100. Valid values -2147483648 to 2147483647 @@ -71,6 +80,15 @@ public class UserExperienceAnalyticsBatteryHealthDevicePerformance extends Entit @Nullable public Integer estimatedRuntimeInMinutes; + /** + * The Full Battery Drain Count. + * Number of times the battery has been discharged an amount that equals 100% of its capacity, but not necessarily by discharging it from 100% to 0%. Valid values 0 to 2147483647 + */ + @SerializedName(value = "fullBatteryDrainCount", alternate = {"FullBatteryDrainCount"}) + @Expose + @Nullable + public Integer fullBatteryDrainCount; + /** * The Health Status. * The overall battery health status of the device. Possible values are: unknown, insufficientData, needsAttention, meetingGoals, unknownFutureValue. diff --git a/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsBatteryHealthModelPerformance.java b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsBatteryHealthModelPerformance.java index 05582d96327..8b98608b994 100644 --- a/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsBatteryHealthModelPerformance.java +++ b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsBatteryHealthModelPerformance.java @@ -8,6 +8,7 @@ import com.microsoft.graph.serializer.IJsonBackedObject; import com.microsoft.graph.serializer.AdditionalDataManager; import java.util.EnumSet; +import com.microsoft.graph.models.UserExperienceAnalyticsHealthState; import com.microsoft.graph.models.Entity; @@ -70,6 +71,42 @@ public class UserExperienceAnalyticsBatteryHealthModelPerformance extends Entity @Nullable public String manufacturer; + /** + * The Mean Full Battery Drain Count. + * The mean of number of times the battery has been discharged an amount that equals 100% of its capacity for all devices of a given model in a tenant. Valid values 0 to 2147483647 + */ + @SerializedName(value = "meanFullBatteryDrainCount", alternate = {"MeanFullBatteryDrainCount"}) + @Expose + @Nullable + public Integer meanFullBatteryDrainCount; + + /** + * The Median Estimated Runtime In Minutes. + * The median of the estimated runtimes on full charge for all devices of a given model. Unit in minutes. Valid values 0 to 2147483647 + */ + @SerializedName(value = "medianEstimatedRuntimeInMinutes", alternate = {"MedianEstimatedRuntimeInMinutes"}) + @Expose + @Nullable + public Integer medianEstimatedRuntimeInMinutes; + + /** + * The Median Full Battery Drain Count. + * The median of number of times the battery has been discharged an amount that equals 100% of its capacity for all devices of a given model in a tenant. Valid values 0 to 2147483647 + */ + @SerializedName(value = "medianFullBatteryDrainCount", alternate = {"MedianFullBatteryDrainCount"}) + @Expose + @Nullable + public Integer medianFullBatteryDrainCount; + + /** + * The Median Max Capacity Percentage. + * The median of the maximum capacity for all devices of a given model. Maximum capacity measures the full charge vs. design capacity for a device’s batteries.. Valid values 0 to 2147483647 + */ + @SerializedName(value = "medianMaxCapacityPercentage", alternate = {"MedianMaxCapacityPercentage"}) + @Expose + @Nullable + public Integer medianMaxCapacityPercentage; + /** * The Model. * The model name of the device. @@ -88,6 +125,15 @@ public class UserExperienceAnalyticsBatteryHealthModelPerformance extends Entity @Nullable public Integer modelBatteryHealthScore; + /** + * The Model Health Status. + * The overall battery health status of a given model in a tenant. + */ + @SerializedName(value = "modelHealthStatus", alternate = {"ModelHealthStatus"}) + @Expose + @Nullable + public UserExperienceAnalyticsHealthState modelHealthStatus; + /** * Sets the raw JSON object diff --git a/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsBatteryHealthOsPerformance.java b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsBatteryHealthOsPerformance.java index 21dc2016c07..e3582dbf2d8 100644 --- a/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsBatteryHealthOsPerformance.java +++ b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsBatteryHealthOsPerformance.java @@ -8,6 +8,7 @@ import com.microsoft.graph.serializer.IJsonBackedObject; import com.microsoft.graph.serializer.AdditionalDataManager; import java.util.EnumSet; +import com.microsoft.graph.models.UserExperienceAnalyticsHealthState; import com.microsoft.graph.models.Entity; @@ -61,6 +62,51 @@ public class UserExperienceAnalyticsBatteryHealthOsPerformance extends Entity im @Nullable public Integer averageMaxCapacityPercentage; + /** + * The Mean Full Battery Drain Count. + * The mean of number of times the battery has been discharged an amount that equals 100% of its capacity for all devices running a particular operating system version in a tenant. Valid values 0 to 2147483647 + */ + @SerializedName(value = "meanFullBatteryDrainCount", alternate = {"MeanFullBatteryDrainCount"}) + @Expose + @Nullable + public Integer meanFullBatteryDrainCount; + + /** + * The Median Estimated Runtime In Minutes. + * The median of the estimated runtimes on full charge for all devices running a particular operating system version. Unit in minutes. Valid values 0 to 2147483647 + */ + @SerializedName(value = "medianEstimatedRuntimeInMinutes", alternate = {"MedianEstimatedRuntimeInMinutes"}) + @Expose + @Nullable + public Integer medianEstimatedRuntimeInMinutes; + + /** + * The Median Full Battery Drain Count. + * The median of number of times the battery has been discharged an amount that equals 100% of its capacity for all devices running a particular operating system version in a tenant. Valid values 0 to 2147483647 + */ + @SerializedName(value = "medianFullBatteryDrainCount", alternate = {"MedianFullBatteryDrainCount"}) + @Expose + @Nullable + public Integer medianFullBatteryDrainCount; + + /** + * The Median Max Capacity Percentage. + * The median of the maximum capacity for all devices running a particular operating system version. Maximum capacity measures the full charge vs. design capacity for a device’s batteries.. Valid values 0 to 2147483647 + */ + @SerializedName(value = "medianMaxCapacityPercentage", alternate = {"MedianMaxCapacityPercentage"}) + @Expose + @Nullable + public Integer medianMaxCapacityPercentage; + + /** + * The Os Battery Health Score. + * A weighted average of battery health score across all devices running a particular operating system version. Values range from 0-100. Valid values 0 to 2147483647 + */ + @SerializedName(value = "osBatteryHealthScore", alternate = {"OsBatteryHealthScore"}) + @Expose + @Nullable + public Integer osBatteryHealthScore; + /** * The Os Build Number. * Build number of the operating system. @@ -70,6 +116,15 @@ public class UserExperienceAnalyticsBatteryHealthOsPerformance extends Entity im @Nullable public String osBuildNumber; + /** + * The Os Health Status. + * The overall battery health status of a given os version in a tenant. + */ + @SerializedName(value = "osHealthStatus", alternate = {"OsHealthStatus"}) + @Expose + @Nullable + public UserExperienceAnalyticsHealthState osHealthStatus; + /** * The Os Version. * Version of the operating system. diff --git a/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsDeviceStartupProcessPerformance.java b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsDeviceStartupProcessPerformance.java index 9ae77b6f9e9..fdf911e297f 100644 --- a/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsDeviceStartupProcessPerformance.java +++ b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsDeviceStartupProcessPerformance.java @@ -43,15 +43,6 @@ public class UserExperienceAnalyticsDeviceStartupProcessPerformance extends Enti @Nullable public Long medianImpactInMs; - /** - * The Median Impact In Ms2. - * The median impact of startup process on device boot time in milliseconds. Supports: $filter, $select, $OrderBy. Read-only. - */ - @SerializedName(value = "medianImpactInMs2", alternate = {"MedianImpactInMs2"}) - @Expose - @Nullable - public Long medianImpactInMs2; - /** * The Process Name. * The name of the startup process. Examples: outlook, excel. Supports: $select, $OrderBy. Read-only. @@ -88,15 +79,6 @@ public class UserExperienceAnalyticsDeviceStartupProcessPerformance extends Enti @Nullable public Long totalImpactInMs; - /** - * The Total Impact In Ms2. - * The total impact of startup process on device boot time in milliseconds. Supports: $filter, $select, $OrderBy. Read-only. - */ - @SerializedName(value = "totalImpactInMs2", alternate = {"TotalImpactInMs2"}) - @Expose - @Nullable - public Long totalImpactInMs2; - /** * Sets the raw JSON object diff --git a/src/main/java/com/microsoft/graph/models/Win32LobAppInstallExperience.java b/src/main/java/com/microsoft/graph/models/Win32LobAppInstallExperience.java index 7f351909a88..617a6738c03 100644 --- a/src/main/java/com/microsoft/graph/models/Win32LobAppInstallExperience.java +++ b/src/main/java/com/microsoft/graph/models/Win32LobAppInstallExperience.java @@ -48,6 +48,15 @@ public final AdditionalDataManager additionalDataManager() { @Nullable public Win32LobAppRestartBehavior deviceRestartBehavior; + /** + * The Max Run Time In Minutes. + * The number of minutes the system will wait for install program to finish. Default value is 60 minutes. + */ + @SerializedName(value = "maxRunTimeInMinutes", alternate = {"MaxRunTimeInMinutes"}) + @Expose + @Nullable + public Integer maxRunTimeInMinutes; + /** * The Run As Account. * Indicates the type of execution context the app runs in. Possible values are: system, user. diff --git a/src/main/java/com/microsoft/graph/models/WindowsAppX.java b/src/main/java/com/microsoft/graph/models/WindowsAppX.java index d253e721b2a..fb96403642b 100644 --- a/src/main/java/com/microsoft/graph/models/WindowsAppX.java +++ b/src/main/java/com/microsoft/graph/models/WindowsAppX.java @@ -83,7 +83,7 @@ public class WindowsAppX extends MobileLobApp implements IJsonBackedObject { /** * The Minimum Supported Operating System. - * The value for the minimum applicable operating system. Valid values for a WindowsAppX app include v8_0, v8_1 and v10_0. If the app is a bundle, the minimum supported OS has to be at least v8_1. + * The value for the minimum applicable operating system. Valid values for a WindowsAppX app include v80, v81 and v100. If the app is a bundle, the minimum supported OS has to be at least v81. */ @SerializedName(value = "minimumSupportedOperatingSystem", alternate = {"MinimumSupportedOperatingSystem"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/WindowsAppXAppAssignmentSettings.java b/src/main/java/com/microsoft/graph/models/WindowsAppXAppAssignmentSettings.java index 437da47dd9c..476b50a1ec7 100644 --- a/src/main/java/com/microsoft/graph/models/WindowsAppXAppAssignmentSettings.java +++ b/src/main/java/com/microsoft/graph/models/WindowsAppXAppAssignmentSettings.java @@ -27,7 +27,7 @@ public class WindowsAppXAppAssignmentSettings extends MobileAppAssignmentSetting /** * The Use Device Context. - * When TRUE, indicates that device execution context will be used for the AppX mobile app. When FALSE, indicates that user context will be used for the AppX mobile app. By default, this property is set to FALSE. Once this property has been set to TRUE it cannot be changed. + * Whether or not to use device execution context for Windows AppX mobile app. */ @SerializedName(value = "useDeviceContext", alternate = {"UseDeviceContext"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/WindowsDeviceMalwareState.java b/src/main/java/com/microsoft/graph/models/WindowsDeviceMalwareState.java index 04bd4a50ada..a5ccb1856b6 100644 --- a/src/main/java/com/microsoft/graph/models/WindowsDeviceMalwareState.java +++ b/src/main/java/com/microsoft/graph/models/WindowsDeviceMalwareState.java @@ -41,7 +41,7 @@ public class WindowsDeviceMalwareState extends Entity implements IJsonBackedObje /** * The Category. - * Category of the malware. Possible values are: invalid, adware, spyware, passwordStealer, trojanDownloader, worm, backdoor, remoteAccessTrojan, trojan, emailFlooder, keylogger, dialer, monitoringSoftware, browserModifier, cookie, browserPlugin, aolExploit, nuker, securityDisabler, jokeProgram, hostileActiveXControl, softwareBundler, stealthNotifier, settingsModifier, toolBar, remoteControlSoftware, trojanFtp, potentialUnwantedSoftware, icqExploit, trojanTelnet, exploit, filesharingProgram, malwareCreationTool, remote_Control_Software, tool, trojanDenialOfService, trojanDropper, trojanMassMailer, trojanMonitoringSoftware, trojanProxyServer, virus, known, unknown, spp, behavior, vulnerability, policy, enterpriseUnwantedSoftware, ransom, hipsRule. + * Category of the malware. Possible values are: invalid, adware, spyware, passwordStealer, trojanDownloader, worm, backdoor, remoteAccessTrojan, trojan, emailFlooder, keylogger, dialer, monitoringSoftware, browserModifier, cookie, browserPlugin, aolExploit, nuker, securityDisabler, jokeProgram, hostileActiveXControl, softwareBundler, stealthNotifier, settingsModifier, toolBar, remoteControlSoftware, trojanFtp, potentialUnwantedSoftware, icqExploit, trojanTelnet, exploit, filesharingProgram, malwareCreationTool, remoteControlSoftware, tool, trojanDenialOfService, trojanDropper, trojanMassMailer, trojanMonitoringSoftware, trojanProxyServer, virus, known, unknown, spp, behavior, vulnerability, policy, enterpriseUnwantedSoftware, ransom, hipsRule. */ @SerializedName(value = "category", alternate = {"Category"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/WindowsDeviceType.java b/src/main/java/com/microsoft/graph/models/WindowsDeviceType.java index 649d0583728..24270b99f0e 100644 --- a/src/main/java/com/microsoft/graph/models/WindowsDeviceType.java +++ b/src/main/java/com/microsoft/graph/models/WindowsDeviceType.java @@ -32,6 +32,10 @@ public enum WindowsDeviceType */ TEAM, /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** * For WindowsDeviceType values that were not expected from the service */ UNEXPECTED_VALUE diff --git a/src/main/java/com/microsoft/graph/models/WindowsMalwareCategoryCount.java b/src/main/java/com/microsoft/graph/models/WindowsMalwareCategoryCount.java index 37de220926c..952b835ca7a 100644 --- a/src/main/java/com/microsoft/graph/models/WindowsMalwareCategoryCount.java +++ b/src/main/java/com/microsoft/graph/models/WindowsMalwareCategoryCount.java @@ -49,7 +49,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Category. - * Malware category. Possible values are: invalid, adware, spyware, passwordStealer, trojanDownloader, worm, backdoor, remoteAccessTrojan, trojan, emailFlooder, keylogger, dialer, monitoringSoftware, browserModifier, cookie, browserPlugin, aolExploit, nuker, securityDisabler, jokeProgram, hostileActiveXControl, softwareBundler, stealthNotifier, settingsModifier, toolBar, remoteControlSoftware, trojanFtp, potentialUnwantedSoftware, icqExploit, trojanTelnet, exploit, filesharingProgram, malwareCreationTool, remote_Control_Software, tool, trojanDenialOfService, trojanDropper, trojanMassMailer, trojanMonitoringSoftware, trojanProxyServer, virus, known, unknown, spp, behavior, vulnerability, policy, enterpriseUnwantedSoftware, ransom, hipsRule. Computed. Possible values are: invalid, adware, spyware, passwordStealer, trojanDownloader, worm, backdoor, remoteAccessTrojan, trojan, emailFlooder, keylogger, dialer, monitoringSoftware, browserModifier, cookie, browserPlugin, aolExploit, nuker, securityDisabler, jokeProgram, hostileActiveXControl, softwareBundler, stealthNotifier, settingsModifier, toolBar, remoteControlSoftware, trojanFtp, potentialUnwantedSoftware, icqExploit, trojanTelnet, exploit, filesharingProgram, malwareCreationTool, remote_Control_Software, tool, trojanDenialOfService, trojanDropper, trojanMassMailer, trojanMonitoringSoftware, trojanProxyServer, virus, known, unknown, spp, behavior, vulnerability, policy, enterpriseUnwantedSoftware, ransom, hipsRule. + * Malware category. Possible values are: invalid, adware, spyware, passwordStealer, trojanDownloader, worm, backdoor, remoteAccessTrojan, trojan, emailFlooder, keylogger, dialer, monitoringSoftware, browserModifier, cookie, browserPlugin, aolExploit, nuker, securityDisabler, jokeProgram, hostileActiveXControl, softwareBundler, stealthNotifier, settingsModifier, toolBar, remoteControlSoftware, trojanFtp, potentialUnwantedSoftware, icqExploit, trojanTelnet, exploit, filesharingProgram, malwareCreationTool, remoteControlSoftware, tool, trojanDenialOfService, trojanDropper, trojanMassMailer, trojanMonitoringSoftware, trojanProxyServer, virus, known, unknown, spp, behavior, vulnerability, policy, enterpriseUnwantedSoftware, ransom, hipsRule. Computed. Possible values are: invalid, adware, spyware, passwordStealer, trojanDownloader, worm, backdoor, remoteAccessTrojan, trojan, emailFlooder, keylogger, dialer, monitoringSoftware, browserModifier, cookie, browserPlugin, aolExploit, nuker, securityDisabler, jokeProgram, hostileActiveXControl, softwareBundler, stealthNotifier, settingsModifier, toolBar, remoteControlSoftware, trojanFtp, potentialUnwantedSoftware, icqExploit, trojanTelnet, exploit, filesharingProgram, malwareCreationTool, remoteControlSoftware, tool, trojanDenialOfService, trojanDropper, trojanMassMailer, trojanMonitoringSoftware, trojanProxyServer, virus, known, unknown, spp, behavior, vulnerability, policy, enterpriseUnwantedSoftware, ransom, hipsRule. */ @SerializedName(value = "category", alternate = {"Category"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/WindowsMalwareInformation.java b/src/main/java/com/microsoft/graph/models/WindowsMalwareInformation.java index 5ed48ec94ae..892d2917f8e 100644 --- a/src/main/java/com/microsoft/graph/models/WindowsMalwareInformation.java +++ b/src/main/java/com/microsoft/graph/models/WindowsMalwareInformation.java @@ -40,7 +40,7 @@ public class WindowsMalwareInformation extends Entity implements IJsonBackedObje /** * The Category. - * Category of the malware. Possible values are: invalid, adware, spyware, passwordStealer, trojanDownloader, worm, backdoor, remoteAccessTrojan, trojan, emailFlooder, keylogger, dialer, monitoringSoftware, browserModifier, cookie, browserPlugin, aolExploit, nuker, securityDisabler, jokeProgram, hostileActiveXControl, softwareBundler, stealthNotifier, settingsModifier, toolBar, remoteControlSoftware, trojanFtp, potentialUnwantedSoftware, icqExploit, trojanTelnet, exploit, filesharingProgram, malwareCreationTool, remote_Control_Software, tool, trojanDenialOfService, trojanDropper, trojanMassMailer, trojanMonitoringSoftware, trojanProxyServer, virus, known, unknown, spp, behavior, vulnerability, policy, enterpriseUnwantedSoftware, ransom, hipsRule. default value is invalid. Possible values are: invalid, adware, spyware, passwordStealer, trojanDownloader, worm, backdoor, remoteAccessTrojan, trojan, emailFlooder, keylogger, dialer, monitoringSoftware, browserModifier, cookie, browserPlugin, aolExploit, nuker, securityDisabler, jokeProgram, hostileActiveXControl, softwareBundler, stealthNotifier, settingsModifier, toolBar, remoteControlSoftware, trojanFtp, potentialUnwantedSoftware, icqExploit, trojanTelnet, exploit, filesharingProgram, malwareCreationTool, remote_Control_Software, tool, trojanDenialOfService, trojanDropper, trojanMassMailer, trojanMonitoringSoftware, trojanProxyServer, virus, known, unknown, spp, behavior, vulnerability, policy, enterpriseUnwantedSoftware, ransom, hipsRule. + * Category of the malware. Possible values are: invalid, adware, spyware, passwordStealer, trojanDownloader, worm, backdoor, remoteAccessTrojan, trojan, emailFlooder, keylogger, dialer, monitoringSoftware, browserModifier, cookie, browserPlugin, aolExploit, nuker, securityDisabler, jokeProgram, hostileActiveXControl, softwareBundler, stealthNotifier, settingsModifier, toolBar, remoteControlSoftware, trojanFtp, potentialUnwantedSoftware, icqExploit, trojanTelnet, exploit, filesharingProgram, malwareCreationTool, remoteControlSoftware, tool, trojanDenialOfService, trojanDropper, trojanMassMailer, trojanMonitoringSoftware, trojanProxyServer, virus, known, unknown, spp, behavior, vulnerability, policy, enterpriseUnwantedSoftware, ransom, hipsRule. default value is invalid. Possible values are: invalid, adware, spyware, passwordStealer, trojanDownloader, worm, backdoor, remoteAccessTrojan, trojan, emailFlooder, keylogger, dialer, monitoringSoftware, browserModifier, cookie, browserPlugin, aolExploit, nuker, securityDisabler, jokeProgram, hostileActiveXControl, softwareBundler, stealthNotifier, settingsModifier, toolBar, remoteControlSoftware, trojanFtp, potentialUnwantedSoftware, icqExploit, trojanTelnet, exploit, filesharingProgram, malwareCreationTool, remoteControlSoftware, tool, trojanDenialOfService, trojanDropper, trojanMassMailer, trojanMonitoringSoftware, trojanProxyServer, virus, known, unknown, spp, behavior, vulnerability, policy, enterpriseUnwantedSoftware, ransom, hipsRule. */ @SerializedName(value = "category", alternate = {"Category"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/WindowsUniversalAppXAppAssignmentSettings.java b/src/main/java/com/microsoft/graph/models/WindowsUniversalAppXAppAssignmentSettings.java index 1772e9cb33c..3d2087491c7 100644 --- a/src/main/java/com/microsoft/graph/models/WindowsUniversalAppXAppAssignmentSettings.java +++ b/src/main/java/com/microsoft/graph/models/WindowsUniversalAppXAppAssignmentSettings.java @@ -27,7 +27,7 @@ public class WindowsUniversalAppXAppAssignmentSettings extends MobileAppAssignme /** * The Use Device Context. - * Whether or not to use device execution context for Windows Universal AppX mobile app. + * If true, uses device execution context for Windows Universal AppX mobile app. Device-context install is not allowed when this type of app is targeted with Available intent. Defaults to false. */ @SerializedName(value = "useDeviceContext", alternate = {"UseDeviceContext"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/WorkbookComment.java b/src/main/java/com/microsoft/graph/models/WorkbookComment.java index 96ee97a1078..2112bd75851 100644 --- a/src/main/java/com/microsoft/graph/models/WorkbookComment.java +++ b/src/main/java/com/microsoft/graph/models/WorkbookComment.java @@ -9,6 +9,7 @@ import com.microsoft.graph.serializer.AdditionalDataManager; import java.util.EnumSet; import com.microsoft.graph.http.BaseCollectionPage; +import com.microsoft.graph.models.WorkbookDocumentTask; import com.microsoft.graph.models.Entity; import com.microsoft.graph.requests.WorkbookCommentReplyCollectionPage; @@ -54,6 +55,15 @@ public class WorkbookComment extends Entity implements IJsonBackedObject { @Nullable public com.microsoft.graph.requests.WorkbookCommentReplyCollectionPage replies; + /** + * The Task. + * + */ + @SerializedName(value = "task", alternate = {"Task"}) + @Expose + @Nullable + public WorkbookDocumentTask task; + /** * Sets the raw JSON object diff --git a/src/main/java/com/microsoft/graph/models/WorkbookCommentReply.java b/src/main/java/com/microsoft/graph/models/WorkbookCommentReply.java index d3f86f8bf86..6e339d48bd7 100644 --- a/src/main/java/com/microsoft/graph/models/WorkbookCommentReply.java +++ b/src/main/java/com/microsoft/graph/models/WorkbookCommentReply.java @@ -8,6 +8,7 @@ import com.microsoft.graph.serializer.IJsonBackedObject; import com.microsoft.graph.serializer.AdditionalDataManager; import java.util.EnumSet; +import com.microsoft.graph.models.WorkbookDocumentTask; import com.microsoft.graph.models.Entity; @@ -43,6 +44,15 @@ public class WorkbookCommentReply extends Entity implements IJsonBackedObject { @Nullable public String contentType; + /** + * The Task. + * + */ + @SerializedName(value = "task", alternate = {"Task"}) + @Expose + @Nullable + public WorkbookDocumentTask task; + /** * Sets the raw JSON object diff --git a/src/main/java/com/microsoft/graph/models/WorkbookDocumentTask.java b/src/main/java/com/microsoft/graph/models/WorkbookDocumentTask.java new file mode 100644 index 00000000000..21fe93eca5f --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/WorkbookDocumentTask.java @@ -0,0 +1,146 @@ +// 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.WorkbookEmailIdentity; +import com.microsoft.graph.models.WorkbookDocumentTaskSchedule; +import com.microsoft.graph.models.WorkbookComment; +import com.microsoft.graph.models.Entity; +import com.microsoft.graph.requests.WorkbookDocumentTaskChangeCollectionPage; + + +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 Workbook Document Task. + */ +public class WorkbookDocumentTask extends Entity implements IJsonBackedObject { + + + /** + * The Assignees. + * + */ + @SerializedName(value = "assignees", alternate = {"Assignees"}) + @Expose + @Nullable + public java.util.List assignees; + + /** + * The Completed By. + * + */ + @SerializedName(value = "completedBy", alternate = {"CompletedBy"}) + @Expose + @Nullable + public WorkbookEmailIdentity completedBy; + + /** + * The Completed Date Time. + * + */ + @SerializedName(value = "completedDateTime", alternate = {"CompletedDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime completedDateTime; + + /** + * The Created By. + * + */ + @SerializedName(value = "createdBy", alternate = {"CreatedBy"}) + @Expose + @Nullable + public WorkbookEmailIdentity createdBy; + + /** + * The Created Date Time. + * + */ + @SerializedName(value = "createdDateTime", alternate = {"CreatedDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime createdDateTime; + + /** + * The Percent Complete. + * + */ + @SerializedName(value = "percentComplete", alternate = {"PercentComplete"}) + @Expose + @Nullable + public Integer percentComplete; + + /** + * The Priority. + * + */ + @SerializedName(value = "priority", alternate = {"Priority"}) + @Expose + @Nullable + public Integer priority; + + /** + * The Start And Due Date Time. + * + */ + @SerializedName(value = "startAndDueDateTime", alternate = {"StartAndDueDateTime"}) + @Expose + @Nullable + public WorkbookDocumentTaskSchedule startAndDueDateTime; + + /** + * The Title. + * + */ + @SerializedName(value = "title", alternate = {"Title"}) + @Expose + @Nullable + public String title; + + /** + * The Changes. + * + */ + @SerializedName(value = "changes", alternate = {"Changes"}) + @Expose + @Nullable + public com.microsoft.graph.requests.WorkbookDocumentTaskChangeCollectionPage changes; + + /** + * The Comment. + * + */ + @SerializedName(value = "comment", alternate = {"Comment"}) + @Expose + @Nullable + public WorkbookComment comment; + + + /** + * 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("changes")) { + changes = serializer.deserializeObject(json.get("changes"), com.microsoft.graph.requests.WorkbookDocumentTaskChangeCollectionPage.class); + } + } +} diff --git a/src/main/java/com/microsoft/graph/models/WorkbookDocumentTaskChange.java b/src/main/java/com/microsoft/graph/models/WorkbookDocumentTaskChange.java new file mode 100644 index 00000000000..01ddbc557e2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/WorkbookDocumentTaskChange.java @@ -0,0 +1,138 @@ +// 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.WorkbookEmailIdentity; +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 Workbook Document Task Change. + */ +public class WorkbookDocumentTaskChange extends Entity implements IJsonBackedObject { + + + /** + * The Assignee. + * + */ + @SerializedName(value = "assignee", alternate = {"Assignee"}) + @Expose + @Nullable + public WorkbookEmailIdentity assignee; + + /** + * The Changed By. + * + */ + @SerializedName(value = "changedBy", alternate = {"ChangedBy"}) + @Expose + @Nullable + public WorkbookEmailIdentity changedBy; + + /** + * The Comment Id. + * + */ + @SerializedName(value = "commentId", alternate = {"CommentId"}) + @Expose + @Nullable + public String commentId; + + /** + * The Created Date Time. + * + */ + @SerializedName(value = "createdDateTime", alternate = {"CreatedDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime createdDateTime; + + /** + * The Due Date Time. + * + */ + @SerializedName(value = "dueDateTime", alternate = {"DueDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime dueDateTime; + + /** + * The Percent Complete. + * + */ + @SerializedName(value = "percentComplete", alternate = {"PercentComplete"}) + @Expose + @Nullable + public Integer percentComplete; + + /** + * The Priority. + * + */ + @SerializedName(value = "priority", alternate = {"Priority"}) + @Expose + @Nullable + public Integer priority; + + /** + * The Start Date Time. + * + */ + @SerializedName(value = "startDateTime", alternate = {"StartDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime startDateTime; + + /** + * The Title. + * + */ + @SerializedName(value = "title", alternate = {"Title"}) + @Expose + @Nullable + public String title; + + /** + * The Type. + * + */ + @SerializedName(value = "type", alternate = {"Type"}) + @Expose + @Nullable + public String type; + + /** + * The Undo Change Id. + * + */ + @SerializedName(value = "undoChangeId", alternate = {"UndoChangeId"}) + @Expose + @Nullable + public String undoChangeId; + + + /** + * 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/WorkbookDocumentTaskChangeCountParameterSet.java b/src/main/java/com/microsoft/graph/models/WorkbookDocumentTaskChangeCountParameterSet.java new file mode 100644 index 00000000000..fda447e523f --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/WorkbookDocumentTaskChangeCountParameterSet.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.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 Workbook Document Task Change Count Parameter Set. + */ +public class WorkbookDocumentTaskChangeCountParameterSet { + + /** + * Instiaciates a new WorkbookDocumentTaskChangeCountParameterSet + */ + public WorkbookDocumentTaskChangeCountParameterSet() {} + /** + * Instiaciates a new WorkbookDocumentTaskChangeCountParameterSet + * @param builder builder bearing the parameters to initialize from + */ + protected WorkbookDocumentTaskChangeCountParameterSet(@Nonnull final WorkbookDocumentTaskChangeCountParameterSetBuilder builder) { + } + /** + * Gets a new builder for the body + * @return a new builder + */ + @Nonnull + public static WorkbookDocumentTaskChangeCountParameterSetBuilder newBuilder() { + return new WorkbookDocumentTaskChangeCountParameterSetBuilder(); + } + /** + * Fluent builder for the WorkbookDocumentTaskChangeCountParameterSet + */ + public static final class WorkbookDocumentTaskChangeCountParameterSetBuilder { + /** + * Instanciates a new WorkbookDocumentTaskChangeCountParameterSetBuilder + */ + @Nullable + protected WorkbookDocumentTaskChangeCountParameterSetBuilder(){} + /** + * Buils the resulting body object to be passed to the request + * @return the body object to pass to the request + */ + @Nonnull + public WorkbookDocumentTaskChangeCountParameterSet build() { + return new WorkbookDocumentTaskChangeCountParameterSet(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/WorkbookDocumentTaskChangeItemAtParameterSet.java b/src/main/java/com/microsoft/graph/models/WorkbookDocumentTaskChangeItemAtParameterSet.java new file mode 100644 index 00000000000..d811d6530a5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/WorkbookDocumentTaskChangeItemAtParameterSet.java @@ -0,0 +1,97 @@ +// 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.WorkbookDocumentTaskChange; +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 Workbook Document Task Change Item At Parameter Set. + */ +public class WorkbookDocumentTaskChangeItemAtParameterSet { + /** + * The index. + * + */ + @SerializedName(value = "index", alternate = {"Index"}) + @Expose + @Nullable + public Integer index; + + + /** + * Instiaciates a new WorkbookDocumentTaskChangeItemAtParameterSet + */ + public WorkbookDocumentTaskChangeItemAtParameterSet() {} + /** + * Instiaciates a new WorkbookDocumentTaskChangeItemAtParameterSet + * @param builder builder bearing the parameters to initialize from + */ + protected WorkbookDocumentTaskChangeItemAtParameterSet(@Nonnull final WorkbookDocumentTaskChangeItemAtParameterSetBuilder builder) { + this.index = builder.index; + } + /** + * Gets a new builder for the body + * @return a new builder + */ + @Nonnull + public static WorkbookDocumentTaskChangeItemAtParameterSetBuilder newBuilder() { + return new WorkbookDocumentTaskChangeItemAtParameterSetBuilder(); + } + /** + * Fluent builder for the WorkbookDocumentTaskChangeItemAtParameterSet + */ + public static final class WorkbookDocumentTaskChangeItemAtParameterSetBuilder { + /** + * The index parameter value + */ + @Nullable + protected Integer index; + /** + * Sets the Index + * @param val the value to set it to + * @return the current builder object + */ + @Nonnull + public WorkbookDocumentTaskChangeItemAtParameterSetBuilder withIndex(@Nullable final Integer val) { + this.index = val; + return this; + } + /** + * Instanciates a new WorkbookDocumentTaskChangeItemAtParameterSetBuilder + */ + @Nullable + protected WorkbookDocumentTaskChangeItemAtParameterSetBuilder(){} + /** + * Buils the resulting body object to be passed to the request + * @return the body object to pass to the request + */ + @Nonnull + public WorkbookDocumentTaskChangeItemAtParameterSet build() { + return new WorkbookDocumentTaskChangeItemAtParameterSet(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<>(); + if(this.index != null) { + result.add(new com.microsoft.graph.options.FunctionOption("index", index)); + } + return result; + } +} diff --git a/src/main/java/com/microsoft/graph/models/WorkbookDocumentTaskCountParameterSet.java b/src/main/java/com/microsoft/graph/models/WorkbookDocumentTaskCountParameterSet.java new file mode 100644 index 00000000000..d040d12103b --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/WorkbookDocumentTaskCountParameterSet.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.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 Workbook Document Task Count Parameter Set. + */ +public class WorkbookDocumentTaskCountParameterSet { + + /** + * Instiaciates a new WorkbookDocumentTaskCountParameterSet + */ + public WorkbookDocumentTaskCountParameterSet() {} + /** + * Instiaciates a new WorkbookDocumentTaskCountParameterSet + * @param builder builder bearing the parameters to initialize from + */ + protected WorkbookDocumentTaskCountParameterSet(@Nonnull final WorkbookDocumentTaskCountParameterSetBuilder builder) { + } + /** + * Gets a new builder for the body + * @return a new builder + */ + @Nonnull + public static WorkbookDocumentTaskCountParameterSetBuilder newBuilder() { + return new WorkbookDocumentTaskCountParameterSetBuilder(); + } + /** + * Fluent builder for the WorkbookDocumentTaskCountParameterSet + */ + public static final class WorkbookDocumentTaskCountParameterSetBuilder { + /** + * Instanciates a new WorkbookDocumentTaskCountParameterSetBuilder + */ + @Nullable + protected WorkbookDocumentTaskCountParameterSetBuilder(){} + /** + * Buils the resulting body object to be passed to the request + * @return the body object to pass to the request + */ + @Nonnull + public WorkbookDocumentTaskCountParameterSet build() { + return new WorkbookDocumentTaskCountParameterSet(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/WorkbookDocumentTaskItemAtParameterSet.java b/src/main/java/com/microsoft/graph/models/WorkbookDocumentTaskItemAtParameterSet.java new file mode 100644 index 00000000000..b003fc27938 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/WorkbookDocumentTaskItemAtParameterSet.java @@ -0,0 +1,97 @@ +// 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.WorkbookDocumentTask; +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 Workbook Document Task Item At Parameter Set. + */ +public class WorkbookDocumentTaskItemAtParameterSet { + /** + * The index. + * + */ + @SerializedName(value = "index", alternate = {"Index"}) + @Expose + @Nullable + public Integer index; + + + /** + * Instiaciates a new WorkbookDocumentTaskItemAtParameterSet + */ + public WorkbookDocumentTaskItemAtParameterSet() {} + /** + * Instiaciates a new WorkbookDocumentTaskItemAtParameterSet + * @param builder builder bearing the parameters to initialize from + */ + protected WorkbookDocumentTaskItemAtParameterSet(@Nonnull final WorkbookDocumentTaskItemAtParameterSetBuilder builder) { + this.index = builder.index; + } + /** + * Gets a new builder for the body + * @return a new builder + */ + @Nonnull + public static WorkbookDocumentTaskItemAtParameterSetBuilder newBuilder() { + return new WorkbookDocumentTaskItemAtParameterSetBuilder(); + } + /** + * Fluent builder for the WorkbookDocumentTaskItemAtParameterSet + */ + public static final class WorkbookDocumentTaskItemAtParameterSetBuilder { + /** + * The index parameter value + */ + @Nullable + protected Integer index; + /** + * Sets the Index + * @param val the value to set it to + * @return the current builder object + */ + @Nonnull + public WorkbookDocumentTaskItemAtParameterSetBuilder withIndex(@Nullable final Integer val) { + this.index = val; + return this; + } + /** + * Instanciates a new WorkbookDocumentTaskItemAtParameterSetBuilder + */ + @Nullable + protected WorkbookDocumentTaskItemAtParameterSetBuilder(){} + /** + * Buils the resulting body object to be passed to the request + * @return the body object to pass to the request + */ + @Nonnull + public WorkbookDocumentTaskItemAtParameterSet build() { + return new WorkbookDocumentTaskItemAtParameterSet(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<>(); + if(this.index != null) { + result.add(new com.microsoft.graph.options.FunctionOption("index", index)); + } + return result; + } +} diff --git a/src/main/java/com/microsoft/graph/models/WorkbookDocumentTaskSchedule.java b/src/main/java/com/microsoft/graph/models/WorkbookDocumentTaskSchedule.java new file mode 100644 index 00000000000..6d2e18e7ee6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/WorkbookDocumentTaskSchedule.java @@ -0,0 +1,68 @@ +// 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 Workbook Document Task Schedule. + */ +public class WorkbookDocumentTaskSchedule 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 Due Date Time. + * + */ + @SerializedName(value = "dueDateTime", alternate = {"DueDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime dueDateTime; + + /** + * The Start Date Time. + * + */ + @SerializedName(value = "startDateTime", alternate = {"StartDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime startDateTime; + + + /** + * 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/WorkbookEmailIdentity.java b/src/main/java/com/microsoft/graph/models/WorkbookEmailIdentity.java new file mode 100644 index 00000000000..1adeca00f88 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/WorkbookEmailIdentity.java @@ -0,0 +1,77 @@ +// 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 Workbook Email Identity. + */ +public class WorkbookEmailIdentity 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 Display Name. + * + */ + @SerializedName(value = "displayName", alternate = {"DisplayName"}) + @Expose + @Nullable + public String displayName; + + /** + * The Email. + * + */ + @SerializedName(value = "email", alternate = {"Email"}) + @Expose + @Nullable + public String email; + + /** + * The Id. + * + */ + @SerializedName(value = "id", alternate = {"Id"}) + @Expose + @Nullable + public String id; + + + /** + * 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/WorkbookWorksheet.java b/src/main/java/com/microsoft/graph/models/WorkbookWorksheet.java index a8565f8cee7..f1705e3fdbd 100644 --- a/src/main/java/com/microsoft/graph/models/WorkbookWorksheet.java +++ b/src/main/java/com/microsoft/graph/models/WorkbookWorksheet.java @@ -15,6 +15,7 @@ import com.microsoft.graph.requests.WorkbookNamedItemCollectionPage; import com.microsoft.graph.requests.WorkbookPivotTableCollectionPage; import com.microsoft.graph.requests.WorkbookTableCollectionPage; +import com.microsoft.graph.requests.WorkbookDocumentTaskCollectionPage; import com.google.gson.JsonObject; @@ -103,6 +104,15 @@ public class WorkbookWorksheet extends Entity implements IJsonBackedObject { @Nullable public com.microsoft.graph.requests.WorkbookTableCollectionPage tables; + /** + * The Tasks. + * + */ + @SerializedName(value = "tasks", alternate = {"Tasks"}) + @Expose + @Nullable + public com.microsoft.graph.requests.WorkbookDocumentTaskCollectionPage tasks; + /** * Sets the raw JSON object @@ -128,5 +138,9 @@ public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final J if (json.has("tables")) { tables = serializer.deserializeObject(json.get("tables"), com.microsoft.graph.requests.WorkbookTableCollectionPage.class); } + + if (json.has("tasks")) { + tasks = serializer.deserializeObject(json.get("tasks"), com.microsoft.graph.requests.WorkbookDocumentTaskCollectionPage.class); + } } } diff --git a/src/main/java/com/microsoft/graph/models/ZebraFotaConnector.java b/src/main/java/com/microsoft/graph/models/ZebraFotaConnector.java index 578386169e7..92169f27b1a 100644 --- a/src/main/java/com/microsoft/graph/models/ZebraFotaConnector.java +++ b/src/main/java/com/microsoft/graph/models/ZebraFotaConnector.java @@ -28,7 +28,7 @@ public class ZebraFotaConnector extends Entity implements IJsonBackedObject { /** * The Enrollment Authorization Url. - * Complete account enrollment authorization URL. This corresponds to verification_uri_complete in the Zebra API documentations. + * Complete account enrollment authorization URL. This corresponds to verificationuricomplete in the Zebra API documentations. */ @SerializedName(value = "enrollmentAuthorizationUrl", alternate = {"EnrollmentAuthorizationUrl"}) @Expose diff --git a/src/main/java/com/microsoft/graph/requests/DeviceManagementReportsGetAutopilotDeploymentStatusRequest.java b/src/main/java/com/microsoft/graph/requests/DeviceManagementReportsGetAutopilotDeploymentDeviceInformationRequest.java similarity index 73% rename from src/main/java/com/microsoft/graph/requests/DeviceManagementReportsGetAutopilotDeploymentStatusRequest.java rename to src/main/java/com/microsoft/graph/requests/DeviceManagementReportsGetAutopilotDeploymentDeviceInformationRequest.java index edb245089ba..a03a88abddd 100644 --- a/src/main/java/com/microsoft/graph/requests/DeviceManagementReportsGetAutopilotDeploymentStatusRequest.java +++ b/src/main/java/com/microsoft/graph/requests/DeviceManagementReportsGetAutopilotDeploymentDeviceInformationRequest.java @@ -5,7 +5,7 @@ package com.microsoft.graph.requests; import com.microsoft.graph.models.DeviceManagementReports; -import com.microsoft.graph.requests.DeviceManagementReportsGetAutopilotDeploymentStatusRequest; +import com.microsoft.graph.requests.DeviceManagementReportsGetAutopilotDeploymentDeviceInformationRequest; import javax.annotation.Nullable; import javax.annotation.Nonnull; @@ -13,28 +13,28 @@ import com.microsoft.graph.http.HttpMethod; import com.microsoft.graph.core.ClientException; import com.microsoft.graph.core.IBaseClient; -import com.microsoft.graph.models.DeviceManagementReportsGetAutopilotDeploymentStatusParameterSet; +import com.microsoft.graph.models.DeviceManagementReportsGetAutopilotDeploymentDeviceInformationParameterSet; // **NOTE** This file was generated by a tool and any changes will be overwritten. /** - * The class for the Device Management Reports Get Autopilot Deployment Status Request. + * The class for the Device Management Reports Get Autopilot Deployment Device Information Request. */ -public class DeviceManagementReportsGetAutopilotDeploymentStatusRequest extends BaseRequest { +public class DeviceManagementReportsGetAutopilotDeploymentDeviceInformationRequest extends BaseRequest { /** - * The request for this DeviceManagementReportsGetAutopilotDeploymentStatus + * The request for this DeviceManagementReportsGetAutopilotDeploymentDeviceInformation * * @param requestUrl the request URL * @param client the service client * @param requestOptions the options for this request */ - public DeviceManagementReportsGetAutopilotDeploymentStatusRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + public DeviceManagementReportsGetAutopilotDeploymentDeviceInformationRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { super(requestUrl, client, requestOptions, java.io.InputStream.class); } /** The body for the method */ @Nullable - public DeviceManagementReportsGetAutopilotDeploymentStatusParameterSet body; + public DeviceManagementReportsGetAutopilotDeploymentDeviceInformationParameterSet body; /** * Invokes the method and returns a future with the result * @return a future with the result @@ -61,7 +61,7 @@ public java.io.InputStream post() throws ClientException { * @return the updated request */ @Nonnull - public DeviceManagementReportsGetAutopilotDeploymentStatusRequest select(@Nonnull final String value) { + public DeviceManagementReportsGetAutopilotDeploymentDeviceInformationRequest select(@Nonnull final String value) { addSelectOption(value); return this; } @@ -73,7 +73,7 @@ public DeviceManagementReportsGetAutopilotDeploymentStatusRequest select(@Nonnul * @return the updated request */ @Nonnull - public DeviceManagementReportsGetAutopilotDeploymentStatusRequest expand(@Nonnull final String value) { + public DeviceManagementReportsGetAutopilotDeploymentDeviceInformationRequest expand(@Nonnull final String value) { addExpandOption(value); return this; } diff --git a/src/main/java/com/microsoft/graph/requests/DeviceManagementReportsGetAutopilotDeploymentStatusRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/DeviceManagementReportsGetAutopilotDeploymentDeviceInformationRequestBuilder.java similarity index 56% rename from src/main/java/com/microsoft/graph/requests/DeviceManagementReportsGetAutopilotDeploymentStatusRequestBuilder.java rename to src/main/java/com/microsoft/graph/requests/DeviceManagementReportsGetAutopilotDeploymentDeviceInformationRequestBuilder.java index c9ad0933c4a..bc1a451f74c 100644 --- a/src/main/java/com/microsoft/graph/requests/DeviceManagementReportsGetAutopilotDeploymentStatusRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/DeviceManagementReportsGetAutopilotDeploymentDeviceInformationRequestBuilder.java @@ -4,11 +4,11 @@ // ------------------------------------------------------------------------------ package com.microsoft.graph.requests; -import com.microsoft.graph.requests.DeviceManagementReportsGetAutopilotDeploymentStatusRequest; +import com.microsoft.graph.requests.DeviceManagementReportsGetAutopilotDeploymentDeviceInformationRequest; import com.microsoft.graph.models.DeviceManagementReports; import com.microsoft.graph.http.BaseActionRequestBuilder; -import com.microsoft.graph.models.DeviceManagementReportsGetAutopilotDeploymentStatusParameterSet; +import com.microsoft.graph.models.DeviceManagementReportsGetAutopilotDeploymentDeviceInformationParameterSet; import com.microsoft.graph.core.IBaseClient; import com.google.gson.JsonElement; import javax.annotation.Nullable; @@ -17,54 +17,54 @@ // **NOTE** This file was generated by a tool and any changes will be overwritten. /** - * The class for the Device Management Reports Get Autopilot Deployment Status Request Builder. + * The class for the Device Management Reports Get Autopilot Deployment Device Information Request Builder. */ -public class DeviceManagementReportsGetAutopilotDeploymentStatusRequestBuilder extends BaseActionRequestBuilder { +public class DeviceManagementReportsGetAutopilotDeploymentDeviceInformationRequestBuilder extends BaseActionRequestBuilder { /** - * The request builder for this DeviceManagementReportsGetAutopilotDeploymentStatus + * The request builder for this DeviceManagementReportsGetAutopilotDeploymentDeviceInformation * * @param requestUrl the request URL * @param client the service client * @param requestOptions the options for this request */ - public DeviceManagementReportsGetAutopilotDeploymentStatusRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + public DeviceManagementReportsGetAutopilotDeploymentDeviceInformationRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { super(requestUrl, client, requestOptions); } - private DeviceManagementReportsGetAutopilotDeploymentStatusParameterSet body; + private DeviceManagementReportsGetAutopilotDeploymentDeviceInformationParameterSet body; /** - * The request builder for this DeviceManagementReportsGetAutopilotDeploymentStatus + * The request builder for this DeviceManagementReportsGetAutopilotDeploymentDeviceInformation * * @param requestUrl the request URL * @param client the service client * @param requestOptions the options for this request * @param parameters the parameters for the service method */ - public DeviceManagementReportsGetAutopilotDeploymentStatusRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions, @Nonnull final DeviceManagementReportsGetAutopilotDeploymentStatusParameterSet parameters) { + public DeviceManagementReportsGetAutopilotDeploymentDeviceInformationRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions, @Nonnull final DeviceManagementReportsGetAutopilotDeploymentDeviceInformationParameterSet parameters) { super(requestUrl, client, requestOptions); this.body = parameters; } /** - * Creates the DeviceManagementReportsGetAutopilotDeploymentStatusRequest + * Creates the DeviceManagementReportsGetAutopilotDeploymentDeviceInformationRequest * * @param requestOptions the options for the request - * @return the DeviceManagementReportsGetAutopilotDeploymentStatusRequest instance + * @return the DeviceManagementReportsGetAutopilotDeploymentDeviceInformationRequest instance */ @Nonnull - public DeviceManagementReportsGetAutopilotDeploymentStatusRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { + public DeviceManagementReportsGetAutopilotDeploymentDeviceInformationRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { return buildRequest(getOptions(requestOptions)); } /** - * Creates the DeviceManagementReportsGetAutopilotDeploymentStatusRequest with specific requestOptions instead of the existing requestOptions + * Creates the DeviceManagementReportsGetAutopilotDeploymentDeviceInformationRequest with specific requestOptions instead of the existing requestOptions * * @param requestOptions the options for the request - * @return the DeviceManagementReportsGetAutopilotDeploymentStatusRequest instance + * @return the DeviceManagementReportsGetAutopilotDeploymentDeviceInformationRequest instance */ @Nonnull - public DeviceManagementReportsGetAutopilotDeploymentStatusRequest buildRequest(@Nonnull final java.util.List requestOptions) { - final DeviceManagementReportsGetAutopilotDeploymentStatusRequest request = new DeviceManagementReportsGetAutopilotDeploymentStatusRequest( + public DeviceManagementReportsGetAutopilotDeploymentDeviceInformationRequest buildRequest(@Nonnull final java.util.List requestOptions) { + final DeviceManagementReportsGetAutopilotDeploymentDeviceInformationRequest request = new DeviceManagementReportsGetAutopilotDeploymentDeviceInformationRequest( getRequestUrl(), getClient(), requestOptions); diff --git a/src/main/java/com/microsoft/graph/requests/DeviceManagementReportsRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/DeviceManagementReportsRequestBuilder.java index efb364a8f82..940a7549de4 100644 --- a/src/main/java/com/microsoft/graph/requests/DeviceManagementReportsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/DeviceManagementReportsRequestBuilder.java @@ -52,7 +52,7 @@ import com.microsoft.graph.models.DeviceManagementReportsGetMobileApplicationManagementAppRegistrationSummaryReportParameterSet; import com.microsoft.graph.models.DeviceManagementReportsGetConfigManagerDevicePolicyStatusReportParameterSet; import com.microsoft.graph.models.DeviceManagementReportsGetRemoteAssistanceSessionsReportParameterSet; -import com.microsoft.graph.models.DeviceManagementReportsGetAutopilotDeploymentStatusParameterSet; +import com.microsoft.graph.models.DeviceManagementReportsGetAutopilotDeploymentDeviceInformationParameterSet; import com.microsoft.graph.models.DeviceManagementReportsGetCachedReportParameterSet; import com.microsoft.graph.models.DeviceManagementReportsGetCompliancePolicyNonComplianceReportParameterSet; import com.microsoft.graph.models.DeviceManagementReportsGetCompliancePolicyNonComplianceSummaryReportParameterSet; @@ -554,8 +554,8 @@ public DeviceManagementReportsGetRemoteAssistanceSessionsReportRequestBuilder ge * @param parameters the parameters for the service method */ @Nonnull - public DeviceManagementReportsGetAutopilotDeploymentStatusRequestBuilder getAutopilotDeploymentStatus(@Nonnull final DeviceManagementReportsGetAutopilotDeploymentStatusParameterSet parameters) { - return new DeviceManagementReportsGetAutopilotDeploymentStatusRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.getAutopilotDeploymentStatus"), getClient(), null, parameters); + public DeviceManagementReportsGetAutopilotDeploymentDeviceInformationRequestBuilder getAutopilotDeploymentDeviceInformation(@Nonnull final DeviceManagementReportsGetAutopilotDeploymentDeviceInformationParameterSet parameters) { + return new DeviceManagementReportsGetAutopilotDeploymentDeviceInformationRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.getAutopilotDeploymentDeviceInformation"), getClient(), null, parameters); } /** diff --git a/src/main/java/com/microsoft/graph/requests/DomainPromoteToInitialRequest.java b/src/main/java/com/microsoft/graph/requests/DomainPromoteToInitialRequest.java new file mode 100644 index 00000000000..05443de84ef --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/DomainPromoteToInitialRequest.java @@ -0,0 +1,52 @@ +// Template Source: BaseMethodRequest.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.Domain; +import com.microsoft.graph.requests.DomainPromoteToInitialRequest; + +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.http.BaseRequest; +import com.microsoft.graph.http.HttpMethod; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.core.IBaseClient; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Domain Promote To Initial Request. + */ +public class DomainPromoteToInitialRequest extends BaseRequest { + /** + * The request for this DomainPromoteToInitial + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public DomainPromoteToInitialRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, Void.class); + } + + /** + * Creates the DomainPromoteToInitial + * + * @return a future for the operation + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync() { + return this.sendAsync(HttpMethod.POST, null); + } + + /** + * Creates the DomainPromoteToInitial + * + * @throws ClientException an exception occurs if there was an error while the request was sent + */ + public void post() throws ClientException { + this.send(HttpMethod.POST, null); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/DomainPromoteToInitialRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/DomainPromoteToInitialRequestBuilder.java new file mode 100644 index 00000000000..97602f9f2a8 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/DomainPromoteToInitialRequestBuilder.java @@ -0,0 +1,59 @@ +// Template Source: BaseMethodRequestBuilder.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.requests.DomainPromoteToInitialRequest; +import com.microsoft.graph.models.Domain; + +import com.microsoft.graph.http.BaseActionRequestBuilder; +import com.microsoft.graph.core.IBaseClient; +import com.google.gson.JsonElement; +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 Domain Promote To Initial Request Builder. + */ +public class DomainPromoteToInitialRequestBuilder extends BaseActionRequestBuilder { + + /** + * The request builder for this DomainPromoteToInitial + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public DomainPromoteToInitialRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + /** + * Creates the DomainPromoteToInitialRequest + * + * @param requestOptions the options for the request + * @return the DomainPromoteToInitialRequest instance + */ + @Nonnull + public DomainPromoteToInitialRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the DomainPromoteToInitialRequest with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for the request + * @return the DomainPromoteToInitialRequest instance + */ + @Nonnull + public DomainPromoteToInitialRequest buildRequest(@Nonnull final java.util.List requestOptions) { + final DomainPromoteToInitialRequest request = new DomainPromoteToInitialRequest( + getRequestUrl(), + getClient(), + requestOptions); + return request; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/DomainRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/DomainRequestBuilder.java index 5b95a2a387e..9ae9a87852f 100644 --- a/src/main/java/com/microsoft/graph/requests/DomainRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/DomainRequestBuilder.java @@ -177,6 +177,15 @@ public DomainPromoteRequestBuilder promote() { return new DomainPromoteRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.promote"), getClient(), null); } + /** + * Gets a builder to execute the method + * @return the request builder + */ + @Nonnull + public DomainPromoteToInitialRequestBuilder promoteToInitial() { + return new DomainPromoteToInitialRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.promoteToInitial"), getClient(), null); + } + /** * Gets a builder to execute the method * @return the request builder diff --git a/src/main/java/com/microsoft/graph/requests/EducationClassRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/EducationClassRequestBuilder.java index 1d5762bdfa8..df466821340 100644 --- a/src/main/java/com/microsoft/graph/requests/EducationClassRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/EducationClassRequestBuilder.java @@ -116,6 +116,26 @@ public com.microsoft.graph.requests.EducationAssignmentRequestBuilder assignment public com.microsoft.graph.requests.EducationAssignmentSettingsRequestBuilder assignmentSettings() { return new com.microsoft.graph.requests.EducationAssignmentSettingsRequestBuilder(getRequestUrlWithAdditionalSegment("assignmentSettings"), getClient(), null); } + /** + * Gets a request builder for the EducationModule collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.requests.EducationModuleCollectionRequestBuilder modules() { + return new com.microsoft.graph.requests.EducationModuleCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("modules"), getClient(), null); + } + + /** + * Gets a request builder for the EducationModule item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.requests.EducationModuleRequestBuilder modules(@Nonnull final String id) { + return new com.microsoft.graph.requests.EducationModuleRequestBuilder(getRequestUrlWithAdditionalSegment("modules") + "/" + id, getClient(), null); + } /** * Gets the request builder for Group diff --git a/src/main/java/com/microsoft/graph/requests/EducationModuleCollectionPage.java b/src/main/java/com/microsoft/graph/requests/EducationModuleCollectionPage.java new file mode 100644 index 00000000000..48625b4eb4f --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationModuleCollectionPage.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.EducationModule; +import com.microsoft.graph.requests.EducationModuleCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.requests.EducationModuleCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Module Collection Page. + */ +public class EducationModuleCollectionPage extends BaseCollectionPage { + + /** + * A collection page for EducationModule + * + * @param response the serialized EducationModuleCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public EducationModuleCollectionPage(@Nonnull final EducationModuleCollectionResponse response, @Nonnull final EducationModuleCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for EducationModule + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public EducationModuleCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final EducationModuleCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/EducationModuleCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/EducationModuleCollectionRequest.java new file mode 100644 index 00000000000..28bbba3db60 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationModuleCollectionRequest.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.EducationClass; +import com.microsoft.graph.models.EducationModule; +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.EducationModuleCollectionResponse; +import com.microsoft.graph.requests.EducationModuleCollectionRequestBuilder; +import com.microsoft.graph.requests.EducationModuleCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Module Collection Request. + */ +public class EducationModuleCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of EducationModule + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EducationModuleCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, EducationModuleCollectionResponse.class, EducationModuleCollectionPage.class, EducationModuleCollectionRequestBuilder.class); + } + + /** + * Creates a new EducationModule + * @param newEducationModule the EducationModule to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final EducationModule newEducationModule) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new EducationModuleRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newEducationModule); + } + + /** + * Creates a new EducationModule + * @param newEducationModule the EducationModule to create + * @return the newly created object + */ + @Nonnull + public EducationModule post(@Nonnull final EducationModule newEducationModule) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new EducationModuleRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newEducationModule); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public EducationModuleCollectionRequest 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 EducationModuleCollectionRequest 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 EducationModuleCollectionRequest 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 EducationModuleCollectionRequest 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 EducationModuleCollectionRequest 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 EducationModuleCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public EducationModuleCollectionRequest 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 EducationModuleCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public EducationModuleCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/requests/EducationModuleCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/EducationModuleCollectionRequestBuilder.java new file mode 100644 index 00000000000..5d89104d8c7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationModuleCollectionRequestBuilder.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.EducationClass; +import com.microsoft.graph.models.EducationModule; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.EducationModuleCollectionRequestBuilder; +import com.microsoft.graph.requests.EducationModuleRequestBuilder; +import com.microsoft.graph.requests.EducationModuleCollectionRequest; +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 Education Module Collection Request Builder. + */ +public class EducationModuleCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of EducationClass + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EducationModuleCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, EducationModuleRequestBuilder.class, EducationModuleCollectionRequest.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/EducationModuleCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/EducationModuleCollectionResponse.java new file mode 100644 index 00000000000..1f7d6e1e66b --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationModuleCollectionResponse.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.EducationModule; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Module Collection Response. + */ +public class EducationModuleCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/requests/EducationModulePinRequest.java b/src/main/java/com/microsoft/graph/requests/EducationModulePinRequest.java new file mode 100644 index 00000000000..6c48bec0a08 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationModulePinRequest.java @@ -0,0 +1,77 @@ +// Template Source: BaseMethodRequest.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.EducationModule; +import com.microsoft.graph.requests.EducationModulePinRequest; + +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.http.BaseRequest; +import com.microsoft.graph.http.HttpMethod; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.core.IBaseClient; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Module Pin Request. + */ +public class EducationModulePinRequest extends BaseRequest { + /** + * The request for this EducationModulePin + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EducationModulePinRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, EducationModule.class); + } + + /** + * Invokes the method and returns a future with the result + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync() { + return sendAsync(HttpMethod.POST, null); + } + + /** + * Invokes the method and returns the result + * @return result of the method invocation + * @throws ClientException an exception occurs if there was an error while the request was sent + */ + @Nullable + public EducationModule post() throws ClientException { + return send(HttpMethod.POST, null); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public EducationModulePinRequest 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 EducationModulePinRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} diff --git a/src/main/java/com/microsoft/graph/requests/EducationModulePinRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/EducationModulePinRequestBuilder.java new file mode 100644 index 00000000000..dee317a06cd --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationModulePinRequestBuilder.java @@ -0,0 +1,58 @@ +// Template Source: BaseMethodRequestBuilder.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.requests.EducationModulePinRequest; +import com.microsoft.graph.models.EducationModule; +import com.microsoft.graph.http.BaseActionRequestBuilder; +import com.microsoft.graph.core.IBaseClient; +import com.google.gson.JsonElement; +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 Education Module Pin Request Builder. + */ +public class EducationModulePinRequestBuilder extends BaseActionRequestBuilder { + + /** + * The request builder for this EducationModulePin + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EducationModulePinRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + /** + * Creates the EducationModulePinRequest + * + * @param requestOptions the options for the request + * @return the EducationModulePinRequest instance + */ + @Nonnull + public EducationModulePinRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the EducationModulePinRequest with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for the request + * @return the EducationModulePinRequest instance + */ + @Nonnull + public EducationModulePinRequest buildRequest(@Nonnull final java.util.List requestOptions) { + final EducationModulePinRequest request = new EducationModulePinRequest( + getRequestUrl(), + getClient(), + requestOptions); + return request; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/EducationModulePublishRequest.java b/src/main/java/com/microsoft/graph/requests/EducationModulePublishRequest.java new file mode 100644 index 00000000000..67f3ed318ac --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationModulePublishRequest.java @@ -0,0 +1,77 @@ +// Template Source: BaseMethodRequest.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.EducationModule; +import com.microsoft.graph.requests.EducationModulePublishRequest; + +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.http.BaseRequest; +import com.microsoft.graph.http.HttpMethod; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.core.IBaseClient; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Module Publish Request. + */ +public class EducationModulePublishRequest extends BaseRequest { + /** + * The request for this EducationModulePublish + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EducationModulePublishRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, EducationModule.class); + } + + /** + * Invokes the method and returns a future with the result + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync() { + return sendAsync(HttpMethod.POST, null); + } + + /** + * Invokes the method and returns the result + * @return result of the method invocation + * @throws ClientException an exception occurs if there was an error while the request was sent + */ + @Nullable + public EducationModule post() throws ClientException { + return send(HttpMethod.POST, null); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public EducationModulePublishRequest 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 EducationModulePublishRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} diff --git a/src/main/java/com/microsoft/graph/requests/EducationModulePublishRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/EducationModulePublishRequestBuilder.java new file mode 100644 index 00000000000..6b6f6d0559a --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationModulePublishRequestBuilder.java @@ -0,0 +1,58 @@ +// Template Source: BaseMethodRequestBuilder.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.requests.EducationModulePublishRequest; +import com.microsoft.graph.models.EducationModule; +import com.microsoft.graph.http.BaseActionRequestBuilder; +import com.microsoft.graph.core.IBaseClient; +import com.google.gson.JsonElement; +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 Education Module Publish Request Builder. + */ +public class EducationModulePublishRequestBuilder extends BaseActionRequestBuilder { + + /** + * The request builder for this EducationModulePublish + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EducationModulePublishRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + /** + * Creates the EducationModulePublishRequest + * + * @param requestOptions the options for the request + * @return the EducationModulePublishRequest instance + */ + @Nonnull + public EducationModulePublishRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the EducationModulePublishRequest with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for the request + * @return the EducationModulePublishRequest instance + */ + @Nonnull + public EducationModulePublishRequest buildRequest(@Nonnull final java.util.List requestOptions) { + final EducationModulePublishRequest request = new EducationModulePublishRequest( + getRequestUrl(), + getClient(), + requestOptions); + return request; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/EducationModuleRequest.java b/src/main/java/com/microsoft/graph/requests/EducationModuleRequest.java new file mode 100644 index 00000000000..ec93211c724 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationModuleRequest.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.EducationModule; +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 Education Module Request. + */ +public class EducationModuleRequest extends BaseRequest { + + /** + * The request for the EducationModule + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EducationModuleRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, EducationModule.class); + } + + /** + * Gets the EducationModule from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the EducationModule from the service + * + * @return the EducationModule from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public EducationModule 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 EducationModule delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this EducationModule with a source + * + * @param sourceEducationModule the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final EducationModule sourceEducationModule) { + return sendAsync(HttpMethod.PATCH, sourceEducationModule); + } + + /** + * Patches this EducationModule with a source + * + * @param sourceEducationModule the source object with updates + * @return the updated EducationModule + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public EducationModule patch(@Nonnull final EducationModule sourceEducationModule) throws ClientException { + return send(HttpMethod.PATCH, sourceEducationModule); + } + + /** + * Creates a EducationModule with a new object + * + * @param newEducationModule the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final EducationModule newEducationModule) { + return sendAsync(HttpMethod.POST, newEducationModule); + } + + /** + * Creates a EducationModule with a new object + * + * @param newEducationModule the new object to create + * @return the created EducationModule + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public EducationModule post(@Nonnull final EducationModule newEducationModule) throws ClientException { + return send(HttpMethod.POST, newEducationModule); + } + + /** + * Creates a EducationModule with a new object + * + * @param newEducationModule the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final EducationModule newEducationModule) { + return sendAsync(HttpMethod.PUT, newEducationModule); + } + + /** + * Creates a EducationModule with a new object + * + * @param newEducationModule the object to create/update + * @return the created EducationModule + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public EducationModule put(@Nonnull final EducationModule newEducationModule) throws ClientException { + return send(HttpMethod.PUT, newEducationModule); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public EducationModuleRequest 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 EducationModuleRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/EducationModuleRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/EducationModuleRequestBuilder.java new file mode 100644 index 00000000000..f12b6353943 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationModuleRequestBuilder.java @@ -0,0 +1,115 @@ +// 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.EducationModule; +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 Education Module Request Builder. + */ +public class EducationModuleRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the EducationModule + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EducationModuleRequestBuilder(@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 EducationModuleRequest instance + */ + @Nonnull + public EducationModuleRequest 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 EducationModuleRequest instance + */ + @Nonnull + public EducationModuleRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.EducationModuleRequest(getRequestUrl(), getClient(), requestOptions); + } + + + /** + * Gets a request builder for the EducationModuleResource collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.requests.EducationModuleResourceCollectionRequestBuilder resources() { + return new com.microsoft.graph.requests.EducationModuleResourceCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("resources"), getClient(), null); + } + + /** + * Gets a request builder for the EducationModuleResource item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.requests.EducationModuleResourceRequestBuilder resources(@Nonnull final String id) { + return new com.microsoft.graph.requests.EducationModuleResourceRequestBuilder(getRequestUrlWithAdditionalSegment("resources") + "/" + id, getClient(), null); + } + + /** + * Gets a builder to execute the method + * @return the request builder + */ + @Nonnull + public EducationModulePublishRequestBuilder publish() { + return new EducationModulePublishRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.publish"), getClient(), null); + } + + /** + * Gets a builder to execute the method + * @return the request builder + */ + @Nonnull + public EducationModuleSetUpResourcesFolderRequestBuilder setUpResourcesFolder() { + return new EducationModuleSetUpResourcesFolderRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.setUpResourcesFolder"), getClient(), null); + } + + /** + * Gets a builder to execute the method + * @return the request builder + */ + @Nonnull + public EducationModulePinRequestBuilder pin() { + return new EducationModulePinRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.pin"), getClient(), null); + } + + /** + * Gets a builder to execute the method + * @return the request builder + */ + @Nonnull + public EducationModuleUnpinRequestBuilder unpin() { + return new EducationModuleUnpinRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.unpin"), getClient(), null); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/EducationModuleResourceCollectionPage.java b/src/main/java/com/microsoft/graph/requests/EducationModuleResourceCollectionPage.java new file mode 100644 index 00000000000..c24cba52a47 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationModuleResourceCollectionPage.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.EducationModuleResource; +import com.microsoft.graph.requests.EducationModuleResourceCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.requests.EducationModuleResourceCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Module Resource Collection Page. + */ +public class EducationModuleResourceCollectionPage extends BaseCollectionPage { + + /** + * A collection page for EducationModuleResource + * + * @param response the serialized EducationModuleResourceCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public EducationModuleResourceCollectionPage(@Nonnull final EducationModuleResourceCollectionResponse response, @Nonnull final EducationModuleResourceCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for EducationModuleResource + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public EducationModuleResourceCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final EducationModuleResourceCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/EducationModuleResourceCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/EducationModuleResourceCollectionRequest.java new file mode 100644 index 00000000000..a4b3da3706f --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationModuleResourceCollectionRequest.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.EducationModule; +import com.microsoft.graph.models.EducationModuleResource; +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.EducationModuleResourceCollectionResponse; +import com.microsoft.graph.requests.EducationModuleResourceCollectionRequestBuilder; +import com.microsoft.graph.requests.EducationModuleResourceCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Module Resource Collection Request. + */ +public class EducationModuleResourceCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of EducationModuleResource + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EducationModuleResourceCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, EducationModuleResourceCollectionResponse.class, EducationModuleResourceCollectionPage.class, EducationModuleResourceCollectionRequestBuilder.class); + } + + /** + * Creates a new EducationModuleResource + * @param newEducationModuleResource the EducationModuleResource to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final EducationModuleResource newEducationModuleResource) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new EducationModuleResourceRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newEducationModuleResource); + } + + /** + * Creates a new EducationModuleResource + * @param newEducationModuleResource the EducationModuleResource to create + * @return the newly created object + */ + @Nonnull + public EducationModuleResource post(@Nonnull final EducationModuleResource newEducationModuleResource) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new EducationModuleResourceRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newEducationModuleResource); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public EducationModuleResourceCollectionRequest 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 EducationModuleResourceCollectionRequest 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 EducationModuleResourceCollectionRequest 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 EducationModuleResourceCollectionRequest 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 EducationModuleResourceCollectionRequest 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 EducationModuleResourceCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public EducationModuleResourceCollectionRequest 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 EducationModuleResourceCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public EducationModuleResourceCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/requests/EducationModuleResourceCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/EducationModuleResourceCollectionRequestBuilder.java new file mode 100644 index 00000000000..7a0e59dd3b9 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationModuleResourceCollectionRequestBuilder.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.EducationModule; +import com.microsoft.graph.models.EducationModuleResource; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.EducationModuleResourceCollectionRequestBuilder; +import com.microsoft.graph.requests.EducationModuleResourceRequestBuilder; +import com.microsoft.graph.requests.EducationModuleResourceCollectionRequest; +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 Education Module Resource Collection Request Builder. + */ +public class EducationModuleResourceCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of EducationModule + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EducationModuleResourceCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, EducationModuleResourceRequestBuilder.class, EducationModuleResourceCollectionRequest.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/EducationModuleResourceCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/EducationModuleResourceCollectionResponse.java new file mode 100644 index 00000000000..8b50412005f --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationModuleResourceCollectionResponse.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.EducationModuleResource; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Module Resource Collection Response. + */ +public class EducationModuleResourceCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/requests/EducationModuleResourceRequest.java b/src/main/java/com/microsoft/graph/requests/EducationModuleResourceRequest.java new file mode 100644 index 00000000000..725e6bedf16 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationModuleResourceRequest.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.EducationModuleResource; +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 Education Module Resource Request. + */ +public class EducationModuleResourceRequest extends BaseRequest { + + /** + * The request for the EducationModuleResource + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EducationModuleResourceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, EducationModuleResource.class); + } + + /** + * Gets the EducationModuleResource from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the EducationModuleResource from the service + * + * @return the EducationModuleResource from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public EducationModuleResource 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 EducationModuleResource delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this EducationModuleResource with a source + * + * @param sourceEducationModuleResource the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final EducationModuleResource sourceEducationModuleResource) { + return sendAsync(HttpMethod.PATCH, sourceEducationModuleResource); + } + + /** + * Patches this EducationModuleResource with a source + * + * @param sourceEducationModuleResource the source object with updates + * @return the updated EducationModuleResource + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public EducationModuleResource patch(@Nonnull final EducationModuleResource sourceEducationModuleResource) throws ClientException { + return send(HttpMethod.PATCH, sourceEducationModuleResource); + } + + /** + * Creates a EducationModuleResource with a new object + * + * @param newEducationModuleResource the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final EducationModuleResource newEducationModuleResource) { + return sendAsync(HttpMethod.POST, newEducationModuleResource); + } + + /** + * Creates a EducationModuleResource with a new object + * + * @param newEducationModuleResource the new object to create + * @return the created EducationModuleResource + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public EducationModuleResource post(@Nonnull final EducationModuleResource newEducationModuleResource) throws ClientException { + return send(HttpMethod.POST, newEducationModuleResource); + } + + /** + * Creates a EducationModuleResource with a new object + * + * @param newEducationModuleResource the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final EducationModuleResource newEducationModuleResource) { + return sendAsync(HttpMethod.PUT, newEducationModuleResource); + } + + /** + * Creates a EducationModuleResource with a new object + * + * @param newEducationModuleResource the object to create/update + * @return the created EducationModuleResource + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public EducationModuleResource put(@Nonnull final EducationModuleResource newEducationModuleResource) throws ClientException { + return send(HttpMethod.PUT, newEducationModuleResource); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public EducationModuleResourceRequest 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 EducationModuleResourceRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/EducationModuleResourceRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/EducationModuleResourceRequestBuilder.java new file mode 100644 index 00000000000..ee6dda8038a --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationModuleResourceRequestBuilder.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.EducationModuleResource; +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 Education Module Resource Request Builder. + */ +public class EducationModuleResourceRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the EducationModuleResource + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EducationModuleResourceRequestBuilder(@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 EducationModuleResourceRequest instance + */ + @Nonnull + public EducationModuleResourceRequest 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 EducationModuleResourceRequest instance + */ + @Nonnull + public EducationModuleResourceRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.EducationModuleResourceRequest(getRequestUrl(), getClient(), requestOptions); + } + + +} diff --git a/src/main/java/com/microsoft/graph/requests/EducationModuleSetUpResourcesFolderRequest.java b/src/main/java/com/microsoft/graph/requests/EducationModuleSetUpResourcesFolderRequest.java new file mode 100644 index 00000000000..943ec2e69ac --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationModuleSetUpResourcesFolderRequest.java @@ -0,0 +1,77 @@ +// Template Source: BaseMethodRequest.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.EducationModule; +import com.microsoft.graph.requests.EducationModuleSetUpResourcesFolderRequest; + +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.http.BaseRequest; +import com.microsoft.graph.http.HttpMethod; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.core.IBaseClient; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Module Set Up Resources Folder Request. + */ +public class EducationModuleSetUpResourcesFolderRequest extends BaseRequest { + /** + * The request for this EducationModuleSetUpResourcesFolder + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EducationModuleSetUpResourcesFolderRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, EducationModule.class); + } + + /** + * Invokes the method and returns a future with the result + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync() { + return sendAsync(HttpMethod.POST, null); + } + + /** + * Invokes the method and returns the result + * @return result of the method invocation + * @throws ClientException an exception occurs if there was an error while the request was sent + */ + @Nullable + public EducationModule post() throws ClientException { + return send(HttpMethod.POST, null); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public EducationModuleSetUpResourcesFolderRequest 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 EducationModuleSetUpResourcesFolderRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} diff --git a/src/main/java/com/microsoft/graph/requests/EducationModuleSetUpResourcesFolderRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/EducationModuleSetUpResourcesFolderRequestBuilder.java new file mode 100644 index 00000000000..1def5a9d907 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationModuleSetUpResourcesFolderRequestBuilder.java @@ -0,0 +1,58 @@ +// Template Source: BaseMethodRequestBuilder.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.requests.EducationModuleSetUpResourcesFolderRequest; +import com.microsoft.graph.models.EducationModule; +import com.microsoft.graph.http.BaseActionRequestBuilder; +import com.microsoft.graph.core.IBaseClient; +import com.google.gson.JsonElement; +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 Education Module Set Up Resources Folder Request Builder. + */ +public class EducationModuleSetUpResourcesFolderRequestBuilder extends BaseActionRequestBuilder { + + /** + * The request builder for this EducationModuleSetUpResourcesFolder + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EducationModuleSetUpResourcesFolderRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + /** + * Creates the EducationModuleSetUpResourcesFolderRequest + * + * @param requestOptions the options for the request + * @return the EducationModuleSetUpResourcesFolderRequest instance + */ + @Nonnull + public EducationModuleSetUpResourcesFolderRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the EducationModuleSetUpResourcesFolderRequest with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for the request + * @return the EducationModuleSetUpResourcesFolderRequest instance + */ + @Nonnull + public EducationModuleSetUpResourcesFolderRequest buildRequest(@Nonnull final java.util.List requestOptions) { + final EducationModuleSetUpResourcesFolderRequest request = new EducationModuleSetUpResourcesFolderRequest( + getRequestUrl(), + getClient(), + requestOptions); + return request; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/EducationModuleUnpinRequest.java b/src/main/java/com/microsoft/graph/requests/EducationModuleUnpinRequest.java new file mode 100644 index 00000000000..8950b747151 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationModuleUnpinRequest.java @@ -0,0 +1,77 @@ +// Template Source: BaseMethodRequest.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.EducationModule; +import com.microsoft.graph.requests.EducationModuleUnpinRequest; + +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.http.BaseRequest; +import com.microsoft.graph.http.HttpMethod; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.core.IBaseClient; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Module Unpin Request. + */ +public class EducationModuleUnpinRequest extends BaseRequest { + /** + * The request for this EducationModuleUnpin + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EducationModuleUnpinRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, EducationModule.class); + } + + /** + * Invokes the method and returns a future with the result + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync() { + return sendAsync(HttpMethod.POST, null); + } + + /** + * Invokes the method and returns the result + * @return result of the method invocation + * @throws ClientException an exception occurs if there was an error while the request was sent + */ + @Nullable + public EducationModule post() throws ClientException { + return send(HttpMethod.POST, null); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public EducationModuleUnpinRequest 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 EducationModuleUnpinRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} diff --git a/src/main/java/com/microsoft/graph/requests/EducationModuleUnpinRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/EducationModuleUnpinRequestBuilder.java new file mode 100644 index 00000000000..dfbda55a7ee --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationModuleUnpinRequestBuilder.java @@ -0,0 +1,58 @@ +// Template Source: BaseMethodRequestBuilder.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.requests.EducationModuleUnpinRequest; +import com.microsoft.graph.models.EducationModule; +import com.microsoft.graph.http.BaseActionRequestBuilder; +import com.microsoft.graph.core.IBaseClient; +import com.google.gson.JsonElement; +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 Education Module Unpin Request Builder. + */ +public class EducationModuleUnpinRequestBuilder extends BaseActionRequestBuilder { + + /** + * The request builder for this EducationModuleUnpin + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EducationModuleUnpinRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + /** + * Creates the EducationModuleUnpinRequest + * + * @param requestOptions the options for the request + * @return the EducationModuleUnpinRequest instance + */ + @Nonnull + public EducationModuleUnpinRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the EducationModuleUnpinRequest with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for the request + * @return the EducationModuleUnpinRequest instance + */ + @Nonnull + public EducationModuleUnpinRequest buildRequest(@Nonnull final java.util.List requestOptions) { + final EducationModuleUnpinRequest request = new EducationModuleUnpinRequest( + getRequestUrl(), + getClient(), + requestOptions); + return request; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/MacOSMdatpAppRequest.java b/src/main/java/com/microsoft/graph/requests/MacOSWebClipRequest.java similarity index 52% rename from src/main/java/com/microsoft/graph/requests/MacOSMdatpAppRequest.java rename to src/main/java/com/microsoft/graph/requests/MacOSWebClipRequest.java index ae8b4356b6a..e5f21c1fdeb 100644 --- a/src/main/java/com/microsoft/graph/requests/MacOSMdatpAppRequest.java +++ b/src/main/java/com/microsoft/graph/requests/MacOSWebClipRequest.java @@ -7,7 +7,7 @@ import com.microsoft.graph.http.IRequestBuilder; import com.microsoft.graph.core.ClientException; -import com.microsoft.graph.models.MacOSMdatpApp; +import com.microsoft.graph.models.MacOSWebClip; import com.microsoft.graph.models.MobileAppAssignment; import com.microsoft.graph.models.MobileAppRelationship; import com.microsoft.graph.models.HasPayloadLinkResultItem; @@ -22,39 +22,39 @@ // **NOTE** This file was generated by a tool and any changes will be overwritten. /** - * The class for the Mac OSMdatp App Request. + * The class for the Mac OSWeb Clip Request. */ -public class MacOSMdatpAppRequest extends BaseRequest { +public class MacOSWebClipRequest extends BaseRequest { /** - * The request for the MacOSMdatpApp + * The request for the MacOSWebClip * * @param requestUrl the request URL * @param client the service client * @param requestOptions the options for this request */ - public MacOSMdatpAppRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { - super(requestUrl, client, requestOptions, MacOSMdatpApp.class); + public MacOSWebClipRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, MacOSWebClip.class); } /** - * Gets the MacOSMdatpApp from the service + * Gets the MacOSWebClip from the service * * @return a future with the result */ @Nonnull - public java.util.concurrent.CompletableFuture getAsync() { + public java.util.concurrent.CompletableFuture getAsync() { return sendAsync(HttpMethod.GET, null); } /** - * Gets the MacOSMdatpApp from the service + * Gets the MacOSWebClip from the service * - * @return the MacOSMdatpApp from the request + * @return the MacOSWebClip from the request * @throws ClientException this exception occurs if the request was unable to complete for any reason */ @Nullable - public MacOSMdatpApp get() throws ClientException { + public MacOSWebClip get() throws ClientException { return send(HttpMethod.GET, null); } @@ -64,7 +64,7 @@ public MacOSMdatpApp get() throws ClientException { * @return a future with the deletion result */ @Nonnull - public java.util.concurrent.CompletableFuture deleteAsync() { + public java.util.concurrent.CompletableFuture deleteAsync() { return sendAsync(HttpMethod.DELETE, null); } @@ -75,77 +75,77 @@ public java.util.concurrent.CompletableFuture deleteAsync() { * @throws ClientException if there was an exception during the delete operation */ @Nullable - public MacOSMdatpApp delete() throws ClientException { + public MacOSWebClip delete() throws ClientException { return send(HttpMethod.DELETE, null); } /** - * Patches this MacOSMdatpApp with a source + * Patches this MacOSWebClip with a source * - * @param sourceMacOSMdatpApp the source object with updates + * @param sourceMacOSWebClip the source object with updates * @return a future with the result */ @Nonnull - public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final MacOSMdatpApp sourceMacOSMdatpApp) { - return sendAsync(HttpMethod.PATCH, sourceMacOSMdatpApp); + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final MacOSWebClip sourceMacOSWebClip) { + return sendAsync(HttpMethod.PATCH, sourceMacOSWebClip); } /** - * Patches this MacOSMdatpApp with a source + * Patches this MacOSWebClip with a source * - * @param sourceMacOSMdatpApp the source object with updates - * @return the updated MacOSMdatpApp + * @param sourceMacOSWebClip the source object with updates + * @return the updated MacOSWebClip * @throws ClientException this exception occurs if the request was unable to complete for any reason */ @Nullable - public MacOSMdatpApp patch(@Nonnull final MacOSMdatpApp sourceMacOSMdatpApp) throws ClientException { - return send(HttpMethod.PATCH, sourceMacOSMdatpApp); + public MacOSWebClip patch(@Nonnull final MacOSWebClip sourceMacOSWebClip) throws ClientException { + return send(HttpMethod.PATCH, sourceMacOSWebClip); } /** - * Creates a MacOSMdatpApp with a new object + * Creates a MacOSWebClip with a new object * - * @param newMacOSMdatpApp the new object to create + * @param newMacOSWebClip the new object to create * @return a future with the result */ @Nonnull - public java.util.concurrent.CompletableFuture postAsync(@Nonnull final MacOSMdatpApp newMacOSMdatpApp) { - return sendAsync(HttpMethod.POST, newMacOSMdatpApp); + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final MacOSWebClip newMacOSWebClip) { + return sendAsync(HttpMethod.POST, newMacOSWebClip); } /** - * Creates a MacOSMdatpApp with a new object + * Creates a MacOSWebClip with a new object * - * @param newMacOSMdatpApp the new object to create - * @return the created MacOSMdatpApp + * @param newMacOSWebClip the new object to create + * @return the created MacOSWebClip * @throws ClientException this exception occurs if the request was unable to complete for any reason */ @Nullable - public MacOSMdatpApp post(@Nonnull final MacOSMdatpApp newMacOSMdatpApp) throws ClientException { - return send(HttpMethod.POST, newMacOSMdatpApp); + public MacOSWebClip post(@Nonnull final MacOSWebClip newMacOSWebClip) throws ClientException { + return send(HttpMethod.POST, newMacOSWebClip); } /** - * Creates a MacOSMdatpApp with a new object + * Creates a MacOSWebClip with a new object * - * @param newMacOSMdatpApp the object to create/update + * @param newMacOSWebClip the object to create/update * @return a future with the result */ @Nonnull - public java.util.concurrent.CompletableFuture putAsync(@Nonnull final MacOSMdatpApp newMacOSMdatpApp) { - return sendAsync(HttpMethod.PUT, newMacOSMdatpApp); + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final MacOSWebClip newMacOSWebClip) { + return sendAsync(HttpMethod.PUT, newMacOSWebClip); } /** - * Creates a MacOSMdatpApp with a new object + * Creates a MacOSWebClip with a new object * - * @param newMacOSMdatpApp the object to create/update - * @return the created MacOSMdatpApp + * @param newMacOSWebClip the object to create/update + * @return the created MacOSWebClip * @throws ClientException this exception occurs if the request was unable to complete for any reason */ @Nullable - public MacOSMdatpApp put(@Nonnull final MacOSMdatpApp newMacOSMdatpApp) throws ClientException { - return send(HttpMethod.PUT, newMacOSMdatpApp); + public MacOSWebClip put(@Nonnull final MacOSWebClip newMacOSWebClip) throws ClientException { + return send(HttpMethod.PUT, newMacOSWebClip); } /** @@ -155,7 +155,7 @@ public MacOSMdatpApp put(@Nonnull final MacOSMdatpApp newMacOSMdatpApp) throws C * @return the updated request */ @Nonnull - public MacOSMdatpAppRequest select(@Nonnull final String value) { + public MacOSWebClipRequest select(@Nonnull final String value) { addSelectOption(value); return this; } @@ -167,7 +167,7 @@ public MacOSMdatpAppRequest select(@Nonnull final String value) { * @return the updated request */ @Nonnull - public MacOSMdatpAppRequest expand(@Nonnull final String value) { + public MacOSWebClipRequest expand(@Nonnull final String value) { addExpandOption(value); return this; } diff --git a/src/main/java/com/microsoft/graph/requests/MacOSMdatpAppRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/MacOSWebClipRequestBuilder.java similarity index 85% rename from src/main/java/com/microsoft/graph/requests/MacOSMdatpAppRequestBuilder.java rename to src/main/java/com/microsoft/graph/requests/MacOSWebClipRequestBuilder.java index 6936462ae6b..4e82b0e5704 100644 --- a/src/main/java/com/microsoft/graph/requests/MacOSMdatpAppRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/MacOSWebClipRequestBuilder.java @@ -7,7 +7,7 @@ import com.microsoft.graph.http.IRequestBuilder; import com.microsoft.graph.core.ClientException; -import com.microsoft.graph.models.MacOSMdatpApp; +import com.microsoft.graph.models.MacOSWebClip; import com.microsoft.graph.models.MobileAppAssignment; import com.microsoft.graph.models.MobileAppRelationship; import com.microsoft.graph.models.HasPayloadLinkResultItem; @@ -23,18 +23,18 @@ // **NOTE** This file was generated by a tool and any changes will be overwritten. /** - * The class for the Mac OSMdatp App Request Builder. + * The class for the Mac OSWeb Clip Request Builder. */ -public class MacOSMdatpAppRequestBuilder extends BaseRequestBuilder { +public class MacOSWebClipRequestBuilder extends BaseRequestBuilder { /** - * The request builder for the MacOSMdatpApp + * The request builder for the MacOSWebClip * * @param requestUrl the request URL * @param client the service client * @param requestOptions the options for this request */ - public MacOSMdatpAppRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + public MacOSWebClipRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { super(requestUrl, client, requestOptions); } @@ -42,10 +42,10 @@ public MacOSMdatpAppRequestBuilder(@Nonnull final String requestUrl, @Nonnull fi * Creates the request * * @param requestOptions the options for this request - * @return the MacOSMdatpAppRequest instance + * @return the MacOSWebClipRequest instance */ @Nonnull - public MacOSMdatpAppRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { + public MacOSWebClipRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { return buildRequest(getOptions(requestOptions)); } @@ -53,11 +53,11 @@ public MacOSMdatpAppRequest buildRequest(@Nullable final com.microsoft.graph.opt * Creates the request with specific requestOptions instead of the existing requestOptions * * @param requestOptions the options for this request - * @return the MacOSMdatpAppRequest instance + * @return the MacOSWebClipRequest instance */ @Nonnull - public MacOSMdatpAppRequest buildRequest(@Nonnull final java.util.List requestOptions) { - return new com.microsoft.graph.requests.MacOSMdatpAppRequest(getRequestUrl(), getClient(), requestOptions); + public MacOSWebClipRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.MacOSWebClipRequest(getRequestUrl(), getClient(), requestOptions); } diff --git a/src/main/java/com/microsoft/graph/requests/MultiTenantOrganizationIdentitySyncPolicyTemplateRequest.java b/src/main/java/com/microsoft/graph/requests/MultiTenantOrganizationIdentitySyncPolicyTemplateRequest.java new file mode 100644 index 00000000000..e6ff386f0a8 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/MultiTenantOrganizationIdentitySyncPolicyTemplateRequest.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.MultiTenantOrganizationIdentitySyncPolicyTemplate; +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 Multi Tenant Organization Identity Sync Policy Template Request. + */ +public class MultiTenantOrganizationIdentitySyncPolicyTemplateRequest extends BaseRequest { + + /** + * The request for the MultiTenantOrganizationIdentitySyncPolicyTemplate + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public MultiTenantOrganizationIdentitySyncPolicyTemplateRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, MultiTenantOrganizationIdentitySyncPolicyTemplate.class); + } + + /** + * Gets the MultiTenantOrganizationIdentitySyncPolicyTemplate from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the MultiTenantOrganizationIdentitySyncPolicyTemplate from the service + * + * @return the MultiTenantOrganizationIdentitySyncPolicyTemplate from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public MultiTenantOrganizationIdentitySyncPolicyTemplate 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 MultiTenantOrganizationIdentitySyncPolicyTemplate delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this MultiTenantOrganizationIdentitySyncPolicyTemplate with a source + * + * @param sourceMultiTenantOrganizationIdentitySyncPolicyTemplate the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final MultiTenantOrganizationIdentitySyncPolicyTemplate sourceMultiTenantOrganizationIdentitySyncPolicyTemplate) { + return sendAsync(HttpMethod.PATCH, sourceMultiTenantOrganizationIdentitySyncPolicyTemplate); + } + + /** + * Patches this MultiTenantOrganizationIdentitySyncPolicyTemplate with a source + * + * @param sourceMultiTenantOrganizationIdentitySyncPolicyTemplate the source object with updates + * @return the updated MultiTenantOrganizationIdentitySyncPolicyTemplate + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public MultiTenantOrganizationIdentitySyncPolicyTemplate patch(@Nonnull final MultiTenantOrganizationIdentitySyncPolicyTemplate sourceMultiTenantOrganizationIdentitySyncPolicyTemplate) throws ClientException { + return send(HttpMethod.PATCH, sourceMultiTenantOrganizationIdentitySyncPolicyTemplate); + } + + /** + * Creates a MultiTenantOrganizationIdentitySyncPolicyTemplate with a new object + * + * @param newMultiTenantOrganizationIdentitySyncPolicyTemplate the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final MultiTenantOrganizationIdentitySyncPolicyTemplate newMultiTenantOrganizationIdentitySyncPolicyTemplate) { + return sendAsync(HttpMethod.POST, newMultiTenantOrganizationIdentitySyncPolicyTemplate); + } + + /** + * Creates a MultiTenantOrganizationIdentitySyncPolicyTemplate with a new object + * + * @param newMultiTenantOrganizationIdentitySyncPolicyTemplate the new object to create + * @return the created MultiTenantOrganizationIdentitySyncPolicyTemplate + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public MultiTenantOrganizationIdentitySyncPolicyTemplate post(@Nonnull final MultiTenantOrganizationIdentitySyncPolicyTemplate newMultiTenantOrganizationIdentitySyncPolicyTemplate) throws ClientException { + return send(HttpMethod.POST, newMultiTenantOrganizationIdentitySyncPolicyTemplate); + } + + /** + * Creates a MultiTenantOrganizationIdentitySyncPolicyTemplate with a new object + * + * @param newMultiTenantOrganizationIdentitySyncPolicyTemplate the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final MultiTenantOrganizationIdentitySyncPolicyTemplate newMultiTenantOrganizationIdentitySyncPolicyTemplate) { + return sendAsync(HttpMethod.PUT, newMultiTenantOrganizationIdentitySyncPolicyTemplate); + } + + /** + * Creates a MultiTenantOrganizationIdentitySyncPolicyTemplate with a new object + * + * @param newMultiTenantOrganizationIdentitySyncPolicyTemplate the object to create/update + * @return the created MultiTenantOrganizationIdentitySyncPolicyTemplate + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public MultiTenantOrganizationIdentitySyncPolicyTemplate put(@Nonnull final MultiTenantOrganizationIdentitySyncPolicyTemplate newMultiTenantOrganizationIdentitySyncPolicyTemplate) throws ClientException { + return send(HttpMethod.PUT, newMultiTenantOrganizationIdentitySyncPolicyTemplate); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public MultiTenantOrganizationIdentitySyncPolicyTemplateRequest 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 MultiTenantOrganizationIdentitySyncPolicyTemplateRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/MultiTenantOrganizationIdentitySyncPolicyTemplateRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/MultiTenantOrganizationIdentitySyncPolicyTemplateRequestBuilder.java new file mode 100644 index 00000000000..f4fd4cc9ea1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/MultiTenantOrganizationIdentitySyncPolicyTemplateRequestBuilder.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.MultiTenantOrganizationIdentitySyncPolicyTemplate; +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 Multi Tenant Organization Identity Sync Policy Template Request Builder. + */ +public class MultiTenantOrganizationIdentitySyncPolicyTemplateRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the MultiTenantOrganizationIdentitySyncPolicyTemplate + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public MultiTenantOrganizationIdentitySyncPolicyTemplateRequestBuilder(@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 MultiTenantOrganizationIdentitySyncPolicyTemplateRequest instance + */ + @Nonnull + public MultiTenantOrganizationIdentitySyncPolicyTemplateRequest 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 MultiTenantOrganizationIdentitySyncPolicyTemplateRequest instance + */ + @Nonnull + public MultiTenantOrganizationIdentitySyncPolicyTemplateRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.MultiTenantOrganizationIdentitySyncPolicyTemplateRequest(getRequestUrl(), getClient(), requestOptions); + } + + +} diff --git a/src/main/java/com/microsoft/graph/requests/MultiTenantOrganizationJoinRequestRecordRequest.java b/src/main/java/com/microsoft/graph/requests/MultiTenantOrganizationJoinRequestRecordRequest.java new file mode 100644 index 00000000000..628780b7994 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/MultiTenantOrganizationJoinRequestRecordRequest.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.MultiTenantOrganizationJoinRequestRecord; +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 Multi Tenant Organization Join Request Record Request. + */ +public class MultiTenantOrganizationJoinRequestRecordRequest extends BaseRequest { + + /** + * The request for the MultiTenantOrganizationJoinRequestRecord + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public MultiTenantOrganizationJoinRequestRecordRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, MultiTenantOrganizationJoinRequestRecord.class); + } + + /** + * Gets the MultiTenantOrganizationJoinRequestRecord from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the MultiTenantOrganizationJoinRequestRecord from the service + * + * @return the MultiTenantOrganizationJoinRequestRecord from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public MultiTenantOrganizationJoinRequestRecord 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 MultiTenantOrganizationJoinRequestRecord delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this MultiTenantOrganizationJoinRequestRecord with a source + * + * @param sourceMultiTenantOrganizationJoinRequestRecord the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final MultiTenantOrganizationJoinRequestRecord sourceMultiTenantOrganizationJoinRequestRecord) { + return sendAsync(HttpMethod.PATCH, sourceMultiTenantOrganizationJoinRequestRecord); + } + + /** + * Patches this MultiTenantOrganizationJoinRequestRecord with a source + * + * @param sourceMultiTenantOrganizationJoinRequestRecord the source object with updates + * @return the updated MultiTenantOrganizationJoinRequestRecord + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public MultiTenantOrganizationJoinRequestRecord patch(@Nonnull final MultiTenantOrganizationJoinRequestRecord sourceMultiTenantOrganizationJoinRequestRecord) throws ClientException { + return send(HttpMethod.PATCH, sourceMultiTenantOrganizationJoinRequestRecord); + } + + /** + * Creates a MultiTenantOrganizationJoinRequestRecord with a new object + * + * @param newMultiTenantOrganizationJoinRequestRecord the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final MultiTenantOrganizationJoinRequestRecord newMultiTenantOrganizationJoinRequestRecord) { + return sendAsync(HttpMethod.POST, newMultiTenantOrganizationJoinRequestRecord); + } + + /** + * Creates a MultiTenantOrganizationJoinRequestRecord with a new object + * + * @param newMultiTenantOrganizationJoinRequestRecord the new object to create + * @return the created MultiTenantOrganizationJoinRequestRecord + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public MultiTenantOrganizationJoinRequestRecord post(@Nonnull final MultiTenantOrganizationJoinRequestRecord newMultiTenantOrganizationJoinRequestRecord) throws ClientException { + return send(HttpMethod.POST, newMultiTenantOrganizationJoinRequestRecord); + } + + /** + * Creates a MultiTenantOrganizationJoinRequestRecord with a new object + * + * @param newMultiTenantOrganizationJoinRequestRecord the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final MultiTenantOrganizationJoinRequestRecord newMultiTenantOrganizationJoinRequestRecord) { + return sendAsync(HttpMethod.PUT, newMultiTenantOrganizationJoinRequestRecord); + } + + /** + * Creates a MultiTenantOrganizationJoinRequestRecord with a new object + * + * @param newMultiTenantOrganizationJoinRequestRecord the object to create/update + * @return the created MultiTenantOrganizationJoinRequestRecord + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public MultiTenantOrganizationJoinRequestRecord put(@Nonnull final MultiTenantOrganizationJoinRequestRecord newMultiTenantOrganizationJoinRequestRecord) throws ClientException { + return send(HttpMethod.PUT, newMultiTenantOrganizationJoinRequestRecord); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public MultiTenantOrganizationJoinRequestRecordRequest 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 MultiTenantOrganizationJoinRequestRecordRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/MultiTenantOrganizationJoinRequestRecordRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/MultiTenantOrganizationJoinRequestRecordRequestBuilder.java new file mode 100644 index 00000000000..ba314ef0d14 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/MultiTenantOrganizationJoinRequestRecordRequestBuilder.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.MultiTenantOrganizationJoinRequestRecord; +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 Multi Tenant Organization Join Request Record Request Builder. + */ +public class MultiTenantOrganizationJoinRequestRecordRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the MultiTenantOrganizationJoinRequestRecord + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public MultiTenantOrganizationJoinRequestRecordRequestBuilder(@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 MultiTenantOrganizationJoinRequestRecordRequest instance + */ + @Nonnull + public MultiTenantOrganizationJoinRequestRecordRequest 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 MultiTenantOrganizationJoinRequestRecordRequest instance + */ + @Nonnull + public MultiTenantOrganizationJoinRequestRecordRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.MultiTenantOrganizationJoinRequestRecordRequest(getRequestUrl(), getClient(), requestOptions); + } + + +} diff --git a/src/main/java/com/microsoft/graph/requests/MultiTenantOrganizationMemberCollectionPage.java b/src/main/java/com/microsoft/graph/requests/MultiTenantOrganizationMemberCollectionPage.java new file mode 100644 index 00000000000..d420ce81340 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/MultiTenantOrganizationMemberCollectionPage.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.MultiTenantOrganizationMember; +import com.microsoft.graph.requests.MultiTenantOrganizationMemberCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.requests.MultiTenantOrganizationMemberCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Multi Tenant Organization Member Collection Page. + */ +public class MultiTenantOrganizationMemberCollectionPage extends BaseCollectionPage { + + /** + * A collection page for MultiTenantOrganizationMember + * + * @param response the serialized MultiTenantOrganizationMemberCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public MultiTenantOrganizationMemberCollectionPage(@Nonnull final MultiTenantOrganizationMemberCollectionResponse response, @Nonnull final MultiTenantOrganizationMemberCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for MultiTenantOrganizationMember + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public MultiTenantOrganizationMemberCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final MultiTenantOrganizationMemberCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/MultiTenantOrganizationMemberCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/MultiTenantOrganizationMemberCollectionRequest.java new file mode 100644 index 00000000000..21706a71265 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/MultiTenantOrganizationMemberCollectionRequest.java @@ -0,0 +1,174 @@ +// 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.MultiTenantOrganization; +import com.microsoft.graph.models.MultiTenantOrganizationMember; +import com.microsoft.graph.models.DirectoryObject; +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.MultiTenantOrganizationMemberCollectionResponse; +import com.microsoft.graph.requests.MultiTenantOrganizationMemberCollectionRequestBuilder; +import com.microsoft.graph.requests.MultiTenantOrganizationMemberCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Multi Tenant Organization Member Collection Request. + */ +public class MultiTenantOrganizationMemberCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of MultiTenantOrganizationMember + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public MultiTenantOrganizationMemberCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, MultiTenantOrganizationMemberCollectionResponse.class, MultiTenantOrganizationMemberCollectionPage.class, MultiTenantOrganizationMemberCollectionRequestBuilder.class); + } + + /** + * Creates a new MultiTenantOrganizationMember + * @param newMultiTenantOrganizationMember the MultiTenantOrganizationMember to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final MultiTenantOrganizationMember newMultiTenantOrganizationMember) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new MultiTenantOrganizationMemberRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newMultiTenantOrganizationMember); + } + + /** + * Creates a new MultiTenantOrganizationMember + * @param newMultiTenantOrganizationMember the MultiTenantOrganizationMember to create + * @return the newly created object + */ + @Nonnull + public MultiTenantOrganizationMember post(@Nonnull final MultiTenantOrganizationMember newMultiTenantOrganizationMember) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new MultiTenantOrganizationMemberRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newMultiTenantOrganizationMember); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public MultiTenantOrganizationMemberCollectionRequest 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 MultiTenantOrganizationMemberCollectionRequest 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 MultiTenantOrganizationMemberCollectionRequest 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 MultiTenantOrganizationMemberCollectionRequest 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 MultiTenantOrganizationMemberCollectionRequest 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 MultiTenantOrganizationMemberCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public MultiTenantOrganizationMemberCollectionRequest 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 MultiTenantOrganizationMemberCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public MultiTenantOrganizationMemberCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/requests/MultiTenantOrganizationMemberCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/MultiTenantOrganizationMemberCollectionRequestBuilder.java new file mode 100644 index 00000000000..b11de47abaa --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/MultiTenantOrganizationMemberCollectionRequestBuilder.java @@ -0,0 +1,102 @@ +// 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.MultiTenantOrganization; +import com.microsoft.graph.models.MultiTenantOrganizationMember; +import com.microsoft.graph.models.DirectoryObject; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.MultiTenantOrganizationMemberCollectionRequestBuilder; +import com.microsoft.graph.requests.MultiTenantOrganizationMemberRequestBuilder; +import com.microsoft.graph.requests.MultiTenantOrganizationMemberCollectionRequest; +import com.microsoft.graph.requests.DirectoryObjectValidatePropertiesRequestBuilder; +import com.microsoft.graph.requests.DirectoryObjectGetByIdsCollectionRequestBuilder; +import com.microsoft.graph.requests.DirectoryObjectGetUserOwnedObjectsRequestBuilder; +import com.microsoft.graph.requests.DirectoryObjectDeltaCollectionRequestBuilder; +import com.microsoft.graph.http.BaseCollectionRequestBuilder; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.PrimitiveRequestBuilder; +import com.microsoft.graph.models.DirectoryObjectValidatePropertiesParameterSet; +import com.microsoft.graph.models.DirectoryObjectCheckMemberGroupsParameterSet; +import com.microsoft.graph.models.DirectoryObjectCheckMemberObjectsParameterSet; +import com.microsoft.graph.models.DirectoryObjectGetMemberGroupsParameterSet; +import com.microsoft.graph.models.DirectoryObjectGetMemberObjectsParameterSet; +import com.microsoft.graph.models.DirectoryObjectGetByIdsParameterSet; +import com.microsoft.graph.models.DirectoryObjectGetUserOwnedObjectsParameterSet; +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Multi Tenant Organization Member Collection Request Builder. + */ +public class MultiTenantOrganizationMemberCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of MultiTenantOrganization + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public MultiTenantOrganizationMemberCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, MultiTenantOrganizationMemberRequestBuilder.class, MultiTenantOrganizationMemberCollectionRequest.class); + } + + + + /** + * Gets a builder to execute the method + * @return the request builder + * @param parameters the parameters for the service method + */ + @Nonnull + public DirectoryObjectValidatePropertiesRequestBuilder validateProperties(@Nonnull final DirectoryObjectValidatePropertiesParameterSet parameters) { + return new DirectoryObjectValidatePropertiesRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.validateProperties"), getClient(), null, parameters); + } + + /** + * Gets a builder to execute the method + * @return the request builder collection + * @param parameters the parameters for the service method + */ + @Nonnull + public DirectoryObjectGetByIdsCollectionRequestBuilder getByIds(@Nonnull final DirectoryObjectGetByIdsParameterSet parameters) { + return new DirectoryObjectGetByIdsCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.getByIds"), getClient(), null, parameters); + } + + /** + * Gets a builder to execute the method + * @return the request builder + * @param parameters the parameters for the service method + */ + @Nonnull + public DirectoryObjectGetUserOwnedObjectsRequestBuilder getUserOwnedObjects(@Nonnull final DirectoryObjectGetUserOwnedObjectsParameterSet parameters) { + return new DirectoryObjectGetUserOwnedObjectsRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.getUserOwnedObjects"), getClient(), null, parameters); + } + + /** + * Gets a builder to execute the method + * @return the request builder collection + */ + @Nonnull + public DirectoryObjectDeltaCollectionRequestBuilder delta() { + return new DirectoryObjectDeltaCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.delta"), getClient(), null); + } + + /** + * 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/MultiTenantOrganizationMemberCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/MultiTenantOrganizationMemberCollectionResponse.java new file mode 100644 index 00000000000..772c74db988 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/MultiTenantOrganizationMemberCollectionResponse.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.MultiTenantOrganizationMember; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Multi Tenant Organization Member Collection Response. + */ +public class MultiTenantOrganizationMemberCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/requests/MultiTenantOrganizationMemberRequest.java b/src/main/java/com/microsoft/graph/requests/MultiTenantOrganizationMemberRequest.java new file mode 100644 index 00000000000..c662867f2b4 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/MultiTenantOrganizationMemberRequest.java @@ -0,0 +1,174 @@ +// 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.MultiTenantOrganizationMember; +import com.microsoft.graph.models.DirectoryObject; +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 Multi Tenant Organization Member Request. + */ +public class MultiTenantOrganizationMemberRequest extends BaseRequest { + + /** + * The request for the MultiTenantOrganizationMember + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public MultiTenantOrganizationMemberRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, MultiTenantOrganizationMember.class); + } + + /** + * Gets the MultiTenantOrganizationMember from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the MultiTenantOrganizationMember from the service + * + * @return the MultiTenantOrganizationMember from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public MultiTenantOrganizationMember 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 MultiTenantOrganizationMember delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this MultiTenantOrganizationMember with a source + * + * @param sourceMultiTenantOrganizationMember the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final MultiTenantOrganizationMember sourceMultiTenantOrganizationMember) { + return sendAsync(HttpMethod.PATCH, sourceMultiTenantOrganizationMember); + } + + /** + * Patches this MultiTenantOrganizationMember with a source + * + * @param sourceMultiTenantOrganizationMember the source object with updates + * @return the updated MultiTenantOrganizationMember + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public MultiTenantOrganizationMember patch(@Nonnull final MultiTenantOrganizationMember sourceMultiTenantOrganizationMember) throws ClientException { + return send(HttpMethod.PATCH, sourceMultiTenantOrganizationMember); + } + + /** + * Creates a MultiTenantOrganizationMember with a new object + * + * @param newMultiTenantOrganizationMember the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final MultiTenantOrganizationMember newMultiTenantOrganizationMember) { + return sendAsync(HttpMethod.POST, newMultiTenantOrganizationMember); + } + + /** + * Creates a MultiTenantOrganizationMember with a new object + * + * @param newMultiTenantOrganizationMember the new object to create + * @return the created MultiTenantOrganizationMember + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public MultiTenantOrganizationMember post(@Nonnull final MultiTenantOrganizationMember newMultiTenantOrganizationMember) throws ClientException { + return send(HttpMethod.POST, newMultiTenantOrganizationMember); + } + + /** + * Creates a MultiTenantOrganizationMember with a new object + * + * @param newMultiTenantOrganizationMember the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final MultiTenantOrganizationMember newMultiTenantOrganizationMember) { + return sendAsync(HttpMethod.PUT, newMultiTenantOrganizationMember); + } + + /** + * Creates a MultiTenantOrganizationMember with a new object + * + * @param newMultiTenantOrganizationMember the object to create/update + * @return the created MultiTenantOrganizationMember + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public MultiTenantOrganizationMember put(@Nonnull final MultiTenantOrganizationMember newMultiTenantOrganizationMember) throws ClientException { + return send(HttpMethod.PUT, newMultiTenantOrganizationMember); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public MultiTenantOrganizationMemberRequest 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 MultiTenantOrganizationMemberRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/MultiTenantOrganizationMemberRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/MultiTenantOrganizationMemberRequestBuilder.java new file mode 100644 index 00000000000..31946fdbd4f --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/MultiTenantOrganizationMemberRequestBuilder.java @@ -0,0 +1,113 @@ +// 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.MultiTenantOrganizationMember; +import com.microsoft.graph.models.DirectoryObject; +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 com.microsoft.graph.models.DirectoryObjectCheckMemberGroupsParameterSet; +import com.microsoft.graph.models.DirectoryObjectCheckMemberObjectsParameterSet; +import com.microsoft.graph.models.DirectoryObjectGetMemberGroupsParameterSet; +import com.microsoft.graph.models.DirectoryObjectGetMemberObjectsParameterSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Multi Tenant Organization Member Request Builder. + */ +public class MultiTenantOrganizationMemberRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the MultiTenantOrganizationMember + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public MultiTenantOrganizationMemberRequestBuilder(@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 MultiTenantOrganizationMemberRequest instance + */ + @Nonnull + public MultiTenantOrganizationMemberRequest 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 MultiTenantOrganizationMemberRequest instance + */ + @Nonnull + public MultiTenantOrganizationMemberRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.MultiTenantOrganizationMemberRequest(getRequestUrl(), getClient(), requestOptions); + } + + + + /** + * Gets a builder to execute the method + * @return the request builder + */ + @Nonnull + public DirectoryObjectRestoreRequestBuilder restore() { + return new DirectoryObjectRestoreRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.restore"), getClient(), null); + } + + /** + * Gets a builder to execute the method + * @return the request builder collection + * @param parameters the parameters for the service method + */ + @Nonnull + public DirectoryObjectCheckMemberGroupsCollectionRequestBuilder checkMemberGroups(@Nonnull final DirectoryObjectCheckMemberGroupsParameterSet parameters) { + return new DirectoryObjectCheckMemberGroupsCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.checkMemberGroups"), getClient(), null, parameters); + } + + /** + * Gets a builder to execute the method + * @return the request builder collection + * @param parameters the parameters for the service method + */ + @Nonnull + public DirectoryObjectCheckMemberObjectsCollectionRequestBuilder checkMemberObjects(@Nonnull final DirectoryObjectCheckMemberObjectsParameterSet parameters) { + return new DirectoryObjectCheckMemberObjectsCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.checkMemberObjects"), getClient(), null, parameters); + } + + /** + * Gets a builder to execute the method + * @return the request builder collection + * @param parameters the parameters for the service method + */ + @Nonnull + public DirectoryObjectGetMemberGroupsCollectionRequestBuilder getMemberGroups(@Nonnull final DirectoryObjectGetMemberGroupsParameterSet parameters) { + return new DirectoryObjectGetMemberGroupsCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.getMemberGroups"), getClient(), null, parameters); + } + + /** + * Gets a builder to execute the method + * @return the request builder collection + * @param parameters the parameters for the service method + */ + @Nonnull + public DirectoryObjectGetMemberObjectsCollectionRequestBuilder getMemberObjects(@Nonnull final DirectoryObjectGetMemberObjectsParameterSet parameters) { + return new DirectoryObjectGetMemberObjectsCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.getMemberObjects"), getClient(), null, parameters); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/MultiTenantOrganizationPartnerConfigurationTemplateRequest.java b/src/main/java/com/microsoft/graph/requests/MultiTenantOrganizationPartnerConfigurationTemplateRequest.java new file mode 100644 index 00000000000..e516ad639ba --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/MultiTenantOrganizationPartnerConfigurationTemplateRequest.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.MultiTenantOrganizationPartnerConfigurationTemplate; +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 Multi Tenant Organization Partner Configuration Template Request. + */ +public class MultiTenantOrganizationPartnerConfigurationTemplateRequest extends BaseRequest { + + /** + * The request for the MultiTenantOrganizationPartnerConfigurationTemplate + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public MultiTenantOrganizationPartnerConfigurationTemplateRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, MultiTenantOrganizationPartnerConfigurationTemplate.class); + } + + /** + * Gets the MultiTenantOrganizationPartnerConfigurationTemplate from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the MultiTenantOrganizationPartnerConfigurationTemplate from the service + * + * @return the MultiTenantOrganizationPartnerConfigurationTemplate from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public MultiTenantOrganizationPartnerConfigurationTemplate 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 MultiTenantOrganizationPartnerConfigurationTemplate delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this MultiTenantOrganizationPartnerConfigurationTemplate with a source + * + * @param sourceMultiTenantOrganizationPartnerConfigurationTemplate the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final MultiTenantOrganizationPartnerConfigurationTemplate sourceMultiTenantOrganizationPartnerConfigurationTemplate) { + return sendAsync(HttpMethod.PATCH, sourceMultiTenantOrganizationPartnerConfigurationTemplate); + } + + /** + * Patches this MultiTenantOrganizationPartnerConfigurationTemplate with a source + * + * @param sourceMultiTenantOrganizationPartnerConfigurationTemplate the source object with updates + * @return the updated MultiTenantOrganizationPartnerConfigurationTemplate + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public MultiTenantOrganizationPartnerConfigurationTemplate patch(@Nonnull final MultiTenantOrganizationPartnerConfigurationTemplate sourceMultiTenantOrganizationPartnerConfigurationTemplate) throws ClientException { + return send(HttpMethod.PATCH, sourceMultiTenantOrganizationPartnerConfigurationTemplate); + } + + /** + * Creates a MultiTenantOrganizationPartnerConfigurationTemplate with a new object + * + * @param newMultiTenantOrganizationPartnerConfigurationTemplate the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final MultiTenantOrganizationPartnerConfigurationTemplate newMultiTenantOrganizationPartnerConfigurationTemplate) { + return sendAsync(HttpMethod.POST, newMultiTenantOrganizationPartnerConfigurationTemplate); + } + + /** + * Creates a MultiTenantOrganizationPartnerConfigurationTemplate with a new object + * + * @param newMultiTenantOrganizationPartnerConfigurationTemplate the new object to create + * @return the created MultiTenantOrganizationPartnerConfigurationTemplate + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public MultiTenantOrganizationPartnerConfigurationTemplate post(@Nonnull final MultiTenantOrganizationPartnerConfigurationTemplate newMultiTenantOrganizationPartnerConfigurationTemplate) throws ClientException { + return send(HttpMethod.POST, newMultiTenantOrganizationPartnerConfigurationTemplate); + } + + /** + * Creates a MultiTenantOrganizationPartnerConfigurationTemplate with a new object + * + * @param newMultiTenantOrganizationPartnerConfigurationTemplate the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final MultiTenantOrganizationPartnerConfigurationTemplate newMultiTenantOrganizationPartnerConfigurationTemplate) { + return sendAsync(HttpMethod.PUT, newMultiTenantOrganizationPartnerConfigurationTemplate); + } + + /** + * Creates a MultiTenantOrganizationPartnerConfigurationTemplate with a new object + * + * @param newMultiTenantOrganizationPartnerConfigurationTemplate the object to create/update + * @return the created MultiTenantOrganizationPartnerConfigurationTemplate + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public MultiTenantOrganizationPartnerConfigurationTemplate put(@Nonnull final MultiTenantOrganizationPartnerConfigurationTemplate newMultiTenantOrganizationPartnerConfigurationTemplate) throws ClientException { + return send(HttpMethod.PUT, newMultiTenantOrganizationPartnerConfigurationTemplate); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public MultiTenantOrganizationPartnerConfigurationTemplateRequest 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 MultiTenantOrganizationPartnerConfigurationTemplateRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/MultiTenantOrganizationPartnerConfigurationTemplateRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/MultiTenantOrganizationPartnerConfigurationTemplateRequestBuilder.java new file mode 100644 index 00000000000..8c8bc2a2446 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/MultiTenantOrganizationPartnerConfigurationTemplateRequestBuilder.java @@ -0,0 +1,68 @@ +// 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.MultiTenantOrganizationPartnerConfigurationTemplate; +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 Multi Tenant Organization Partner Configuration Template Request Builder. + */ +public class MultiTenantOrganizationPartnerConfigurationTemplateRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the MultiTenantOrganizationPartnerConfigurationTemplate + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public MultiTenantOrganizationPartnerConfigurationTemplateRequestBuilder(@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 MultiTenantOrganizationPartnerConfigurationTemplateRequest instance + */ + @Nonnull + public MultiTenantOrganizationPartnerConfigurationTemplateRequest 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 MultiTenantOrganizationPartnerConfigurationTemplateRequest instance + */ + @Nonnull + public MultiTenantOrganizationPartnerConfigurationTemplateRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.MultiTenantOrganizationPartnerConfigurationTemplateRequest(getRequestUrl(), getClient(), requestOptions); + } + + + + /** + * Gets a builder to execute the method + * @return the request builder + */ + @Nonnull + public MultiTenantOrganizationPartnerConfigurationTemplateResetToDefaultSettingsRequestBuilder resetToDefaultSettings() { + return new MultiTenantOrganizationPartnerConfigurationTemplateResetToDefaultSettingsRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.resetToDefaultSettings"), getClient(), null); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/MultiTenantOrganizationPartnerConfigurationTemplateResetToDefaultSettingsRequest.java b/src/main/java/com/microsoft/graph/requests/MultiTenantOrganizationPartnerConfigurationTemplateResetToDefaultSettingsRequest.java new file mode 100644 index 00000000000..3d15a7fecd0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/MultiTenantOrganizationPartnerConfigurationTemplateResetToDefaultSettingsRequest.java @@ -0,0 +1,52 @@ +// Template Source: BaseMethodRequest.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.MultiTenantOrganizationPartnerConfigurationTemplate; +import com.microsoft.graph.requests.MultiTenantOrganizationPartnerConfigurationTemplateResetToDefaultSettingsRequest; + +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.http.BaseRequest; +import com.microsoft.graph.http.HttpMethod; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.core.IBaseClient; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Multi Tenant Organization Partner Configuration Template Reset To Default Settings Request. + */ +public class MultiTenantOrganizationPartnerConfigurationTemplateResetToDefaultSettingsRequest extends BaseRequest { + /** + * The request for this MultiTenantOrganizationPartnerConfigurationTemplateResetToDefaultSettings + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public MultiTenantOrganizationPartnerConfigurationTemplateResetToDefaultSettingsRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, Void.class); + } + + /** + * Creates the MultiTenantOrganizationPartnerConfigurationTemplateResetToDefaultSettings + * + * @return a future for the operation + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync() { + return this.sendAsync(HttpMethod.POST, null); + } + + /** + * Creates the MultiTenantOrganizationPartnerConfigurationTemplateResetToDefaultSettings + * + * @throws ClientException an exception occurs if there was an error while the request was sent + */ + public void post() throws ClientException { + this.send(HttpMethod.POST, null); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/MultiTenantOrganizationPartnerConfigurationTemplateResetToDefaultSettingsRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/MultiTenantOrganizationPartnerConfigurationTemplateResetToDefaultSettingsRequestBuilder.java new file mode 100644 index 00000000000..ab08ee68fee --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/MultiTenantOrganizationPartnerConfigurationTemplateResetToDefaultSettingsRequestBuilder.java @@ -0,0 +1,59 @@ +// Template Source: BaseMethodRequestBuilder.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.requests.MultiTenantOrganizationPartnerConfigurationTemplateResetToDefaultSettingsRequest; +import com.microsoft.graph.models.MultiTenantOrganizationPartnerConfigurationTemplate; + +import com.microsoft.graph.http.BaseActionRequestBuilder; +import com.microsoft.graph.core.IBaseClient; +import com.google.gson.JsonElement; +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 Multi Tenant Organization Partner Configuration Template Reset To Default Settings Request Builder. + */ +public class MultiTenantOrganizationPartnerConfigurationTemplateResetToDefaultSettingsRequestBuilder extends BaseActionRequestBuilder { + + /** + * The request builder for this MultiTenantOrganizationPartnerConfigurationTemplateResetToDefaultSettings + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public MultiTenantOrganizationPartnerConfigurationTemplateResetToDefaultSettingsRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + /** + * Creates the MultiTenantOrganizationPartnerConfigurationTemplateResetToDefaultSettingsRequest + * + * @param requestOptions the options for the request + * @return the MultiTenantOrganizationPartnerConfigurationTemplateResetToDefaultSettingsRequest instance + */ + @Nonnull + public MultiTenantOrganizationPartnerConfigurationTemplateResetToDefaultSettingsRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the MultiTenantOrganizationPartnerConfigurationTemplateResetToDefaultSettingsRequest with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for the request + * @return the MultiTenantOrganizationPartnerConfigurationTemplateResetToDefaultSettingsRequest instance + */ + @Nonnull + public MultiTenantOrganizationPartnerConfigurationTemplateResetToDefaultSettingsRequest buildRequest(@Nonnull final java.util.List requestOptions) { + final MultiTenantOrganizationPartnerConfigurationTemplateResetToDefaultSettingsRequest request = new MultiTenantOrganizationPartnerConfigurationTemplateResetToDefaultSettingsRequest( + getRequestUrl(), + getClient(), + requestOptions); + return request; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/MultiTenantOrganizationRequest.java b/src/main/java/com/microsoft/graph/requests/MultiTenantOrganizationRequest.java new file mode 100644 index 00000000000..2cc0e29d548 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/MultiTenantOrganizationRequest.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.MultiTenantOrganization; +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 Multi Tenant Organization Request. + */ +public class MultiTenantOrganizationRequest extends BaseRequest { + + /** + * The request for the MultiTenantOrganization + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public MultiTenantOrganizationRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, MultiTenantOrganization.class); + } + + /** + * Gets the MultiTenantOrganization from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the MultiTenantOrganization from the service + * + * @return the MultiTenantOrganization from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public MultiTenantOrganization 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 MultiTenantOrganization delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this MultiTenantOrganization with a source + * + * @param sourceMultiTenantOrganization the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final MultiTenantOrganization sourceMultiTenantOrganization) { + return sendAsync(HttpMethod.PATCH, sourceMultiTenantOrganization); + } + + /** + * Patches this MultiTenantOrganization with a source + * + * @param sourceMultiTenantOrganization the source object with updates + * @return the updated MultiTenantOrganization + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public MultiTenantOrganization patch(@Nonnull final MultiTenantOrganization sourceMultiTenantOrganization) throws ClientException { + return send(HttpMethod.PATCH, sourceMultiTenantOrganization); + } + + /** + * Creates a MultiTenantOrganization with a new object + * + * @param newMultiTenantOrganization the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final MultiTenantOrganization newMultiTenantOrganization) { + return sendAsync(HttpMethod.POST, newMultiTenantOrganization); + } + + /** + * Creates a MultiTenantOrganization with a new object + * + * @param newMultiTenantOrganization the new object to create + * @return the created MultiTenantOrganization + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public MultiTenantOrganization post(@Nonnull final MultiTenantOrganization newMultiTenantOrganization) throws ClientException { + return send(HttpMethod.POST, newMultiTenantOrganization); + } + + /** + * Creates a MultiTenantOrganization with a new object + * + * @param newMultiTenantOrganization the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final MultiTenantOrganization newMultiTenantOrganization) { + return sendAsync(HttpMethod.PUT, newMultiTenantOrganization); + } + + /** + * Creates a MultiTenantOrganization with a new object + * + * @param newMultiTenantOrganization the object to create/update + * @return the created MultiTenantOrganization + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public MultiTenantOrganization put(@Nonnull final MultiTenantOrganization newMultiTenantOrganization) throws ClientException { + return send(HttpMethod.PUT, newMultiTenantOrganization); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public MultiTenantOrganizationRequest 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 MultiTenantOrganizationRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/MultiTenantOrganizationRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/MultiTenantOrganizationRequestBuilder.java new file mode 100644 index 00000000000..2f2b227ec59 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/MultiTenantOrganizationRequestBuilder.java @@ -0,0 +1,89 @@ +// 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.MultiTenantOrganization; +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 Multi Tenant Organization Request Builder. + */ +public class MultiTenantOrganizationRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the MultiTenantOrganization + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public MultiTenantOrganizationRequestBuilder(@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 MultiTenantOrganizationRequest instance + */ + @Nonnull + public MultiTenantOrganizationRequest 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 MultiTenantOrganizationRequest instance + */ + @Nonnull + public MultiTenantOrganizationRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.MultiTenantOrganizationRequest(getRequestUrl(), getClient(), requestOptions); + } + + + + /** + * Gets the request builder for MultiTenantOrganizationJoinRequestRecord + * + * @return the MultiTenantOrganizationJoinRequestRecordRequestBuilder instance + */ + @Nonnull + public com.microsoft.graph.requests.MultiTenantOrganizationJoinRequestRecordRequestBuilder joinRequest() { + return new com.microsoft.graph.requests.MultiTenantOrganizationJoinRequestRecordRequestBuilder(getRequestUrlWithAdditionalSegment("joinRequest"), getClient(), null); + } + /** + * Gets a request builder for the MultiTenantOrganizationMember collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.requests.MultiTenantOrganizationMemberCollectionRequestBuilder tenants() { + return new com.microsoft.graph.requests.MultiTenantOrganizationMemberCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("tenants"), getClient(), null); + } + + /** + * Gets a request builder for the MultiTenantOrganizationMember item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.requests.MultiTenantOrganizationMemberRequestBuilder tenants(@Nonnull final String id) { + return new com.microsoft.graph.requests.MultiTenantOrganizationMemberRequestBuilder(getRequestUrlWithAdditionalSegment("tenants") + "/" + id, getClient(), null); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/PolicyTemplateRequest.java b/src/main/java/com/microsoft/graph/requests/PolicyTemplateRequest.java new file mode 100644 index 00000000000..2632eb37cc7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/PolicyTemplateRequest.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.PolicyTemplate; +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 Policy Template Request. + */ +public class PolicyTemplateRequest extends BaseRequest { + + /** + * The request for the PolicyTemplate + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public PolicyTemplateRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, PolicyTemplate.class); + } + + /** + * Gets the PolicyTemplate from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the PolicyTemplate from the service + * + * @return the PolicyTemplate from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public PolicyTemplate 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 PolicyTemplate delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this PolicyTemplate with a source + * + * @param sourcePolicyTemplate the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final PolicyTemplate sourcePolicyTemplate) { + return sendAsync(HttpMethod.PATCH, sourcePolicyTemplate); + } + + /** + * Patches this PolicyTemplate with a source + * + * @param sourcePolicyTemplate the source object with updates + * @return the updated PolicyTemplate + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public PolicyTemplate patch(@Nonnull final PolicyTemplate sourcePolicyTemplate) throws ClientException { + return send(HttpMethod.PATCH, sourcePolicyTemplate); + } + + /** + * Creates a PolicyTemplate with a new object + * + * @param newPolicyTemplate the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final PolicyTemplate newPolicyTemplate) { + return sendAsync(HttpMethod.POST, newPolicyTemplate); + } + + /** + * Creates a PolicyTemplate with a new object + * + * @param newPolicyTemplate the new object to create + * @return the created PolicyTemplate + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public PolicyTemplate post(@Nonnull final PolicyTemplate newPolicyTemplate) throws ClientException { + return send(HttpMethod.POST, newPolicyTemplate); + } + + /** + * Creates a PolicyTemplate with a new object + * + * @param newPolicyTemplate the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final PolicyTemplate newPolicyTemplate) { + return sendAsync(HttpMethod.PUT, newPolicyTemplate); + } + + /** + * Creates a PolicyTemplate with a new object + * + * @param newPolicyTemplate the object to create/update + * @return the created PolicyTemplate + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public PolicyTemplate put(@Nonnull final PolicyTemplate newPolicyTemplate) throws ClientException { + return send(HttpMethod.PUT, newPolicyTemplate); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public PolicyTemplateRequest 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 PolicyTemplateRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/PolicyTemplateRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/PolicyTemplateRequestBuilder.java new file mode 100644 index 00000000000..b49a91c3fa4 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/PolicyTemplateRequestBuilder.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.PolicyTemplate; +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 Policy Template Request Builder. + */ +public class PolicyTemplateRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the PolicyTemplate + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public PolicyTemplateRequestBuilder(@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 PolicyTemplateRequest instance + */ + @Nonnull + public PolicyTemplateRequest 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 PolicyTemplateRequest instance + */ + @Nonnull + public PolicyTemplateRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.PolicyTemplateRequest(getRequestUrl(), getClient(), requestOptions); + } + + + + /** + * Gets the request builder for MultiTenantOrganizationIdentitySyncPolicyTemplate + * + * @return the MultiTenantOrganizationIdentitySyncPolicyTemplateRequestBuilder instance + */ + @Nonnull + public com.microsoft.graph.requests.MultiTenantOrganizationIdentitySyncPolicyTemplateRequestBuilder multiTenantOrganizationIdentitySynchronization() { + return new com.microsoft.graph.requests.MultiTenantOrganizationIdentitySyncPolicyTemplateRequestBuilder(getRequestUrlWithAdditionalSegment("multiTenantOrganizationIdentitySynchronization"), getClient(), null); + } + + /** + * Gets the request builder for MultiTenantOrganizationPartnerConfigurationTemplate + * + * @return the MultiTenantOrganizationPartnerConfigurationTemplateRequestBuilder instance + */ + @Nonnull + public com.microsoft.graph.requests.MultiTenantOrganizationPartnerConfigurationTemplateRequestBuilder multiTenantOrganizationPartnerConfiguration() { + return new com.microsoft.graph.requests.MultiTenantOrganizationPartnerConfigurationTemplateRequestBuilder(getRequestUrlWithAdditionalSegment("multiTenantOrganizationPartnerConfiguration"), getClient(), null); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/TenantRelationshipRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/TenantRelationshipRequestBuilder.java index 260a4c6ce67..48e4449cbce 100644 --- a/src/main/java/com/microsoft/graph/requests/TenantRelationshipRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/TenantRelationshipRequestBuilder.java @@ -60,6 +60,16 @@ public TenantRelationshipRequest buildRequest(@Nonnull final java.util.List { + + /** + * A collection page for WorkbookDocumentTaskChange + * + * @param response the serialized WorkbookDocumentTaskChangeCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public WorkbookDocumentTaskChangeCollectionPage(@Nonnull final WorkbookDocumentTaskChangeCollectionResponse response, @Nonnull final WorkbookDocumentTaskChangeCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for WorkbookDocumentTaskChange + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public WorkbookDocumentTaskChangeCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final WorkbookDocumentTaskChangeCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/WorkbookDocumentTaskChangeCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/WorkbookDocumentTaskChangeCollectionRequest.java new file mode 100644 index 00000000000..2b20a82becc --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/WorkbookDocumentTaskChangeCollectionRequest.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.WorkbookDocumentTask; +import com.microsoft.graph.models.WorkbookDocumentTaskChange; +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.WorkbookDocumentTaskChangeCollectionResponse; +import com.microsoft.graph.requests.WorkbookDocumentTaskChangeCollectionRequestBuilder; +import com.microsoft.graph.requests.WorkbookDocumentTaskChangeCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Workbook Document Task Change Collection Request. + */ +public class WorkbookDocumentTaskChangeCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of WorkbookDocumentTaskChange + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public WorkbookDocumentTaskChangeCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, WorkbookDocumentTaskChangeCollectionResponse.class, WorkbookDocumentTaskChangeCollectionPage.class, WorkbookDocumentTaskChangeCollectionRequestBuilder.class); + } + + /** + * Creates a new WorkbookDocumentTaskChange + * @param newWorkbookDocumentTaskChange the WorkbookDocumentTaskChange to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final WorkbookDocumentTaskChange newWorkbookDocumentTaskChange) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new WorkbookDocumentTaskChangeRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newWorkbookDocumentTaskChange); + } + + /** + * Creates a new WorkbookDocumentTaskChange + * @param newWorkbookDocumentTaskChange the WorkbookDocumentTaskChange to create + * @return the newly created object + */ + @Nonnull + public WorkbookDocumentTaskChange post(@Nonnull final WorkbookDocumentTaskChange newWorkbookDocumentTaskChange) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new WorkbookDocumentTaskChangeRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newWorkbookDocumentTaskChange); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public WorkbookDocumentTaskChangeCollectionRequest 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 WorkbookDocumentTaskChangeCollectionRequest 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 WorkbookDocumentTaskChangeCollectionRequest 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 WorkbookDocumentTaskChangeCollectionRequest 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 WorkbookDocumentTaskChangeCollectionRequest 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 WorkbookDocumentTaskChangeCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public WorkbookDocumentTaskChangeCollectionRequest 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 WorkbookDocumentTaskChangeCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public WorkbookDocumentTaskChangeCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/requests/WorkbookDocumentTaskChangeCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/WorkbookDocumentTaskChangeCollectionRequestBuilder.java new file mode 100644 index 00000000000..597e03346d6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/WorkbookDocumentTaskChangeCollectionRequestBuilder.java @@ -0,0 +1,63 @@ +// 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.WorkbookDocumentTask; +import com.microsoft.graph.models.WorkbookDocumentTaskChange; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.WorkbookDocumentTaskChangeCollectionRequestBuilder; +import com.microsoft.graph.requests.WorkbookDocumentTaskChangeRequestBuilder; +import com.microsoft.graph.requests.WorkbookDocumentTaskChangeCollectionRequest; +import com.microsoft.graph.requests.WorkbookDocumentTaskChangeCountRequestBuilder; +import com.microsoft.graph.requests.WorkbookDocumentTaskChangeItemAtRequestBuilder; +import com.microsoft.graph.http.BaseCollectionRequestBuilder; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.models.WorkbookDocumentTaskChangeItemAtParameterSet; +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Workbook Document Task Change Collection Request Builder. + */ +public class WorkbookDocumentTaskChangeCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of WorkbookDocumentTask + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public WorkbookDocumentTaskChangeCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, WorkbookDocumentTaskChangeRequestBuilder.class, WorkbookDocumentTaskChangeCollectionRequest.class); + } + + + + /** + * Gets a builder to execute the method + * @return the request builder + */ + @Nonnull + public WorkbookDocumentTaskChangeCountRequestBuilder count() { + return new WorkbookDocumentTaskChangeCountRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.count"), getClient(), null); + } + + /** + * Gets a builder to execute the method + * @return the request builder + * @param parameters the parameters for the service method + */ + @Nonnull + public WorkbookDocumentTaskChangeItemAtRequestBuilder itemAt(@Nonnull final WorkbookDocumentTaskChangeItemAtParameterSet parameters) { + return new WorkbookDocumentTaskChangeItemAtRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.itemAt"), getClient(), null, parameters); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/WorkbookDocumentTaskChangeCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/WorkbookDocumentTaskChangeCollectionResponse.java new file mode 100644 index 00000000000..c988d111da6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/WorkbookDocumentTaskChangeCollectionResponse.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.WorkbookDocumentTaskChange; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Workbook Document Task Change Collection Response. + */ +public class WorkbookDocumentTaskChangeCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/requests/WorkbookDocumentTaskChangeCountRequest.java b/src/main/java/com/microsoft/graph/requests/WorkbookDocumentTaskChangeCountRequest.java new file mode 100644 index 00000000000..ac6434dd939 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/WorkbookDocumentTaskChangeCountRequest.java @@ -0,0 +1,79 @@ +// Template Source: BaseMethodRequest.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.WorkbookDocumentTaskChange; +import com.microsoft.graph.requests.WorkbookDocumentTaskChangeCountRequest; + +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.http.BaseRequest; +import com.microsoft.graph.http.HttpMethod; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.core.IBaseClient; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Workbook Document Task Change Count Request. + */ +public class WorkbookDocumentTaskChangeCountRequest extends BaseRequest { + /** + * The request for this WorkbookDocumentTaskChangeCount + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public WorkbookDocumentTaskChangeCountRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, Integer.class); + } + + /** + * Gets the Integer + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the Integer + * + * @return the Integer + * @throws ClientException an exception occurs if there was an error while the request was sent + */ + @Nullable + public Integer get() throws ClientException { + return send(HttpMethod.GET, null); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public WorkbookDocumentTaskChangeCountRequest 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 WorkbookDocumentTaskChangeCountRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} diff --git a/src/main/java/com/microsoft/graph/requests/WorkbookDocumentTaskChangeCountRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/WorkbookDocumentTaskChangeCountRequestBuilder.java new file mode 100644 index 00000000000..4c61aa21771 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/WorkbookDocumentTaskChangeCountRequestBuilder.java @@ -0,0 +1,59 @@ +// Template Source: BaseMethodRequestBuilder.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.requests.WorkbookDocumentTaskChangeCountRequest; +import com.microsoft.graph.models.WorkbookDocumentTaskChange; + +import com.microsoft.graph.http.BaseFunctionRequestBuilder; +import com.microsoft.graph.core.IBaseClient; +import com.google.gson.JsonElement; +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 Workbook Document Task Change Count Request Builder. + */ +public class WorkbookDocumentTaskChangeCountRequestBuilder extends BaseFunctionRequestBuilder { + + /** + * The request builder for this WorkbookDocumentTaskChangeCount + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public WorkbookDocumentTaskChangeCountRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + /** + * Creates the WorkbookDocumentTaskChangeCountRequest + * + * @param requestOptions the options for the request + * @return the WorkbookDocumentTaskChangeCountRequest instance + */ + @Nonnull + public WorkbookDocumentTaskChangeCountRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the WorkbookDocumentTaskChangeCountRequest with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for the request + * @return the WorkbookDocumentTaskChangeCountRequest instance + */ + @Nonnull + public WorkbookDocumentTaskChangeCountRequest buildRequest(@Nonnull final java.util.List requestOptions) { + final WorkbookDocumentTaskChangeCountRequest request = new WorkbookDocumentTaskChangeCountRequest( + getRequestUrl(), + getClient(), + requestOptions); + return request; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/WorkbookDocumentTaskChangeItemAtRequest.java b/src/main/java/com/microsoft/graph/requests/WorkbookDocumentTaskChangeItemAtRequest.java new file mode 100644 index 00000000000..18cf29226e6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/WorkbookDocumentTaskChangeItemAtRequest.java @@ -0,0 +1,80 @@ +// Template Source: BaseMethodRequest.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.WorkbookDocumentTaskChange; +import com.microsoft.graph.requests.WorkbookDocumentTaskChangeItemAtRequest; + +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.http.BaseRequest; +import com.microsoft.graph.http.HttpMethod; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.models.WorkbookDocumentTaskChangeItemAtParameterSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Workbook Document Task Change Item At Request. + */ +public class WorkbookDocumentTaskChangeItemAtRequest extends BaseRequest { + /** + * The request for this WorkbookDocumentTaskChangeItemAt + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public WorkbookDocumentTaskChangeItemAtRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, WorkbookDocumentTaskChange.class); + } + + /** + * Gets the WorkbookDocumentTaskChange + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the WorkbookDocumentTaskChange + * + * @return the WorkbookDocumentTaskChange + * @throws ClientException an exception occurs if there was an error while the request was sent + */ + @Nullable + public WorkbookDocumentTaskChange get() throws ClientException { + return send(HttpMethod.GET, null); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public WorkbookDocumentTaskChangeItemAtRequest 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 WorkbookDocumentTaskChangeItemAtRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} diff --git a/src/main/java/com/microsoft/graph/requests/WorkbookDocumentTaskChangeItemAtRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/WorkbookDocumentTaskChangeItemAtRequestBuilder.java new file mode 100644 index 00000000000..c28128c78e7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/WorkbookDocumentTaskChangeItemAtRequestBuilder.java @@ -0,0 +1,76 @@ +// Template Source: BaseMethodRequestBuilder.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.requests.WorkbookDocumentTaskChangeItemAtRequest; +import com.microsoft.graph.models.WorkbookDocumentTaskChange; +import com.microsoft.graph.http.BaseFunctionRequestBuilder; +import com.microsoft.graph.models.WorkbookDocumentTaskChangeItemAtParameterSet; +import com.microsoft.graph.core.IBaseClient; +import com.google.gson.JsonElement; +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 Workbook Document Task Change Item At Request Builder. + */ +public class WorkbookDocumentTaskChangeItemAtRequestBuilder extends BaseFunctionRequestBuilder { + + /** + * The request builder for this WorkbookDocumentTaskChangeItemAt + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public WorkbookDocumentTaskChangeItemAtRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + /** + * The request builder for this WorkbookDocumentTaskChangeItemAt + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + * @param parameters the parameters for the service method + */ + public WorkbookDocumentTaskChangeItemAtRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions, @Nonnull final WorkbookDocumentTaskChangeItemAtParameterSet parameters) { + super(requestUrl, client, requestOptions); + if(parameters != null) { + functionOptions = parameters.getFunctionOptions(); + } + } + + /** + * Creates the WorkbookDocumentTaskChangeItemAtRequest + * + * @param requestOptions the options for the request + * @return the WorkbookDocumentTaskChangeItemAtRequest instance + */ + @Nonnull + public WorkbookDocumentTaskChangeItemAtRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the WorkbookDocumentTaskChangeItemAtRequest with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for the request + * @return the WorkbookDocumentTaskChangeItemAtRequest instance + */ + @Nonnull + public WorkbookDocumentTaskChangeItemAtRequest buildRequest(@Nonnull final java.util.List requestOptions) { + final WorkbookDocumentTaskChangeItemAtRequest request = new WorkbookDocumentTaskChangeItemAtRequest( + getRequestUrl(), + getClient(), + requestOptions); + for (com.microsoft.graph.options.FunctionOption option : functionOptions) { + request.addFunctionOption(option); + } + return request; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/WorkbookDocumentTaskChangeRequest.java b/src/main/java/com/microsoft/graph/requests/WorkbookDocumentTaskChangeRequest.java new file mode 100644 index 00000000000..e27871769da --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/WorkbookDocumentTaskChangeRequest.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.WorkbookDocumentTaskChange; +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 Workbook Document Task Change Request. + */ +public class WorkbookDocumentTaskChangeRequest extends BaseRequest { + + /** + * The request for the WorkbookDocumentTaskChange + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public WorkbookDocumentTaskChangeRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, WorkbookDocumentTaskChange.class); + } + + /** + * Gets the WorkbookDocumentTaskChange from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the WorkbookDocumentTaskChange from the service + * + * @return the WorkbookDocumentTaskChange from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public WorkbookDocumentTaskChange 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 WorkbookDocumentTaskChange delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this WorkbookDocumentTaskChange with a source + * + * @param sourceWorkbookDocumentTaskChange the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final WorkbookDocumentTaskChange sourceWorkbookDocumentTaskChange) { + return sendAsync(HttpMethod.PATCH, sourceWorkbookDocumentTaskChange); + } + + /** + * Patches this WorkbookDocumentTaskChange with a source + * + * @param sourceWorkbookDocumentTaskChange the source object with updates + * @return the updated WorkbookDocumentTaskChange + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public WorkbookDocumentTaskChange patch(@Nonnull final WorkbookDocumentTaskChange sourceWorkbookDocumentTaskChange) throws ClientException { + return send(HttpMethod.PATCH, sourceWorkbookDocumentTaskChange); + } + + /** + * Creates a WorkbookDocumentTaskChange with a new object + * + * @param newWorkbookDocumentTaskChange the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final WorkbookDocumentTaskChange newWorkbookDocumentTaskChange) { + return sendAsync(HttpMethod.POST, newWorkbookDocumentTaskChange); + } + + /** + * Creates a WorkbookDocumentTaskChange with a new object + * + * @param newWorkbookDocumentTaskChange the new object to create + * @return the created WorkbookDocumentTaskChange + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public WorkbookDocumentTaskChange post(@Nonnull final WorkbookDocumentTaskChange newWorkbookDocumentTaskChange) throws ClientException { + return send(HttpMethod.POST, newWorkbookDocumentTaskChange); + } + + /** + * Creates a WorkbookDocumentTaskChange with a new object + * + * @param newWorkbookDocumentTaskChange the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final WorkbookDocumentTaskChange newWorkbookDocumentTaskChange) { + return sendAsync(HttpMethod.PUT, newWorkbookDocumentTaskChange); + } + + /** + * Creates a WorkbookDocumentTaskChange with a new object + * + * @param newWorkbookDocumentTaskChange the object to create/update + * @return the created WorkbookDocumentTaskChange + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public WorkbookDocumentTaskChange put(@Nonnull final WorkbookDocumentTaskChange newWorkbookDocumentTaskChange) throws ClientException { + return send(HttpMethod.PUT, newWorkbookDocumentTaskChange); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public WorkbookDocumentTaskChangeRequest 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 WorkbookDocumentTaskChangeRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/WorkbookDocumentTaskChangeRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/WorkbookDocumentTaskChangeRequestBuilder.java new file mode 100644 index 00000000000..f840cded85c --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/WorkbookDocumentTaskChangeRequestBuilder.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.WorkbookDocumentTaskChange; +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 Workbook Document Task Change Request Builder. + */ +public class WorkbookDocumentTaskChangeRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the WorkbookDocumentTaskChange + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public WorkbookDocumentTaskChangeRequestBuilder(@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 WorkbookDocumentTaskChangeRequest instance + */ + @Nonnull + public WorkbookDocumentTaskChangeRequest 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 WorkbookDocumentTaskChangeRequest instance + */ + @Nonnull + public WorkbookDocumentTaskChangeRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.WorkbookDocumentTaskChangeRequest(getRequestUrl(), getClient(), requestOptions); + } + + +} diff --git a/src/main/java/com/microsoft/graph/requests/WorkbookDocumentTaskCollectionPage.java b/src/main/java/com/microsoft/graph/requests/WorkbookDocumentTaskCollectionPage.java new file mode 100644 index 00000000000..96181839938 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/WorkbookDocumentTaskCollectionPage.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.WorkbookDocumentTask; +import com.microsoft.graph.requests.WorkbookDocumentTaskCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.requests.WorkbookDocumentTaskCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Workbook Document Task Collection Page. + */ +public class WorkbookDocumentTaskCollectionPage extends BaseCollectionPage { + + /** + * A collection page for WorkbookDocumentTask + * + * @param response the serialized WorkbookDocumentTaskCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public WorkbookDocumentTaskCollectionPage(@Nonnull final WorkbookDocumentTaskCollectionResponse response, @Nonnull final WorkbookDocumentTaskCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for WorkbookDocumentTask + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public WorkbookDocumentTaskCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final WorkbookDocumentTaskCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/WorkbookDocumentTaskCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/WorkbookDocumentTaskCollectionRequest.java new file mode 100644 index 00000000000..5a966bc3f52 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/WorkbookDocumentTaskCollectionRequest.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.WorkbookWorksheet; +import com.microsoft.graph.models.WorkbookDocumentTask; +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.WorkbookDocumentTaskCollectionResponse; +import com.microsoft.graph.requests.WorkbookDocumentTaskCollectionRequestBuilder; +import com.microsoft.graph.requests.WorkbookDocumentTaskCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Workbook Document Task Collection Request. + */ +public class WorkbookDocumentTaskCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of WorkbookDocumentTask + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public WorkbookDocumentTaskCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, WorkbookDocumentTaskCollectionResponse.class, WorkbookDocumentTaskCollectionPage.class, WorkbookDocumentTaskCollectionRequestBuilder.class); + } + + /** + * Creates a new WorkbookDocumentTask + * @param newWorkbookDocumentTask the WorkbookDocumentTask to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final WorkbookDocumentTask newWorkbookDocumentTask) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new WorkbookDocumentTaskRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newWorkbookDocumentTask); + } + + /** + * Creates a new WorkbookDocumentTask + * @param newWorkbookDocumentTask the WorkbookDocumentTask to create + * @return the newly created object + */ + @Nonnull + public WorkbookDocumentTask post(@Nonnull final WorkbookDocumentTask newWorkbookDocumentTask) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new WorkbookDocumentTaskRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newWorkbookDocumentTask); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public WorkbookDocumentTaskCollectionRequest 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 WorkbookDocumentTaskCollectionRequest 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 WorkbookDocumentTaskCollectionRequest 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 WorkbookDocumentTaskCollectionRequest 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 WorkbookDocumentTaskCollectionRequest 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 WorkbookDocumentTaskCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public WorkbookDocumentTaskCollectionRequest 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 WorkbookDocumentTaskCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public WorkbookDocumentTaskCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/requests/WorkbookDocumentTaskCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/WorkbookDocumentTaskCollectionRequestBuilder.java new file mode 100644 index 00000000000..e60454eb1f9 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/WorkbookDocumentTaskCollectionRequestBuilder.java @@ -0,0 +1,63 @@ +// 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.WorkbookWorksheet; +import com.microsoft.graph.models.WorkbookDocumentTask; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.WorkbookDocumentTaskCollectionRequestBuilder; +import com.microsoft.graph.requests.WorkbookDocumentTaskRequestBuilder; +import com.microsoft.graph.requests.WorkbookDocumentTaskCollectionRequest; +import com.microsoft.graph.requests.WorkbookDocumentTaskCountRequestBuilder; +import com.microsoft.graph.requests.WorkbookDocumentTaskItemAtRequestBuilder; +import com.microsoft.graph.http.BaseCollectionRequestBuilder; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.models.WorkbookDocumentTaskItemAtParameterSet; +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Workbook Document Task Collection Request Builder. + */ +public class WorkbookDocumentTaskCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of WorkbookWorksheet + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public WorkbookDocumentTaskCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, WorkbookDocumentTaskRequestBuilder.class, WorkbookDocumentTaskCollectionRequest.class); + } + + + + /** + * Gets a builder to execute the method + * @return the request builder + */ + @Nonnull + public WorkbookDocumentTaskCountRequestBuilder count() { + return new WorkbookDocumentTaskCountRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.count"), getClient(), null); + } + + /** + * Gets a builder to execute the method + * @return the request builder + * @param parameters the parameters for the service method + */ + @Nonnull + public WorkbookDocumentTaskItemAtRequestBuilder itemAt(@Nonnull final WorkbookDocumentTaskItemAtParameterSet parameters) { + return new WorkbookDocumentTaskItemAtRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.itemAt"), getClient(), null, parameters); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/WorkbookDocumentTaskCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/WorkbookDocumentTaskCollectionResponse.java new file mode 100644 index 00000000000..d5566981b66 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/WorkbookDocumentTaskCollectionResponse.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.WorkbookDocumentTask; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Workbook Document Task Collection Response. + */ +public class WorkbookDocumentTaskCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/requests/WorkbookDocumentTaskCountRequest.java b/src/main/java/com/microsoft/graph/requests/WorkbookDocumentTaskCountRequest.java new file mode 100644 index 00000000000..da3f2c222ac --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/WorkbookDocumentTaskCountRequest.java @@ -0,0 +1,79 @@ +// Template Source: BaseMethodRequest.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.WorkbookDocumentTask; +import com.microsoft.graph.requests.WorkbookDocumentTaskCountRequest; + +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.http.BaseRequest; +import com.microsoft.graph.http.HttpMethod; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.core.IBaseClient; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Workbook Document Task Count Request. + */ +public class WorkbookDocumentTaskCountRequest extends BaseRequest { + /** + * The request for this WorkbookDocumentTaskCount + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public WorkbookDocumentTaskCountRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, Integer.class); + } + + /** + * Gets the Integer + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the Integer + * + * @return the Integer + * @throws ClientException an exception occurs if there was an error while the request was sent + */ + @Nullable + public Integer get() throws ClientException { + return send(HttpMethod.GET, null); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public WorkbookDocumentTaskCountRequest 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 WorkbookDocumentTaskCountRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} diff --git a/src/main/java/com/microsoft/graph/requests/WorkbookDocumentTaskCountRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/WorkbookDocumentTaskCountRequestBuilder.java new file mode 100644 index 00000000000..c9f4ccca925 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/WorkbookDocumentTaskCountRequestBuilder.java @@ -0,0 +1,59 @@ +// Template Source: BaseMethodRequestBuilder.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.requests.WorkbookDocumentTaskCountRequest; +import com.microsoft.graph.models.WorkbookDocumentTask; + +import com.microsoft.graph.http.BaseFunctionRequestBuilder; +import com.microsoft.graph.core.IBaseClient; +import com.google.gson.JsonElement; +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 Workbook Document Task Count Request Builder. + */ +public class WorkbookDocumentTaskCountRequestBuilder extends BaseFunctionRequestBuilder { + + /** + * The request builder for this WorkbookDocumentTaskCount + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public WorkbookDocumentTaskCountRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + /** + * Creates the WorkbookDocumentTaskCountRequest + * + * @param requestOptions the options for the request + * @return the WorkbookDocumentTaskCountRequest instance + */ + @Nonnull + public WorkbookDocumentTaskCountRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the WorkbookDocumentTaskCountRequest with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for the request + * @return the WorkbookDocumentTaskCountRequest instance + */ + @Nonnull + public WorkbookDocumentTaskCountRequest buildRequest(@Nonnull final java.util.List requestOptions) { + final WorkbookDocumentTaskCountRequest request = new WorkbookDocumentTaskCountRequest( + getRequestUrl(), + getClient(), + requestOptions); + return request; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/WorkbookDocumentTaskItemAtRequest.java b/src/main/java/com/microsoft/graph/requests/WorkbookDocumentTaskItemAtRequest.java new file mode 100644 index 00000000000..78fe8b27101 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/WorkbookDocumentTaskItemAtRequest.java @@ -0,0 +1,80 @@ +// Template Source: BaseMethodRequest.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.WorkbookDocumentTask; +import com.microsoft.graph.requests.WorkbookDocumentTaskItemAtRequest; + +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.http.BaseRequest; +import com.microsoft.graph.http.HttpMethod; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.models.WorkbookDocumentTaskItemAtParameterSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Workbook Document Task Item At Request. + */ +public class WorkbookDocumentTaskItemAtRequest extends BaseRequest { + /** + * The request for this WorkbookDocumentTaskItemAt + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public WorkbookDocumentTaskItemAtRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, WorkbookDocumentTask.class); + } + + /** + * Gets the WorkbookDocumentTask + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the WorkbookDocumentTask + * + * @return the WorkbookDocumentTask + * @throws ClientException an exception occurs if there was an error while the request was sent + */ + @Nullable + public WorkbookDocumentTask get() throws ClientException { + return send(HttpMethod.GET, null); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public WorkbookDocumentTaskItemAtRequest 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 WorkbookDocumentTaskItemAtRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} diff --git a/src/main/java/com/microsoft/graph/requests/WorkbookDocumentTaskItemAtRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/WorkbookDocumentTaskItemAtRequestBuilder.java new file mode 100644 index 00000000000..9bf73783799 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/WorkbookDocumentTaskItemAtRequestBuilder.java @@ -0,0 +1,106 @@ +// Template Source: BaseMethodRequestBuilder.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.requests.WorkbookDocumentTaskItemAtRequest; +import com.microsoft.graph.models.WorkbookDocumentTask; +import com.microsoft.graph.http.BaseFunctionRequestBuilder; +import com.microsoft.graph.models.WorkbookDocumentTaskItemAtParameterSet; +import com.microsoft.graph.core.IBaseClient; +import com.google.gson.JsonElement; +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 Workbook Document Task Item At Request Builder. + */ +public class WorkbookDocumentTaskItemAtRequestBuilder extends BaseFunctionRequestBuilder { + + /** + * The request builder for this WorkbookDocumentTaskItemAt + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public WorkbookDocumentTaskItemAtRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + /** + * The request builder for this WorkbookDocumentTaskItemAt + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + * @param parameters the parameters for the service method + */ + public WorkbookDocumentTaskItemAtRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions, @Nonnull final WorkbookDocumentTaskItemAtParameterSet parameters) { + super(requestUrl, client, requestOptions); + if(parameters != null) { + functionOptions = parameters.getFunctionOptions(); + } + } + + /** + * Creates the WorkbookDocumentTaskItemAtRequest + * + * @param requestOptions the options for the request + * @return the WorkbookDocumentTaskItemAtRequest instance + */ + @Nonnull + public WorkbookDocumentTaskItemAtRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the WorkbookDocumentTaskItemAtRequest with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for the request + * @return the WorkbookDocumentTaskItemAtRequest instance + */ + @Nonnull + public WorkbookDocumentTaskItemAtRequest buildRequest(@Nonnull final java.util.List requestOptions) { + final WorkbookDocumentTaskItemAtRequest request = new WorkbookDocumentTaskItemAtRequest( + getRequestUrl(), + getClient(), + requestOptions); + for (com.microsoft.graph.options.FunctionOption option : functionOptions) { + request.addFunctionOption(option); + } + return request; + } + /** + * Gets a request builder for the WorkbookDocumentTaskChange collection + * + * @return the collection request builder + */ + @Nonnull + public WorkbookDocumentTaskChangeCollectionRequestBuilder changes() { + return new WorkbookDocumentTaskChangeCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("changes"), getClient(), null); + } + + /** + * Gets a request builder for the WorkbookDocumentTaskChange item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public WorkbookDocumentTaskChangeRequestBuilder changes(@Nonnull final String id) { + return new WorkbookDocumentTaskChangeRequestBuilder(getRequestUrlWithAdditionalSegment("changes") + "/" + id, getClient(), null); + } + + /** + * Gets the request builder for WorkbookComment + * + * @return the WorkbookCommentRequestBuilder instance + */ + @Nonnull + public WorkbookCommentRequestBuilder comment() { + return new WorkbookCommentRequestBuilder(getRequestUrlWithAdditionalSegment("comment"), getClient(), null); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/WorkbookDocumentTaskRequest.java b/src/main/java/com/microsoft/graph/requests/WorkbookDocumentTaskRequest.java new file mode 100644 index 00000000000..4477938eaed --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/WorkbookDocumentTaskRequest.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.WorkbookDocumentTask; +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 Workbook Document Task Request. + */ +public class WorkbookDocumentTaskRequest extends BaseRequest { + + /** + * The request for the WorkbookDocumentTask + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public WorkbookDocumentTaskRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, WorkbookDocumentTask.class); + } + + /** + * Gets the WorkbookDocumentTask from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the WorkbookDocumentTask from the service + * + * @return the WorkbookDocumentTask from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public WorkbookDocumentTask 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 WorkbookDocumentTask delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this WorkbookDocumentTask with a source + * + * @param sourceWorkbookDocumentTask the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final WorkbookDocumentTask sourceWorkbookDocumentTask) { + return sendAsync(HttpMethod.PATCH, sourceWorkbookDocumentTask); + } + + /** + * Patches this WorkbookDocumentTask with a source + * + * @param sourceWorkbookDocumentTask the source object with updates + * @return the updated WorkbookDocumentTask + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public WorkbookDocumentTask patch(@Nonnull final WorkbookDocumentTask sourceWorkbookDocumentTask) throws ClientException { + return send(HttpMethod.PATCH, sourceWorkbookDocumentTask); + } + + /** + * Creates a WorkbookDocumentTask with a new object + * + * @param newWorkbookDocumentTask the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final WorkbookDocumentTask newWorkbookDocumentTask) { + return sendAsync(HttpMethod.POST, newWorkbookDocumentTask); + } + + /** + * Creates a WorkbookDocumentTask with a new object + * + * @param newWorkbookDocumentTask the new object to create + * @return the created WorkbookDocumentTask + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public WorkbookDocumentTask post(@Nonnull final WorkbookDocumentTask newWorkbookDocumentTask) throws ClientException { + return send(HttpMethod.POST, newWorkbookDocumentTask); + } + + /** + * Creates a WorkbookDocumentTask with a new object + * + * @param newWorkbookDocumentTask the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final WorkbookDocumentTask newWorkbookDocumentTask) { + return sendAsync(HttpMethod.PUT, newWorkbookDocumentTask); + } + + /** + * Creates a WorkbookDocumentTask with a new object + * + * @param newWorkbookDocumentTask the object to create/update + * @return the created WorkbookDocumentTask + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public WorkbookDocumentTask put(@Nonnull final WorkbookDocumentTask newWorkbookDocumentTask) throws ClientException { + return send(HttpMethod.PUT, newWorkbookDocumentTask); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public WorkbookDocumentTaskRequest 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 WorkbookDocumentTaskRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/WorkbookDocumentTaskRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/WorkbookDocumentTaskRequestBuilder.java new file mode 100644 index 00000000000..664a5790ce8 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/WorkbookDocumentTaskRequestBuilder.java @@ -0,0 +1,89 @@ +// 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.WorkbookDocumentTask; +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 Workbook Document Task Request Builder. + */ +public class WorkbookDocumentTaskRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the WorkbookDocumentTask + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public WorkbookDocumentTaskRequestBuilder(@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 WorkbookDocumentTaskRequest instance + */ + @Nonnull + public WorkbookDocumentTaskRequest 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 WorkbookDocumentTaskRequest instance + */ + @Nonnull + public WorkbookDocumentTaskRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.WorkbookDocumentTaskRequest(getRequestUrl(), getClient(), requestOptions); + } + + + /** + * Gets a request builder for the WorkbookDocumentTaskChange collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.requests.WorkbookDocumentTaskChangeCollectionRequestBuilder changes() { + return new com.microsoft.graph.requests.WorkbookDocumentTaskChangeCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("changes"), getClient(), null); + } + + /** + * Gets a request builder for the WorkbookDocumentTaskChange item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.requests.WorkbookDocumentTaskChangeRequestBuilder changes(@Nonnull final String id) { + return new com.microsoft.graph.requests.WorkbookDocumentTaskChangeRequestBuilder(getRequestUrlWithAdditionalSegment("changes") + "/" + id, getClient(), null); + } + + /** + * Gets the request builder for WorkbookComment + * + * @return the WorkbookCommentRequestBuilder instance + */ + @Nonnull + public com.microsoft.graph.requests.WorkbookCommentRequestBuilder comment() { + return new com.microsoft.graph.requests.WorkbookCommentRequestBuilder(getRequestUrlWithAdditionalSegment("comment"), getClient(), null); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/WorkbookWorksheetRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/WorkbookWorksheetRequestBuilder.java index 9c467f06f7a..74cd4cd14ea 100644 --- a/src/main/java/com/microsoft/graph/requests/WorkbookWorksheetRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/WorkbookWorksheetRequestBuilder.java @@ -150,6 +150,26 @@ public com.microsoft.graph.requests.WorkbookTableCollectionRequestBuilder tables public com.microsoft.graph.requests.WorkbookTableRequestBuilder tables(@Nonnull final String id) { return new com.microsoft.graph.requests.WorkbookTableRequestBuilder(getRequestUrlWithAdditionalSegment("tables") + "/" + id, getClient(), null); } + /** + * Gets a request builder for the WorkbookDocumentTask collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.requests.WorkbookDocumentTaskCollectionRequestBuilder tasks() { + return new com.microsoft.graph.requests.WorkbookDocumentTaskCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("tasks"), getClient(), null); + } + + /** + * Gets a request builder for the WorkbookDocumentTask item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.requests.WorkbookDocumentTaskRequestBuilder tasks(@Nonnull final String id) { + return new com.microsoft.graph.requests.WorkbookDocumentTaskRequestBuilder(getRequestUrlWithAdditionalSegment("tasks") + "/" + id, getClient(), null); + } /** * Gets a builder to execute the method diff --git a/src/main/java/com/microsoft/graph/security/requests/HostCollectionReferenceRequest.java b/src/main/java/com/microsoft/graph/security/requests/HostCollectionReferenceRequest.java new file mode 100644 index 00000000000..50de67e7f62 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/HostCollectionReferenceRequest.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.SslCertificate; +import com.microsoft.graph.security.models.Host; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.security.requests.HostWithReferenceRequest; +import com.microsoft.graph.security.requests.HostReferenceRequestBuilder; +import com.microsoft.graph.security.requests.HostWithReferenceRequestBuilder; +import com.microsoft.graph.security.requests.HostCollectionWithReferencesRequest; +import com.microsoft.graph.security.requests.HostCollectionWithReferencesRequestBuilder; +import com.microsoft.graph.security.models.Host; +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 Collection Reference Request. + */ +public class HostCollectionReferenceRequest extends BaseCollectionWithReferencesRequest { + + /** + * 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 HostCollectionReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, HostCollectionResponse.class, HostCollectionWithReferencesPage.class, HostCollectionWithReferencesRequestBuilder.class); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public HostCollectionReferenceRequest 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 HostCollectionReferenceRequest 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 HostCollectionReferenceRequest 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 HostCollectionReferenceRequest 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 HostCollectionReferenceRequest 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 HostCollectionReferenceRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public HostCollectionReferenceRequest count() { + addCountOption(true); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/HostCollectionReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/security/requests/HostCollectionReferenceRequestBuilder.java new file mode 100644 index 00000000000..23206f3fc94 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/HostCollectionReferenceRequestBuilder.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.SslCertificate; +import com.microsoft.graph.security.models.Host; +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 Collection Reference Request Builder. + */ +public class HostCollectionReferenceRequestBuilder extends BaseCollectionReferenceRequestBuilder { + + /** + * 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 HostCollectionReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, HostReferenceRequestBuilder.class, HostCollectionReferenceRequest.class); + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/HostCollectionWithReferencesPage.java b/src/main/java/com/microsoft/graph/security/requests/HostCollectionWithReferencesPage.java new file mode 100644 index 00000000000..f918da246ac --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/HostCollectionWithReferencesPage.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.SslCertificate; +import com.microsoft.graph.security.models.Host; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.security.requests.HostCollectionWithReferencesRequestBuilder; +import com.microsoft.graph.security.requests.HostCollectionWithReferencesPage; +import com.microsoft.graph.security.requests.HostCollectionResponse; +import com.microsoft.graph.security.models.Host; +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 Collection With References Page. + */ +public class HostCollectionWithReferencesPage extends BaseCollectionPage { + + /** + * A collection page for Host + * + * @param response the serialized HostCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public HostCollectionWithReferencesPage(@Nonnull final HostCollectionResponse response, @Nullable final HostCollectionWithReferencesRequestBuilder builder) { + super(response.value, builder, response.additionalDataManager()); + } + + /** + * Creates the collection page for Host + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public HostCollectionWithReferencesPage(@Nonnull final java.util.List pageContents, @Nullable final HostCollectionWithReferencesRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/HostCollectionWithReferencesRequest.java b/src/main/java/com/microsoft/graph/security/requests/HostCollectionWithReferencesRequest.java new file mode 100644 index 00000000000..5c7e96fd174 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/HostCollectionWithReferencesRequest.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.SslCertificate; +import com.microsoft.graph.security.models.Host; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.security.models.Host; +import com.microsoft.graph.security.requests.HostWithReferenceRequest; +import com.microsoft.graph.security.requests.HostReferenceRequestBuilder; +import com.microsoft.graph.security.requests.HostWithReferenceRequestBuilder; +import com.microsoft.graph.security.requests.HostCollectionWithReferencesRequest; +import com.microsoft.graph.security.requests.HostCollectionWithReferencesRequest; +import com.microsoft.graph.security.requests.HostCollectionWithReferencesRequestBuilder; +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 Collection With References Request. + */ +public class HostCollectionWithReferencesRequest extends BaseCollectionWithReferencesRequest { + + /** + * 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 HostCollectionWithReferencesRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, HostCollectionResponse.class, HostCollectionWithReferencesPage.class, HostCollectionWithReferencesRequestBuilder.class); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public HostCollectionWithReferencesRequest 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 HostCollectionWithReferencesRequest 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 HostCollectionWithReferencesRequest 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 HostCollectionWithReferencesRequest 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 HostCollectionWithReferencesRequest 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 HostCollectionWithReferencesRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public HostCollectionWithReferencesRequest count() { + addCountOption(true); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/HostCollectionWithReferencesRequestBuilder.java b/src/main/java/com/microsoft/graph/security/requests/HostCollectionWithReferencesRequestBuilder.java new file mode 100644 index 00000000000..0fa10c5be4a --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/HostCollectionWithReferencesRequestBuilder.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.SslCertificate; +import com.microsoft.graph.security.models.Host; +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 Collection With References Request Builder. + */ +public class HostCollectionWithReferencesRequestBuilder extends BaseCollectionWithReferencesRequestBuilder { + + /** + * The request builder for this collection of SslCertificate + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostCollectionWithReferencesRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, HostReferenceRequestBuilder.class, HostCollectionReferenceRequest.class, HostCollectionReferenceRequestBuilder.class); + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/HostPairCollectionPage.java b/src/main/java/com/microsoft/graph/security/requests/HostPairCollectionPage.java new file mode 100644 index 00000000000..63dc96d7c52 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/HostPairCollectionPage.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.HostPair; +import com.microsoft.graph.security.requests.HostPairCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.security.requests.HostPairCollectionResponse; +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 Pair Collection Page. + */ +public class HostPairCollectionPage extends BaseCollectionPage { + + /** + * A collection page for HostPair + * + * @param response the serialized HostPairCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public HostPairCollectionPage(@Nonnull final HostPairCollectionResponse response, @Nonnull final HostPairCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for HostPair + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public HostPairCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final HostPairCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/HostPairCollectionReferenceRequest.java b/src/main/java/com/microsoft/graph/security/requests/HostPairCollectionReferenceRequest.java new file mode 100644 index 00000000000..2f8fd262cc7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/HostPairCollectionReferenceRequest.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.HostPair; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.security.requests.HostPairWithReferenceRequest; +import com.microsoft.graph.security.requests.HostPairReferenceRequestBuilder; +import com.microsoft.graph.security.requests.HostPairWithReferenceRequestBuilder; +import com.microsoft.graph.security.requests.HostPairCollectionWithReferencesRequest; +import com.microsoft.graph.security.requests.HostPairCollectionWithReferencesRequestBuilder; +import com.microsoft.graph.security.models.HostPair; +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 Pair Collection Reference Request. + */ +public class HostPairCollectionReferenceRequest extends BaseCollectionWithReferencesRequest { + + /** + * The request builder for this collection of HostPair + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostPairCollectionReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, HostPairCollectionResponse.class, HostPairCollectionWithReferencesPage.class, HostPairCollectionWithReferencesRequestBuilder.class); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public HostPairCollectionReferenceRequest 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 HostPairCollectionReferenceRequest 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 HostPairCollectionReferenceRequest 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 HostPairCollectionReferenceRequest 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 HostPairCollectionReferenceRequest 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 HostPairCollectionReferenceRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public HostPairCollectionReferenceRequest count() { + addCountOption(true); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/HostPairCollectionReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/security/requests/HostPairCollectionReferenceRequestBuilder.java new file mode 100644 index 00000000000..3bdfc581f9c --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/HostPairCollectionReferenceRequestBuilder.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.HostPair; +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 Pair Collection Reference Request Builder. + */ +public class HostPairCollectionReferenceRequestBuilder extends BaseCollectionReferenceRequestBuilder { + + /** + * The request builder for this collection of HostPair + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostPairCollectionReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, HostPairReferenceRequestBuilder.class, HostPairCollectionReferenceRequest.class); + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/HostPairCollectionRequest.java b/src/main/java/com/microsoft/graph/security/requests/HostPairCollectionRequest.java new file mode 100644 index 00000000000..91b06d49b1a --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/HostPairCollectionRequest.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.HostPair; +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.HostPairCollectionResponse; +import com.microsoft.graph.security.requests.HostPairCollectionRequestBuilder; +import com.microsoft.graph.security.requests.HostPairCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Host Pair Collection Request. + */ +public class HostPairCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of HostPair + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostPairCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, HostPairCollectionResponse.class, HostPairCollectionPage.class, HostPairCollectionRequestBuilder.class); + } + + /** + * Creates a new HostPair + * @param newHostPair the HostPair to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final HostPair newHostPair) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new HostPairRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newHostPair); + } + + /** + * Creates a new HostPair + * @param newHostPair the HostPair to create + * @return the newly created object + */ + @Nonnull + public HostPair post(@Nonnull final HostPair newHostPair) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new HostPairRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newHostPair); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public HostPairCollectionRequest 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 HostPairCollectionRequest 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 HostPairCollectionRequest 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 HostPairCollectionRequest 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 HostPairCollectionRequest 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 HostPairCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public HostPairCollectionRequest 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 HostPairCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public HostPairCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/security/requests/HostPairCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/security/requests/HostPairCollectionRequestBuilder.java new file mode 100644 index 00000000000..5b13977056c --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/HostPairCollectionRequestBuilder.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.HostPair; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.security.requests.HostPairCollectionRequestBuilder; +import com.microsoft.graph.security.requests.HostPairRequestBuilder; +import com.microsoft.graph.security.requests.HostPairCollectionRequest; +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 Pair Collection Request Builder. + */ +public class HostPairCollectionRequestBuilder 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 HostPairCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, HostPairRequestBuilder.class, HostPairCollectionRequest.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/HostPairCollectionResponse.java b/src/main/java/com/microsoft/graph/security/requests/HostPairCollectionResponse.java new file mode 100644 index 00000000000..a9e3cfb01f1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/HostPairCollectionResponse.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.HostPair; + +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 Pair Collection Response. + */ +public class HostPairCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/security/requests/HostPairCollectionWithReferencesPage.java b/src/main/java/com/microsoft/graph/security/requests/HostPairCollectionWithReferencesPage.java new file mode 100644 index 00000000000..83472269db8 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/HostPairCollectionWithReferencesPage.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.HostPair; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.security.requests.HostPairCollectionWithReferencesRequestBuilder; +import com.microsoft.graph.security.requests.HostPairCollectionWithReferencesPage; +import com.microsoft.graph.security.requests.HostPairCollectionResponse; +import com.microsoft.graph.security.models.HostPair; +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 Pair Collection With References Page. + */ +public class HostPairCollectionWithReferencesPage extends BaseCollectionPage { + + /** + * A collection page for HostPair + * + * @param response the serialized HostPairCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public HostPairCollectionWithReferencesPage(@Nonnull final HostPairCollectionResponse response, @Nullable final HostPairCollectionWithReferencesRequestBuilder builder) { + super(response.value, builder, response.additionalDataManager()); + } + + /** + * Creates the collection page for HostPair + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public HostPairCollectionWithReferencesPage(@Nonnull final java.util.List pageContents, @Nullable final HostPairCollectionWithReferencesRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/HostPairCollectionWithReferencesRequest.java b/src/main/java/com/microsoft/graph/security/requests/HostPairCollectionWithReferencesRequest.java new file mode 100644 index 00000000000..98f30654298 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/HostPairCollectionWithReferencesRequest.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.HostPair; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.security.models.HostPair; +import com.microsoft.graph.security.requests.HostPairWithReferenceRequest; +import com.microsoft.graph.security.requests.HostPairReferenceRequestBuilder; +import com.microsoft.graph.security.requests.HostPairWithReferenceRequestBuilder; +import com.microsoft.graph.security.requests.HostPairCollectionWithReferencesRequest; +import com.microsoft.graph.security.requests.HostPairCollectionWithReferencesRequest; +import com.microsoft.graph.security.requests.HostPairCollectionWithReferencesRequestBuilder; +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 Pair Collection With References Request. + */ +public class HostPairCollectionWithReferencesRequest extends BaseCollectionWithReferencesRequest { + + /** + * The request builder for this collection of HostPair + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostPairCollectionWithReferencesRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, HostPairCollectionResponse.class, HostPairCollectionWithReferencesPage.class, HostPairCollectionWithReferencesRequestBuilder.class); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public HostPairCollectionWithReferencesRequest 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 HostPairCollectionWithReferencesRequest 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 HostPairCollectionWithReferencesRequest 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 HostPairCollectionWithReferencesRequest 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 HostPairCollectionWithReferencesRequest 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 HostPairCollectionWithReferencesRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public HostPairCollectionWithReferencesRequest count() { + addCountOption(true); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/HostPairCollectionWithReferencesRequestBuilder.java b/src/main/java/com/microsoft/graph/security/requests/HostPairCollectionWithReferencesRequestBuilder.java new file mode 100644 index 00000000000..da3ea39167d --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/HostPairCollectionWithReferencesRequestBuilder.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.HostPair; +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 Pair Collection With References Request Builder. + */ +public class HostPairCollectionWithReferencesRequestBuilder 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 HostPairCollectionWithReferencesRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, HostPairReferenceRequestBuilder.class, HostPairCollectionReferenceRequest.class, HostPairCollectionReferenceRequestBuilder.class); + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/HostSslCertificateCollectionPage.java b/src/main/java/com/microsoft/graph/security/requests/HostSslCertificateCollectionPage.java new file mode 100644 index 00000000000..ce952259e3f --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/HostSslCertificateCollectionPage.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.HostSslCertificate; +import com.microsoft.graph.security.requests.HostSslCertificateCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.security.requests.HostSslCertificateCollectionResponse; +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 Ssl Certificate Collection Page. + */ +public class HostSslCertificateCollectionPage extends BaseCollectionPage { + + /** + * A collection page for HostSslCertificate + * + * @param response the serialized HostSslCertificateCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public HostSslCertificateCollectionPage(@Nonnull final HostSslCertificateCollectionResponse response, @Nonnull final HostSslCertificateCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for HostSslCertificate + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public HostSslCertificateCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final HostSslCertificateCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/HostSslCertificateCollectionReferenceRequest.java b/src/main/java/com/microsoft/graph/security/requests/HostSslCertificateCollectionReferenceRequest.java new file mode 100644 index 00000000000..e208557f81a --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/HostSslCertificateCollectionReferenceRequest.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.HostSslCertificate; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.security.requests.HostSslCertificateWithReferenceRequest; +import com.microsoft.graph.security.requests.HostSslCertificateReferenceRequestBuilder; +import com.microsoft.graph.security.requests.HostSslCertificateWithReferenceRequestBuilder; +import com.microsoft.graph.security.requests.HostSslCertificateCollectionWithReferencesRequest; +import com.microsoft.graph.security.requests.HostSslCertificateCollectionWithReferencesRequestBuilder; +import com.microsoft.graph.security.models.HostSslCertificate; +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 Ssl Certificate Collection Reference Request. + */ +public class HostSslCertificateCollectionReferenceRequest extends BaseCollectionWithReferencesRequest { + + /** + * The request builder for this collection of HostSslCertificate + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostSslCertificateCollectionReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, HostSslCertificateCollectionResponse.class, HostSslCertificateCollectionWithReferencesPage.class, HostSslCertificateCollectionWithReferencesRequestBuilder.class); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public HostSslCertificateCollectionReferenceRequest 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 HostSslCertificateCollectionReferenceRequest 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 HostSslCertificateCollectionReferenceRequest 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 HostSslCertificateCollectionReferenceRequest 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 HostSslCertificateCollectionReferenceRequest 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 HostSslCertificateCollectionReferenceRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public HostSslCertificateCollectionReferenceRequest count() { + addCountOption(true); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/HostSslCertificateCollectionReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/security/requests/HostSslCertificateCollectionReferenceRequestBuilder.java new file mode 100644 index 00000000000..b22609bdd97 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/HostSslCertificateCollectionReferenceRequestBuilder.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.HostSslCertificate; +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 Ssl Certificate Collection Reference Request Builder. + */ +public class HostSslCertificateCollectionReferenceRequestBuilder extends BaseCollectionReferenceRequestBuilder { + + /** + * The request builder for this collection of HostSslCertificate + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostSslCertificateCollectionReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, HostSslCertificateReferenceRequestBuilder.class, HostSslCertificateCollectionReferenceRequest.class); + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/HostSslCertificateCollectionRequest.java b/src/main/java/com/microsoft/graph/security/requests/HostSslCertificateCollectionRequest.java new file mode 100644 index 00000000000..afdec2af4e2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/HostSslCertificateCollectionRequest.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.HostSslCertificate; +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.HostSslCertificateCollectionResponse; +import com.microsoft.graph.security.requests.HostSslCertificateCollectionRequestBuilder; +import com.microsoft.graph.security.requests.HostSslCertificateCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Host Ssl Certificate Collection Request. + */ +public class HostSslCertificateCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of HostSslCertificate + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostSslCertificateCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, HostSslCertificateCollectionResponse.class, HostSslCertificateCollectionPage.class, HostSslCertificateCollectionRequestBuilder.class); + } + + /** + * Creates a new HostSslCertificate + * @param newHostSslCertificate the HostSslCertificate to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final HostSslCertificate newHostSslCertificate) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new HostSslCertificateRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newHostSslCertificate); + } + + /** + * Creates a new HostSslCertificate + * @param newHostSslCertificate the HostSslCertificate to create + * @return the newly created object + */ + @Nonnull + public HostSslCertificate post(@Nonnull final HostSslCertificate newHostSslCertificate) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new HostSslCertificateRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newHostSslCertificate); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public HostSslCertificateCollectionRequest 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 HostSslCertificateCollectionRequest 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 HostSslCertificateCollectionRequest 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 HostSslCertificateCollectionRequest 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 HostSslCertificateCollectionRequest 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 HostSslCertificateCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public HostSslCertificateCollectionRequest 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 HostSslCertificateCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public HostSslCertificateCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/security/requests/HostSslCertificateCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/security/requests/HostSslCertificateCollectionRequestBuilder.java new file mode 100644 index 00000000000..8c2652c3c2c --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/HostSslCertificateCollectionRequestBuilder.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.HostSslCertificate; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.security.requests.HostSslCertificateCollectionRequestBuilder; +import com.microsoft.graph.security.requests.HostSslCertificateRequestBuilder; +import com.microsoft.graph.security.requests.HostSslCertificateCollectionRequest; +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 Ssl Certificate Collection Request Builder. + */ +public class HostSslCertificateCollectionRequestBuilder 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 HostSslCertificateCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, HostSslCertificateRequestBuilder.class, HostSslCertificateCollectionRequest.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/HostSslCertificateCollectionResponse.java b/src/main/java/com/microsoft/graph/security/requests/HostSslCertificateCollectionResponse.java new file mode 100644 index 00000000000..3a61897df31 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/HostSslCertificateCollectionResponse.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.HostSslCertificate; + +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 Ssl Certificate Collection Response. + */ +public class HostSslCertificateCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/security/requests/HostSslCertificateCollectionWithReferencesPage.java b/src/main/java/com/microsoft/graph/security/requests/HostSslCertificateCollectionWithReferencesPage.java new file mode 100644 index 00000000000..6ff80bea3ce --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/HostSslCertificateCollectionWithReferencesPage.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.HostSslCertificate; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.security.requests.HostSslCertificateCollectionWithReferencesRequestBuilder; +import com.microsoft.graph.security.requests.HostSslCertificateCollectionWithReferencesPage; +import com.microsoft.graph.security.requests.HostSslCertificateCollectionResponse; +import com.microsoft.graph.security.models.HostSslCertificate; +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 Ssl Certificate Collection With References Page. + */ +public class HostSslCertificateCollectionWithReferencesPage extends BaseCollectionPage { + + /** + * A collection page for HostSslCertificate + * + * @param response the serialized HostSslCertificateCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public HostSslCertificateCollectionWithReferencesPage(@Nonnull final HostSslCertificateCollectionResponse response, @Nullable final HostSslCertificateCollectionWithReferencesRequestBuilder builder) { + super(response.value, builder, response.additionalDataManager()); + } + + /** + * Creates the collection page for HostSslCertificate + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public HostSslCertificateCollectionWithReferencesPage(@Nonnull final java.util.List pageContents, @Nullable final HostSslCertificateCollectionWithReferencesRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/HostSslCertificateCollectionWithReferencesRequest.java b/src/main/java/com/microsoft/graph/security/requests/HostSslCertificateCollectionWithReferencesRequest.java new file mode 100644 index 00000000000..a2cbc68fac2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/HostSslCertificateCollectionWithReferencesRequest.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.HostSslCertificate; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.security.models.HostSslCertificate; +import com.microsoft.graph.security.requests.HostSslCertificateWithReferenceRequest; +import com.microsoft.graph.security.requests.HostSslCertificateReferenceRequestBuilder; +import com.microsoft.graph.security.requests.HostSslCertificateWithReferenceRequestBuilder; +import com.microsoft.graph.security.requests.HostSslCertificateCollectionWithReferencesRequest; +import com.microsoft.graph.security.requests.HostSslCertificateCollectionWithReferencesRequest; +import com.microsoft.graph.security.requests.HostSslCertificateCollectionWithReferencesRequestBuilder; +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 Ssl Certificate Collection With References Request. + */ +public class HostSslCertificateCollectionWithReferencesRequest extends BaseCollectionWithReferencesRequest { + + /** + * The request builder for this collection of HostSslCertificate + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostSslCertificateCollectionWithReferencesRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, HostSslCertificateCollectionResponse.class, HostSslCertificateCollectionWithReferencesPage.class, HostSslCertificateCollectionWithReferencesRequestBuilder.class); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public HostSslCertificateCollectionWithReferencesRequest 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 HostSslCertificateCollectionWithReferencesRequest 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 HostSslCertificateCollectionWithReferencesRequest 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 HostSslCertificateCollectionWithReferencesRequest 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 HostSslCertificateCollectionWithReferencesRequest 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 HostSslCertificateCollectionWithReferencesRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public HostSslCertificateCollectionWithReferencesRequest count() { + addCountOption(true); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/HostSslCertificateCollectionWithReferencesRequestBuilder.java b/src/main/java/com/microsoft/graph/security/requests/HostSslCertificateCollectionWithReferencesRequestBuilder.java new file mode 100644 index 00000000000..aea974db977 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/HostSslCertificateCollectionWithReferencesRequestBuilder.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.HostSslCertificate; +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 Ssl Certificate Collection With References Request Builder. + */ +public class HostSslCertificateCollectionWithReferencesRequestBuilder 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 HostSslCertificateCollectionWithReferencesRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, HostSslCertificateReferenceRequestBuilder.class, HostSslCertificateCollectionReferenceRequest.class, HostSslCertificateCollectionReferenceRequestBuilder.class); + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/SslCertificateCollectionPage.java b/src/main/java/com/microsoft/graph/security/requests/SslCertificateCollectionPage.java new file mode 100644 index 00000000000..3cc2944235b --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/SslCertificateCollectionPage.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.SslCertificate; +import com.microsoft.graph.security.requests.SslCertificateCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.security.requests.SslCertificateCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Ssl Certificate Collection Page. + */ +public class SslCertificateCollectionPage extends BaseCollectionPage { + + /** + * A collection page for SslCertificate + * + * @param response the serialized SslCertificateCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public SslCertificateCollectionPage(@Nonnull final SslCertificateCollectionResponse response, @Nonnull final SslCertificateCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for SslCertificate + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public SslCertificateCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final SslCertificateCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/SslCertificateCollectionRequest.java b/src/main/java/com/microsoft/graph/security/requests/SslCertificateCollectionRequest.java new file mode 100644 index 00000000000..e18cc4a1c71 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/SslCertificateCollectionRequest.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.SslCertificate; +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.SslCertificateCollectionResponse; +import com.microsoft.graph.security.requests.SslCertificateCollectionRequestBuilder; +import com.microsoft.graph.security.requests.SslCertificateCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Ssl Certificate Collection Request. + */ +public class SslCertificateCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of SslCertificate + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public SslCertificateCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, SslCertificateCollectionResponse.class, SslCertificateCollectionPage.class, SslCertificateCollectionRequestBuilder.class); + } + + /** + * Creates a new SslCertificate + * @param newSslCertificate the SslCertificate to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final SslCertificate newSslCertificate) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new SslCertificateRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newSslCertificate); + } + + /** + * Creates a new SslCertificate + * @param newSslCertificate the SslCertificate to create + * @return the newly created object + */ + @Nonnull + public SslCertificate post(@Nonnull final SslCertificate newSslCertificate) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new SslCertificateRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newSslCertificate); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public SslCertificateCollectionRequest 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 SslCertificateCollectionRequest 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 SslCertificateCollectionRequest 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 SslCertificateCollectionRequest 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 SslCertificateCollectionRequest 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 SslCertificateCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public SslCertificateCollectionRequest 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 SslCertificateCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public SslCertificateCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/security/requests/SslCertificateCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/security/requests/SslCertificateCollectionRequestBuilder.java new file mode 100644 index 00000000000..ec7050991f0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/SslCertificateCollectionRequestBuilder.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.SslCertificate; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.security.requests.SslCertificateCollectionRequestBuilder; +import com.microsoft.graph.security.requests.SslCertificateRequestBuilder; +import com.microsoft.graph.security.requests.SslCertificateCollectionRequest; +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 Ssl Certificate Collection Request Builder. + */ +public class SslCertificateCollectionRequestBuilder 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 SslCertificateCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, SslCertificateRequestBuilder.class, SslCertificateCollectionRequest.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/SslCertificateCollectionResponse.java b/src/main/java/com/microsoft/graph/security/requests/SslCertificateCollectionResponse.java new file mode 100644 index 00000000000..fb905686788 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/SslCertificateCollectionResponse.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.SslCertificate; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Ssl Certificate Collection Response. + */ +public class SslCertificateCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/security/requests/WhoisRecordCollectionPage.java b/src/main/java/com/microsoft/graph/security/requests/WhoisRecordCollectionPage.java new file mode 100644 index 00000000000..a4aca910c84 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/WhoisRecordCollectionPage.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.WhoisRecord; +import com.microsoft.graph.security.requests.WhoisRecordCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.security.requests.WhoisRecordCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Whois Record Collection Page. + */ +public class WhoisRecordCollectionPage extends BaseCollectionPage { + + /** + * A collection page for WhoisRecord + * + * @param response the serialized WhoisRecordCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public WhoisRecordCollectionPage(@Nonnull final WhoisRecordCollectionResponse response, @Nonnull final WhoisRecordCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for WhoisRecord + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public WhoisRecordCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final WhoisRecordCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/WhoisRecordCollectionRequest.java b/src/main/java/com/microsoft/graph/security/requests/WhoisRecordCollectionRequest.java new file mode 100644 index 00000000000..232ffe6f8ea --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/WhoisRecordCollectionRequest.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.WhoisRecord; +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.WhoisRecordCollectionResponse; +import com.microsoft.graph.security.requests.WhoisRecordCollectionRequestBuilder; +import com.microsoft.graph.security.requests.WhoisRecordCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Whois Record Collection Request. + */ +public class WhoisRecordCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of WhoisRecord + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public WhoisRecordCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, WhoisRecordCollectionResponse.class, WhoisRecordCollectionPage.class, WhoisRecordCollectionRequestBuilder.class); + } + + /** + * Creates a new WhoisRecord + * @param newWhoisRecord the WhoisRecord to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final WhoisRecord newWhoisRecord) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new WhoisRecordRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newWhoisRecord); + } + + /** + * Creates a new WhoisRecord + * @param newWhoisRecord the WhoisRecord to create + * @return the newly created object + */ + @Nonnull + public WhoisRecord post(@Nonnull final WhoisRecord newWhoisRecord) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new WhoisRecordRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newWhoisRecord); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public WhoisRecordCollectionRequest 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 WhoisRecordCollectionRequest 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 WhoisRecordCollectionRequest 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 WhoisRecordCollectionRequest 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 WhoisRecordCollectionRequest 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 WhoisRecordCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public WhoisRecordCollectionRequest 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 WhoisRecordCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public WhoisRecordCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/security/requests/WhoisRecordCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/security/requests/WhoisRecordCollectionRequestBuilder.java new file mode 100644 index 00000000000..b1448ef8fb3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/WhoisRecordCollectionRequestBuilder.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.WhoisRecord; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.security.requests.WhoisRecordCollectionRequestBuilder; +import com.microsoft.graph.security.requests.WhoisRecordRequestBuilder; +import com.microsoft.graph.security.requests.WhoisRecordCollectionRequest; +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 Whois Record Collection Request Builder. + */ +public class WhoisRecordCollectionRequestBuilder 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 WhoisRecordCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, WhoisRecordRequestBuilder.class, WhoisRecordCollectionRequest.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/WhoisRecordCollectionResponse.java b/src/main/java/com/microsoft/graph/security/requests/WhoisRecordCollectionResponse.java new file mode 100644 index 00000000000..67f21bd9d24 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/WhoisRecordCollectionResponse.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.WhoisRecord; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Whois Record Collection Response. + */ +public class WhoisRecordCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/models/AlertEvidence.java b/src/main/java/com/microsoft/graph/securitynamespace/models/AlertEvidence.java index c5f5dcc14af..917c1e6969d 100644 --- a/src/main/java/com/microsoft/graph/securitynamespace/models/AlertEvidence.java +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/AlertEvidence.java @@ -52,7 +52,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Detailed Roles. - * + * Detailed description of the entity role/s in an alert. Values are free-form. */ @SerializedName(value = "detailedRoles", alternate = {"DetailedRoles"}) @Expose @@ -79,7 +79,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Roles. - * One or more roles that an evidence entity represents in an alert. For example, an IP address that is associated with an attacker has the evidence role Attacker. + * The role/s that an evidence entity represents in an alert, e.g., an IP address that is associated with an attacker will have the evidence role Attacker. */ @SerializedName(value = "roles", alternate = {"Roles"}) @Expose @@ -88,7 +88,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Tags. - * Array of custom tags associated with an evidence instance. For example, to denote a group of devices or high value assets. + * Array of custom tags associated with an evidence instance, for example, to denote a group of devices, high-value assets, etc. */ @SerializedName(value = "tags", alternate = {"Tags"}) @Expose diff --git a/src/main/java/com/microsoft/graph/securitynamespace/models/BlobContainerEvidence.java b/src/main/java/com/microsoft/graph/securitynamespace/models/BlobContainerEvidence.java index f75eefdc1f6..81374703938 100644 --- a/src/main/java/com/microsoft/graph/securitynamespace/models/BlobContainerEvidence.java +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/BlobContainerEvidence.java @@ -28,7 +28,7 @@ public class BlobContainerEvidence extends AlertEvidence implements IJsonBackedO /** * The Name. - * + * The name of the blob container. */ @SerializedName(value = "name", alternate = {"Name"}) @Expose @@ -37,7 +37,7 @@ public class BlobContainerEvidence extends AlertEvidence implements IJsonBackedO /** * The Storage Resource. - * + * The storage which the blob container belongs to. */ @SerializedName(value = "storageResource", alternate = {"StorageResource"}) @Expose @@ -46,7 +46,7 @@ public class BlobContainerEvidence extends AlertEvidence implements IJsonBackedO /** * The Url. - * + * The full URL representation of the blob container. */ @SerializedName(value = "url", alternate = {"Url"}) @Expose diff --git a/src/main/java/com/microsoft/graph/securitynamespace/models/BlobEvidence.java b/src/main/java/com/microsoft/graph/securitynamespace/models/BlobEvidence.java index 7e15617c115..e7c7d1c6b2d 100644 --- a/src/main/java/com/microsoft/graph/securitynamespace/models/BlobEvidence.java +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/BlobEvidence.java @@ -30,7 +30,7 @@ public class BlobEvidence extends AlertEvidence implements IJsonBackedObject { /** * The Blob Container. - * + * The container which the blob belongs to. */ @SerializedName(value = "blobContainer", alternate = {"BlobContainer"}) @Expose @@ -39,7 +39,7 @@ public class BlobEvidence extends AlertEvidence implements IJsonBackedObject { /** * The Etag. - * + * The Etag associated with this blob. */ @SerializedName(value = "etag", alternate = {"Etag"}) @Expose @@ -48,7 +48,7 @@ public class BlobEvidence extends AlertEvidence implements IJsonBackedObject { /** * The File Hashes. - * + * The file hashes associated with this blob. */ @SerializedName(value = "fileHashes", alternate = {"FileHashes"}) @Expose @@ -57,7 +57,7 @@ public class BlobEvidence extends AlertEvidence implements IJsonBackedObject { /** * The Name. - * + * The name of the blob. */ @SerializedName(value = "name", alternate = {"Name"}) @Expose @@ -66,7 +66,7 @@ public class BlobEvidence extends AlertEvidence implements IJsonBackedObject { /** * The Url. - * + * The full URL representation of the blob. */ @SerializedName(value = "url", alternate = {"Url"}) @Expose diff --git a/src/main/java/com/microsoft/graph/securitynamespace/models/ContainerEvidence.java b/src/main/java/com/microsoft/graph/securitynamespace/models/ContainerEvidence.java index e88ba8757e4..ea9df63f0b0 100644 --- a/src/main/java/com/microsoft/graph/securitynamespace/models/ContainerEvidence.java +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/ContainerEvidence.java @@ -30,7 +30,7 @@ public class ContainerEvidence extends AlertEvidence implements IJsonBackedObjec /** * The Args. - * + * The list of arguments. */ @SerializedName(value = "args", alternate = {"Args"}) @Expose @@ -39,7 +39,7 @@ public class ContainerEvidence extends AlertEvidence implements IJsonBackedObjec /** * The Command. - * + * The list of commands. */ @SerializedName(value = "command", alternate = {"Command"}) @Expose @@ -48,7 +48,7 @@ public class ContainerEvidence extends AlertEvidence implements IJsonBackedObjec /** * The Container Id. - * + * The container ID. */ @SerializedName(value = "containerId", alternate = {"ContainerId"}) @Expose @@ -57,7 +57,7 @@ public class ContainerEvidence extends AlertEvidence implements IJsonBackedObjec /** * The Image. - * + * The image used to run the container. */ @SerializedName(value = "image", alternate = {"Image"}) @Expose @@ -66,7 +66,7 @@ public class ContainerEvidence extends AlertEvidence implements IJsonBackedObjec /** * The Is Privileged. - * + * The privileged status. */ @SerializedName(value = "isPrivileged", alternate = {"IsPrivileged"}) @Expose @@ -75,7 +75,7 @@ public class ContainerEvidence extends AlertEvidence implements IJsonBackedObjec /** * The Name. - * + * The container name. */ @SerializedName(value = "name", alternate = {"Name"}) @Expose @@ -84,7 +84,7 @@ public class ContainerEvidence extends AlertEvidence implements IJsonBackedObjec /** * The Pod. - * + * The pod that this container belongs to. */ @SerializedName(value = "pod", alternate = {"Pod"}) @Expose diff --git a/src/main/java/com/microsoft/graph/securitynamespace/models/ContainerImageEvidence.java b/src/main/java/com/microsoft/graph/securitynamespace/models/ContainerImageEvidence.java index fe2d623fbb7..f7f730b1fbf 100644 --- a/src/main/java/com/microsoft/graph/securitynamespace/models/ContainerImageEvidence.java +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/ContainerImageEvidence.java @@ -29,7 +29,7 @@ public class ContainerImageEvidence extends AlertEvidence implements IJsonBacked /** * The Digest Image. - * + * The digest image entity, in case this is a tag image. */ @SerializedName(value = "digestImage", alternate = {"DigestImage"}) @Expose @@ -38,7 +38,7 @@ public class ContainerImageEvidence extends AlertEvidence implements IJsonBacked /** * The Image Id. - * + * The unique identifier for the container image entity. */ @SerializedName(value = "imageId", alternate = {"ImageId"}) @Expose @@ -47,7 +47,7 @@ public class ContainerImageEvidence extends AlertEvidence implements IJsonBacked /** * The Registry. - * + * The container registry for this image. */ @SerializedName(value = "registry", alternate = {"Registry"}) @Expose diff --git a/src/main/java/com/microsoft/graph/securitynamespace/models/ContainerRegistryEvidence.java b/src/main/java/com/microsoft/graph/securitynamespace/models/ContainerRegistryEvidence.java index 46098dc5968..abd77036c49 100644 --- a/src/main/java/com/microsoft/graph/securitynamespace/models/ContainerRegistryEvidence.java +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/ContainerRegistryEvidence.java @@ -27,7 +27,7 @@ public class ContainerRegistryEvidence extends AlertEvidence implements IJsonBac /** * The Registry. - * + * The registry URI. */ @SerializedName(value = "registry", alternate = {"Registry"}) @Expose diff --git a/src/main/java/com/microsoft/graph/securitynamespace/models/ContentInfo.java b/src/main/java/com/microsoft/graph/securitynamespace/models/ContentInfo.java index 4c2b68d92a0..230f36c7ba3 100644 --- a/src/main/java/com/microsoft/graph/securitynamespace/models/ContentInfo.java +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/ContentInfo.java @@ -60,7 +60,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Metadata. - * Existing Microsoft Purview Information Protection metadata is passed as key-value pairs, where the key is the MSIP_Label_GUID_PropName. + * Existing Microsoft Purview Information Protection metadata is passed as key-value pairs, where the key is the MSIPLabelGUID_PropName. */ @SerializedName(value = "metadata", alternate = {"Metadata"}) @Expose diff --git a/src/main/java/com/microsoft/graph/securitynamespace/models/DeviceEvidence.java b/src/main/java/com/microsoft/graph/securitynamespace/models/DeviceEvidence.java index 81960d6e02e..9c72bb82f67 100644 --- a/src/main/java/com/microsoft/graph/securitynamespace/models/DeviceEvidence.java +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/DeviceEvidence.java @@ -79,7 +79,7 @@ public class DeviceEvidence extends AlertEvidence implements IJsonBackedObject { /** * The Ip Interfaces. - * + * Ip interfaces of the device during the time of the alert. */ @SerializedName(value = "ipInterfaces", alternate = {"IpInterfaces"}) @Expose diff --git a/src/main/java/com/microsoft/graph/securitynamespace/models/FileHash.java b/src/main/java/com/microsoft/graph/securitynamespace/models/FileHash.java index 0e6ab991863..c24984a1b22 100644 --- a/src/main/java/com/microsoft/graph/securitynamespace/models/FileHash.java +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/FileHash.java @@ -40,7 +40,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Algorithm. - * + * The hash algorithm type. Possible values are: unknown, md5, sha1, sha256, sha256ac, unknownFutureValue. */ @SerializedName(value = "algorithm", alternate = {"Algorithm"}) @Expose @@ -49,7 +49,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Value. - * + * The hash value. */ @SerializedName(value = "value", alternate = {"Value"}) @Expose 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 2d747ff7f3d..db99d75c452 100644 --- a/src/main/java/com/microsoft/graph/securitynamespace/models/Host.java +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/Host.java @@ -10,9 +10,11 @@ import java.util.EnumSet; import com.microsoft.graph.http.BaseCollectionPage; import com.microsoft.graph.security.models.HostReputation; +import com.microsoft.graph.security.models.WhoisRecord; 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.HostSslCertificateCollectionPage; import com.microsoft.graph.security.requests.SubdomainCollectionPage; import com.microsoft.graph.security.requests.HostTrackerCollectionPage; @@ -49,6 +51,13 @@ public class Host extends Artifact implements IJsonBackedObject { @Nullable public java.time.OffsetDateTime lastSeenDateTime; + /** + * 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. + */ + @Nullable + public com.microsoft.graph.security.requests.HostPairCollectionPage childHostPairs; + /** * The Components. * The hostComponents that are associated with this host. @@ -63,6 +72,20 @@ public class Host extends Artifact implements IJsonBackedObject { @Nullable public com.microsoft.graph.security.requests.HostCookieCollectionPage cookies; + /** + * The Host Pairs. + * The hostPairs that are associated with this host, where this host is either the parentHost or childHost. + */ + @Nullable + public com.microsoft.graph.security.requests.HostPairCollectionPage hostPairs; + + /** + * The Parent Host Pairs. + * The hostPairs that are associated with a host, where that host is the childHost and has an incoming pairing with a parentHost. + */ + @Nullable + public com.microsoft.graph.security.requests.HostPairCollectionPage parentHostPairs; + /** * The Passive Dns. * Passive DNS retrieval about this host. @@ -86,6 +109,13 @@ public class Host extends Artifact implements IJsonBackedObject { @Nullable public HostReputation reputation; + /** + * The Ssl Certificates. + * + */ + @Nullable + public com.microsoft.graph.security.requests.HostSslCertificateCollectionPage sslCertificates; + /** * The Subdomains. * The subdomains that are associated with this host. @@ -100,6 +130,15 @@ public class Host extends Artifact implements IJsonBackedObject { @Nullable public com.microsoft.graph.security.requests.HostTrackerCollectionPage trackers; + /** + * The Whois. + * + */ + @SerializedName(value = "whois", alternate = {"Whois"}) + @Expose + @Nullable + public WhoisRecord whois; + /** * Sets the raw JSON object @@ -110,6 +149,10 @@ public class Host extends Artifact implements IJsonBackedObject { public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { + if (json.has("childHostPairs")) { + childHostPairs = serializer.deserializeObject(json.get("childHostPairs"), com.microsoft.graph.security.requests.HostPairCollectionPage.class); + } + if (json.has("components")) { components = serializer.deserializeObject(json.get("components"), com.microsoft.graph.security.requests.HostComponentCollectionPage.class); } @@ -118,6 +161,14 @@ public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final J cookies = serializer.deserializeObject(json.get("cookies"), com.microsoft.graph.security.requests.HostCookieCollectionPage.class); } + if (json.has("hostPairs")) { + hostPairs = serializer.deserializeObject(json.get("hostPairs"), com.microsoft.graph.security.requests.HostPairCollectionPage.class); + } + + if (json.has("parentHostPairs")) { + parentHostPairs = serializer.deserializeObject(json.get("parentHostPairs"), com.microsoft.graph.security.requests.HostPairCollectionPage.class); + } + if (json.has("passiveDns")) { passiveDns = serializer.deserializeObject(json.get("passiveDns"), com.microsoft.graph.security.requests.PassiveDnsRecordCollectionPage.class); } @@ -126,6 +177,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("sslCertificates")) { + sslCertificates = serializer.deserializeObject(json.get("sslCertificates"), com.microsoft.graph.security.requests.HostSslCertificateCollectionPage.class); + } + if (json.has("subdomains")) { subdomains = serializer.deserializeObject(json.get("subdomains"), com.microsoft.graph.security.requests.SubdomainCollectionPage.class); } diff --git a/src/main/java/com/microsoft/graph/securitynamespace/models/HostPair.java b/src/main/java/com/microsoft/graph/securitynamespace/models/HostPair.java new file mode 100644 index 00000000000..b69c35a6045 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/HostPair.java @@ -0,0 +1,84 @@ +// 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.Host; +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 Pair. + */ +public class HostPair extends Entity implements IJsonBackedObject { + + + /** + * The First Seen Date Time. + * The first date and time when Microsoft Defender Threat Intelligence observed the hostPair. 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 hostPair. 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 Link Kind. + * The reason the two hosts are identified as hostPairs. + */ + @SerializedName(value = "linkKind", alternate = {"LinkKind"}) + @Expose + @Nullable + public String linkKind; + + /** + * The Child Host. + * Host reached via the parentHost. + */ + @SerializedName(value = "childHost", alternate = {"ChildHost"}) + @Expose + @Nullable + public Host childHost; + + /** + * The Parent Host. + * Host used to reach the childHost. + */ + @SerializedName(value = "parentHost", alternate = {"ParentHost"}) + @Expose + @Nullable + public Host parentHost; + + + /** + * 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/HostSslCertificate.java b/src/main/java/com/microsoft/graph/securitynamespace/models/HostSslCertificate.java new file mode 100644 index 00000000000..7e91dd1e755 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/HostSslCertificate.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.http.BaseCollectionPage; +import com.microsoft.graph.security.models.HostSslCertificatePort; +import com.microsoft.graph.security.models.Host; +import com.microsoft.graph.security.models.SslCertificate; +import com.microsoft.graph.security.models.Artifact; + + +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 Ssl Certificate. + */ +public class HostSslCertificate extends Artifact implements IJsonBackedObject { + + + /** + * The First Seen Date Time. + * + */ + @SerializedName(value = "firstSeenDateTime", alternate = {"FirstSeenDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime firstSeenDateTime; + + /** + * The Last Seen Date Time. + * + */ + @SerializedName(value = "lastSeenDateTime", alternate = {"LastSeenDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime lastSeenDateTime; + + /** + * The Ports. + * + */ + @SerializedName(value = "ports", alternate = {"Ports"}) + @Expose + @Nullable + public java.util.List ports; + + /** + * The Host. + * + */ + @SerializedName(value = "host", alternate = {"Host"}) + @Expose + @Nullable + public Host host; + + /** + * The Ssl Certificate. + * + */ + @SerializedName(value = "sslCertificate", alternate = {"SslCertificate"}) + @Expose + @Nullable + public SslCertificate sslCertificate; + + + /** + * 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/HostSslCertificatePort.java b/src/main/java/com/microsoft/graph/securitynamespace/models/HostSslCertificatePort.java new file mode 100644 index 00000000000..d95f215755e --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/HostSslCertificatePort.java @@ -0,0 +1,77 @@ +// 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 Ssl Certificate Port. + */ +public class HostSslCertificatePort 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. + * + */ + @SerializedName(value = "firstSeenDateTime", alternate = {"FirstSeenDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime firstSeenDateTime; + + /** + * The Last Seen Date Time. + * + */ + @SerializedName(value = "lastSeenDateTime", alternate = {"LastSeenDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime lastSeenDateTime; + + /** + * The Port. + * + */ + @SerializedName(value = "port", alternate = {"Port"}) + @Expose + @Nullable + public Integer port; + + + /** + * 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/IntelligenceProfile.java b/src/main/java/com/microsoft/graph/securitynamespace/models/IntelligenceProfile.java index 91ffcf5e945..883c3ca9fd1 100644 --- a/src/main/java/com/microsoft/graph/securitynamespace/models/IntelligenceProfile.java +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/IntelligenceProfile.java @@ -41,7 +41,7 @@ public class IntelligenceProfile extends Entity implements IJsonBackedObject { /** * The Countries Or Regions Of Origin. - * + * The country/region of origin for the given actor or threat associated with this intelligenceProfile. */ @SerializedName(value = "countriesOrRegionsOfOrigin", alternate = {"CountriesOrRegionsOfOrigin"}) @Expose diff --git a/src/main/java/com/microsoft/graph/securitynamespace/models/IntelligenceProfileCountryOrRegionOfOrigin.java b/src/main/java/com/microsoft/graph/securitynamespace/models/IntelligenceProfileCountryOrRegionOfOrigin.java index c413f2500be..00318c4fc13 100644 --- a/src/main/java/com/microsoft/graph/securitynamespace/models/IntelligenceProfileCountryOrRegionOfOrigin.java +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/IntelligenceProfileCountryOrRegionOfOrigin.java @@ -39,7 +39,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Code. - * + * A codified representation for this country/region of origin. */ @SerializedName(value = "code", alternate = {"Code"}) @Expose @@ -48,7 +48,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Label. - * + * A display label for this ountry/region of origin. */ @SerializedName(value = "label", alternate = {"Label"}) @Expose diff --git a/src/main/java/com/microsoft/graph/securitynamespace/models/KubernetesClusterEvidence.java b/src/main/java/com/microsoft/graph/securitynamespace/models/KubernetesClusterEvidence.java index f6a10a99e20..e8b17c0f61e 100644 --- a/src/main/java/com/microsoft/graph/securitynamespace/models/KubernetesClusterEvidence.java +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/KubernetesClusterEvidence.java @@ -28,7 +28,7 @@ public class KubernetesClusterEvidence extends AlertEvidence implements IJsonBac /** * The Cloud Resource. - * + * The cloud identifier of the cluster. Can be either an amazonResourceEvidence, azureResourceEvidence, or googleCloudResourceEvidence object. */ @SerializedName(value = "cloudResource", alternate = {"CloudResource"}) @Expose @@ -37,7 +37,7 @@ public class KubernetesClusterEvidence extends AlertEvidence implements IJsonBac /** * The Distribution. - * + * The distribution type of the cluster. */ @SerializedName(value = "distribution", alternate = {"Distribution"}) @Expose @@ -46,7 +46,7 @@ public class KubernetesClusterEvidence extends AlertEvidence implements IJsonBac /** * The Name. - * + * The cluster name. */ @SerializedName(value = "name", alternate = {"Name"}) @Expose @@ -55,7 +55,7 @@ public class KubernetesClusterEvidence extends AlertEvidence implements IJsonBac /** * The Platform. - * + * The platform the cluster runs on. Possible values are: unknown, aks, eks, gke, arc, unknownFutureValue. */ @SerializedName(value = "platform", alternate = {"Platform"}) @Expose @@ -64,7 +64,7 @@ public class KubernetesClusterEvidence extends AlertEvidence implements IJsonBac /** * The Version. - * + * The kubernetes version of the cluster. */ @SerializedName(value = "version", alternate = {"Version"}) @Expose diff --git a/src/main/java/com/microsoft/graph/securitynamespace/models/KubernetesControllerEvidence.java b/src/main/java/com/microsoft/graph/securitynamespace/models/KubernetesControllerEvidence.java index cecb8b31dae..0673d374879 100644 --- a/src/main/java/com/microsoft/graph/securitynamespace/models/KubernetesControllerEvidence.java +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/KubernetesControllerEvidence.java @@ -29,7 +29,7 @@ public class KubernetesControllerEvidence extends AlertEvidence implements IJson /** * The Labels. - * + * The labels for the Kubernetes pod. */ @SerializedName(value = "labels", alternate = {"Labels"}) @Expose @@ -38,7 +38,7 @@ public class KubernetesControllerEvidence extends AlertEvidence implements IJson /** * The Name. - * + * The controller name. */ @SerializedName(value = "name", alternate = {"Name"}) @Expose @@ -47,7 +47,7 @@ public class KubernetesControllerEvidence extends AlertEvidence implements IJson /** * The Namespace. - * + * The service account namespace. */ @SerializedName(value = "namespace", alternate = {"Namespace"}) @Expose @@ -56,7 +56,7 @@ public class KubernetesControllerEvidence extends AlertEvidence implements IJson /** * The Type. - * + * The controller type. */ @SerializedName(value = "type", alternate = {"Type"}) @Expose diff --git a/src/main/java/com/microsoft/graph/securitynamespace/models/KubernetesNamespaceEvidence.java b/src/main/java/com/microsoft/graph/securitynamespace/models/KubernetesNamespaceEvidence.java index a112125cbc9..fc3c73331b7 100644 --- a/src/main/java/com/microsoft/graph/securitynamespace/models/KubernetesNamespaceEvidence.java +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/KubernetesNamespaceEvidence.java @@ -29,7 +29,7 @@ public class KubernetesNamespaceEvidence extends AlertEvidence implements IJsonB /** * The Cluster. - * + * The namespace cluster. */ @SerializedName(value = "cluster", alternate = {"Cluster"}) @Expose @@ -38,7 +38,7 @@ public class KubernetesNamespaceEvidence extends AlertEvidence implements IJsonB /** * The Labels. - * + * The labels for the Kubernetes pod. */ @SerializedName(value = "labels", alternate = {"Labels"}) @Expose @@ -47,7 +47,7 @@ public class KubernetesNamespaceEvidence extends AlertEvidence implements IJsonB /** * The Name. - * + * The namespace name. */ @SerializedName(value = "name", alternate = {"Name"}) @Expose diff --git a/src/main/java/com/microsoft/graph/securitynamespace/models/KubernetesPodEvidence.java b/src/main/java/com/microsoft/graph/securitynamespace/models/KubernetesPodEvidence.java index 877253c0959..d895684a55d 100644 --- a/src/main/java/com/microsoft/graph/securitynamespace/models/KubernetesPodEvidence.java +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/KubernetesPodEvidence.java @@ -34,7 +34,7 @@ public class KubernetesPodEvidence extends AlertEvidence implements IJsonBackedO /** * The Containers. - * + * The list of pod containers which are not init or ephemeral containers. */ @SerializedName(value = "containers", alternate = {"Containers"}) @Expose @@ -43,7 +43,7 @@ public class KubernetesPodEvidence extends AlertEvidence implements IJsonBackedO /** * The Controller. - * + * The pod controller. */ @SerializedName(value = "controller", alternate = {"Controller"}) @Expose @@ -52,7 +52,7 @@ public class KubernetesPodEvidence extends AlertEvidence implements IJsonBackedO /** * The Ephemeral Containers. - * + * The list of pod ephemeral containers. */ @SerializedName(value = "ephemeralContainers", alternate = {"EphemeralContainers"}) @Expose @@ -61,7 +61,7 @@ public class KubernetesPodEvidence extends AlertEvidence implements IJsonBackedO /** * The Init Containers. - * + * The list of pod init containers. */ @SerializedName(value = "initContainers", alternate = {"InitContainers"}) @Expose @@ -70,7 +70,7 @@ public class KubernetesPodEvidence extends AlertEvidence implements IJsonBackedO /** * The Labels. - * + * The pod labels. */ @SerializedName(value = "labels", alternate = {"Labels"}) @Expose @@ -79,7 +79,7 @@ public class KubernetesPodEvidence extends AlertEvidence implements IJsonBackedO /** * The Name. - * + * The pod name. */ @SerializedName(value = "name", alternate = {"Name"}) @Expose @@ -88,7 +88,7 @@ public class KubernetesPodEvidence extends AlertEvidence implements IJsonBackedO /** * The Namespace. - * + * The pod namespace. */ @SerializedName(value = "namespace", alternate = {"Namespace"}) @Expose @@ -97,7 +97,7 @@ public class KubernetesPodEvidence extends AlertEvidence implements IJsonBackedO /** * The Pod Ip. - * + * The pod IP. */ @SerializedName(value = "podIp", alternate = {"PodIp"}) @Expose @@ -106,7 +106,7 @@ public class KubernetesPodEvidence extends AlertEvidence implements IJsonBackedO /** * The Service Account. - * + * The pod service account. */ @SerializedName(value = "serviceAccount", alternate = {"ServiceAccount"}) @Expose diff --git a/src/main/java/com/microsoft/graph/securitynamespace/models/KubernetesSecretEvidence.java b/src/main/java/com/microsoft/graph/securitynamespace/models/KubernetesSecretEvidence.java index 852b64e452e..2df4574a2f9 100644 --- a/src/main/java/com/microsoft/graph/securitynamespace/models/KubernetesSecretEvidence.java +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/KubernetesSecretEvidence.java @@ -28,7 +28,7 @@ public class KubernetesSecretEvidence extends AlertEvidence implements IJsonBack /** * The Name. - * + * The secret name. */ @SerializedName(value = "name", alternate = {"Name"}) @Expose @@ -37,7 +37,7 @@ public class KubernetesSecretEvidence extends AlertEvidence implements IJsonBack /** * The Namespace. - * + * The secret namespace. */ @SerializedName(value = "namespace", alternate = {"Namespace"}) @Expose @@ -46,7 +46,7 @@ public class KubernetesSecretEvidence extends AlertEvidence implements IJsonBack /** * The Secret Type. - * + * The secret type can include both built-in types and custom ones. Examples of built-in types are: Opaque, kubernetes.io/service-account-token, kubernetes.io/dockercfg, kubernetes.io/dockerconfigjson, kubernetes.io/basic-auth, kubernetes.io/ssh-auth, kubernetes.io/tls, bootstrap.kubernetes.io/token. */ @SerializedName(value = "secretType", alternate = {"SecretType"}) @Expose diff --git a/src/main/java/com/microsoft/graph/securitynamespace/models/KubernetesServiceAccountEvidence.java b/src/main/java/com/microsoft/graph/securitynamespace/models/KubernetesServiceAccountEvidence.java index 125142d260f..8d7ec189d52 100644 --- a/src/main/java/com/microsoft/graph/securitynamespace/models/KubernetesServiceAccountEvidence.java +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/KubernetesServiceAccountEvidence.java @@ -28,7 +28,7 @@ public class KubernetesServiceAccountEvidence extends AlertEvidence implements I /** * The Name. - * + * The service account name. */ @SerializedName(value = "name", alternate = {"Name"}) @Expose @@ -37,7 +37,7 @@ public class KubernetesServiceAccountEvidence extends AlertEvidence implements I /** * The Namespace. - * + * The service account namespace. */ @SerializedName(value = "namespace", alternate = {"Namespace"}) @Expose diff --git a/src/main/java/com/microsoft/graph/securitynamespace/models/KubernetesServiceEvidence.java b/src/main/java/com/microsoft/graph/securitynamespace/models/KubernetesServiceEvidence.java index 24d32d1beb2..f7d35f16189 100644 --- a/src/main/java/com/microsoft/graph/securitynamespace/models/KubernetesServiceEvidence.java +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/KubernetesServiceEvidence.java @@ -33,7 +33,7 @@ public class KubernetesServiceEvidence extends AlertEvidence implements IJsonBac /** * The Cluster IP. - * + * The service cluster IP. */ @SerializedName(value = "clusterIP", alternate = {"ClusterIP"}) @Expose @@ -42,7 +42,7 @@ public class KubernetesServiceEvidence extends AlertEvidence implements IJsonBac /** * The External IPs. - * + * The service external IPs. */ @SerializedName(value = "externalIPs", alternate = {"ExternalIPs"}) @Expose @@ -51,7 +51,7 @@ public class KubernetesServiceEvidence extends AlertEvidence implements IJsonBac /** * The Labels. - * + * The service labels. */ @SerializedName(value = "labels", alternate = {"Labels"}) @Expose @@ -60,7 +60,7 @@ public class KubernetesServiceEvidence extends AlertEvidence implements IJsonBac /** * The Name. - * + * The service name. */ @SerializedName(value = "name", alternate = {"Name"}) @Expose @@ -69,7 +69,7 @@ public class KubernetesServiceEvidence extends AlertEvidence implements IJsonBac /** * The Namespace. - * + * The service namespace. */ @SerializedName(value = "namespace", alternate = {"Namespace"}) @Expose @@ -78,7 +78,7 @@ public class KubernetesServiceEvidence extends AlertEvidence implements IJsonBac /** * The Selector. - * + * The service selector. */ @SerializedName(value = "selector", alternate = {"Selector"}) @Expose @@ -87,7 +87,7 @@ public class KubernetesServiceEvidence extends AlertEvidence implements IJsonBac /** * The Service Ports. - * + * The list of service ports. */ @SerializedName(value = "servicePorts", alternate = {"ServicePorts"}) @Expose @@ -96,7 +96,7 @@ public class KubernetesServiceEvidence extends AlertEvidence implements IJsonBac /** * The Service Type. - * + * The service type. */ @SerializedName(value = "serviceType", alternate = {"ServiceType"}) @Expose diff --git a/src/main/java/com/microsoft/graph/securitynamespace/models/KubernetesServicePort.java b/src/main/java/com/microsoft/graph/securitynamespace/models/KubernetesServicePort.java index 0f66add8fad..a8c56fefe12 100644 --- a/src/main/java/com/microsoft/graph/securitynamespace/models/KubernetesServicePort.java +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/KubernetesServicePort.java @@ -40,7 +40,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The App Protocol. - * + * The application protocol for this port. */ @SerializedName(value = "appProtocol", alternate = {"AppProtocol"}) @Expose @@ -49,7 +49,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Name. - * + * The name of this port within the service. */ @SerializedName(value = "name", alternate = {"Name"}) @Expose @@ -58,7 +58,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Node Port. - * + * The port on each node on which this service is exposed when the type is either NodePort or LoadBalancer. */ @SerializedName(value = "nodePort", alternate = {"NodePort"}) @Expose @@ -67,7 +67,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Port. - * + * The port that this service exposes. */ @SerializedName(value = "port", alternate = {"Port"}) @Expose @@ -76,7 +76,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Protocol. - * + * The protocol name. Possible values are: udp, tcp, sctp, unknownFutureValue. */ @SerializedName(value = "protocol", alternate = {"Protocol"}) @Expose @@ -85,7 +85,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Target Port. - * + * The name or number of the port to access on the pods targeted by the service. The port number must be in the range 1 to 65535. The name must be an IANASVCNAME. */ @SerializedName(value = "targetPort", alternate = {"TargetPort"}) @Expose diff --git a/src/main/java/com/microsoft/graph/securitynamespace/models/RegistryValueEvidence.java b/src/main/java/com/microsoft/graph/securitynamespace/models/RegistryValueEvidence.java index 98ba2942fe7..a8e5a602044 100644 --- a/src/main/java/com/microsoft/graph/securitynamespace/models/RegistryValueEvidence.java +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/RegistryValueEvidence.java @@ -27,7 +27,7 @@ public class RegistryValueEvidence extends AlertEvidence implements IJsonBackedO /** * The Mde Device Id. - * + * A unique identifier assigned to a device by Microsoft Defender for Endpoint. */ @SerializedName(value = "mdeDeviceId", alternate = {"MdeDeviceId"}) @Expose diff --git a/src/main/java/com/microsoft/graph/securitynamespace/models/SslCertificate.java b/src/main/java/com/microsoft/graph/securitynamespace/models/SslCertificate.java new file mode 100644 index 00000000000..0ff7d3abd90 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/SslCertificate.java @@ -0,0 +1,133 @@ +// 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.SslCertificateEntity; +import com.microsoft.graph.security.models.Artifact; +import com.microsoft.graph.security.requests.HostCollectionPage; + + +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 Ssl Certificate. + */ +public class SslCertificate extends Artifact implements IJsonBackedObject { + + + /** + * The Expiration Date Time. + * + */ + @SerializedName(value = "expirationDateTime", alternate = {"ExpirationDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime expirationDateTime; + + /** + * The Fingerprint. + * + */ + @SerializedName(value = "fingerprint", alternate = {"Fingerprint"}) + @Expose + @Nullable + public String fingerprint; + + /** + * The First Seen Date Time. + * + */ + @SerializedName(value = "firstSeenDateTime", alternate = {"FirstSeenDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime firstSeenDateTime; + + /** + * The Issue Date Time. + * + */ + @SerializedName(value = "issueDateTime", alternate = {"IssueDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime issueDateTime; + + /** + * The Issuer. + * + */ + @SerializedName(value = "issuer", alternate = {"Issuer"}) + @Expose + @Nullable + public SslCertificateEntity issuer; + + /** + * The Last Seen Date Time. + * + */ + @SerializedName(value = "lastSeenDateTime", alternate = {"LastSeenDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime lastSeenDateTime; + + /** + * The Serial Number. + * + */ + @SerializedName(value = "serialNumber", alternate = {"SerialNumber"}) + @Expose + @Nullable + public String serialNumber; + + /** + * The Sha1. + * + */ + @SerializedName(value = "sha1", alternate = {"Sha1"}) + @Expose + @Nullable + public String sha1; + + /** + * The Subject. + * + */ + @SerializedName(value = "subject", alternate = {"Subject"}) + @Expose + @Nullable + public SslCertificateEntity subject; + + /** + * The Related Hosts. + * + */ + @Nullable + public com.microsoft.graph.security.requests.HostCollectionPage relatedHosts; + + + /** + * 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("relatedHosts")) { + relatedHosts = serializer.deserializeObject(json.get("relatedHosts"), com.microsoft.graph.security.requests.HostCollectionPage.class); + } + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/models/SslCertificateEntity.java b/src/main/java/com/microsoft/graph/securitynamespace/models/SslCertificateEntity.java new file mode 100644 index 00000000000..8e7c0a2f943 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/SslCertificateEntity.java @@ -0,0 +1,133 @@ +// 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.models.PhysicalAddress; + + +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 Ssl Certificate Entity. + */ +public class SslCertificateEntity 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 Address. + * + */ + @SerializedName(value = "address", alternate = {"Address"}) + @Expose + @Nullable + public PhysicalAddress address; + + /** + * The Alternate Names. + * + */ + @SerializedName(value = "alternateNames", alternate = {"AlternateNames"}) + @Expose + @Nullable + public java.util.List alternateNames; + + /** + * The Common Name. + * + */ + @SerializedName(value = "commonName", alternate = {"CommonName"}) + @Expose + @Nullable + public String commonName; + + /** + * The Email. + * + */ + @SerializedName(value = "email", alternate = {"Email"}) + @Expose + @Nullable + public String email; + + /** + * The Given Name. + * + */ + @SerializedName(value = "givenName", alternate = {"GivenName"}) + @Expose + @Nullable + public String givenName; + + /** + * The Organization Name. + * + */ + @SerializedName(value = "organizationName", alternate = {"OrganizationName"}) + @Expose + @Nullable + public String organizationName; + + /** + * The Organization Unit Name. + * + */ + @SerializedName(value = "organizationUnitName", alternate = {"OrganizationUnitName"}) + @Expose + @Nullable + public String organizationUnitName; + + /** + * The Serial Number. + * + */ + @SerializedName(value = "serialNumber", alternate = {"SerialNumber"}) + @Expose + @Nullable + public String serialNumber; + + /** + * The Surname. + * + */ + @SerializedName(value = "surname", alternate = {"Surname"}) + @Expose + @Nullable + public String surname; + + + /** + * 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/ThreatIntelligence.java b/src/main/java/com/microsoft/graph/securitynamespace/models/ThreatIntelligence.java index afb2ce2c657..a9da0d9305c 100644 --- a/src/main/java/com/microsoft/graph/securitynamespace/models/ThreatIntelligence.java +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/ThreatIntelligence.java @@ -14,13 +14,17 @@ import com.microsoft.graph.security.requests.ArticleCollectionPage; 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.HostCollectionPage; +import com.microsoft.graph.security.requests.HostSslCertificateCollectionPage; import com.microsoft.graph.security.requests.HostTrackerCollectionPage; import com.microsoft.graph.security.requests.IntelligenceProfileIndicatorCollectionPage; import com.microsoft.graph.security.requests.IntelligenceProfileCollectionPage; import com.microsoft.graph.security.requests.PassiveDnsRecordCollectionPage; +import com.microsoft.graph.security.requests.SslCertificateCollectionPage; import com.microsoft.graph.security.requests.SubdomainCollectionPage; import com.microsoft.graph.security.requests.VulnerabilityCollectionPage; +import com.microsoft.graph.security.requests.WhoisRecordCollectionPage; import com.google.gson.JsonObject; @@ -73,6 +77,15 @@ public class ThreatIntelligence extends Entity implements IJsonBackedObject { @Nullable public com.microsoft.graph.security.requests.HostCookieCollectionPage hostCookies; + /** + * The Host Pairs. + * Retrieve details about microsoft.graph.security.hostTracker objects.Note: List retrieval is not yet supported. + */ + @SerializedName(value = "hostPairs", alternate = {"HostPairs"}) + @Expose + @Nullable + public com.microsoft.graph.security.requests.HostPairCollectionPage hostPairs; + /** * The Hosts. * Refers to microsoft.graph.security.host objects that Microsoft Threat Intelligence has observed.Note: List retrieval is not yet supported. @@ -82,6 +95,15 @@ public class ThreatIntelligence extends Entity implements IJsonBackedObject { @Nullable public com.microsoft.graph.security.requests.HostCollectionPage hosts; + /** + * The Host Ssl Certificates. + * + */ + @SerializedName(value = "hostSslCertificates", alternate = {"HostSslCertificates"}) + @Expose + @Nullable + public com.microsoft.graph.security.requests.HostSslCertificateCollectionPage hostSslCertificates; + /** * The Host Trackers. * Retrieve details about microsoft.graph.security.hostTracker objects.Note: List retrieval is not yet supported. @@ -118,6 +140,15 @@ public class ThreatIntelligence extends Entity implements IJsonBackedObject { @Nullable public com.microsoft.graph.security.requests.PassiveDnsRecordCollectionPage passiveDnsRecords; + /** + * The Ssl Certificates. + * + */ + @SerializedName(value = "sslCertificates", alternate = {"SslCertificates"}) + @Expose + @Nullable + public com.microsoft.graph.security.requests.SslCertificateCollectionPage sslCertificates; + /** * The Subdomains. * Retrieve details about the microsoft.graph.security.subdomain.Note: List retrieval is not yet supported. @@ -136,6 +167,15 @@ public class ThreatIntelligence extends Entity implements IJsonBackedObject { @Nullable public com.microsoft.graph.security.requests.VulnerabilityCollectionPage vulnerabilities; + /** + * The Whois Records. + * + */ + @SerializedName(value = "whoisRecords", alternate = {"WhoisRecords"}) + @Expose + @Nullable + public com.microsoft.graph.security.requests.WhoisRecordCollectionPage whoisRecords; + /** * Sets the raw JSON object @@ -162,10 +202,18 @@ public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final J hostCookies = serializer.deserializeObject(json.get("hostCookies"), com.microsoft.graph.security.requests.HostCookieCollectionPage.class); } + if (json.has("hostPairs")) { + hostPairs = serializer.deserializeObject(json.get("hostPairs"), com.microsoft.graph.security.requests.HostPairCollectionPage.class); + } + if (json.has("hosts")) { hosts = serializer.deserializeObject(json.get("hosts"), com.microsoft.graph.security.requests.HostCollectionPage.class); } + if (json.has("hostSslCertificates")) { + hostSslCertificates = serializer.deserializeObject(json.get("hostSslCertificates"), com.microsoft.graph.security.requests.HostSslCertificateCollectionPage.class); + } + if (json.has("hostTrackers")) { hostTrackers = serializer.deserializeObject(json.get("hostTrackers"), com.microsoft.graph.security.requests.HostTrackerCollectionPage.class); } @@ -182,6 +230,10 @@ public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final J passiveDnsRecords = serializer.deserializeObject(json.get("passiveDnsRecords"), com.microsoft.graph.security.requests.PassiveDnsRecordCollectionPage.class); } + if (json.has("sslCertificates")) { + sslCertificates = serializer.deserializeObject(json.get("sslCertificates"), com.microsoft.graph.security.requests.SslCertificateCollectionPage.class); + } + if (json.has("subdomains")) { subdomains = serializer.deserializeObject(json.get("subdomains"), com.microsoft.graph.security.requests.SubdomainCollectionPage.class); } @@ -189,5 +241,9 @@ public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final J if (json.has("vulnerabilities")) { vulnerabilities = serializer.deserializeObject(json.get("vulnerabilities"), com.microsoft.graph.security.requests.VulnerabilityCollectionPage.class); } + + if (json.has("whoisRecords")) { + whoisRecords = serializer.deserializeObject(json.get("whoisRecords"), com.microsoft.graph.security.requests.WhoisRecordCollectionPage.class); + } } } diff --git a/src/main/java/com/microsoft/graph/securitynamespace/models/WhoisContact.java b/src/main/java/com/microsoft/graph/securitynamespace/models/WhoisContact.java new file mode 100644 index 00000000000..bc552bd5223 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/WhoisContact.java @@ -0,0 +1,105 @@ +// 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.models.PhysicalAddress; + + +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 Whois Contact. + */ +public class WhoisContact 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 Address. + * + */ + @SerializedName(value = "address", alternate = {"Address"}) + @Expose + @Nullable + public PhysicalAddress address; + + /** + * The Email. + * + */ + @SerializedName(value = "email", alternate = {"Email"}) + @Expose + @Nullable + public String email; + + /** + * The Fax. + * + */ + @SerializedName(value = "fax", alternate = {"Fax"}) + @Expose + @Nullable + public String fax; + + /** + * The Name. + * + */ + @SerializedName(value = "name", alternate = {"Name"}) + @Expose + @Nullable + public String name; + + /** + * The Organization. + * + */ + @SerializedName(value = "organization", alternate = {"Organization"}) + @Expose + @Nullable + public String organization; + + /** + * The Telephone. + * + */ + @SerializedName(value = "telephone", alternate = {"Telephone"}) + @Expose + @Nullable + public String telephone; + + + /** + * 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/WhoisDomainStatus.java b/src/main/java/com/microsoft/graph/securitynamespace/models/WhoisDomainStatus.java new file mode 100644 index 00000000000..261c8b68e43 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/WhoisDomainStatus.java @@ -0,0 +1,42 @@ +// 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 Whois Domain Status. +*/ +public enum WhoisDomainStatus +{ + /** + * client Delete Prohibited + */ + CLIENT_DELETE_PROHIBITED, + /** + * client Hold + */ + CLIENT_HOLD, + /** + * client Renew Prohibited + */ + CLIENT_RENEW_PROHIBITED, + /** + * client Transfer Prohibited + */ + CLIENT_TRANSFER_PROHIBITED, + /** + * client Update Prohibited + */ + CLIENT_UPDATE_PROHIBITED, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For WhoisDomainStatus values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/models/WhoisNameserver.java b/src/main/java/com/microsoft/graph/securitynamespace/models/WhoisNameserver.java new file mode 100644 index 00000000000..70ff86508dd --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/WhoisNameserver.java @@ -0,0 +1,78 @@ +// 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.Host; + + +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 Whois Nameserver. + */ +public class WhoisNameserver 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. + * + */ + @SerializedName(value = "firstSeenDateTime", alternate = {"FirstSeenDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime firstSeenDateTime; + + /** + * The Last Seen Date Time. + * + */ + @SerializedName(value = "lastSeenDateTime", alternate = {"LastSeenDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime lastSeenDateTime; + + /** + * The Host. + * + */ + @SerializedName(value = "host", alternate = {"Host"}) + @Expose + @Nullable + public Host host; + + + /** + * 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/WhoisRecord.java b/src/main/java/com/microsoft/graph/securitynamespace/models/WhoisRecord.java new file mode 100644 index 00000000000..6ef7f4826ad --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/WhoisRecord.java @@ -0,0 +1,204 @@ +// 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.WhoisContact; +import com.microsoft.graph.security.models.WhoisNameserver; +import com.microsoft.graph.security.models.Host; +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 Whois Record. + */ +public class WhoisRecord extends Entity implements IJsonBackedObject { + + + /** + * The Abuse. + * + */ + @SerializedName(value = "abuse", alternate = {"Abuse"}) + @Expose + @Nullable + public WhoisContact abuse; + + /** + * The Admin. + * + */ + @SerializedName(value = "admin", alternate = {"Admin"}) + @Expose + @Nullable + public WhoisContact admin; + + /** + * The Billing. + * + */ + @SerializedName(value = "billing", alternate = {"Billing"}) + @Expose + @Nullable + public WhoisContact billing; + + /** + * The Domain Status. + * + */ + @SerializedName(value = "domainStatus", alternate = {"DomainStatus"}) + @Expose + @Nullable + public String domainStatus; + + /** + * The Expiration Date Time. + * + */ + @SerializedName(value = "expirationDateTime", alternate = {"ExpirationDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime expirationDateTime; + + /** + * The First Seen Date Time. + * + */ + @SerializedName(value = "firstSeenDateTime", alternate = {"FirstSeenDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime firstSeenDateTime; + + /** + * The Last Seen Date Time. + * + */ + @SerializedName(value = "lastSeenDateTime", alternate = {"LastSeenDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime lastSeenDateTime; + + /** + * The Last Update Date Time. + * + */ + @SerializedName(value = "lastUpdateDateTime", alternate = {"LastUpdateDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime lastUpdateDateTime; + + /** + * The Nameservers. + * + */ + @SerializedName(value = "nameservers", alternate = {"Nameservers"}) + @Expose + @Nullable + public java.util.List nameservers; + + /** + * The Noc. + * + */ + @SerializedName(value = "noc", alternate = {"Noc"}) + @Expose + @Nullable + public WhoisContact noc; + + /** + * The Raw Whois Text. + * + */ + @SerializedName(value = "rawWhoisText", alternate = {"RawWhoisText"}) + @Expose + @Nullable + public String rawWhoisText; + + /** + * The Registrant. + * + */ + @SerializedName(value = "registrant", alternate = {"Registrant"}) + @Expose + @Nullable + public WhoisContact registrant; + + /** + * The Registrar. + * + */ + @SerializedName(value = "registrar", alternate = {"Registrar"}) + @Expose + @Nullable + public WhoisContact registrar; + + /** + * The Registration Date Time. + * + */ + @SerializedName(value = "registrationDateTime", alternate = {"RegistrationDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime registrationDateTime; + + /** + * The Technical. + * + */ + @SerializedName(value = "technical", alternate = {"Technical"}) + @Expose + @Nullable + public WhoisContact technical; + + /** + * The Whois Server. + * + */ + @SerializedName(value = "whoisServer", alternate = {"WhoisServer"}) + @Expose + @Nullable + public String whoisServer; + + /** + * The Zone. + * + */ + @SerializedName(value = "zone", alternate = {"Zone"}) + @Expose + @Nullable + public WhoisContact zone; + + /** + * The Host. + * + */ + @SerializedName(value = "host", alternate = {"Host"}) + @Expose + @Nullable + public Host host; + + + /** + * 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/requests/HostComponentReferenceRequest.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostComponentReferenceRequest.java index 0bf3c38b072..01b13870458 100644 --- a/src/main/java/com/microsoft/graph/securitynamespace/requests/HostComponentReferenceRequest.java +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostComponentReferenceRequest.java @@ -70,7 +70,7 @@ public HostComponentReferenceRequest expand(@Nonnull final String value) { @Nonnull public java.util.concurrent.CompletableFuture putAsync(@Nonnull final HostComponent srcHostComponent) { final JsonObject payload = new JsonObject(); - payload.add("@odata.id", new JsonPrimitive(this.getClient().getServiceRoot() + "/security/threatIntelligence/{id}/hostComponents/" + srcHostComponent.id)); + payload.add("@odata.id", new JsonPrimitive(this.getClient().getServiceRoot() + "/host/{id}/components/" + srcHostComponent.id)); return sendAsync(HttpMethod.PUT, payload); } @@ -84,7 +84,7 @@ public java.util.concurrent.CompletableFuture putAsync(@Nonnull f @Nullable public HostComponent put(@Nonnull final HostComponent srcHostComponent) throws ClientException { final JsonObject payload = new JsonObject(); - payload.add("@odata.id", new JsonPrimitive(this.getClient().getServiceRoot() + "/security/threatIntelligence/{id}/hostComponents/" + srcHostComponent.id)); + payload.add("@odata.id", new JsonPrimitive(this.getClient().getServiceRoot() + "/host/{id}/components/" + srcHostComponent.id)); return send(HttpMethod.PUT, payload); } } diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/HostCookieReferenceRequest.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostCookieReferenceRequest.java index 811bf609e6e..2e46d72d209 100644 --- a/src/main/java/com/microsoft/graph/securitynamespace/requests/HostCookieReferenceRequest.java +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostCookieReferenceRequest.java @@ -70,7 +70,7 @@ public HostCookieReferenceRequest expand(@Nonnull final String value) { @Nonnull public java.util.concurrent.CompletableFuture putAsync(@Nonnull final HostCookie srcHostCookie) { final JsonObject payload = new JsonObject(); - payload.add("@odata.id", new JsonPrimitive(this.getClient().getServiceRoot() + "/security/threatIntelligence/{id}/hostCookies/" + srcHostCookie.id)); + payload.add("@odata.id", new JsonPrimitive(this.getClient().getServiceRoot() + "/host/{id}/cookies/" + srcHostCookie.id)); return sendAsync(HttpMethod.PUT, payload); } @@ -84,7 +84,7 @@ public java.util.concurrent.CompletableFuture putAsync(@Nonnull fina @Nullable public HostCookie put(@Nonnull final HostCookie srcHostCookie) throws ClientException { final JsonObject payload = new JsonObject(); - payload.add("@odata.id", new JsonPrimitive(this.getClient().getServiceRoot() + "/security/threatIntelligence/{id}/hostCookies/" + srcHostCookie.id)); + payload.add("@odata.id", new JsonPrimitive(this.getClient().getServiceRoot() + "/host/{id}/cookies/" + srcHostCookie.id)); return send(HttpMethod.PUT, payload); } } diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/HostPairReferenceRequest.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostPairReferenceRequest.java new file mode 100644 index 00000000000..655782ee879 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostPairReferenceRequest.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.HostPair; +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 Pair Reference Request. + */ +public class HostPairReferenceRequest extends BaseReferenceRequest { + + /** + * The request for the HostPair + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostPairReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, HostPair.class); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public HostPairReferenceRequest 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 HostPairReferenceRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + /** + * Puts the HostPair + * + * @param srcHostPair the HostPair reference to PUT + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final HostPair srcHostPair) { + final JsonObject payload = new JsonObject(); + payload.add("@odata.id", new JsonPrimitive(this.getClient().getServiceRoot() + "/host/{id}/childHostPairs/" + srcHostPair.id)); + return sendAsync(HttpMethod.PUT, payload); + } + + /** + * Puts the HostPair + * + * @param srcHostPair the HostPair reference to PUT + * @return the HostPair + * @throws ClientException an exception occurs if there was an error while the request was sent + */ + @Nullable + public HostPair put(@Nonnull final HostPair srcHostPair) throws ClientException { + final JsonObject payload = new JsonObject(); + payload.add("@odata.id", new JsonPrimitive(this.getClient().getServiceRoot() + "/host/{id}/childHostPairs/" + srcHostPair.id)); + return send(HttpMethod.PUT, payload); + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/HostPairReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostPairReferenceRequestBuilder.java new file mode 100644 index 00000000000..c2436e6e965 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostPairReferenceRequestBuilder.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.HostPair; +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 Pair Reference Request Builder. + */ +public class HostPairReferenceRequestBuilder extends BaseReferenceRequestBuilder { + + /** + * The request builder for the HostPair + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostPairReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, HostPairReferenceRequest.class); + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/HostPairRequest.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostPairRequest.java new file mode 100644 index 00000000000..c95203c3994 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostPairRequest.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.HostPair; +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 Pair Request. + */ +public class HostPairRequest extends BaseRequest { + + /** + * The request for the HostPair + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostPairRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, HostPair.class); + } + + /** + * Gets the HostPair from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the HostPair from the service + * + * @return the HostPair from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public HostPair 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 HostPair delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this HostPair with a source + * + * @param sourceHostPair the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final HostPair sourceHostPair) { + return sendAsync(HttpMethod.PATCH, sourceHostPair); + } + + /** + * Patches this HostPair with a source + * + * @param sourceHostPair the source object with updates + * @return the updated HostPair + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public HostPair patch(@Nonnull final HostPair sourceHostPair) throws ClientException { + return send(HttpMethod.PATCH, sourceHostPair); + } + + /** + * Creates a HostPair with a new object + * + * @param newHostPair the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final HostPair newHostPair) { + return sendAsync(HttpMethod.POST, newHostPair); + } + + /** + * Creates a HostPair with a new object + * + * @param newHostPair the new object to create + * @return the created HostPair + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public HostPair post(@Nonnull final HostPair newHostPair) throws ClientException { + return send(HttpMethod.POST, newHostPair); + } + + /** + * Creates a HostPair with a new object + * + * @param newHostPair the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final HostPair newHostPair) { + return sendAsync(HttpMethod.PUT, newHostPair); + } + + /** + * Creates a HostPair with a new object + * + * @param newHostPair the object to create/update + * @return the created HostPair + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public HostPair put(@Nonnull final HostPair newHostPair) throws ClientException { + return send(HttpMethod.PUT, newHostPair); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public HostPairRequest 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 HostPairRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/HostPairRequestBuilder.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostPairRequestBuilder.java new file mode 100644 index 00000000000..237052a93de --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostPairRequestBuilder.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.HostPair; +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 Pair Request Builder. + */ +public class HostPairRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the HostPair + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostPairRequestBuilder(@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 HostPairRequest instance + */ + @Nonnull + public HostPairRequest 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 HostPairRequest instance + */ + @Nonnull + public HostPairRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.security.requests.HostPairRequest(getRequestUrl(), getClient(), requestOptions); + } + + + + /** + * Gets the request builder for Host + * + * @return the HostWithReferenceRequestBuilder instance + */ + @Nonnull + public com.microsoft.graph.security.requests.HostWithReferenceRequestBuilder childHost() { + return new com.microsoft.graph.security.requests.HostWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("childHost"), getClient(), null); + } + + /** + * Gets the request builder for Host + * + * @return the HostWithReferenceRequestBuilder instance + */ + @Nonnull + public com.microsoft.graph.security.requests.HostWithReferenceRequestBuilder parentHost() { + return new com.microsoft.graph.security.requests.HostWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("parentHost"), getClient(), null); + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/HostPairWithReferenceRequest.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostPairWithReferenceRequest.java new file mode 100644 index 00000000000..cc2e502bbb0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostPairWithReferenceRequest.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.HostPair; +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 Pair With Reference Request. + */ +public class HostPairWithReferenceRequest extends BaseWithReferenceRequest { + + /** + * The request for the HostPair + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostPairWithReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, HostPair.class); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public HostPairWithReferenceRequest 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 HostPairWithReferenceRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/HostPairWithReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostPairWithReferenceRequestBuilder.java new file mode 100644 index 00000000000..9477631a3d4 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostPairWithReferenceRequestBuilder.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.HostPair; +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 Pair With Reference Request Builder. + */ +public class HostPairWithReferenceRequestBuilder extends BaseWithReferenceRequestBuilder { + + /** + * The request builder for the HostPair + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostPairWithReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, HostPairWithReferenceRequest.class, HostPairReferenceRequestBuilder.class); + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/HostReferenceRequest.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostReferenceRequest.java index 0d1209b8eb6..e4248e41fdd 100644 --- a/src/main/java/com/microsoft/graph/securitynamespace/requests/HostReferenceRequest.java +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostReferenceRequest.java @@ -61,4 +61,30 @@ public HostReferenceRequest expand(@Nonnull final String value) { addExpandOption(value); return this; } + /** + * Puts the Host + * + * @param srcHost the Host reference to PUT + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final Host srcHost) { + final JsonObject payload = new JsonObject(); + payload.add("@odata.id", new JsonPrimitive(this.getClient().getServiceRoot() + "/security/threatIntelligence/{id}/hosts/" + srcHost.id)); + return sendAsync(HttpMethod.PUT, payload); + } + + /** + * Puts the Host + * + * @param srcHost the Host reference to PUT + * @return the Host + * @throws ClientException an exception occurs if there was an error while the request was sent + */ + @Nullable + public Host put(@Nonnull final Host srcHost) throws ClientException { + final JsonObject payload = new JsonObject(); + payload.add("@odata.id", new JsonPrimitive(this.getClient().getServiceRoot() + "/security/threatIntelligence/{id}/hosts/" + srcHost.id)); + return send(HttpMethod.PUT, payload); + } } 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 e6075ecf165..b56f4ff6c84 100644 --- a/src/main/java/com/microsoft/graph/securitynamespace/requests/HostRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostRequestBuilder.java @@ -56,6 +56,26 @@ public HostRequest buildRequest(@Nonnull final java.util.List { + + /** + * The request for the HostSslCertificate + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostSslCertificateReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, HostSslCertificate.class); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public HostSslCertificateReferenceRequest 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 HostSslCertificateReferenceRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + /** + * Puts the HostSslCertificate + * + * @param srcHostSslCertificate the HostSslCertificate reference to PUT + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final HostSslCertificate srcHostSslCertificate) { + final JsonObject payload = new JsonObject(); + payload.add("@odata.id", new JsonPrimitive(this.getClient().getServiceRoot() + "/host/{id}/sslCertificates/" + srcHostSslCertificate.id)); + return sendAsync(HttpMethod.PUT, payload); + } + + /** + * Puts the HostSslCertificate + * + * @param srcHostSslCertificate the HostSslCertificate reference to PUT + * @return the HostSslCertificate + * @throws ClientException an exception occurs if there was an error while the request was sent + */ + @Nullable + public HostSslCertificate put(@Nonnull final HostSslCertificate srcHostSslCertificate) throws ClientException { + final JsonObject payload = new JsonObject(); + payload.add("@odata.id", new JsonPrimitive(this.getClient().getServiceRoot() + "/host/{id}/sslCertificates/" + srcHostSslCertificate.id)); + return send(HttpMethod.PUT, payload); + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/HostSslCertificateReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostSslCertificateReferenceRequestBuilder.java new file mode 100644 index 00000000000..c61c1d9e487 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostSslCertificateReferenceRequestBuilder.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.HostSslCertificate; +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 Ssl Certificate Reference Request Builder. + */ +public class HostSslCertificateReferenceRequestBuilder extends BaseReferenceRequestBuilder { + + /** + * The request builder for the HostSslCertificate + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostSslCertificateReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, HostSslCertificateReferenceRequest.class); + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/HostSslCertificateRequest.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostSslCertificateRequest.java new file mode 100644 index 00000000000..02786f02422 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostSslCertificateRequest.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.HostSslCertificate; +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 Ssl Certificate Request. + */ +public class HostSslCertificateRequest extends BaseRequest { + + /** + * The request for the HostSslCertificate + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostSslCertificateRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, HostSslCertificate.class); + } + + /** + * Gets the HostSslCertificate from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the HostSslCertificate from the service + * + * @return the HostSslCertificate from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public HostSslCertificate 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 HostSslCertificate delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this HostSslCertificate with a source + * + * @param sourceHostSslCertificate the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final HostSslCertificate sourceHostSslCertificate) { + return sendAsync(HttpMethod.PATCH, sourceHostSslCertificate); + } + + /** + * Patches this HostSslCertificate with a source + * + * @param sourceHostSslCertificate the source object with updates + * @return the updated HostSslCertificate + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public HostSslCertificate patch(@Nonnull final HostSslCertificate sourceHostSslCertificate) throws ClientException { + return send(HttpMethod.PATCH, sourceHostSslCertificate); + } + + /** + * Creates a HostSslCertificate with a new object + * + * @param newHostSslCertificate the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final HostSslCertificate newHostSslCertificate) { + return sendAsync(HttpMethod.POST, newHostSslCertificate); + } + + /** + * Creates a HostSslCertificate with a new object + * + * @param newHostSslCertificate the new object to create + * @return the created HostSslCertificate + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public HostSslCertificate post(@Nonnull final HostSslCertificate newHostSslCertificate) throws ClientException { + return send(HttpMethod.POST, newHostSslCertificate); + } + + /** + * Creates a HostSslCertificate with a new object + * + * @param newHostSslCertificate the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final HostSslCertificate newHostSslCertificate) { + return sendAsync(HttpMethod.PUT, newHostSslCertificate); + } + + /** + * Creates a HostSslCertificate with a new object + * + * @param newHostSslCertificate the object to create/update + * @return the created HostSslCertificate + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public HostSslCertificate put(@Nonnull final HostSslCertificate newHostSslCertificate) throws ClientException { + return send(HttpMethod.PUT, newHostSslCertificate); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public HostSslCertificateRequest 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 HostSslCertificateRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/HostSslCertificateRequestBuilder.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostSslCertificateRequestBuilder.java new file mode 100644 index 00000000000..34b5d71b515 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostSslCertificateRequestBuilder.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.HostSslCertificate; +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 Ssl Certificate Request Builder. + */ +public class HostSslCertificateRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the HostSslCertificate + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostSslCertificateRequestBuilder(@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 HostSslCertificateRequest instance + */ + @Nonnull + public HostSslCertificateRequest 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 HostSslCertificateRequest instance + */ + @Nonnull + public HostSslCertificateRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.security.requests.HostSslCertificateRequest(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 sslCertificate() { + return new com.microsoft.graph.security.requests.SslCertificateWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("sslCertificate"), getClient(), null); + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/HostSslCertificateWithReferenceRequest.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostSslCertificateWithReferenceRequest.java new file mode 100644 index 00000000000..8f5791351d6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostSslCertificateWithReferenceRequest.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.HostSslCertificate; +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 Ssl Certificate With Reference Request. + */ +public class HostSslCertificateWithReferenceRequest extends BaseWithReferenceRequest { + + /** + * The request for the HostSslCertificate + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostSslCertificateWithReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, HostSslCertificate.class); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public HostSslCertificateWithReferenceRequest 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 HostSslCertificateWithReferenceRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/HostSslCertificateWithReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostSslCertificateWithReferenceRequestBuilder.java new file mode 100644 index 00000000000..daf3516e3d1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostSslCertificateWithReferenceRequestBuilder.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.HostSslCertificate; +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 Ssl Certificate With Reference Request Builder. + */ +public class HostSslCertificateWithReferenceRequestBuilder extends BaseWithReferenceRequestBuilder { + + /** + * The request builder for the HostSslCertificate + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostSslCertificateWithReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, HostSslCertificateWithReferenceRequest.class, HostSslCertificateReferenceRequestBuilder.class); + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/HostTrackerReferenceRequest.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostTrackerReferenceRequest.java index 568a1c9f9df..c202fa7898a 100644 --- a/src/main/java/com/microsoft/graph/securitynamespace/requests/HostTrackerReferenceRequest.java +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostTrackerReferenceRequest.java @@ -70,7 +70,7 @@ public HostTrackerReferenceRequest expand(@Nonnull final String value) { @Nonnull public java.util.concurrent.CompletableFuture putAsync(@Nonnull final HostTracker srcHostTracker) { final JsonObject payload = new JsonObject(); - payload.add("@odata.id", new JsonPrimitive(this.getClient().getServiceRoot() + "/security/threatIntelligence/{id}/hostTrackers/" + srcHostTracker.id)); + payload.add("@odata.id", new JsonPrimitive(this.getClient().getServiceRoot() + "/host/{id}/trackers/" + srcHostTracker.id)); return sendAsync(HttpMethod.PUT, payload); } @@ -84,7 +84,7 @@ public java.util.concurrent.CompletableFuture putAsync(@Nonnull fin @Nullable public HostTracker put(@Nonnull final HostTracker srcHostTracker) throws ClientException { final JsonObject payload = new JsonObject(); - payload.add("@odata.id", new JsonPrimitive(this.getClient().getServiceRoot() + "/security/threatIntelligence/{id}/hostTrackers/" + srcHostTracker.id)); + payload.add("@odata.id", new JsonPrimitive(this.getClient().getServiceRoot() + "/host/{id}/trackers/" + srcHostTracker.id)); return send(HttpMethod.PUT, payload); } } 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 a0d1af1af3d..3ead90c1ec3 100644 --- a/src/main/java/com/microsoft/graph/securitynamespace/requests/HostnameRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostnameRequestBuilder.java @@ -56,6 +56,26 @@ public HostnameRequest buildRequest(@Nonnull final java.util.List putAsync(@Nonnull final PassiveDnsRecord srcPassiveDnsRecord) { final JsonObject payload = new JsonObject(); - payload.add("@odata.id", new JsonPrimitive(this.getClient().getServiceRoot() + "/security/threatIntelligence/{id}/passiveDnsRecords/" + srcPassiveDnsRecord.id)); + payload.add("@odata.id", new JsonPrimitive(this.getClient().getServiceRoot() + "/host/{id}/passiveDns/" + srcPassiveDnsRecord.id)); return sendAsync(HttpMethod.PUT, payload); } @@ -84,7 +84,7 @@ public java.util.concurrent.CompletableFuture putAsync(@Nonnul @Nullable public PassiveDnsRecord put(@Nonnull final PassiveDnsRecord srcPassiveDnsRecord) throws ClientException { final JsonObject payload = new JsonObject(); - payload.add("@odata.id", new JsonPrimitive(this.getClient().getServiceRoot() + "/security/threatIntelligence/{id}/passiveDnsRecords/" + srcPassiveDnsRecord.id)); + payload.add("@odata.id", new JsonPrimitive(this.getClient().getServiceRoot() + "/host/{id}/passiveDns/" + srcPassiveDnsRecord.id)); return send(HttpMethod.PUT, payload); } } diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/SslCertificateReferenceRequest.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/SslCertificateReferenceRequest.java new file mode 100644 index 00000000000..c06909caf7b --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/SslCertificateReferenceRequest.java @@ -0,0 +1,64 @@ +// 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.SslCertificate; +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 Ssl Certificate Reference Request. + */ +public class SslCertificateReferenceRequest extends BaseReferenceRequest { + + /** + * The request for the SslCertificate + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public SslCertificateReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, SslCertificate.class); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public SslCertificateReferenceRequest 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 SslCertificateReferenceRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/SslCertificateReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/SslCertificateReferenceRequestBuilder.java new file mode 100644 index 00000000000..3d403095938 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/SslCertificateReferenceRequestBuilder.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.SslCertificate; +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 Ssl Certificate Reference Request Builder. + */ +public class SslCertificateReferenceRequestBuilder extends BaseReferenceRequestBuilder { + + /** + * The request builder for the SslCertificate + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public SslCertificateReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, SslCertificateReferenceRequest.class); + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/SslCertificateRequest.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/SslCertificateRequest.java new file mode 100644 index 00000000000..f049ec24997 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/SslCertificateRequest.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.SslCertificate; +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 Ssl Certificate Request. + */ +public class SslCertificateRequest extends BaseRequest { + + /** + * The request for the SslCertificate + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public SslCertificateRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, SslCertificate.class); + } + + /** + * Gets the SslCertificate from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the SslCertificate from the service + * + * @return the SslCertificate from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public SslCertificate 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 SslCertificate delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this SslCertificate with a source + * + * @param sourceSslCertificate the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final SslCertificate sourceSslCertificate) { + return sendAsync(HttpMethod.PATCH, sourceSslCertificate); + } + + /** + * Patches this SslCertificate with a source + * + * @param sourceSslCertificate the source object with updates + * @return the updated SslCertificate + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public SslCertificate patch(@Nonnull final SslCertificate sourceSslCertificate) throws ClientException { + return send(HttpMethod.PATCH, sourceSslCertificate); + } + + /** + * Creates a SslCertificate with a new object + * + * @param newSslCertificate the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final SslCertificate newSslCertificate) { + return sendAsync(HttpMethod.POST, newSslCertificate); + } + + /** + * Creates a SslCertificate with a new object + * + * @param newSslCertificate the new object to create + * @return the created SslCertificate + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public SslCertificate post(@Nonnull final SslCertificate newSslCertificate) throws ClientException { + return send(HttpMethod.POST, newSslCertificate); + } + + /** + * Creates a SslCertificate with a new object + * + * @param newSslCertificate the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final SslCertificate newSslCertificate) { + return sendAsync(HttpMethod.PUT, newSslCertificate); + } + + /** + * Creates a SslCertificate with a new object + * + * @param newSslCertificate the object to create/update + * @return the created SslCertificate + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public SslCertificate put(@Nonnull final SslCertificate newSslCertificate) throws ClientException { + return send(HttpMethod.PUT, newSslCertificate); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public SslCertificateRequest 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 SslCertificateRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/SslCertificateRequestBuilder.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/SslCertificateRequestBuilder.java new file mode 100644 index 00000000000..70745b70d61 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/SslCertificateRequestBuilder.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.SslCertificate; +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 Ssl Certificate Request Builder. + */ +public class SslCertificateRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the SslCertificate + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public SslCertificateRequestBuilder(@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 SslCertificateRequest instance + */ + @Nonnull + public SslCertificateRequest 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 SslCertificateRequest instance + */ + @Nonnull + public SslCertificateRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.security.requests.SslCertificateRequest(getRequestUrl(), getClient(), requestOptions); + } + + + /** + * Gets a request builder for the Host collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.security.requests.HostCollectionWithReferencesRequestBuilder relatedHosts() { + return new com.microsoft.graph.security.requests.HostCollectionWithReferencesRequestBuilder(getRequestUrlWithAdditionalSegment("relatedHosts"), getClient(), null); + } + + /** + * Gets a request builder for the Host item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.security.requests.HostWithReferenceRequestBuilder relatedHosts(@Nonnull final String id) { + return new com.microsoft.graph.security.requests.HostWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("relatedHosts") + "/" + id, getClient(), null); + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/SslCertificateWithReferenceRequest.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/SslCertificateWithReferenceRequest.java new file mode 100644 index 00000000000..bf2c53da4be --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/SslCertificateWithReferenceRequest.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.SslCertificate; +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 Ssl Certificate With Reference Request. + */ +public class SslCertificateWithReferenceRequest extends BaseWithReferenceRequest { + + /** + * The request for the SslCertificate + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public SslCertificateWithReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, SslCertificate.class); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public SslCertificateWithReferenceRequest 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 SslCertificateWithReferenceRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/SslCertificateWithReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/SslCertificateWithReferenceRequestBuilder.java new file mode 100644 index 00000000000..29000a96421 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/SslCertificateWithReferenceRequestBuilder.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.SslCertificate; +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 Ssl Certificate With Reference Request Builder. + */ +public class SslCertificateWithReferenceRequestBuilder extends BaseWithReferenceRequestBuilder { + + /** + * The request builder for the SslCertificate + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public SslCertificateWithReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, SslCertificateWithReferenceRequest.class, SslCertificateReferenceRequestBuilder.class); + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/SubdomainReferenceRequest.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/SubdomainReferenceRequest.java index 8485c9c15d1..c88f75acbd7 100644 --- a/src/main/java/com/microsoft/graph/securitynamespace/requests/SubdomainReferenceRequest.java +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/SubdomainReferenceRequest.java @@ -70,7 +70,7 @@ public SubdomainReferenceRequest expand(@Nonnull final String value) { @Nonnull public java.util.concurrent.CompletableFuture putAsync(@Nonnull final Subdomain srcSubdomain) { final JsonObject payload = new JsonObject(); - payload.add("@odata.id", new JsonPrimitive(this.getClient().getServiceRoot() + "/security/threatIntelligence/{id}/subdomains/" + srcSubdomain.id)); + payload.add("@odata.id", new JsonPrimitive(this.getClient().getServiceRoot() + "/host/{id}/subdomains/" + srcSubdomain.id)); return sendAsync(HttpMethod.PUT, payload); } @@ -84,7 +84,7 @@ public java.util.concurrent.CompletableFuture putAsync(@Nonnull final @Nullable public Subdomain put(@Nonnull final Subdomain srcSubdomain) throws ClientException { final JsonObject payload = new JsonObject(); - payload.add("@odata.id", new JsonPrimitive(this.getClient().getServiceRoot() + "/security/threatIntelligence/{id}/subdomains/" + srcSubdomain.id)); + payload.add("@odata.id", new JsonPrimitive(this.getClient().getServiceRoot() + "/host/{id}/subdomains/" + srcSubdomain.id)); return send(HttpMethod.PUT, payload); } } 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 9398b5b6817..99331528c04 100644 --- a/src/main/java/com/microsoft/graph/securitynamespace/requests/ThreatIntelligenceRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/ThreatIntelligenceRequestBuilder.java @@ -136,6 +136,26 @@ public com.microsoft.graph.security.requests.HostCookieCollectionRequestBuilder public com.microsoft.graph.security.requests.HostCookieRequestBuilder hostCookies(@Nonnull final String id) { return new com.microsoft.graph.security.requests.HostCookieRequestBuilder(getRequestUrlWithAdditionalSegment("hostCookies") + "/" + id, getClient(), null); } + /** + * Gets a request builder for the HostPair collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.security.requests.HostPairCollectionRequestBuilder hostPairs() { + return new com.microsoft.graph.security.requests.HostPairCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("hostPairs"), getClient(), null); + } + + /** + * Gets a request builder for the HostPair item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + 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 Host collection * @@ -156,6 +176,26 @@ public com.microsoft.graph.security.requests.HostCollectionRequestBuilder hosts( public com.microsoft.graph.security.requests.HostRequestBuilder hosts(@Nonnull final String id) { return new com.microsoft.graph.security.requests.HostRequestBuilder(getRequestUrlWithAdditionalSegment("hosts") + "/" + id, getClient(), null); } + /** + * Gets a request builder for the HostSslCertificate collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.security.requests.HostSslCertificateCollectionRequestBuilder hostSslCertificates() { + return new com.microsoft.graph.security.requests.HostSslCertificateCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("hostSslCertificates"), getClient(), null); + } + + /** + * Gets a request builder for the HostSslCertificate item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.security.requests.HostSslCertificateRequestBuilder hostSslCertificates(@Nonnull final String id) { + return new com.microsoft.graph.security.requests.HostSslCertificateRequestBuilder(getRequestUrlWithAdditionalSegment("hostSslCertificates") + "/" + id, getClient(), null); + } /** * Gets a request builder for the HostTracker collection * @@ -236,6 +276,26 @@ public com.microsoft.graph.security.requests.PassiveDnsRecordCollectionRequestBu public com.microsoft.graph.security.requests.PassiveDnsRecordRequestBuilder passiveDnsRecords(@Nonnull final String id) { return new com.microsoft.graph.security.requests.PassiveDnsRecordRequestBuilder(getRequestUrlWithAdditionalSegment("passiveDnsRecords") + "/" + id, getClient(), null); } + /** + * Gets a request builder for the SslCertificate collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.security.requests.SslCertificateCollectionRequestBuilder sslCertificates() { + return new com.microsoft.graph.security.requests.SslCertificateCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("sslCertificates"), getClient(), null); + } + + /** + * Gets a request builder for the SslCertificate item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.security.requests.SslCertificateRequestBuilder sslCertificates(@Nonnull final String id) { + return new com.microsoft.graph.security.requests.SslCertificateRequestBuilder(getRequestUrlWithAdditionalSegment("sslCertificates") + "/" + id, getClient(), null); + } /** * Gets a request builder for the Subdomain collection * @@ -276,4 +336,24 @@ public com.microsoft.graph.security.requests.VulnerabilityCollectionRequestBuild public com.microsoft.graph.security.requests.VulnerabilityRequestBuilder vulnerabilities(@Nonnull final String id) { return new com.microsoft.graph.security.requests.VulnerabilityRequestBuilder(getRequestUrlWithAdditionalSegment("vulnerabilities") + "/" + id, getClient(), null); } + /** + * Gets a request builder for the WhoisRecord collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.security.requests.WhoisRecordCollectionRequestBuilder whoisRecords() { + return new com.microsoft.graph.security.requests.WhoisRecordCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("whoisRecords"), getClient(), null); + } + + /** + * Gets a request builder for the WhoisRecord item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.security.requests.WhoisRecordRequestBuilder whoisRecords(@Nonnull final String id) { + return new com.microsoft.graph.security.requests.WhoisRecordRequestBuilder(getRequestUrlWithAdditionalSegment("whoisRecords") + "/" + id, getClient(), null); + } } diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/WhoisRecordReferenceRequest.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/WhoisRecordReferenceRequest.java new file mode 100644 index 00000000000..87f79b02433 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/WhoisRecordReferenceRequest.java @@ -0,0 +1,64 @@ +// 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.WhoisRecord; +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 Whois Record Reference Request. + */ +public class WhoisRecordReferenceRequest extends BaseReferenceRequest { + + /** + * The request for the WhoisRecord + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public WhoisRecordReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, WhoisRecord.class); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public WhoisRecordReferenceRequest 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 WhoisRecordReferenceRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/WhoisRecordReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/WhoisRecordReferenceRequestBuilder.java new file mode 100644 index 00000000000..0679b1b070f --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/WhoisRecordReferenceRequestBuilder.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.WhoisRecord; +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 Whois Record Reference Request Builder. + */ +public class WhoisRecordReferenceRequestBuilder extends BaseReferenceRequestBuilder { + + /** + * The request builder for the WhoisRecord + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public WhoisRecordReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, WhoisRecordReferenceRequest.class); + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/WhoisRecordRequest.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/WhoisRecordRequest.java new file mode 100644 index 00000000000..4183d5f8f7f --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/WhoisRecordRequest.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.WhoisRecord; +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 Whois Record Request. + */ +public class WhoisRecordRequest extends BaseRequest { + + /** + * The request for the WhoisRecord + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public WhoisRecordRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, WhoisRecord.class); + } + + /** + * Gets the WhoisRecord from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the WhoisRecord from the service + * + * @return the WhoisRecord from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public WhoisRecord 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 WhoisRecord delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this WhoisRecord with a source + * + * @param sourceWhoisRecord the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final WhoisRecord sourceWhoisRecord) { + return sendAsync(HttpMethod.PATCH, sourceWhoisRecord); + } + + /** + * Patches this WhoisRecord with a source + * + * @param sourceWhoisRecord the source object with updates + * @return the updated WhoisRecord + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public WhoisRecord patch(@Nonnull final WhoisRecord sourceWhoisRecord) throws ClientException { + return send(HttpMethod.PATCH, sourceWhoisRecord); + } + + /** + * Creates a WhoisRecord with a new object + * + * @param newWhoisRecord the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final WhoisRecord newWhoisRecord) { + return sendAsync(HttpMethod.POST, newWhoisRecord); + } + + /** + * Creates a WhoisRecord with a new object + * + * @param newWhoisRecord the new object to create + * @return the created WhoisRecord + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public WhoisRecord post(@Nonnull final WhoisRecord newWhoisRecord) throws ClientException { + return send(HttpMethod.POST, newWhoisRecord); + } + + /** + * Creates a WhoisRecord with a new object + * + * @param newWhoisRecord the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final WhoisRecord newWhoisRecord) { + return sendAsync(HttpMethod.PUT, newWhoisRecord); + } + + /** + * Creates a WhoisRecord with a new object + * + * @param newWhoisRecord the object to create/update + * @return the created WhoisRecord + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public WhoisRecord put(@Nonnull final WhoisRecord newWhoisRecord) throws ClientException { + return send(HttpMethod.PUT, newWhoisRecord); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public WhoisRecordRequest 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 WhoisRecordRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/WhoisRecordRequestBuilder.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/WhoisRecordRequestBuilder.java new file mode 100644 index 00000000000..7e3c88c969d --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/WhoisRecordRequestBuilder.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.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.WhoisRecord; +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 Whois Record Request Builder. + */ +public class WhoisRecordRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the WhoisRecord + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public WhoisRecordRequestBuilder(@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 WhoisRecordRequest instance + */ + @Nonnull + public WhoisRecordRequest 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 WhoisRecordRequest instance + */ + @Nonnull + public WhoisRecordRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.security.requests.WhoisRecordRequest(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); + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/WhoisRecordWithReferenceRequest.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/WhoisRecordWithReferenceRequest.java new file mode 100644 index 00000000000..2e5bfb94eba --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/WhoisRecordWithReferenceRequest.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.WhoisRecord; +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 Whois Record With Reference Request. + */ +public class WhoisRecordWithReferenceRequest extends BaseWithReferenceRequest { + + /** + * The request for the WhoisRecord + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public WhoisRecordWithReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, WhoisRecord.class); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public WhoisRecordWithReferenceRequest 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 WhoisRecordWithReferenceRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/WhoisRecordWithReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/WhoisRecordWithReferenceRequestBuilder.java new file mode 100644 index 00000000000..3ca26d88ace --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/WhoisRecordWithReferenceRequestBuilder.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.WhoisRecord; +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 Whois Record With Reference Request Builder. + */ +public class WhoisRecordWithReferenceRequestBuilder extends BaseWithReferenceRequestBuilder { + + /** + * The request builder for the WhoisRecord + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public WhoisRecordWithReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, WhoisRecordWithReferenceRequest.class, WhoisRecordReferenceRequestBuilder.class); + } +}