diff --git a/CHANGELOG.md b/CHANGELOG.md index 9bcb3fdcb01..db5367ee253 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,28 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed +## [5.73.0] - 2023-10-06 + +### Added + +- AccountTargetContent, AccountTargetContentType, AddressBookAccountTargetContent, IncludeAllAccountTargetContent models and derived requests. +- AttackSimulationOperation, AttackSimulationOperationType, AttackSimulationRoot, SimulationContentSource, SimulationContentStatus, SimulationNotification, TargettedUserType models and derived requests. +- BaseEndUserNotification, EndUserNotification, EndUserNotificationDetail, EndUserNotificationPreference, EndUserNotificationSetting, EndUserNotificationSettingType, EndUserNotificationType, NotificationDeliveryFrequency, NotificationDeliveryPreference, PositiveReinforcementNotification, TrainingReminderNotification models and derived requests. +- CallTranscript, CallTranscriptContentStream, CallTranscriptMetadataContentStream models and derived requests. +- CoachmarkLocation, CoachmarkLocationType, PayloadCoachmark models. +- CustomTrainingSetting, MicrosoftCustomTrainingSetting, MicrosoftManagedTrainingSetting, MicrosoftTrainingAssignmentMapping, NoTrainingNotificationSetting, NoTrainingSetting, Training, TrainingAssignedTo, TrainingAvailabilityStatus, TrainingCompletionDuration, TrainingLanguageDetail, TrainingNotificationSetting, TrainingSetting, TrainingSettingType, TrainingType models and derived requests. +- EmailPayloadDetail model. +- LandingPage, LandingPageDetail, LoginPage models and derived requests. +- OAuthAppScope, OAuthConsentAppDetail models. +- Payload, PayloadBrand, PayloadComplexity, PayloadDetail, PayloadIndustry, PayloadTheme models and derived requests. +- HostPair, HostSslCertificate, HostSslCertificatePort, SslCertificate, SslCertificateEntity, Subdomain models and derived requests. +- WhoisBaseRecord, WhoisContact, WhoisDomainStatus, WhoisHistoryRecord, WhoisNameserver, WhoisRecord models and derived requests. + +### Changed + +- Label, OnlineMeeting, Simulation, ThreatIntelligence models and derived requests. +- Host, Hostname, IpAddress, AttackSimulationRoot, OnlineMeeting, Simulation, ThreatIntelligence request builders. + ## [5.72.0] - 2023-09-29 ### Added diff --git a/README.md b/README.md index a6e1fbddbf8..104cb632cc9 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ repositories { dependencies { // Include the sdk as a dependency - implementation 'com.microsoft.graph:microsoft-graph:5.72.0' + implementation 'com.microsoft.graph:microsoft-graph:5.73.0' // Uncomment the line below if you are building an android application //implementation 'com.google.guava:guava:30.1.1-android' // This dependency is only needed if you are using the TokenCrendentialAuthProvider @@ -36,7 +36,7 @@ Add the dependency in `dependencies` in pom.xml com.microsoft.graph microsoft-graph - 5.72.0 + 5.73.0 @@ -203,5 +203,6 @@ Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the [MI + diff --git a/gradle.properties b/gradle.properties index a2a9f149310..2626ef38c6e 100644 --- a/gradle.properties +++ b/gradle.properties @@ -26,7 +26,7 @@ org.gradle.caching=true mavenGroupId = com.microsoft.graph mavenArtifactId = microsoft-graph mavenMajorVersion = 5 -mavenMinorVersion = 72 +mavenMinorVersion = 73 mavenPatchVersion = 0 mavenArtifactSuffix = @@ -126,5 +126,6 @@ mavenCentralPublishingEnabled=false + diff --git a/src/main/java/com/microsoft/graph/externalconnectors/models/Label.java b/src/main/java/com/microsoft/graph/externalconnectors/models/Label.java index 37d10803768..d4f1e93313c 100644 --- a/src/main/java/com/microsoft/graph/externalconnectors/models/Label.java +++ b/src/main/java/com/microsoft/graph/externalconnectors/models/Label.java @@ -52,6 +52,10 @@ public enum Label */ UNKNOWN_FUTURE_VALUE, /** + * icon Url + */ + ICON_URL, + /** * For Label values that were not expected from the service */ UNEXPECTED_VALUE diff --git a/src/main/java/com/microsoft/graph/externalconnectors/models/Property.java b/src/main/java/com/microsoft/graph/externalconnectors/models/Property.java index 6c4f8b47bce..1b673777763 100644 --- a/src/main/java/com/microsoft/graph/externalconnectors/models/Property.java +++ b/src/main/java/com/microsoft/graph/externalconnectors/models/Property.java @@ -42,7 +42,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Aliases. - * A set of aliases or a friendly names for the property. Maximum 32 characters. Only alphanumeric characters allowed. For example, each string may not contain control characters, whitespace, or any of the following: :, ;, ,, (, ), [, ], {, }, %, $, +, !, *, =, &, ?, @, #, /, ~, ', ', <, >, `, ^. Optional. + * A set of aliases or a friendly name for the property. Maximum 32 characters. Only alphanumeric characters allowed. For example, each string may not contain control characters, whitespace, or any of the following: :, ;, ,, (, ), [, ], {, }, %, $, +, !, *, =, &, ?, @, #, /, ~, ', ', <, >, `, ^. Optional. */ @SerializedName(value = "aliases", alternate = {"Aliases"}) @Expose @@ -78,7 +78,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Is Searchable. - * Specifies if the property is searchable. Only properties of type String or StringCollection can be searchable. Non-searchable properties are not added to the search index. Optional. + * Specifies if the property is searchable. Only properties of type String or StringCollection can be searchable. Nonsearchable properties aren't added to the search index. Optional. */ @SerializedName(value = "isSearchable", alternate = {"IsSearchable"}) @Expose @@ -87,7 +87,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Labels. - * Specifies one or more well-known tags added against a property. Labels help Microsoft Search understand the semantics of the data in the connection. Adding appropriate labels would result in an enhanced search experience (e.g. better relevance). The possible values are: title, url, createdBy, lastModifiedBy, authors, createdDateTime, lastModifiedDateTime, fileName, fileExtension, iconUrl, unknownFutureValue. Optional. + * Specifies one or more well-known tags added against a property. Labels help Microsoft Search understand the semantics of the data in the connection. Adding appropriate labels would result in an enhanced search experience (for example, better relevance). The possible values are: title, url, createdBy, lastModifiedBy, authors, createdDateTime, lastModifiedDateTime, fileName, fileExtension, iconUrl, unknownFutureValue. Optional. */ @SerializedName(value = "labels", alternate = {"Labels"}) @Expose diff --git a/src/main/java/com/microsoft/graph/info/Constants.java b/src/main/java/com/microsoft/graph/info/Constants.java index 9bde02aba61..2a735cae4c8 100644 --- a/src/main/java/com/microsoft/graph/info/Constants.java +++ b/src/main/java/com/microsoft/graph/info/Constants.java @@ -18,7 +18,7 @@ private Constants() { /** The client secret to use for unit testing */ public static final String CLIENTSECRET = "clientsecret"; /** The SDK version */ - public static final String VERSION_NAME = "5.72.0"; + public static final String VERSION_NAME = "5.73.0"; } @@ -103,5 +103,6 @@ private Constants() { + diff --git a/src/main/java/com/microsoft/graph/models/AccessPackageAssignmentApprovalSettings.java b/src/main/java/com/microsoft/graph/models/AccessPackageAssignmentApprovalSettings.java index f4e1b216096..65b041b9a59 100644 --- a/src/main/java/com/microsoft/graph/models/AccessPackageAssignmentApprovalSettings.java +++ b/src/main/java/com/microsoft/graph/models/AccessPackageAssignmentApprovalSettings.java @@ -41,7 +41,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Is Approval Required For Add. - * If false, then approval is not required for new requests in this policy. + * If false, then approval isn't required for new requests in this policy. */ @SerializedName(value = "isApprovalRequiredForAdd", alternate = {"IsApprovalRequiredForAdd"}) @Expose @@ -50,7 +50,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Is Approval Required For Update. - * If false, then approval is not required for updates to requests in this policy. + * If false, then approval isn't required for updates to requests in this policy. */ @SerializedName(value = "isApprovalRequiredForUpdate", alternate = {"IsApprovalRequiredForUpdate"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/AccessPackageAssignmentRequest.java b/src/main/java/com/microsoft/graph/models/AccessPackageAssignmentRequest.java index aa4b610913f..ad5252aec59 100644 --- a/src/main/java/com/microsoft/graph/models/AccessPackageAssignmentRequest.java +++ b/src/main/java/com/microsoft/graph/models/AccessPackageAssignmentRequest.java @@ -72,7 +72,7 @@ public class AccessPackageAssignmentRequest extends Entity implements IJsonBacke /** * The Request Type. - * The type of the request. The possible values are: notSpecified, userAdd, UserExtend, userUpdate, userRemove, adminAdd, adminUpdate, adminRemove, systemAdd, systemUpdate, systemRemove, onBehalfAdd (not supported), unknownFutureValue. A request from the user themselves would have requestType of userAdd, userUpdate or userRemove. This property cannot be changed once set. + * The type of the request. The possible values are: notSpecified, userAdd, UserExtend, userUpdate, userRemove, adminAdd, adminUpdate, adminRemove, systemAdd, systemUpdate, systemRemove, onBehalfAdd (not supported), unknownFutureValue. A request from the user themselves would have requestType of userAdd, userUpdate or userRemove. This property can't be changed once set. */ @SerializedName(value = "requestType", alternate = {"RequestType"}) @Expose @@ -81,7 +81,7 @@ public class AccessPackageAssignmentRequest extends Entity implements IJsonBacke /** * The Schedule. - * The range of dates that access is to be assigned to the requestor. This property cannot be changed once set. + * The range of dates that access is to be assigned to the requestor. This property can't be changed once set. */ @SerializedName(value = "schedule", alternate = {"Schedule"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/AccessPackageAssignmentRequestCallbackData.java b/src/main/java/com/microsoft/graph/models/AccessPackageAssignmentRequestCallbackData.java index 794ba49636b..d85c4107e13 100644 --- a/src/main/java/com/microsoft/graph/models/AccessPackageAssignmentRequestCallbackData.java +++ b/src/main/java/com/microsoft/graph/models/AccessPackageAssignmentRequestCallbackData.java @@ -46,7 +46,7 @@ public class AccessPackageAssignmentRequestCallbackData extends CustomExtensionD /** * The Stage. - * Indicates the stage at which the custom callout extension will be executed. The possible values are: assignmentRequestCreated, assignmentRequestApproved, assignmentRequestGranted, assignmentRequestRemoved, assignmentFourteenDaysBeforeExpiration, assignmentOneDayBeforeExpiration, unknownFutureValue. + * Indicates the stage at which the custom callout extension is executed. The possible values are: assignmentRequestCreated, assignmentRequestApproved, assignmentRequestGranted, assignmentRequestRemoved, assignmentFourteenDaysBeforeExpiration, assignmentOneDayBeforeExpiration, unknownFutureValue. */ @SerializedName(value = "stage", alternate = {"Stage"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/AccessPackageAssignmentRequestorSettings.java b/src/main/java/com/microsoft/graph/models/AccessPackageAssignmentRequestorSettings.java index fadcc1d3951..69b83ec445c 100644 --- a/src/main/java/com/microsoft/graph/models/AccessPackageAssignmentRequestorSettings.java +++ b/src/main/java/com/microsoft/graph/models/AccessPackageAssignmentRequestorSettings.java @@ -41,7 +41,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Allow Custom Assignment Schedule. - * False indicates that the requestor is not permitted to include a schedule in their request. + * False indicates that the requestor isn't permitted to include a schedule in their request. */ @SerializedName(value = "allowCustomAssignmentSchedule", alternate = {"AllowCustomAssignmentSchedule"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/AccessPackageTextInputQuestion.java b/src/main/java/com/microsoft/graph/models/AccessPackageTextInputQuestion.java index 0f71f535fe9..a6abc47151c 100644 --- a/src/main/java/com/microsoft/graph/models/AccessPackageTextInputQuestion.java +++ b/src/main/java/com/microsoft/graph/models/AccessPackageTextInputQuestion.java @@ -36,7 +36,7 @@ public class AccessPackageTextInputQuestion extends AccessPackageQuestion implem /** * The Regex Pattern. - * The regular expression pattern which any answer to this question must match. + * The regular expression pattern that any answer to this question must match. */ @SerializedName(value = "regexPattern", alternate = {"RegexPattern"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/AccessReviewHistoryScheduleSettings.java b/src/main/java/com/microsoft/graph/models/AccessReviewHistoryScheduleSettings.java index 9bec2fff967..5d8f03a59c2 100644 --- a/src/main/java/com/microsoft/graph/models/AccessReviewHistoryScheduleSettings.java +++ b/src/main/java/com/microsoft/graph/models/AccessReviewHistoryScheduleSettings.java @@ -49,7 +49,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Report Range. - * A duration string in ISO 8601 duration format specifying the lookback period of the generated review history data. For example, if a history definition is scheduled to run on the 1st of every month, the reportRange is P1M. In this case, on the first of every month, access review history data will be collected containing only the previous month's review data. Note: Only years, months, and days ISO 8601 properties are supported. Required. + * A duration string in ISO 8601 duration format specifying the lookback period of the generated review history data. For example, if a history definition is scheduled to run on the first of every month, the reportRange is P1M. In this case, on the first of every month, access review history data is collected containing only the previous month's review data. Note: Only years, months, and days ISO 8601 properties are supported. Required. */ @SerializedName(value = "reportRange", alternate = {"ReportRange"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/AccessReviewScheduleDefinition.java b/src/main/java/com/microsoft/graph/models/AccessReviewScheduleDefinition.java index 82bcd0d3935..f591b624a2f 100644 --- a/src/main/java/com/microsoft/graph/models/AccessReviewScheduleDefinition.java +++ b/src/main/java/com/microsoft/graph/models/AccessReviewScheduleDefinition.java @@ -71,7 +71,7 @@ public class AccessReviewScheduleDefinition extends Entity implements IJsonBacke /** * The Description For Reviewers. - * Description provided by review creators to provide more context of the review to reviewers. Reviewers will see this description in the email sent to them requesting their review. Email notifications support up to 256 characters. Supports $select. + * Description provided by review creators to provide more context of the review to reviewers. Reviewers see this description in the email sent to them requesting their review. Email notifications support up to 256 characters. Supports $select. */ @SerializedName(value = "descriptionForReviewers", alternate = {"DescriptionForReviewers"}) @Expose @@ -89,7 +89,7 @@ public class AccessReviewScheduleDefinition extends Entity implements IJsonBacke /** * The Fallback Reviewers. - * This collection of reviewer scopes is used to define the list of fallback reviewers. These fallback reviewers will be notified to take action if no users are found from the list of reviewers specified. This could occur when either the group owner is specified as the reviewer but the group owner does not exist, or manager is specified as reviewer but a user's manager does not exist. See accessReviewReviewerScope. Replaces backupReviewers. Supports $select. NOTE: The value of this property will be ignored if fallback reviewers are assigned through the stageSettings property. + * This collection of reviewer scopes is used to define the list of fallback reviewers. These fallback reviewers are notified to take action if no users are found from the list of reviewers specified. This could occur when either the group owner is specified as the reviewer but the group owner doesn't exist, or manager is specified as reviewer but a user's manager doesn't exist. See accessReviewReviewerScope. Replaces backupReviewers. Supports $select. NOTE: The value of this property will be ignored if fallback reviewers are assigned through the stageSettings property. */ @SerializedName(value = "fallbackReviewers", alternate = {"FallbackReviewers"}) @Expose @@ -98,7 +98,7 @@ public class AccessReviewScheduleDefinition extends Entity implements IJsonBacke /** * The Instance Enumeration Scope. - * This property is required when scoping a review to guest users' access across all Microsoft 365 groups and determines which Microsoft 365 groups are reviewed. Each group will become a unique accessReviewInstance of the access review series. For supported scopes, see accessReviewScope. Supports $select. For examples of options for configuring instanceEnumerationScope, see Configure the scope of your access review definition using the Microsoft Graph API. + * This property is required when scoping a review to guest users' access across all Microsoft 365 groups and determines which Microsoft 365 groups are reviewed. Each group becomes a unique accessReviewInstance of the access review series. For supported scopes, see accessReviewScope. Supports $select. For examples of options for configuring instanceEnumerationScope, see Configure the scope of your access review definition using the Microsoft Graph API. */ @SerializedName(value = "instanceEnumerationScope", alternate = {"InstanceEnumerationScope"}) @Expose @@ -143,7 +143,7 @@ public class AccessReviewScheduleDefinition extends Entity implements IJsonBacke /** * The Stage Settings. - * Required only for a multi-stage access review to define the stages and their settings. You can break down each review instance into up to three sequential stages, where each stage can have a different set of reviewers, fallback reviewers, and settings. Stages will be created sequentially based on the dependsOn property. Optional. When this property is defined, its settings are used instead of the corresponding settings in the accessReviewScheduleDefinition object and its settings, reviewers, and fallbackReviewers properties. + * Required only for a multi-stage access review to define the stages and their settings. You can break down each review instance into up to three sequential stages, where each stage can have a different set of reviewers, fallback reviewers, and settings. Stages are created sequentially based on the dependsOn property. Optional. When this property is defined, its settings are used instead of the corresponding settings in the accessReviewScheduleDefinition object and its settings, reviewers, and fallbackReviewers properties. */ @SerializedName(value = "stageSettings", alternate = {"StageSettings"}) @Expose @@ -161,7 +161,7 @@ public class AccessReviewScheduleDefinition extends Entity implements IJsonBacke /** * The Instances. - * If the accessReviewScheduleDefinition is a recurring access review, instances represent each recurrence. A review that does not recur will have exactly one instance. Instances also represent each unique resource under review in the accessReviewScheduleDefinition. If a review has multiple resources and multiple instances, each resource will have a unique instance for each recurrence. + * If the accessReviewScheduleDefinition is a recurring access review, instances represent each recurrence. A review that doesn't recur will have exactly one instance. Instances also represent each unique resource under review in the accessReviewScheduleDefinition. If a review has multiple resources and multiple instances, each resource has a unique instance for each recurrence. */ @SerializedName(value = "instances", alternate = {"Instances"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/AccessReviewStage.java b/src/main/java/com/microsoft/graph/models/AccessReviewStage.java index 3236dd4fb02..f70e7334890 100644 --- a/src/main/java/com/microsoft/graph/models/AccessReviewStage.java +++ b/src/main/java/com/microsoft/graph/models/AccessReviewStage.java @@ -39,7 +39,7 @@ public class AccessReviewStage extends Entity implements IJsonBackedObject { /** * The Fallback Reviewers. - * This collection of reviewer scopes is used to define the list of fallback reviewers. These fallback reviewers will be notified to take action if no users are found from the list of reviewers specified. This could occur when either the group owner is specified as the reviewer but the group owner does not exist, or manager is specified as reviewer but a user's manager does not exist. + * This collection of reviewer scopes is used to define the list of fallback reviewers. These fallback reviewers are notified to take action if no users are found from the list of reviewers specified. This could occur when either the group owner is specified as the reviewer but the group owner doesn't exist, or manager is specified as reviewer but a user's manager doesn't exist. */ @SerializedName(value = "fallbackReviewers", alternate = {"FallbackReviewers"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/AccountTargetContent.java b/src/main/java/com/microsoft/graph/models/AccountTargetContent.java new file mode 100644 index 00000000000..c50b1d07f4e --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/AccountTargetContent.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.AccountTargetContentType; + + +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 Account Target Content. + */ +public class AccountTargetContent 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 Type. + * + */ + @SerializedName(value = "type", alternate = {"Type"}) + @Expose + @Nullable + public AccountTargetContentType type; + + + /** + * 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/AccountTargetContentType.java b/src/main/java/com/microsoft/graph/models/AccountTargetContentType.java new file mode 100644 index 00000000000..f4752b26d60 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/AccountTargetContentType.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 Account Target Content Type. +*/ +public enum AccountTargetContentType +{ + /** + * unknown + */ + UNKNOWN, + /** + * include All + */ + INCLUDE_ALL, + /** + * address Book + */ + ADDRESS_BOOK, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For AccountTargetContentType values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/AddressBookAccountTargetContent.java b/src/main/java/com/microsoft/graph/models/AddressBookAccountTargetContent.java new file mode 100644 index 00000000000..ed410ec653f --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/AddressBookAccountTargetContent.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.http.BaseCollectionPage; +import com.microsoft.graph.models.AccountTargetContent; + + +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 Address Book Account Target Content. + */ +public class AddressBookAccountTargetContent extends AccountTargetContent implements IJsonBackedObject { + + + /** + * The Account Target Emails. + * + */ + @SerializedName(value = "accountTargetEmails", alternate = {"AccountTargetEmails"}) + @Expose + @Nullable + public java.util.List accountTargetEmails; + + + /** + * 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/AggregationOption.java b/src/main/java/com/microsoft/graph/models/AggregationOption.java index 6de8547977e..884174e2f06 100644 --- a/src/main/java/com/microsoft/graph/models/AggregationOption.java +++ b/src/main/java/com/microsoft/graph/models/AggregationOption.java @@ -58,7 +58,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Size. - * The number of searchBucket resources to be returned. This is not required when the range is provided manually in the search request. Optional. + * The number of searchBucket resources to be returned. This isn't required when the range is provided manually in the search request. Optional. */ @SerializedName(value = "size", alternate = {"Size"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/AllowedValue.java b/src/main/java/com/microsoft/graph/models/AllowedValue.java index 2a21c616b9a..3d2c8bc884d 100644 --- a/src/main/java/com/microsoft/graph/models/AllowedValue.java +++ b/src/main/java/com/microsoft/graph/models/AllowedValue.java @@ -27,7 +27,7 @@ public class AllowedValue extends Entity implements IJsonBackedObject { /** * The Is Active. - * Indicates whether the predefined value is active or deactivated. If set to false, this predefined value cannot be assigned to any additional supported directory objects. + * Indicates whether the predefined value is active or deactivated. If set to false, this predefined value can't be assigned to any other supported directory objects. */ @SerializedName(value = "isActive", alternate = {"IsActive"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/AppRole.java b/src/main/java/com/microsoft/graph/models/AppRole.java index 9756380c7cc..14c8f746964 100644 --- a/src/main/java/com/microsoft/graph/models/AppRole.java +++ b/src/main/java/com/microsoft/graph/models/AppRole.java @@ -94,7 +94,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Value. - * Specifies the value to include in the roles claim in ID tokens and access tokens authenticating an assigned user or service principal. Must not exceed 120 characters in length. Allowed characters are : ! # $ % & ' ( ) * + , - . / : ; = ? @ [ ] ^ + _ { } ~, as well as characters in the ranges 0-9, A-Z and a-z. Any other character, including the space character, are not allowed. May not begin with .. + * Specifies the value to include in the roles claim in ID tokens and access tokens authenticating an assigned user or service principal. Must not exceed 120 characters in length. Allowed characters are : ! # $ % & ' ( ) * + , - . / : ; = ? @ [ ] ^ + _ { } ~, and characters in the ranges 0-9, A-Z and a-z. Any other character, including the space character, aren't allowed. May not begin with .. */ @SerializedName(value = "value", alternate = {"Value"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/AttachmentInfo.java b/src/main/java/com/microsoft/graph/models/AttachmentInfo.java index b1375e9738e..0ee95ddcdd3 100644 --- a/src/main/java/com/microsoft/graph/models/AttachmentInfo.java +++ b/src/main/java/com/microsoft/graph/models/AttachmentInfo.java @@ -58,7 +58,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Name. - * The display name of the attachment. This can be a descriptive string and does not have to be the actual file name. Required. + * The display name of the attachment. This can be a descriptive string and doesn't have to be the actual file name. Required. */ @SerializedName(value = "name", alternate = {"Name"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/AttachmentItem.java b/src/main/java/com/microsoft/graph/models/AttachmentItem.java index 99dd763c2a6..e1b5080973d 100644 --- a/src/main/java/com/microsoft/graph/models/AttachmentItem.java +++ b/src/main/java/com/microsoft/graph/models/AttachmentItem.java @@ -49,7 +49,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Content Id. - * The CID or Content-Id of the attachment for referencing in case of in-line attachments using <img src='cid:contentId'> tag in HTML messages. Optional. + * The CID or Content-Id of the attachment for referencing for the in-line attachments using the <img src='cid:contentId'> tag in HTML messages. Optional. */ @SerializedName(value = "contentId", alternate = {"ContentId"}) @Expose @@ -76,7 +76,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Name. - * The display name of the attachment. This can be a descriptive string and does not have to be the actual file name. Required. + * The display name of the attachment. This can be a descriptive string and doesn't have to be the actual file name. Required. */ @SerializedName(value = "name", alternate = {"Name"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/AttackSimulationOperation.java b/src/main/java/com/microsoft/graph/models/AttackSimulationOperation.java new file mode 100644 index 00000000000..bdee9c11752 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/AttackSimulationOperation.java @@ -0,0 +1,66 @@ +// 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.AttackSimulationOperationType; +import com.microsoft.graph.models.LongRunningOperation; + + +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 Attack Simulation Operation. + */ +public class AttackSimulationOperation extends LongRunningOperation implements IJsonBackedObject { + + + /** + * The Percentage Completed. + * + */ + @SerializedName(value = "percentageCompleted", alternate = {"PercentageCompleted"}) + @Expose + @Nullable + public Integer percentageCompleted; + + /** + * The Tenant Id. + * + */ + @SerializedName(value = "tenantId", alternate = {"TenantId"}) + @Expose + @Nullable + public String tenantId; + + /** + * The Type. + * + */ + @SerializedName(value = "type", alternate = {"Type"}) + @Expose + @Nullable + public AttackSimulationOperationType type; + + + /** + * 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/AttackSimulationOperationType.java b/src/main/java/com/microsoft/graph/models/AttackSimulationOperationType.java new file mode 100644 index 00000000000..eb21b80ce92 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/AttackSimulationOperationType.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 Attack Simulation Operation Type. +*/ +public enum AttackSimulationOperationType +{ + /** + * create Simualation + */ + CREATE_SIMUALATION, + /** + * update Simulation + */ + UPDATE_SIMULATION, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For AttackSimulationOperationType values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/AttackSimulationRoot.java b/src/main/java/com/microsoft/graph/models/AttackSimulationRoot.java index 389c21fb97e..f4f3ffa604d 100644 --- a/src/main/java/com/microsoft/graph/models/AttackSimulationRoot.java +++ b/src/main/java/com/microsoft/graph/models/AttackSimulationRoot.java @@ -10,8 +10,14 @@ import java.util.EnumSet; import com.microsoft.graph.http.BaseCollectionPage; import com.microsoft.graph.models.Entity; +import com.microsoft.graph.requests.EndUserNotificationCollectionPage; +import com.microsoft.graph.requests.LandingPageCollectionPage; +import com.microsoft.graph.requests.LoginPageCollectionPage; +import com.microsoft.graph.requests.AttackSimulationOperationCollectionPage; +import com.microsoft.graph.requests.PayloadCollectionPage; import com.microsoft.graph.requests.SimulationAutomationCollectionPage; import com.microsoft.graph.requests.SimulationCollectionPage; +import com.microsoft.graph.requests.TrainingCollectionPage; import com.google.gson.JsonObject; @@ -28,6 +34,51 @@ public class AttackSimulationRoot extends Entity implements IJsonBackedObject { + /** + * The End User Notifications. + * + */ + @SerializedName(value = "endUserNotifications", alternate = {"EndUserNotifications"}) + @Expose + @Nullable + public com.microsoft.graph.requests.EndUserNotificationCollectionPage endUserNotifications; + + /** + * The Landing Pages. + * + */ + @SerializedName(value = "landingPages", alternate = {"LandingPages"}) + @Expose + @Nullable + public com.microsoft.graph.requests.LandingPageCollectionPage landingPages; + + /** + * The Login Pages. + * + */ + @SerializedName(value = "loginPages", alternate = {"LoginPages"}) + @Expose + @Nullable + public com.microsoft.graph.requests.LoginPageCollectionPage loginPages; + + /** + * The Operations. + * + */ + @SerializedName(value = "operations", alternate = {"Operations"}) + @Expose + @Nullable + public com.microsoft.graph.requests.AttackSimulationOperationCollectionPage operations; + + /** + * The Payloads. + * + */ + @SerializedName(value = "payloads", alternate = {"Payloads"}) + @Expose + @Nullable + public com.microsoft.graph.requests.PayloadCollectionPage payloads; + /** * The Simulation Automations. * Represents simulation automation created to run on a tenant. @@ -46,6 +97,15 @@ public class AttackSimulationRoot extends Entity implements IJsonBackedObject { @Nullable public com.microsoft.graph.requests.SimulationCollectionPage simulations; + /** + * The Trainings. + * + */ + @SerializedName(value = "trainings", alternate = {"Trainings"}) + @Expose + @Nullable + public com.microsoft.graph.requests.TrainingCollectionPage trainings; + /** * Sets the raw JSON object @@ -56,6 +116,26 @@ public class AttackSimulationRoot extends Entity implements IJsonBackedObject { public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { + if (json.has("endUserNotifications")) { + endUserNotifications = serializer.deserializeObject(json.get("endUserNotifications"), com.microsoft.graph.requests.EndUserNotificationCollectionPage.class); + } + + if (json.has("landingPages")) { + landingPages = serializer.deserializeObject(json.get("landingPages"), com.microsoft.graph.requests.LandingPageCollectionPage.class); + } + + if (json.has("loginPages")) { + loginPages = serializer.deserializeObject(json.get("loginPages"), com.microsoft.graph.requests.LoginPageCollectionPage.class); + } + + if (json.has("operations")) { + operations = serializer.deserializeObject(json.get("operations"), com.microsoft.graph.requests.AttackSimulationOperationCollectionPage.class); + } + + if (json.has("payloads")) { + payloads = serializer.deserializeObject(json.get("payloads"), com.microsoft.graph.requests.PayloadCollectionPage.class); + } + if (json.has("simulationAutomations")) { simulationAutomations = serializer.deserializeObject(json.get("simulationAutomations"), com.microsoft.graph.requests.SimulationAutomationCollectionPage.class); } @@ -63,5 +143,9 @@ public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final J if (json.has("simulations")) { simulations = serializer.deserializeObject(json.get("simulations"), com.microsoft.graph.requests.SimulationCollectionPage.class); } + + if (json.has("trainings")) { + trainings = serializer.deserializeObject(json.get("trainings"), com.microsoft.graph.requests.TrainingCollectionPage.class); + } } } diff --git a/src/main/java/com/microsoft/graph/models/AvailabilityItem.java b/src/main/java/com/microsoft/graph/models/AvailabilityItem.java index dbbe4afb62b..26b66fdddc4 100644 --- a/src/main/java/com/microsoft/graph/models/AvailabilityItem.java +++ b/src/main/java/com/microsoft/graph/models/AvailabilityItem.java @@ -50,7 +50,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Service Id. - * Indicates the service ID in case of 1:n appointments. If the appointment is of type 1:n, this field will be present, otherwise, null. + * Indicates the service ID for 1:n appointments. If the appointment is of type 1:n, this field is present, otherwise, null. */ @SerializedName(value = "serviceId", alternate = {"ServiceId"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/BaseEndUserNotification.java b/src/main/java/com/microsoft/graph/models/BaseEndUserNotification.java new file mode 100644 index 00000000000..766cdf4ce7b --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/BaseEndUserNotification.java @@ -0,0 +1,69 @@ +// 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.EndUserNotification; + + +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 Base End User Notification. + */ +public class BaseEndUserNotification 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 Default Language. + * + */ + @SerializedName(value = "defaultLanguage", alternate = {"DefaultLanguage"}) + @Expose + @Nullable + public String defaultLanguage; + + /** + * The End User Notification. + * + */ + @SerializedName(value = "endUserNotification", alternate = {"EndUserNotification"}) + @Expose + @Nullable + public EndUserNotification endUserNotification; + + + /** + * 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/BookingAppointment.java b/src/main/java/com/microsoft/graph/models/BookingAppointment.java index c51d471d44c..75d2388576c 100644 --- a/src/main/java/com/microsoft/graph/models/BookingAppointment.java +++ b/src/main/java/com/microsoft/graph/models/BookingAppointment.java @@ -51,7 +51,7 @@ public class BookingAppointment extends Entity implements IJsonBackedObject { /** * The Customers. - * A collection of customer properties for an appointment. An appointment will contain a list of customer information and each unit will indicate the properties of a customer who is part of that appointment. Optional. + * A collection of customer properties for an appointment. An appointment contains a list of customer information and each unit will indicate the properties of a customer who is part of that appointment. Optional. */ @SerializedName(value = "customers", alternate = {"Customers"}) @Expose @@ -123,7 +123,7 @@ public class BookingAppointment extends Entity implements IJsonBackedObject { /** * The Opt Out Of Customer Email. - * If true indicates that the bookingCustomer for this appointment does not wish to receive a confirmation for this appointment. + * If true indicates that the bookingCustomer for this appointment doesn't wish to receive a confirmation for this appointment. */ @SerializedName(value = "optOutOfCustomerEmail", alternate = {"OptOutOfCustomerEmail"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/BookingQuestionAssignment.java b/src/main/java/com/microsoft/graph/models/BookingQuestionAssignment.java index b0d78239ccf..7ffbbbb926e 100644 --- a/src/main/java/com/microsoft/graph/models/BookingQuestionAssignment.java +++ b/src/main/java/com/microsoft/graph/models/BookingQuestionAssignment.java @@ -48,7 +48,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Question Id. - * Indicates whether it is mandatory to answer the custom question. + * Indicates whether it's mandatory to answer the custom question. */ @SerializedName(value = "questionId", alternate = {"QuestionId"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/Call.java b/src/main/java/com/microsoft/graph/models/Call.java index 3394d074e13..b00b6f9fcc8 100644 --- a/src/main/java/com/microsoft/graph/models/Call.java +++ b/src/main/java/com/microsoft/graph/models/Call.java @@ -92,7 +92,7 @@ public class Call extends Entity implements IJsonBackedObject { /** * The Direction. - * The direction of the call. The possible value are incoming or outgoing. Read-only. + * The direction of the call. The possible values are incoming or outgoing. Read-only. */ @SerializedName(value = "direction", alternate = {"Direction"}) @Expose @@ -155,7 +155,7 @@ public class Call extends Entity implements IJsonBackedObject { /** * The Result Info. - * The result information. For example can hold termination reason. Read-only. + * The result information. For example, the result can hold termination reason. Read-only. */ @SerializedName(value = "resultInfo", alternate = {"ResultInfo"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/CallTranscript.java b/src/main/java/com/microsoft/graph/models/CallTranscript.java new file mode 100644 index 00000000000..1a3f73f6de4 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/CallTranscript.java @@ -0,0 +1,75 @@ +// Template Source: BaseEntity.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.models; +import com.microsoft.graph.serializer.ISerializer; +import com.microsoft.graph.serializer.IJsonBackedObject; +import com.microsoft.graph.serializer.AdditionalDataManager; +import java.util.EnumSet; +import com.microsoft.graph.models.IdentitySet; +import com.microsoft.graph.models.Entity; + + +import com.google.gson.JsonObject; +import com.google.gson.annotations.SerializedName; +import com.google.gson.annotations.Expose; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Call Transcript. + */ +public class CallTranscript extends Entity implements IJsonBackedObject { + + + /** + * The Created Date Time. + * + */ + @SerializedName(value = "createdDateTime", alternate = {"CreatedDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime createdDateTime; + + /** + * The Meeting Id. + * + */ + @SerializedName(value = "meetingId", alternate = {"MeetingId"}) + @Expose + @Nullable + public String meetingId; + + /** + * The Meeting Organizer. + * + */ + @SerializedName(value = "meetingOrganizer", alternate = {"MeetingOrganizer"}) + @Expose + @Nullable + public IdentitySet meetingOrganizer; + + /** + * The Transcript Content Url. + * + */ + @SerializedName(value = "transcriptContentUrl", alternate = {"TranscriptContentUrl"}) + @Expose + @Nullable + public String transcriptContentUrl; + + + /** + * 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/Certification.java b/src/main/java/com/microsoft/graph/models/Certification.java index cef80e42d4b..6fd793637f8 100644 --- a/src/main/java/com/microsoft/graph/models/Certification.java +++ b/src/main/java/com/microsoft/graph/models/Certification.java @@ -48,7 +48,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Certification Expiration Date Time. - * The timestamp when the current certification for the application will expire. + * The timestamp when the current certification for the application expires. */ @SerializedName(value = "certificationExpirationDateTime", alternate = {"CertificationExpirationDateTime"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/CoachmarkLocation.java b/src/main/java/com/microsoft/graph/models/CoachmarkLocation.java new file mode 100644 index 00000000000..d7d706437be --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/CoachmarkLocation.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.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.CoachmarkLocationType; + + +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 Coachmark Location. + */ +public class CoachmarkLocation 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 Length. + * + */ + @SerializedName(value = "length", alternate = {"Length"}) + @Expose + @Nullable + public Integer length; + + /** + * The Offset. + * + */ + @SerializedName(value = "offset", alternate = {"Offset"}) + @Expose + @Nullable + public Integer offset; + + /** + * The Type. + * + */ + @SerializedName(value = "type", alternate = {"Type"}) + @Expose + @Nullable + public CoachmarkLocationType type; + + + /** + * 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/CoachmarkLocationType.java b/src/main/java/com/microsoft/graph/models/CoachmarkLocationType.java new file mode 100644 index 00000000000..668cc36ee01 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/CoachmarkLocationType.java @@ -0,0 +1,46 @@ +// 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 Coachmark Location Type. +*/ +public enum CoachmarkLocationType +{ + /** + * unknown + */ + UNKNOWN, + /** + * from Email + */ + FROM_EMAIL, + /** + * subject + */ + SUBJECT, + /** + * external Tag + */ + EXTERNAL_TAG, + /** + * display Name + */ + DISPLAY_NAME, + /** + * message Body + */ + MESSAGE_BODY, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For CoachmarkLocationType values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/ConvertIdResult.java b/src/main/java/com/microsoft/graph/models/ConvertIdResult.java index ac397d4f429..b6376a0cec5 100644 --- a/src/main/java/com/microsoft/graph/models/ConvertIdResult.java +++ b/src/main/java/com/microsoft/graph/models/ConvertIdResult.java @@ -40,7 +40,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Error Details. - * An error object indicating the reason for the conversion failure. This value is not present if the conversion succeeded. + * An error object indicating the reason for the conversion failure. This value isn't present if the conversion succeeded. */ @SerializedName(value = "errorDetails", alternate = {"ErrorDetails"}) @Expose @@ -58,7 +58,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Target Id. - * The converted identifier. This value is not present if the conversion failed. + * The converted identifier. This value isn't present if the conversion failed. */ @SerializedName(value = "targetId", alternate = {"TargetId"}) @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..a4a7b8ba312 100644 --- a/src/main/java/com/microsoft/graph/models/CustomExtensionClientConfiguration.java +++ b/src/main/java/com/microsoft/graph/models/CustomExtensionClientConfiguration.java @@ -39,7 +39,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Timeout In Milliseconds. - * The max duration in milliseconds that Azure AD 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 waits for a response from the external app before it shuts down the connection. The valid range is between 200 and 2000 milliseconds. Default duration is 1000. */ @SerializedName(value = "timeoutInMilliseconds", alternate = {"TimeoutInMilliseconds"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/CustomTrainingSetting.java b/src/main/java/com/microsoft/graph/models/CustomTrainingSetting.java new file mode 100644 index 00000000000..35a4217b88e --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/CustomTrainingSetting.java @@ -0,0 +1,85 @@ +// 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.TrainingAssignedTo; +import com.microsoft.graph.models.TrainingSetting; + + +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 Training Setting. + */ +public class CustomTrainingSetting extends TrainingSetting implements IJsonBackedObject { + + + /** + * The Assigned To. + * + */ + @SerializedName(value = "assignedTo", alternate = {"AssignedTo"}) + @Expose + @Nullable + public java.util.List assignedTo; + + /** + * 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 Duration In Minutes. + * + */ + @SerializedName(value = "durationInMinutes", alternate = {"DurationInMinutes"}) + @Expose + @Nullable + public Integer durationInMinutes; + + /** + * 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/DirectoryDefinition.java b/src/main/java/com/microsoft/graph/models/DirectoryDefinition.java index c4cdcb51df0..33bb2cbf570 100644 --- a/src/main/java/com/microsoft/graph/models/DirectoryDefinition.java +++ b/src/main/java/com/microsoft/graph/models/DirectoryDefinition.java @@ -75,7 +75,7 @@ public class DirectoryDefinition extends Entity implements IJsonBackedObject { /** * The Version. - * Read only value that indicates version discovered. null if discovery has not yet occurred. + * Read only value that indicates version discovered. null if discovery hasn't yet occurred. */ @SerializedName(value = "version", alternate = {"Version"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/EmailFileAssessmentRequest.java b/src/main/java/com/microsoft/graph/models/EmailFileAssessmentRequest.java index a3a51b34dd6..cd90fc85e41 100644 --- a/src/main/java/com/microsoft/graph/models/EmailFileAssessmentRequest.java +++ b/src/main/java/com/microsoft/graph/models/EmailFileAssessmentRequest.java @@ -28,7 +28,7 @@ public class EmailFileAssessmentRequest extends ThreatAssessmentRequest implemen /** * The Content Data. - * Base64 encoded .eml email file content. The file content cannot fetch back because it isn't stored. + * Base64 encoded .eml email file content. The file content can't fetch back because it isn't stored. */ @SerializedName(value = "contentData", alternate = {"ContentData"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/EmailPayloadDetail.java b/src/main/java/com/microsoft/graph/models/EmailPayloadDetail.java new file mode 100644 index 00000000000..643131623cb --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/EmailPayloadDetail.java @@ -0,0 +1,74 @@ +// Template Source: BaseEntity.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.models; +import com.microsoft.graph.serializer.ISerializer; +import com.microsoft.graph.serializer.IJsonBackedObject; +import com.microsoft.graph.serializer.AdditionalDataManager; +import java.util.EnumSet; +import com.microsoft.graph.models.PayloadDetail; + + +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 Email Payload Detail. + */ +public class EmailPayloadDetail extends PayloadDetail implements IJsonBackedObject { + + + /** + * The From Email. + * + */ + @SerializedName(value = "fromEmail", alternate = {"FromEmail"}) + @Expose + @Nullable + public String fromEmail; + + /** + * The From Name. + * + */ + @SerializedName(value = "fromName", alternate = {"FromName"}) + @Expose + @Nullable + public String fromName; + + /** + * The Is External Sender. + * + */ + @SerializedName(value = "isExternalSender", alternate = {"IsExternalSender"}) + @Expose + @Nullable + public Boolean isExternalSender; + + /** + * The Subject. + * + */ + @SerializedName(value = "subject", alternate = {"Subject"}) + @Expose + @Nullable + public String subject; + + + /** + * 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/EndUserNotification.java b/src/main/java/com/microsoft/graph/models/EndUserNotification.java new file mode 100644 index 00000000000..8f609194615 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/EndUserNotification.java @@ -0,0 +1,147 @@ +// 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.EmailIdentity; +import com.microsoft.graph.models.EndUserNotificationType; +import com.microsoft.graph.models.SimulationContentSource; +import com.microsoft.graph.models.SimulationContentStatus; +import com.microsoft.graph.models.Entity; +import com.microsoft.graph.requests.EndUserNotificationDetailCollectionPage; + + +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 End User Notification. + */ +public class EndUserNotification extends Entity implements IJsonBackedObject { + + + /** + * The Created By. + * + */ + @SerializedName(value = "createdBy", alternate = {"CreatedBy"}) + @Expose + @Nullable + public EmailIdentity 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 Last Modified By. + * + */ + @SerializedName(value = "lastModifiedBy", alternate = {"LastModifiedBy"}) + @Expose + @Nullable + public EmailIdentity lastModifiedBy; + + /** + * The Last Modified Date Time. + * + */ + @SerializedName(value = "lastModifiedDateTime", alternate = {"LastModifiedDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime lastModifiedDateTime; + + /** + * The Notification Type. + * + */ + @SerializedName(value = "notificationType", alternate = {"NotificationType"}) + @Expose + @Nullable + public EndUserNotificationType notificationType; + + /** + * The Source. + * + */ + @SerializedName(value = "source", alternate = {"Source"}) + @Expose + @Nullable + public SimulationContentSource source; + + /** + * The Status. + * + */ + @SerializedName(value = "status", alternate = {"Status"}) + @Expose + @Nullable + public SimulationContentStatus status; + + /** + * The Supported Locales. + * + */ + @SerializedName(value = "supportedLocales", alternate = {"SupportedLocales"}) + @Expose + @Nullable + public java.util.List supportedLocales; + + /** + * The Details. + * + */ + @SerializedName(value = "details", alternate = {"Details"}) + @Expose + @Nullable + public com.microsoft.graph.requests.EndUserNotificationDetailCollectionPage details; + + + /** + * 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("details")) { + details = serializer.deserializeObject(json.get("details"), com.microsoft.graph.requests.EndUserNotificationDetailCollectionPage.class); + } + } +} diff --git a/src/main/java/com/microsoft/graph/models/EndUserNotificationDetail.java b/src/main/java/com/microsoft/graph/models/EndUserNotificationDetail.java new file mode 100644 index 00000000000..8c5b026fde8 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/EndUserNotificationDetail.java @@ -0,0 +1,93 @@ +// 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.EmailIdentity; +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 End User Notification Detail. + */ +public class EndUserNotificationDetail extends Entity implements IJsonBackedObject { + + + /** + * The Email Content. + * + */ + @SerializedName(value = "emailContent", alternate = {"EmailContent"}) + @Expose + @Nullable + public String emailContent; + + /** + * The Is Default Langauge. + * + */ + @SerializedName(value = "isDefaultLangauge", alternate = {"IsDefaultLangauge"}) + @Expose + @Nullable + public Boolean isDefaultLangauge; + + /** + * The Language. + * + */ + @SerializedName(value = "language", alternate = {"Language"}) + @Expose + @Nullable + public String language; + + /** + * The Locale. + * + */ + @SerializedName(value = "locale", alternate = {"Locale"}) + @Expose + @Nullable + public String locale; + + /** + * The Sent From. + * + */ + @SerializedName(value = "sentFrom", alternate = {"SentFrom"}) + @Expose + @Nullable + public EmailIdentity sentFrom; + + /** + * The Subject. + * + */ + @SerializedName(value = "subject", alternate = {"Subject"}) + @Expose + @Nullable + public String subject; + + + /** + * 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/EndUserNotificationPreference.java b/src/main/java/com/microsoft/graph/models/EndUserNotificationPreference.java new file mode 100644 index 00000000000..82f1675c960 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/EndUserNotificationPreference.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 End User Notification Preference. +*/ +public enum EndUserNotificationPreference +{ + /** + * unknown + */ + UNKNOWN, + /** + * microsoft + */ + MICROSOFT, + /** + * custom + */ + CUSTOM, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For EndUserNotificationPreference values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/EndUserNotificationSetting.java b/src/main/java/com/microsoft/graph/models/EndUserNotificationSetting.java new file mode 100644 index 00000000000..17c4ee013c5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/EndUserNotificationSetting.java @@ -0,0 +1,80 @@ +// 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.EndUserNotificationPreference; +import com.microsoft.graph.models.PositiveReinforcementNotification; +import com.microsoft.graph.models.EndUserNotificationSettingType; + + +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 End User Notification Setting. + */ +public class EndUserNotificationSetting 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 Notification Preference. + * + */ + @SerializedName(value = "notificationPreference", alternate = {"NotificationPreference"}) + @Expose + @Nullable + public EndUserNotificationPreference notificationPreference; + + /** + * The Positive Reinforcement. + * + */ + @SerializedName(value = "positiveReinforcement", alternate = {"PositiveReinforcement"}) + @Expose + @Nullable + public PositiveReinforcementNotification positiveReinforcement; + + /** + * The Setting Type. + * + */ + @SerializedName(value = "settingType", alternate = {"SettingType"}) + @Expose + @Nullable + public EndUserNotificationSettingType settingType; + + + /** + * 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/EndUserNotificationSettingType.java b/src/main/java/com/microsoft/graph/models/EndUserNotificationSettingType.java new file mode 100644 index 00000000000..45f808025a6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/EndUserNotificationSettingType.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 End User Notification Setting Type. +*/ +public enum EndUserNotificationSettingType +{ + /** + * unknown + */ + UNKNOWN, + /** + * no Training + */ + NO_TRAINING, + /** + * training Selected + */ + TRAINING_SELECTED, + /** + * no Notification + */ + NO_NOTIFICATION, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For EndUserNotificationSettingType values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/EndUserNotificationType.java b/src/main/java/com/microsoft/graph/models/EndUserNotificationType.java new file mode 100644 index 00000000000..2e609feddd4 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/EndUserNotificationType.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.models; + + +/** + * The Enum End User Notification Type. +*/ +public enum EndUserNotificationType +{ + /** + * unknown + */ + UNKNOWN, + /** + * positive Reinforcement + */ + POSITIVE_REINFORCEMENT, + /** + * no Training + */ + NO_TRAINING, + /** + * training Assignment + */ + TRAINING_ASSIGNMENT, + /** + * training Reminder + */ + TRAINING_REMINDER, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For EndUserNotificationType values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/FileAssessmentRequest.java b/src/main/java/com/microsoft/graph/models/FileAssessmentRequest.java index 621365a7cba..60bd200446b 100644 --- a/src/main/java/com/microsoft/graph/models/FileAssessmentRequest.java +++ b/src/main/java/com/microsoft/graph/models/FileAssessmentRequest.java @@ -27,7 +27,7 @@ public class FileAssessmentRequest extends ThreatAssessmentRequest implements IJ /** * The Content Data. - * Base64 encoded file content. The file content cannot fetch back because it isn't stored. + * Base64 encoded file content. The file content can't fetch back because it isn't stored. */ @SerializedName(value = "contentData", alternate = {"ContentData"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/Filter.java b/src/main/java/com/microsoft/graph/models/Filter.java index 84fc5bc33ea..1b78f0b0f4d 100644 --- a/src/main/java/com/microsoft/graph/models/Filter.java +++ b/src/main/java/com/microsoft/graph/models/Filter.java @@ -50,7 +50,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Groups. - * Filter group set used to decide whether given object is in scope for provisioning. This is the filter which should be used in most cases. If an object used to satisfy this filter at a given moment, and then the object or the filter was changed so that filter is not satisfied any longer, such object will get de-provisioned'. An object is considered in scope if ANY of the groups in the collection is evaluated to true. + * Filter group set used to decide whether given object is in scope for provisioning. This is the filter which should be used in most cases. If an object used to satisfy this filter at a given moment, and then the object or the filter was changed so that filter isn't satisfied any longer, such object will get deprovisioned'. An object is considered in scope if ANY of the groups in the collection is evaluated to true. */ @SerializedName(value = "groups", alternate = {"Groups"}) @Expose @@ -59,7 +59,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Input Filter Groups. - * *Experimental* Filter group set used to filter out objects at the early stage of reading them from the directory. If an object doesn't satisfy this filter it will not be processed further. Important to understand is that if an object used to satisfy this filter at a given moment, and then the object or the filter was changed so that filter is no longer satisfied, such object will NOT get de-provisioned. An object is considered in scope if ANY of the groups in the collection is evaluated to true. + * *Experimental* Filter group set used to filter out objects at the early stage of reading them from the directory. If an object doesn't satisfy this filter, then it will not be processed further. Important to understand is that if an object used to satisfy this filter at a given moment, and then the object or the filter was changed so that filter is no longer satisfied, such object will NOT get deprovisioned. An object is considered in scope if ANY of the groups in the collection is evaluated to true. */ @SerializedName(value = "inputFilterGroups", alternate = {"InputFilterGroups"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/Identity.java b/src/main/java/com/microsoft/graph/models/Identity.java index 6651da65cf2..3634be3b2f9 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. 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. + * The display name of the identity. The display name 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 diff --git a/src/main/java/com/microsoft/graph/models/IdentitySecurityDefaultsEnforcementPolicy.java b/src/main/java/com/microsoft/graph/models/IdentitySecurityDefaultsEnforcementPolicy.java index be2e607a132..546c80e69c7 100644 --- a/src/main/java/com/microsoft/graph/models/IdentitySecurityDefaultsEnforcementPolicy.java +++ b/src/main/java/com/microsoft/graph/models/IdentitySecurityDefaultsEnforcementPolicy.java @@ -27,7 +27,7 @@ public class IdentitySecurityDefaultsEnforcementPolicy extends PolicyBase implem /** * The Is Enabled. - * If set to true, Azure Active Directory security defaults is enabled for the tenant. + * If set to true, Azure Active Directory security defaults are enabled for the tenant. */ @SerializedName(value = "isEnabled", alternate = {"IsEnabled"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/IdentityUserFlowAttribute.java b/src/main/java/com/microsoft/graph/models/IdentityUserFlowAttribute.java index fcab25d84aa..ebab18d8949 100644 --- a/src/main/java/com/microsoft/graph/models/IdentityUserFlowAttribute.java +++ b/src/main/java/com/microsoft/graph/models/IdentityUserFlowAttribute.java @@ -29,7 +29,7 @@ public class IdentityUserFlowAttribute extends Entity implements IJsonBackedObje /** * The Data Type. - * The data type of the user flow attribute. This cannot be modified after the custom user flow attribute is created. The supported values for dataType are: string , boolean , int64 , stringCollection , dateTime, unknownFutureValue. Supports $filter (eq, ne). + * The data type of the user flow attribute. This can't be modified after the custom user flow attribute is created. The supported values for dataType are: string , boolean , int64 , stringCollection , dateTime, unknownFutureValue. Supports $filter (eq, ne). */ @SerializedName(value = "dataType", alternate = {"DataType"}) @Expose @@ -56,7 +56,7 @@ public class IdentityUserFlowAttribute extends Entity implements IJsonBackedObje /** * The User Flow Attribute Type. - * The type of the user flow attribute. This is a read-only attribute that is automatically set. Depending on the type of attribute, the values for this property will be builtIn, custom, required, unknownFutureValue. Supports $filter (eq, ne). + * The type of the user flow attribute. This is a read-only attribute that is automatically set. Depending on the type of attribute, the values for this property are builtIn, custom, required, unknownFutureValue. Supports $filter (eq, ne). */ @SerializedName(value = "userFlowAttributeType", alternate = {"UserFlowAttributeType"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/IdentityUserFlowAttributeAssignment.java b/src/main/java/com/microsoft/graph/models/IdentityUserFlowAttributeAssignment.java index e87492f6f70..0ab8dedb5d0 100644 --- a/src/main/java/com/microsoft/graph/models/IdentityUserFlowAttributeAssignment.java +++ b/src/main/java/com/microsoft/graph/models/IdentityUserFlowAttributeAssignment.java @@ -40,7 +40,7 @@ public class IdentityUserFlowAttributeAssignment extends Entity implements IJson /** * The Is Optional. - * Determines whether the identityUserFlowAttribute is optional. true means the user doesn't have to provide a value. false means the user cannot complete sign-up without providing a value. + * Determines whether the identityUserFlowAttribute is optional. true means the user doesn't have to provide a value. false means the user can't complete sign-up without providing a value. */ @SerializedName(value = "isOptional", alternate = {"IsOptional"}) @Expose @@ -49,7 +49,7 @@ public class IdentityUserFlowAttributeAssignment extends Entity implements IJson /** * The Requires Verification. - * Determines whether the identityUserFlowAttribute requires verification. This is only used for verifying the user's phone number or email address. + * Determines whether the identityUserFlowAttribute requires verification, and is only used for verifying the user's phone number or email address. */ @SerializedName(value = "requiresVerification", alternate = {"RequiresVerification"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/IncludeAllAccountTargetContent.java b/src/main/java/com/microsoft/graph/models/IncludeAllAccountTargetContent.java new file mode 100644 index 00000000000..62377db4990 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/IncludeAllAccountTargetContent.java @@ -0,0 +1,38 @@ +// 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.AccountTargetContent; + + +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 Include All Account Target Content. + */ +public class IncludeAllAccountTargetContent extends AccountTargetContent implements IJsonBackedObject { + + + + /** + * 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/Invitation.java b/src/main/java/com/microsoft/graph/models/Invitation.java index 4ad4e014d38..02d3f4bbc0a 100644 --- a/src/main/java/com/microsoft/graph/models/Invitation.java +++ b/src/main/java/com/microsoft/graph/models/Invitation.java @@ -38,7 +38,7 @@ public class Invitation extends Entity implements IJsonBackedObject { /** * The Invited User Email Address. - * The email address of the user being invited. Required. The following special characters are not permitted in the email address:Tilde (~)Exclamation point (!)Number sign (#)Dollar sign ($)Percent (%)Circumflex (^)Ampersand (&)Asterisk (*)Parentheses (( ))Plus sign (+)Equal sign (=)Brackets ([ ])Braces ({ })Backslash (/)Slash mark (/)Pipe (/|)Semicolon (;)Colon (:)Quotation marks (')Angle brackets (< >)Question mark (?)Comma (,)However, the following exceptions apply:A period (.) or a hyphen (-) is permitted anywhere in the user name, except at the beginning or end of the name.An underscore (_) is permitted anywhere in the user name. This includes at the beginning or end of the name. + * The email address of the user being invited. Required. The following special characters aren't permitted in the email address:Tilde (~)Exclamation point (!)Number sign (#)Dollar sign ($)Percent (%)Circumflex (^)Ampersand (&)Asterisk (*)Parentheses (( ))Plus sign (+)Equal sign (=)Brackets ([ ])Braces ({ })Backslash (/)Slash mark (/)Pipe (/|)Semicolon (;)Colon (:)Quotation marks (')Angle brackets (< >)Question mark (?)Comma (,)However, the following exceptions apply:A period (.) or a hyphen (-) is permitted anywhere in the user name, except at the beginning or end of the name.An underscore (_) is permitted anywhere in the user name. This includes at the beginning or end of the name. */ @SerializedName(value = "invitedUserEmailAddress", alternate = {"InvitedUserEmailAddress"}) @Expose @@ -56,7 +56,7 @@ public class Invitation extends Entity implements IJsonBackedObject { /** * The Invited User Type. - * The userType of the user being invited. By default, this is Guest. You can invite as Member if you are a company administrator. + * The userType of the user being invited. By default, this is Guest. You can invite as Member if you're a company administrator. */ @SerializedName(value = "invitedUserType", alternate = {"InvitedUserType"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/IpNamedLocation.java b/src/main/java/com/microsoft/graph/models/IpNamedLocation.java index 8a9eedbd817..a50a1f0eae3 100644 --- a/src/main/java/com/microsoft/graph/models/IpNamedLocation.java +++ b/src/main/java/com/microsoft/graph/models/IpNamedLocation.java @@ -29,7 +29,7 @@ public class IpNamedLocation extends NamedLocation implements IJsonBackedObject /** * The Ip Ranges. - * List of IP address ranges in IPv4 CIDR format (e.g. 1.2.3.4/32) or any allowable IPv6 format from IETF RFC5969. Required. + * List of IP address ranges in IPv4 CIDR format (for example, 1.2.3.4/32) or any allowable IPv6 format from IETF RFC5969. Required. */ @SerializedName(value = "ipRanges", alternate = {"IpRanges"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/LandingPage.java b/src/main/java/com/microsoft/graph/models/LandingPage.java new file mode 100644 index 00000000000..bbb936d489a --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/LandingPage.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.EmailIdentity; +import com.microsoft.graph.models.SimulationContentSource; +import com.microsoft.graph.models.SimulationContentStatus; +import com.microsoft.graph.models.Entity; +import com.microsoft.graph.requests.LandingPageDetailCollectionPage; + + +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 Landing Page. + */ +public class LandingPage extends Entity implements IJsonBackedObject { + + + /** + * The Created By. + * + */ + @SerializedName(value = "createdBy", alternate = {"CreatedBy"}) + @Expose + @Nullable + public EmailIdentity 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 Last Modified By. + * + */ + @SerializedName(value = "lastModifiedBy", alternate = {"LastModifiedBy"}) + @Expose + @Nullable + public EmailIdentity lastModifiedBy; + + /** + * The Last Modified Date Time. + * + */ + @SerializedName(value = "lastModifiedDateTime", alternate = {"LastModifiedDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime lastModifiedDateTime; + + /** + * The Locale. + * + */ + @SerializedName(value = "locale", alternate = {"Locale"}) + @Expose + @Nullable + public String locale; + + /** + * The Source. + * + */ + @SerializedName(value = "source", alternate = {"Source"}) + @Expose + @Nullable + public SimulationContentSource source; + + /** + * The Status. + * + */ + @SerializedName(value = "status", alternate = {"Status"}) + @Expose + @Nullable + public SimulationContentStatus status; + + /** + * The Supported Locales. + * + */ + @SerializedName(value = "supportedLocales", alternate = {"SupportedLocales"}) + @Expose + @Nullable + public java.util.List supportedLocales; + + /** + * The Details. + * + */ + @SerializedName(value = "details", alternate = {"Details"}) + @Expose + @Nullable + public com.microsoft.graph.requests.LandingPageDetailCollectionPage details; + + + /** + * 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("details")) { + details = serializer.deserializeObject(json.get("details"), com.microsoft.graph.requests.LandingPageDetailCollectionPage.class); + } + } +} diff --git a/src/main/java/com/microsoft/graph/models/LandingPageDetail.java b/src/main/java/com/microsoft/graph/models/LandingPageDetail.java new file mode 100644 index 00000000000..9ed74d832c0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/LandingPageDetail.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.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 Landing Page Detail. + */ +public class LandingPageDetail extends Entity implements IJsonBackedObject { + + + /** + * The Content. + * + */ + @SerializedName(value = "content", alternate = {"Content"}) + @Expose + @Nullable + public String content; + + /** + * The Is Default Langauge. + * + */ + @SerializedName(value = "isDefaultLangauge", alternate = {"IsDefaultLangauge"}) + @Expose + @Nullable + public Boolean isDefaultLangauge; + + /** + * The Language. + * + */ + @SerializedName(value = "language", alternate = {"Language"}) + @Expose + @Nullable + public String language; + + + /** + * 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/ListInfo.java b/src/main/java/com/microsoft/graph/models/ListInfo.java index cdc8e6c5e4c..35862dcc715 100644 --- a/src/main/java/com/microsoft/graph/models/ListInfo.java +++ b/src/main/java/com/microsoft/graph/models/ListInfo.java @@ -48,7 +48,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Hidden. - * If true, indicates that the list is not normally visible in the SharePoint user experience. + * If true, indicates that the list isn't normally visible in the SharePoint user experience. */ @SerializedName(value = "hidden", alternate = {"Hidden"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/LocationConstraint.java b/src/main/java/com/microsoft/graph/models/LocationConstraint.java index 90cf4d283b5..1dfdfb08cf3 100644 --- a/src/main/java/com/microsoft/graph/models/LocationConstraint.java +++ b/src/main/java/com/microsoft/graph/models/LocationConstraint.java @@ -41,7 +41,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Is Required. - * The client requests the service to include in the response a meeting location for the meeting. If this is true and all the resources are busy, findMeetingTimes will not return any meeting time suggestions. If this is false and all the resources are busy, findMeetingTimes would still look for meeting times without locations. + * The client requests the service to include in the response a meeting location for the meeting. If this is true and all the resources are busy, findMeetingTimes won't return any meeting time suggestions. If this is false and all the resources are busy, findMeetingTimes would still look for meeting times without locations. */ @SerializedName(value = "isRequired", alternate = {"IsRequired"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/LoginPage.java b/src/main/java/com/microsoft/graph/models/LoginPage.java new file mode 100644 index 00000000000..ca3e07cb84e --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/LoginPage.java @@ -0,0 +1,131 @@ +// 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.EmailIdentity; +import com.microsoft.graph.models.SimulationContentSource; +import com.microsoft.graph.models.SimulationContentStatus; +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 Login Page. + */ +public class LoginPage extends Entity implements IJsonBackedObject { + + + /** + * The Content. + * + */ + @SerializedName(value = "content", alternate = {"Content"}) + @Expose + @Nullable + public String content; + + /** + * The Created By. + * + */ + @SerializedName(value = "createdBy", alternate = {"CreatedBy"}) + @Expose + @Nullable + public EmailIdentity 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 Language. + * + */ + @SerializedName(value = "language", alternate = {"Language"}) + @Expose + @Nullable + public String language; + + /** + * The Last Modified By. + * + */ + @SerializedName(value = "lastModifiedBy", alternate = {"LastModifiedBy"}) + @Expose + @Nullable + public EmailIdentity lastModifiedBy; + + /** + * The Last Modified Date Time. + * + */ + @SerializedName(value = "lastModifiedDateTime", alternate = {"LastModifiedDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime lastModifiedDateTime; + + /** + * The Source. + * + */ + @SerializedName(value = "source", alternate = {"Source"}) + @Expose + @Nullable + public SimulationContentSource source; + + /** + * The Status. + * + */ + @SerializedName(value = "status", alternate = {"Status"}) + @Expose + @Nullable + public SimulationContentStatus 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/MediaInfo.java b/src/main/java/com/microsoft/graph/models/MediaInfo.java index b1636336b09..8a882101e61 100644 --- a/src/main/java/com/microsoft/graph/models/MediaInfo.java +++ b/src/main/java/com/microsoft/graph/models/MediaInfo.java @@ -39,7 +39,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Resource Id. - * Optional. Used to uniquely identity the resource. If passed in, the prompt uri will be cached against this resourceId as a key. + * Optional. Used to uniquely identity the resource. If passed in, the prompt uri is against this resourceId as a key. */ @SerializedName(value = "resourceId", alternate = {"ResourceId"}) @Expose @@ -48,7 +48,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Uri. - * Path to the prompt that will be played. Currently supports only Wave file (.wav) format, single-channel, 16-bit samples with a 16,000 (16KHz) sampling rate. + * Path to the prompt that will be played. Currently supports only Wave file (.wav) format, single-channel, 16-bit samples with a 16,000 (16 KHz) sampling rate. */ @SerializedName(value = "uri", alternate = {"Uri"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/MicrosoftAuthenticatorAuthenticationMethod.java b/src/main/java/com/microsoft/graph/models/MicrosoftAuthenticatorAuthenticationMethod.java index 19c3d120b31..475e1bdc38a 100644 --- a/src/main/java/com/microsoft/graph/models/MicrosoftAuthenticatorAuthenticationMethod.java +++ b/src/main/java/com/microsoft/graph/models/MicrosoftAuthenticatorAuthenticationMethod.java @@ -28,7 +28,7 @@ public class MicrosoftAuthenticatorAuthenticationMethod extends AuthenticationMe /** * The Created Date Time. - * The date and time that this app was registered. This property is null if the device is not registered for passwordless Phone Sign-In. + * The date and time that this app was registered. This property is null if the device isn't registered for passwordless Phone Sign-In. */ @SerializedName(value = "createdDateTime", alternate = {"CreatedDateTime"}) @Expose @@ -64,7 +64,7 @@ public class MicrosoftAuthenticatorAuthenticationMethod extends AuthenticationMe /** * The Device. - * The registered device on which Microsoft Authenticator resides. This property is null if the device is not registered for passwordless Phone Sign-In. + * The registered device on which Microsoft Authenticator resides. This property is null if the device isn't registered for passwordless Phone Sign-In. */ @SerializedName(value = "device", alternate = {"Device"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/MicrosoftCustomTrainingSetting.java b/src/main/java/com/microsoft/graph/models/MicrosoftCustomTrainingSetting.java new file mode 100644 index 00000000000..f36fa736ac6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/MicrosoftCustomTrainingSetting.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.microsoft.graph.http.BaseCollectionPage; +import com.microsoft.graph.models.MicrosoftTrainingAssignmentMapping; +import com.microsoft.graph.models.TrainingCompletionDuration; +import com.microsoft.graph.models.TrainingSetting; + + +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 Microsoft Custom Training Setting. + */ +public class MicrosoftCustomTrainingSetting extends TrainingSetting implements IJsonBackedObject { + + + /** + * The Completion Date Time. + * + */ + @SerializedName(value = "completionDateTime", alternate = {"CompletionDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime completionDateTime; + + /** + * The Training Assignment Mappings. + * + */ + @SerializedName(value = "trainingAssignmentMappings", alternate = {"TrainingAssignmentMappings"}) + @Expose + @Nullable + public java.util.List trainingAssignmentMappings; + + /** + * The Training Completion Duration. + * + */ + @SerializedName(value = "trainingCompletionDuration", alternate = {"TrainingCompletionDuration"}) + @Expose + @Nullable + public TrainingCompletionDuration trainingCompletionDuration; + + + /** + * 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/MicrosoftManagedTrainingSetting.java b/src/main/java/com/microsoft/graph/models/MicrosoftManagedTrainingSetting.java new file mode 100644 index 00000000000..1162fc47a47 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/MicrosoftManagedTrainingSetting.java @@ -0,0 +1,57 @@ +// 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.TrainingCompletionDuration; +import com.microsoft.graph.models.TrainingSetting; + + +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 Microsoft Managed Training Setting. + */ +public class MicrosoftManagedTrainingSetting extends TrainingSetting implements IJsonBackedObject { + + + /** + * The Completion Date Time. + * + */ + @SerializedName(value = "completionDateTime", alternate = {"CompletionDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime completionDateTime; + + /** + * The Training Completion Duration. + * + */ + @SerializedName(value = "trainingCompletionDuration", alternate = {"TrainingCompletionDuration"}) + @Expose + @Nullable + public TrainingCompletionDuration trainingCompletionDuration; + + + /** + * 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/MicrosoftTrainingAssignmentMapping.java b/src/main/java/com/microsoft/graph/models/MicrosoftTrainingAssignmentMapping.java new file mode 100644 index 00000000000..1b0315300c4 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/MicrosoftTrainingAssignmentMapping.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.microsoft.graph.http.BaseCollectionPage; +import com.microsoft.graph.models.TrainingAssignedTo; +import com.microsoft.graph.models.Training; +import com.microsoft.graph.models.TrainingSetting; + + +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 Microsoft Training Assignment Mapping. + */ +public class MicrosoftTrainingAssignmentMapping extends TrainingSetting implements IJsonBackedObject { + + + /** + * The Assigned To. + * + */ + @SerializedName(value = "assignedTo", alternate = {"AssignedTo"}) + @Expose + @Nullable + public java.util.List assignedTo; + + /** + * The Training. + * + */ + @SerializedName(value = "training", alternate = {"Training"}) + @Expose + @Nullable + public Training training; + + + /** + * 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/NoTrainingNotificationSetting.java b/src/main/java/com/microsoft/graph/models/NoTrainingNotificationSetting.java new file mode 100644 index 00000000000..3f845f695ab --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/NoTrainingNotificationSetting.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.SimulationNotification; +import com.microsoft.graph.models.EndUserNotificationSetting; + + +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 No Training Notification Setting. + */ +public class NoTrainingNotificationSetting extends EndUserNotificationSetting implements IJsonBackedObject { + + + /** + * The Simulation Notification. + * + */ + @SerializedName(value = "simulationNotification", alternate = {"SimulationNotification"}) + @Expose + @Nullable + public SimulationNotification simulationNotification; + + + /** + * 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/NoTrainingSetting.java b/src/main/java/com/microsoft/graph/models/NoTrainingSetting.java new file mode 100644 index 00000000000..12ea126adf0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/NoTrainingSetting.java @@ -0,0 +1,38 @@ +// 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.TrainingSetting; + + +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 No Training Setting. + */ +public class NoTrainingSetting extends TrainingSetting implements IJsonBackedObject { + + + + /** + * 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/NotificationDeliveryFrequency.java b/src/main/java/com/microsoft/graph/models/NotificationDeliveryFrequency.java new file mode 100644 index 00000000000..a30a7095e92 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/NotificationDeliveryFrequency.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 Notification Delivery Frequency. +*/ +public enum NotificationDeliveryFrequency +{ + /** + * unknown + */ + UNKNOWN, + /** + * weekly + */ + WEEKLY, + /** + * bi Weekly + */ + BI_WEEKLY, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For NotificationDeliveryFrequency values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/NotificationDeliveryPreference.java b/src/main/java/com/microsoft/graph/models/NotificationDeliveryPreference.java new file mode 100644 index 00000000000..0bce3825aeb --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/NotificationDeliveryPreference.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 Notification Delivery Preference. +*/ +public enum NotificationDeliveryPreference +{ + /** + * unknown + */ + UNKNOWN, + /** + * deliver Immedietly + */ + DELIVER_IMMEDIETLY, + /** + * deliver After Campaign End + */ + DELIVER_AFTER_CAMPAIGN_END, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For NotificationDeliveryPreference values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/OAuthAppScope.java b/src/main/java/com/microsoft/graph/models/OAuthAppScope.java new file mode 100644 index 00000000000..410759e566b --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/OAuthAppScope.java @@ -0,0 +1,54 @@ +// 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 OAuth App Scope. +*/ +public enum OAuthAppScope +{ + /** + * unknown + */ + UNKNOWN, + /** + * read Calendar + */ + READ_CALENDAR, + /** + * read Contact + */ + READ_CONTACT, + /** + * read Mail + */ + READ_MAIL, + /** + * read All Chat + */ + READ_ALL_CHAT, + /** + * read All File + */ + READ_ALL_FILE, + /** + * read And Write Mail + */ + READ_AND_WRITE_MAIL, + /** + * send Mail + */ + SEND_MAIL, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For OAuthAppScope values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/OAuthConsentAppDetail.java b/src/main/java/com/microsoft/graph/models/OAuthConsentAppDetail.java new file mode 100644 index 00000000000..af81ec517af --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/OAuthConsentAppDetail.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.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.OAuthAppScope; + + +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 OAuth Consent App Detail. + */ +public class OAuthConsentAppDetail 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 Scope. + * + */ + @SerializedName(value = "appScope", alternate = {"AppScope"}) + @Expose + @Nullable + public OAuthAppScope appScope; + + /** + * The Display Logo. + * + */ + @SerializedName(value = "displayLogo", alternate = {"DisplayLogo"}) + @Expose + @Nullable + public String displayLogo; + + /** + * The Display Name. + * + */ + @SerializedName(value = "displayName", alternate = {"DisplayName"}) + @Expose + @Nullable + public String displayName; + + + /** + * Sets the raw JSON object + * + * @param serializer the serializer + * @param json the JSON object to set this object to + */ + public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { + + } +} diff --git a/src/main/java/com/microsoft/graph/models/Onenote.java b/src/main/java/com/microsoft/graph/models/Onenote.java index edc2920f987..5f673af9b6d 100644 --- a/src/main/java/com/microsoft/graph/models/Onenote.java +++ b/src/main/java/com/microsoft/graph/models/Onenote.java @@ -43,7 +43,7 @@ public class Onenote extends Entity implements IJsonBackedObject { /** * The Operations. - * The status of OneNote operations. Getting an operations collection is not supported, but you can get the status of long-running operations if the Operation-Location header is returned in the response. Read-only. Nullable. + * The status of OneNote operations. Getting an operations collection isn't supported, but you can get the status of long-running operations if the Operation-Location header is returned in the response. Read-only. Nullable. */ @SerializedName(value = "operations", alternate = {"Operations"}) @Expose @@ -61,7 +61,7 @@ public class Onenote extends Entity implements IJsonBackedObject { /** * The Resources. - * The image and other file resources in OneNote pages. Getting a resources collection is not supported, but you can get the binary content of a specific resource. Read-only. Nullable. + * The image and other file resources in OneNote pages. Getting a resources collection isn't supported, but you can get the binary content of a specific resource. Read-only. Nullable. */ @SerializedName(value = "resources", alternate = {"Resources"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/OnenoteEntityHierarchyModel.java b/src/main/java/com/microsoft/graph/models/OnenoteEntityHierarchyModel.java index 6d5cd116a78..036937fce89 100644 --- a/src/main/java/com/microsoft/graph/models/OnenoteEntityHierarchyModel.java +++ b/src/main/java/com/microsoft/graph/models/OnenoteEntityHierarchyModel.java @@ -28,7 +28,7 @@ public class OnenoteEntityHierarchyModel extends OnenoteEntitySchemaObjectModel /** * The Created By. - * Identity of the user, device, and application which created the item. Read-only. + * Identity of the user, device, and application that created the item. Read-only. */ @SerializedName(value = "createdBy", alternate = {"CreatedBy"}) @Expose @@ -46,7 +46,7 @@ public class OnenoteEntityHierarchyModel extends OnenoteEntitySchemaObjectModel /** * The Last Modified By. - * Identity of the user, device, and application which created the item. Read-only. + * Identity of the user, device, and application that created the item. Read-only. */ @SerializedName(value = "lastModifiedBy", alternate = {"LastModifiedBy"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/OnlineMeeting.java b/src/main/java/com/microsoft/graph/models/OnlineMeeting.java index 6f1c4ba0a37..4cf877cc02e 100644 --- a/src/main/java/com/microsoft/graph/models/OnlineMeeting.java +++ b/src/main/java/com/microsoft/graph/models/OnlineMeeting.java @@ -22,6 +22,7 @@ import com.microsoft.graph.models.WatermarkProtectionValues; import com.microsoft.graph.models.Entity; import com.microsoft.graph.requests.MeetingAttendanceReportCollectionPage; +import com.microsoft.graph.requests.CallTranscriptCollectionPage; import com.google.gson.JsonObject; @@ -272,6 +273,15 @@ public class OnlineMeeting extends Entity implements IJsonBackedObject { @Nullable public com.microsoft.graph.requests.MeetingAttendanceReportCollectionPage attendanceReports; + /** + * The Transcripts. + * + */ + @SerializedName(value = "transcripts", alternate = {"Transcripts"}) + @Expose + @Nullable + public com.microsoft.graph.requests.CallTranscriptCollectionPage transcripts; + /** * Sets the raw JSON object @@ -285,5 +295,9 @@ public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final J if (json.has("attendanceReports")) { attendanceReports = serializer.deserializeObject(json.get("attendanceReports"), com.microsoft.graph.requests.MeetingAttendanceReportCollectionPage.class); } + + if (json.has("transcripts")) { + transcripts = serializer.deserializeObject(json.get("transcripts"), com.microsoft.graph.requests.CallTranscriptCollectionPage.class); + } } } diff --git a/src/main/java/com/microsoft/graph/models/ParticipantInfo.java b/src/main/java/com/microsoft/graph/models/ParticipantInfo.java index f141cf060bb..17b971ff499 100644 --- a/src/main/java/com/microsoft/graph/models/ParticipantInfo.java +++ b/src/main/java/com/microsoft/graph/models/ParticipantInfo.java @@ -86,7 +86,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Region. - * The home region of the participant. This can be a country, a continent, or a larger geographic region. This does not change based on the participant's current physical location. Read-only. + * The home region of the participant. This can be a country, a continent, or a larger geographic region. This doesn't change based on the participant's current physical location. Read-only. */ @SerializedName(value = "region", alternate = {"Region"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/Payload.java b/src/main/java/com/microsoft/graph/models/Payload.java new file mode 100644 index 00000000000..68a55b94e96 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/Payload.java @@ -0,0 +1,248 @@ +// 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.PayloadBrand; +import com.microsoft.graph.models.PayloadComplexity; +import com.microsoft.graph.models.EmailIdentity; +import com.microsoft.graph.models.PayloadDetail; +import com.microsoft.graph.models.PayloadIndustry; +import com.microsoft.graph.models.PayloadDeliveryPlatform; +import com.microsoft.graph.models.SimulationAttackType; +import com.microsoft.graph.models.SimulationContentSource; +import com.microsoft.graph.models.SimulationContentStatus; +import com.microsoft.graph.models.SimulationAttackTechnique; +import com.microsoft.graph.models.PayloadTheme; +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 Payload. + */ +public class Payload extends Entity implements IJsonBackedObject { + + + /** + * The Brand. + * + */ + @SerializedName(value = "brand", alternate = {"Brand"}) + @Expose + @Nullable + public PayloadBrand brand; + + /** + * The Complexity. + * + */ + @SerializedName(value = "complexity", alternate = {"Complexity"}) + @Expose + @Nullable + public PayloadComplexity complexity; + + /** + * The Created By. + * + */ + @SerializedName(value = "createdBy", alternate = {"CreatedBy"}) + @Expose + @Nullable + public EmailIdentity 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 Detail. + * + */ + @SerializedName(value = "detail", alternate = {"Detail"}) + @Expose + @Nullable + public PayloadDetail detail; + + /** + * The Display Name. + * + */ + @SerializedName(value = "displayName", alternate = {"DisplayName"}) + @Expose + @Nullable + public String displayName; + + /** + * The Industry. + * + */ + @SerializedName(value = "industry", alternate = {"Industry"}) + @Expose + @Nullable + public PayloadIndustry industry; + + /** + * The Is Automated. + * + */ + @SerializedName(value = "isAutomated", alternate = {"IsAutomated"}) + @Expose + @Nullable + public Boolean isAutomated; + + /** + * The Is Controversial. + * + */ + @SerializedName(value = "isControversial", alternate = {"IsControversial"}) + @Expose + @Nullable + public Boolean isControversial; + + /** + * The Is Current Event. + * + */ + @SerializedName(value = "isCurrentEvent", alternate = {"IsCurrentEvent"}) + @Expose + @Nullable + public Boolean isCurrentEvent; + + /** + * The Language. + * + */ + @SerializedName(value = "language", alternate = {"Language"}) + @Expose + @Nullable + public String language; + + /** + * The Last Modified By. + * + */ + @SerializedName(value = "lastModifiedBy", alternate = {"LastModifiedBy"}) + @Expose + @Nullable + public EmailIdentity lastModifiedBy; + + /** + * The Last Modified Date Time. + * + */ + @SerializedName(value = "lastModifiedDateTime", alternate = {"LastModifiedDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime lastModifiedDateTime; + + /** + * The Payload Tags. + * + */ + @SerializedName(value = "payloadTags", alternate = {"PayloadTags"}) + @Expose + @Nullable + public java.util.List payloadTags; + + /** + * The Platform. + * + */ + @SerializedName(value = "platform", alternate = {"Platform"}) + @Expose + @Nullable + public PayloadDeliveryPlatform platform; + + /** + * The Predicted Compromise Rate. + * + */ + @SerializedName(value = "predictedCompromiseRate", alternate = {"PredictedCompromiseRate"}) + @Expose + @Nullable + public Double predictedCompromiseRate; + + /** + * The Simulation Attack Type. + * + */ + @SerializedName(value = "simulationAttackType", alternate = {"SimulationAttackType"}) + @Expose + @Nullable + public SimulationAttackType simulationAttackType; + + /** + * The Source. + * + */ + @SerializedName(value = "source", alternate = {"Source"}) + @Expose + @Nullable + public SimulationContentSource source; + + /** + * The Status. + * + */ + @SerializedName(value = "status", alternate = {"Status"}) + @Expose + @Nullable + public SimulationContentStatus status; + + /** + * The Technique. + * + */ + @SerializedName(value = "technique", alternate = {"Technique"}) + @Expose + @Nullable + public SimulationAttackTechnique technique; + + /** + * The Theme. + * + */ + @SerializedName(value = "theme", alternate = {"Theme"}) + @Expose + @Nullable + public PayloadTheme theme; + + + /** + * 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/PayloadBrand.java b/src/main/java/com/microsoft/graph/models/PayloadBrand.java new file mode 100644 index 00000000000..45a4329a250 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/PayloadBrand.java @@ -0,0 +1,102 @@ +// 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 Payload Brand. +*/ +public enum PayloadBrand +{ + /** + * unknown + */ + UNKNOWN, + /** + * other + */ + OTHER, + /** + * american Express + */ + AMERICAN_EXPRESS, + /** + * capital One + */ + CAPITAL_ONE, + /** + * dhl + */ + DHL, + /** + * docu Sign + */ + DOCU_SIGN, + /** + * dropbox + */ + DROPBOX, + /** + * facebook + */ + FACEBOOK, + /** + * first American + */ + FIRST_AMERICAN, + /** + * microsoft + */ + MICROSOFT, + /** + * netflix + */ + NETFLIX, + /** + * scotiabank + */ + SCOTIABANK, + /** + * send Grid + */ + SEND_GRID, + /** + * stewart Title + */ + STEWART_TITLE, + /** + * tesco + */ + TESCO, + /** + * wells Fargo + */ + WELLS_FARGO, + /** + * syrinx Cloud + */ + SYRINX_CLOUD, + /** + * adobe + */ + ADOBE, + /** + * teams + */ + TEAMS, + /** + * zoom + */ + ZOOM, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For PayloadBrand values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/PayloadCoachmark.java b/src/main/java/com/microsoft/graph/models/PayloadCoachmark.java new file mode 100644 index 00000000000..bd31019cb65 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/PayloadCoachmark.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.CoachmarkLocation; + + +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 Payload Coachmark. + */ +public class PayloadCoachmark 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 Coachmark Location. + * + */ + @SerializedName(value = "coachmarkLocation", alternate = {"CoachmarkLocation"}) + @Expose + @Nullable + public CoachmarkLocation coachmarkLocation; + + /** + * The Description. + * + */ + @SerializedName(value = "description", alternate = {"Description"}) + @Expose + @Nullable + public String description; + + /** + * The Indicator. + * + */ + @SerializedName(value = "indicator", alternate = {"Indicator"}) + @Expose + @Nullable + public String indicator; + + /** + * The Is Valid. + * + */ + @SerializedName(value = "isValid", alternate = {"IsValid"}) + @Expose + @Nullable + public Boolean isValid; + + /** + * The Language. + * + */ + @SerializedName(value = "language", alternate = {"Language"}) + @Expose + @Nullable + public String language; + + /** + * The Order. + * + */ + @SerializedName(value = "order", alternate = {"Order"}) + @Expose + @Nullable + public String order; + + + /** + * 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/PayloadComplexity.java b/src/main/java/com/microsoft/graph/models/PayloadComplexity.java new file mode 100644 index 00000000000..d052c2157f3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/PayloadComplexity.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 Payload Complexity. +*/ +public enum PayloadComplexity +{ + /** + * unknown + */ + UNKNOWN, + /** + * low + */ + LOW, + /** + * medium + */ + MEDIUM, + /** + * high + */ + HIGH, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For PayloadComplexity values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/PayloadDetail.java b/src/main/java/com/microsoft/graph/models/PayloadDetail.java new file mode 100644 index 00000000000..076f2e9f006 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/PayloadDetail.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.http.BaseCollectionPage; +import com.microsoft.graph.models.PayloadCoachmark; + + +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 Payload Detail. + */ +public class PayloadDetail 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 Coachmarks. + * + */ + @SerializedName(value = "coachmarks", alternate = {"Coachmarks"}) + @Expose + @Nullable + public java.util.List coachmarks; + + /** + * The Content. + * + */ + @SerializedName(value = "content", alternate = {"Content"}) + @Expose + @Nullable + public String content; + + /** + * The Phishing Url. + * + */ + @SerializedName(value = "phishingUrl", alternate = {"PhishingUrl"}) + @Expose + @Nullable + public String phishingUrl; + + + /** + * 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/PayloadIndustry.java b/src/main/java/com/microsoft/graph/models/PayloadIndustry.java new file mode 100644 index 00000000000..e8b0d1574a3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/PayloadIndustry.java @@ -0,0 +1,106 @@ +// 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 Payload Industry. +*/ +public enum PayloadIndustry +{ + /** + * unknown + */ + UNKNOWN, + /** + * other + */ + OTHER, + /** + * banking + */ + BANKING, + /** + * business Services + */ + BUSINESS_SERVICES, + /** + * consumer Services + */ + CONSUMER_SERVICES, + /** + * education + */ + EDUCATION, + /** + * energy + */ + ENERGY, + /** + * construction + */ + CONSTRUCTION, + /** + * consulting + */ + CONSULTING, + /** + * financial Services + */ + FINANCIAL_SERVICES, + /** + * government + */ + GOVERNMENT, + /** + * hospitality + */ + HOSPITALITY, + /** + * insurance + */ + INSURANCE, + /** + * legal + */ + LEGAL, + /** + * courier Services + */ + COURIER_SERVICES, + /** + * IT + */ + IT, + /** + * healthcare + */ + HEALTHCARE, + /** + * manufacturing + */ + MANUFACTURING, + /** + * retail + */ + RETAIL, + /** + * telecom + */ + TELECOM, + /** + * real Estate + */ + REAL_ESTATE, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For PayloadIndustry values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/PayloadTheme.java b/src/main/java/com/microsoft/graph/models/PayloadTheme.java new file mode 100644 index 00000000000..e97c8a5c2bb --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/PayloadTheme.java @@ -0,0 +1,146 @@ +// 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 Payload Theme. +*/ +public enum PayloadTheme +{ + /** + * unknown + */ + UNKNOWN, + /** + * other + */ + OTHER, + /** + * account Activation + */ + ACCOUNT_ACTIVATION, + /** + * account Verification + */ + ACCOUNT_VERIFICATION, + /** + * billing + */ + BILLING, + /** + * clean Up Mail + */ + CLEAN_UP_MAIL, + /** + * controversial + */ + CONTROVERSIAL, + /** + * document Received + */ + DOCUMENT_RECEIVED, + /** + * expense + */ + EXPENSE, + /** + * fax + */ + FAX, + /** + * finance Report + */ + FINANCE_REPORT, + /** + * incoming Messages + */ + INCOMING_MESSAGES, + /** + * invoice + */ + INVOICE, + /** + * item Received + */ + ITEM_RECEIVED, + /** + * login Alert + */ + LOGIN_ALERT, + /** + * mail Received + */ + MAIL_RECEIVED, + /** + * password + */ + PASSWORD, + /** + * payment + */ + PAYMENT, + /** + * payroll + */ + PAYROLL, + /** + * personalized Offer + */ + PERSONALIZED_OFFER, + /** + * quarantine + */ + QUARANTINE, + /** + * remote Work + */ + REMOTE_WORK, + /** + * review Message + */ + REVIEW_MESSAGE, + /** + * security Update + */ + SECURITY_UPDATE, + /** + * service Suspended + */ + SERVICE_SUSPENDED, + /** + * signature Required + */ + SIGNATURE_REQUIRED, + /** + * upgrade Mailbox Storage + */ + UPGRADE_MAILBOX_STORAGE, + /** + * verify Mailbox + */ + VERIFY_MAILBOX, + /** + * voicemail + */ + VOICEMAIL, + /** + * advertisement + */ + ADVERTISEMENT, + /** + * employee Engagement + */ + EMPLOYEE_ENGAGEMENT, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For PayloadTheme values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/PermissionGrantConditionSet.java b/src/main/java/com/microsoft/graph/models/PermissionGrantConditionSet.java index b1a5486bd44..19b673a43ac 100644 --- a/src/main/java/com/microsoft/graph/models/PermissionGrantConditionSet.java +++ b/src/main/java/com/microsoft/graph/models/PermissionGrantConditionSet.java @@ -47,7 +47,7 @@ public class PermissionGrantConditionSet extends Entity implements IJsonBackedOb /** * The Client Applications From Verified Publisher Only. - * Set to true to only match on client applications with a verified publisher. Set to false to match on any client app, even if it does not have a verified publisher. Default is false. + * Set to true to only match on client applications with a verified publisher. Set to false to match on any client app, even if it doesn't have a verified publisher. Default is false. */ @SerializedName(value = "clientApplicationsFromVerifiedPublisherOnly", alternate = {"ClientApplicationsFromVerifiedPublisherOnly"}) @Expose @@ -65,7 +65,7 @@ public class PermissionGrantConditionSet extends Entity implements IJsonBackedOb /** * The Permission Classification. - * The permission classification for the permission being granted, or all to match with any permission classification (including permissions which are not classified). Default is all. + * The permission classification for the permission being granted, or all to match with any permission classification (including permissions that aren't classified). Default is all. */ @SerializedName(value = "permissionClassification", alternate = {"PermissionClassification"}) @Expose @@ -83,7 +83,7 @@ public class PermissionGrantConditionSet extends Entity implements IJsonBackedOb /** * The Permission Type. - * The permission type of the permission being granted. Possible values: application for application permissions (e.g. app roles), or delegated for delegated permissions. The value delegatedUserConsentable indicates delegated permissions which have not been configured by the API publisher to require admin consent—this value may be used in built-in permission grant policies, but cannot be used in custom permission grant policies. Required. + * The permission type of the permission being granted. Possible values: application for application permissions (for example app roles), or delegated for delegated permissions. The value delegatedUserConsentable indicates delegated permissions that haven't been configured by the API publisher to require admin consent—this value may be used in built-in permission grant policies, but can't be used in custom permission grant policies. Required. */ @SerializedName(value = "permissionType", alternate = {"PermissionType"}) @Expose @@ -92,7 +92,7 @@ public class PermissionGrantConditionSet extends Entity implements IJsonBackedOb /** * The Resource Application. - * The appId of the resource application (e.g. the API) for which a permission is being granted, or any to match with any resource application or API. Default is any. + * The appId of the resource application (for example the API) for which a permission is being granted, or any to match with any resource application or API. Default is any. */ @SerializedName(value = "resourceApplication", alternate = {"ResourceApplication"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/PlannerAssignment.java b/src/main/java/com/microsoft/graph/models/PlannerAssignment.java index 16dec40aad7..c3b560409fa 100644 --- a/src/main/java/com/microsoft/graph/models/PlannerAssignment.java +++ b/src/main/java/com/microsoft/graph/models/PlannerAssignment.java @@ -40,7 +40,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Assigned By. - * The identity of the user that performed the assignment of the task, i.e. the assignor. + * The identity of the user that performed the assignment of the task, that is, the assignor. */ @SerializedName(value = "assignedBy", alternate = {"AssignedBy"}) @Expose @@ -49,7 +49,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Assigned Date Time. - * The time at which the task was assigned. 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 + * The time when the task was assigned. 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 */ @SerializedName(value = "assignedDateTime", alternate = {"AssignedDateTime"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/PositiveReinforcementNotification.java b/src/main/java/com/microsoft/graph/models/PositiveReinforcementNotification.java new file mode 100644 index 00000000000..41901e438e4 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/PositiveReinforcementNotification.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.NotificationDeliveryPreference; +import com.microsoft.graph.models.BaseEndUserNotification; + + +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 Positive Reinforcement Notification. + */ +public class PositiveReinforcementNotification extends BaseEndUserNotification implements IJsonBackedObject { + + + /** + * The Delivery Preference. + * + */ + @SerializedName(value = "deliveryPreference", alternate = {"DeliveryPreference"}) + @Expose + @Nullable + public NotificationDeliveryPreference deliveryPreference; + + + /** + * 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/Presence.java b/src/main/java/com/microsoft/graph/models/Presence.java index 37f9a67eb97..b2793c7c427 100644 --- a/src/main/java/com/microsoft/graph/models/Presence.java +++ b/src/main/java/com/microsoft/graph/models/Presence.java @@ -46,7 +46,7 @@ public class Presence extends Entity implements IJsonBackedObject { /** * The Status Message. - * + * The presence status message of a user. */ @SerializedName(value = "statusMessage", alternate = {"StatusMessage"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/PresenceStatusMessage.java b/src/main/java/com/microsoft/graph/models/PresenceStatusMessage.java index 3e5217fd8a4..011d4ca68fc 100644 --- a/src/main/java/com/microsoft/graph/models/PresenceStatusMessage.java +++ b/src/main/java/com/microsoft/graph/models/PresenceStatusMessage.java @@ -41,7 +41,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Expiry Date Time. - * + * Time in which the status message expires.If not provided, the status message does not expire.expiryDateTime.dateTime should not include time zone.expiryDateTime is not available when you request the presence of another user. */ @SerializedName(value = "expiryDateTime", alternate = {"ExpiryDateTime"}) @Expose @@ -50,7 +50,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Message. - * + * Status message item. The only supported format currently is message.contentType = 'text'. */ @SerializedName(value = "message", alternate = {"Message"}) @Expose @@ -59,7 +59,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Published Date Time. - * + * Time in which the status message was published.Read-only.publishedDateTime is not available when you request the presence of another user. */ @SerializedName(value = "publishedDateTime", alternate = {"PublishedDateTime"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/ProvisioningErrorInfo.java b/src/main/java/com/microsoft/graph/models/ProvisioningErrorInfo.java index 27f1a0d3cf1..07e0fafe1a7 100644 --- a/src/main/java/com/microsoft/graph/models/ProvisioningErrorInfo.java +++ b/src/main/java/com/microsoft/graph/models/ProvisioningErrorInfo.java @@ -40,7 +40,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Additional Details. - * Additional details in case of error. + * Additional details if there's error. */ @SerializedName(value = "additionalDetails", alternate = {"AdditionalDetails"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/RubricLevel.java b/src/main/java/com/microsoft/graph/models/RubricLevel.java index 804e0e3facc..27a70ca1973 100644 --- a/src/main/java/com/microsoft/graph/models/RubricLevel.java +++ b/src/main/java/com/microsoft/graph/models/RubricLevel.java @@ -59,7 +59,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Grading. - * Null if this is a no-points rubric; educationAssignmentPointsGradeType if it is a points rubric. + * Null if this is a no-points rubric; educationAssignmentPointsGradeType if it's a points rubric. */ @SerializedName(value = "grading", alternate = {"Grading"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/SearchAlterationOptions.java b/src/main/java/com/microsoft/graph/models/SearchAlterationOptions.java index 0e27b71e416..36371439007 100644 --- a/src/main/java/com/microsoft/graph/models/SearchAlterationOptions.java +++ b/src/main/java/com/microsoft/graph/models/SearchAlterationOptions.java @@ -39,7 +39,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Enable Modification. - * Indicates whether spelling modifications are enabled. If enabled, the user will get the search results for the corrected query in case of no results for the original query with typos. The response will also include the spelling modification information in the queryAlterationResponse property. Optional. + * Indicates whether spelling modifications are enabled. If enabled, the user gets the search results for the corrected query if there were no results for the original query with typos. The response will also include the spelling modification information in the queryAlterationResponse property. Optional. */ @SerializedName(value = "enableModification", alternate = {"EnableModification"}) @Expose @@ -48,7 +48,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Enable Suggestion. - * Indicates whether spelling suggestions are enabled. If enabled, the user will get the search results for the original search query and suggestions for spelling correction in the queryAlterationResponse property of the response for the typos in the query. Optional. + * Indicates whether spelling suggestions are enabled. If enabled, the user gets the search results for the original search query and suggestions for spelling correction in the queryAlterationResponse property of the response for the typos in the query. Optional. */ @SerializedName(value = "enableSuggestion", alternate = {"EnableSuggestion"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/SearchHitsContainer.java b/src/main/java/com/microsoft/graph/models/SearchHitsContainer.java index 60ff110f981..490d821bf0b 100644 --- a/src/main/java/com/microsoft/graph/models/SearchHitsContainer.java +++ b/src/main/java/com/microsoft/graph/models/SearchHitsContainer.java @@ -69,7 +69,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Total. - * The total number of results. Note this is not the number of results on the page, but the total number of results satisfying the query. + * The total number of results. Note this isn't the number of results on the page, but the total number of results satisfying the query. */ @SerializedName(value = "total", alternate = {"Total"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/SelfServiceSignUpAuthenticationFlowConfiguration.java b/src/main/java/com/microsoft/graph/models/SelfServiceSignUpAuthenticationFlowConfiguration.java index 9b2de8536b7..b24ff007294 100644 --- a/src/main/java/com/microsoft/graph/models/SelfServiceSignUpAuthenticationFlowConfiguration.java +++ b/src/main/java/com/microsoft/graph/models/SelfServiceSignUpAuthenticationFlowConfiguration.java @@ -39,7 +39,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Is Enabled. - * Indicates whether self-service sign-up flow is enabled or disabled. The default value is false. This property is not a key. Required. + * Indicates whether self-service sign-up flow is enabled or disabled. The default value is false. This property isn't a key. Required. */ @SerializedName(value = "isEnabled", alternate = {"IsEnabled"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/Simulation.java b/src/main/java/com/microsoft/graph/models/Simulation.java index d8c0b46bac6..d254e0ae362 100644 --- a/src/main/java/com/microsoft/graph/models/Simulation.java +++ b/src/main/java/com/microsoft/graph/models/Simulation.java @@ -11,9 +11,16 @@ import com.microsoft.graph.models.SimulationAttackTechnique; import com.microsoft.graph.models.SimulationAttackType; import com.microsoft.graph.models.EmailIdentity; +import com.microsoft.graph.models.EndUserNotificationSetting; +import com.microsoft.graph.models.AccountTargetContent; +import com.microsoft.graph.models.OAuthConsentAppDetail; import com.microsoft.graph.models.PayloadDeliveryPlatform; import com.microsoft.graph.models.SimulationReport; import com.microsoft.graph.models.SimulationStatus; +import com.microsoft.graph.models.TrainingSetting; +import com.microsoft.graph.models.LandingPage; +import com.microsoft.graph.models.LoginPage; +import com.microsoft.graph.models.Payload; import com.microsoft.graph.models.Entity; @@ -103,6 +110,42 @@ public class Simulation extends Entity implements IJsonBackedObject { @Nullable public String displayName; + /** + * The Duration In Days. + * + */ + @SerializedName(value = "durationInDays", alternate = {"DurationInDays"}) + @Expose + @Nullable + public Integer durationInDays; + + /** + * The End User Notification Setting. + * + */ + @SerializedName(value = "endUserNotificationSetting", alternate = {"EndUserNotificationSetting"}) + @Expose + @Nullable + public EndUserNotificationSetting endUserNotificationSetting; + + /** + * The Excluded Account Target. + * + */ + @SerializedName(value = "excludedAccountTarget", alternate = {"ExcludedAccountTarget"}) + @Expose + @Nullable + public AccountTargetContent excludedAccountTarget; + + /** + * The Included Account Target. + * + */ + @SerializedName(value = "includedAccountTarget", alternate = {"IncludedAccountTarget"}) + @Expose + @Nullable + public AccountTargetContent includedAccountTarget; + /** * The Is Automated. * Flag that represents if the attack simulation and training campaign was created from a simulation automation flow. Supports $filter and $orderby. @@ -139,6 +182,15 @@ public class Simulation extends Entity implements IJsonBackedObject { @Nullable public java.time.OffsetDateTime launchDateTime; + /** + * The OAuth Consent App Detail. + * + */ + @SerializedName(value = "oAuthConsentAppDetail", alternate = {"OAuthConsentAppDetail"}) + @Expose + @Nullable + public OAuthConsentAppDetail oAuthConsentAppDetail; + /** * The Payload Delivery Platform. * Method of delivery of the phishing payload used in the attack simulation and training campaign. Possible values are: unknown, sms, email, teams, unknownFutureValue. @@ -166,6 +218,42 @@ public class Simulation extends Entity implements IJsonBackedObject { @Nullable public SimulationStatus status; + /** + * The Training Setting. + * + */ + @SerializedName(value = "trainingSetting", alternate = {"TrainingSetting"}) + @Expose + @Nullable + public TrainingSetting trainingSetting; + + /** + * The Landing Page. + * + */ + @SerializedName(value = "landingPage", alternate = {"LandingPage"}) + @Expose + @Nullable + public LandingPage landingPage; + + /** + * The Login Page. + * + */ + @SerializedName(value = "loginPage", alternate = {"LoginPage"}) + @Expose + @Nullable + public LoginPage loginPage; + + /** + * The Payload. + * + */ + @SerializedName(value = "payload", alternate = {"Payload"}) + @Expose + @Nullable + public Payload payload; + /** * Sets the raw JSON object diff --git a/src/main/java/com/microsoft/graph/models/SimulationContentSource.java b/src/main/java/com/microsoft/graph/models/SimulationContentSource.java new file mode 100644 index 00000000000..9dbafc93c53 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/SimulationContentSource.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 Simulation Content Source. +*/ +public enum SimulationContentSource +{ + /** + * unknown + */ + UNKNOWN, + /** + * global + */ + GLOBAL, + /** + * tenant + */ + TENANT, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For SimulationContentSource values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/SimulationContentStatus.java b/src/main/java/com/microsoft/graph/models/SimulationContentStatus.java new file mode 100644 index 00000000000..1ca9ea2b34f --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/SimulationContentStatus.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.models; + + +/** + * The Enum Simulation Content Status. +*/ +public enum SimulationContentStatus +{ + /** + * unknown + */ + UNKNOWN, + /** + * draft + */ + DRAFT, + /** + * ready + */ + READY, + /** + * archive + */ + ARCHIVE, + /** + * delete + */ + DELETE, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For SimulationContentStatus values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/SimulationNotification.java b/src/main/java/com/microsoft/graph/models/SimulationNotification.java new file mode 100644 index 00000000000..2b2cf154d97 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/SimulationNotification.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.TargettedUserType; +import com.microsoft.graph.models.BaseEndUserNotification; + + +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 Simulation Notification. + */ +public class SimulationNotification extends BaseEndUserNotification implements IJsonBackedObject { + + + /** + * The Targetted User Type. + * + */ + @SerializedName(value = "targettedUserType", alternate = {"TargettedUserType"}) + @Expose + @Nullable + public TargettedUserType targettedUserType; + + + /** + * 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/Subscription.java b/src/main/java/com/microsoft/graph/models/Subscription.java index 6435c028d7c..8c31c8be3a6 100644 --- a/src/main/java/com/microsoft/graph/models/Subscription.java +++ b/src/main/java/com/microsoft/graph/models/Subscription.java @@ -45,7 +45,7 @@ public class Subscription extends Entity implements IJsonBackedObject { /** * The Client State. - * Required. Specifies the value of the clientState property sent by the service in each change notification. The maximum length is 128 characters. The client can check that the change notification came from the service by comparing the value of the clientState property sent with the subscription with the value of the clientState property received with each change notification. + * Optional. Specifies the value of the clientState property sent by the service in each change notification. The maximum length is 128 characters. The client can check that the change notification came from the service by comparing the value of the clientState property sent with the subscription with the value of the clientState property received with each change notification. */ @SerializedName(value = "clientState", alternate = {"ClientState"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/Synchronization.java b/src/main/java/com/microsoft/graph/models/Synchronization.java index 5e8ed07a6bd..47a8b7b7557 100644 --- a/src/main/java/com/microsoft/graph/models/Synchronization.java +++ b/src/main/java/com/microsoft/graph/models/Synchronization.java @@ -49,7 +49,7 @@ public class Synchronization extends Entity implements IJsonBackedObject { /** * The Templates. - * Pre-configured synchronization settings for a particular application. + * Preconfigured synchronization settings for a particular application. */ @SerializedName(value = "templates", alternate = {"Templates"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/SynchronizationJobRestartCriteria.java b/src/main/java/com/microsoft/graph/models/SynchronizationJobRestartCriteria.java index 963aec379b9..804aa182b52 100644 --- a/src/main/java/com/microsoft/graph/models/SynchronizationJobRestartCriteria.java +++ b/src/main/java/com/microsoft/graph/models/SynchronizationJobRestartCriteria.java @@ -40,7 +40,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Reset Scope. - * Comma-separated combination of the following values: None, ConnectorDataStore, Escrows, Watermark, QuarantineState, Full, ForceDeletes. The property can also be empty. None: Starts a paused or quarantined provisioning job. DO NOT USE. Use the Start synchronizationJob API instead.ConnectorDataStore - Clears the underlying cache for all users. DO NOT USE. Contact Microsoft Support for guidance.Escrows - Provisioning failures are marked as escrows and retried. Clearing escrows will stop the service from retrying failures.Watermark - Removing the watermark causes the service to re-evaluate all the users again, rather than just processing changes.QuarantineState - Temporarily lifts the quarantine.Use Full if you want all of the options.ForceDeletes - Forces the system to delete the pending deleted users when using the accidental deletions prevention feature and the deletion threshold is exceeded. Leaving this property empty emulates the Restart provisioning option in the Microsoft Entra admin center. It is similar to setting the resetScope to include QuarantineState, Watermark, and Escrows. This option meets most customer needs. + * Comma-separated combination of the following values: None, ConnectorDataStore, Escrows, Watermark, QuarantineState, Full, ForceDeletes. The property can also be empty. None: Starts a paused or quarantined provisioning job. DO NOT USE. Use the Start synchronizationJob API instead.ConnectorDataStore - Clears the underlying cache for all users. DO NOT USE. Contact Microsoft Support for guidance.Escrows - Provisioning failures are marked as escrows and retried. Clearing escrows will stop the service from retrying failures.Watermark - Removing the watermark causes the service to reevaluate all the users again, rather than just processing changes.QuarantineState - Temporarily lifts the quarantine.Use Full if you want all of the options.ForceDeletes - Forces the system to delete the pending deleted users when using the accidental deletions prevention feature and the deletion threshold is exceeded. Leaving this property empty emulates the Restart provisioning option in the Microsoft Entra admin center. It is similar to setting the resetScope to include QuarantineState, Watermark, and Escrows. This option meets most customer needs. */ @SerializedName(value = "resetScope", alternate = {"ResetScope"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/SynchronizationRule.java b/src/main/java/com/microsoft/graph/models/SynchronizationRule.java index b1a248c5016..acaa33b98ec 100644 --- a/src/main/java/com/microsoft/graph/models/SynchronizationRule.java +++ b/src/main/java/com/microsoft/graph/models/SynchronizationRule.java @@ -53,7 +53,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Editable. - * true if the synchronization rule can be customized; false if this rule is read-only and should not be changed. + * true if the synchronization rule can be customized; false if this rule is read-only and shouldn't be changed. */ @SerializedName(value = "editable", alternate = {"Editable"}) @Expose @@ -80,7 +80,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Metadata. - * Additional extension properties. Unless instructed explicitly by the support team, metadata values should not be changed. + * Additional extension properties. Unless instructed explicitly by the support team, metadata values shouldn't be changed. */ @SerializedName(value = "metadata", alternate = {"Metadata"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/SynchronizationSchedule.java b/src/main/java/com/microsoft/graph/models/SynchronizationSchedule.java index 03d91c33051..1074c71185d 100644 --- a/src/main/java/com/microsoft/graph/models/SynchronizationSchedule.java +++ b/src/main/java/com/microsoft/graph/models/SynchronizationSchedule.java @@ -40,7 +40,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Expiration. - * Date and time when this job will expire. 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. + * Date and time when this job expires. 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. */ @SerializedName(value = "expiration", alternate = {"Expiration"}) @Expose @@ -49,7 +49,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Interval. - * The interval between synchronization iterations. The value is represented in ISO 8601 format for durations. For example, PT1M represents a period of 1 month. + * The interval between synchronization iterations. The value is represented in ISO 8601 format for durations. For example, PT1M represents a period of one month. */ @SerializedName(value = "interval", alternate = {"Interval"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/TargettedUserType.java b/src/main/java/com/microsoft/graph/models/TargettedUserType.java new file mode 100644 index 00000000000..74115f8fe8c --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/TargettedUserType.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 Targetted User Type. +*/ +public enum TargettedUserType +{ + /** + * unknown + */ + UNKNOWN, + /** + * clicked + */ + CLICKED, + /** + * compromised + */ + COMPROMISED, + /** + * all Users + */ + ALL_USERS, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For TargettedUserType values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/TeamsAppSettings.java b/src/main/java/com/microsoft/graph/models/TeamsAppSettings.java index 62831ca8fe8..0ae457ae9ed 100644 --- a/src/main/java/com/microsoft/graph/models/TeamsAppSettings.java +++ b/src/main/java/com/microsoft/graph/models/TeamsAppSettings.java @@ -27,7 +27,7 @@ public class TeamsAppSettings extends Entity implements IJsonBackedObject { /** * The Allow User Requests For App Access. - * + * Indicates whether users are allowed to request access to the unavailable Teams apps. */ @SerializedName(value = "allowUserRequestsForAppAccess", alternate = {"AllowUserRequestsForAppAccess"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/TeamsTab.java b/src/main/java/com/microsoft/graph/models/TeamsTab.java index 50d43f71f59..7989766074a 100644 --- a/src/main/java/com/microsoft/graph/models/TeamsTab.java +++ b/src/main/java/com/microsoft/graph/models/TeamsTab.java @@ -56,7 +56,7 @@ public class TeamsTab extends Entity implements IJsonBackedObject { /** * The Teams App. - * The application that is linked to the tab. This cannot be changed after tab creation. + * The application that is linked to the tab. This can't be changed after tab creation. */ @SerializedName(value = "teamsApp", alternate = {"TeamsApp"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/Teamwork.java b/src/main/java/com/microsoft/graph/models/Teamwork.java index 7ddea04f7b1..d8f189f2b7c 100644 --- a/src/main/java/com/microsoft/graph/models/Teamwork.java +++ b/src/main/java/com/microsoft/graph/models/Teamwork.java @@ -49,7 +49,7 @@ public class Teamwork extends Entity implements IJsonBackedObject { /** * The Teams App Settings. - * + * Represents tenant-wide settings for all Teams apps in the tenant. */ @SerializedName(value = "teamsAppSettings", alternate = {"TeamsAppSettings"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/TeamworkActivityTopic.java b/src/main/java/com/microsoft/graph/models/TeamworkActivityTopic.java index 1751787845f..10fca8e5aec 100644 --- a/src/main/java/com/microsoft/graph/models/TeamworkActivityTopic.java +++ b/src/main/java/com/microsoft/graph/models/TeamworkActivityTopic.java @@ -49,7 +49,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Value. - * The topic value. If the value of the source property is entityUrl, this must be a Microsoft Graph URL. If the vaule is text, this must be a plain text value. + * The topic value. If the value of the source property is entityUrl, this must be a Microsoft Graph URL. If the value is text, this must be a plain text value. */ @SerializedName(value = "value", alternate = {"Value"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/TeamworkTag.java b/src/main/java/com/microsoft/graph/models/TeamworkTag.java index e851c89f721..425cbeaf14d 100644 --- a/src/main/java/com/microsoft/graph/models/TeamworkTag.java +++ b/src/main/java/com/microsoft/graph/models/TeamworkTag.java @@ -30,7 +30,7 @@ public class TeamworkTag extends Entity implements IJsonBackedObject { /** * The Description. - * The description of the tag as it will appear to the user in Microsoft Teams. A teamworkTag can't have more than 200 teamworkTagMembers. + * The description of the tag as it appears to the user in Microsoft Teams. A teamworkTag can't have more than 200 teamworkTagMembers. */ @SerializedName(value = "description", alternate = {"Description"}) @Expose @@ -39,7 +39,7 @@ public class TeamworkTag extends Entity implements IJsonBackedObject { /** * The Display Name. - * The name of the tag as it will appear to the user in Microsoft Teams. + * The name of the tag as it appears to the user in Microsoft Teams. */ @SerializedName(value = "displayName", alternate = {"DisplayName"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/TermsExpiration.java b/src/main/java/com/microsoft/graph/models/TermsExpiration.java index 9876109d967..1e3d9a327cf 100644 --- a/src/main/java/com/microsoft/graph/models/TermsExpiration.java +++ b/src/main/java/com/microsoft/graph/models/TermsExpiration.java @@ -39,7 +39,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Frequency. - * Represents the frequency at which the terms will expire, after its first expiration as set in startDateTime. The value is represented in ISO 8601 format for durations. For example, PT1M represents a time period of 1 month. + * Represents the frequency at which the terms will expire, after its first expiration as set in startDateTime. The value is represented in ISO 8601 format for durations. For example, PT1M represents a time period of one month. */ @SerializedName(value = "frequency", alternate = {"Frequency"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/Training.java b/src/main/java/com/microsoft/graph/models/Training.java new file mode 100644 index 00000000000..5c99f62de76 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/Training.java @@ -0,0 +1,174 @@ +// 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.TrainingAvailabilityStatus; +import com.microsoft.graph.models.EmailIdentity; +import com.microsoft.graph.models.SimulationContentSource; +import com.microsoft.graph.models.TrainingType; +import com.microsoft.graph.models.Entity; +import com.microsoft.graph.requests.TrainingLanguageDetailCollectionPage; + + +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 Training. + */ +public class Training extends Entity implements IJsonBackedObject { + + + /** + * The Availability Status. + * + */ + @SerializedName(value = "availabilityStatus", alternate = {"AvailabilityStatus"}) + @Expose + @Nullable + public TrainingAvailabilityStatus availabilityStatus; + + /** + * The Created By. + * + */ + @SerializedName(value = "createdBy", alternate = {"CreatedBy"}) + @Expose + @Nullable + public EmailIdentity 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 Duration In Minutes. + * + */ + @SerializedName(value = "durationInMinutes", alternate = {"DurationInMinutes"}) + @Expose + @Nullable + public Integer durationInMinutes; + + /** + * The Has Evaluation. + * + */ + @SerializedName(value = "hasEvaluation", alternate = {"HasEvaluation"}) + @Expose + @Nullable + public Boolean hasEvaluation; + + /** + * The Last Modified By. + * + */ + @SerializedName(value = "lastModifiedBy", alternate = {"LastModifiedBy"}) + @Expose + @Nullable + public EmailIdentity lastModifiedBy; + + /** + * The Last Modified Date Time. + * + */ + @SerializedName(value = "lastModifiedDateTime", alternate = {"LastModifiedDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime lastModifiedDateTime; + + /** + * The Source. + * + */ + @SerializedName(value = "source", alternate = {"Source"}) + @Expose + @Nullable + public SimulationContentSource source; + + /** + * The Supported Locales. + * + */ + @SerializedName(value = "supportedLocales", alternate = {"SupportedLocales"}) + @Expose + @Nullable + public java.util.List supportedLocales; + + /** + * The Tags. + * + */ + @SerializedName(value = "tags", alternate = {"Tags"}) + @Expose + @Nullable + public java.util.List tags; + + /** + * The Type. + * + */ + @SerializedName(value = "type", alternate = {"Type"}) + @Expose + @Nullable + public TrainingType type; + + /** + * The Language Details. + * + */ + @SerializedName(value = "languageDetails", alternate = {"LanguageDetails"}) + @Expose + @Nullable + public com.microsoft.graph.requests.TrainingLanguageDetailCollectionPage languageDetails; + + + /** + * 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("languageDetails")) { + languageDetails = serializer.deserializeObject(json.get("languageDetails"), com.microsoft.graph.requests.TrainingLanguageDetailCollectionPage.class); + } + } +} diff --git a/src/main/java/com/microsoft/graph/models/TrainingAssignedTo.java b/src/main/java/com/microsoft/graph/models/TrainingAssignedTo.java new file mode 100644 index 00000000000..7bcc5630e51 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/TrainingAssignedTo.java @@ -0,0 +1,50 @@ +// 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 Training Assigned To. +*/ +public enum TrainingAssignedTo +{ + /** + * none + */ + NONE, + /** + * all Users + */ + ALL_USERS, + /** + * clicked Payload + */ + CLICKED_PAYLOAD, + /** + * compromised + */ + COMPROMISED, + /** + * reported Phish + */ + REPORTED_PHISH, + /** + * read But Not Clicked + */ + READ_BUT_NOT_CLICKED, + /** + * did Nothing + */ + DID_NOTHING, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For TrainingAssignedTo values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/TrainingAvailabilityStatus.java b/src/main/java/com/microsoft/graph/models/TrainingAvailabilityStatus.java new file mode 100644 index 00000000000..ce771a0c9f7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/TrainingAvailabilityStatus.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.models; + + +/** + * The Enum Training Availability Status. +*/ +public enum TrainingAvailabilityStatus +{ + /** + * unknown + */ + UNKNOWN, + /** + * not Available + */ + NOT_AVAILABLE, + /** + * available + */ + AVAILABLE, + /** + * archive + */ + ARCHIVE, + /** + * delete + */ + DELETE, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For TrainingAvailabilityStatus values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/TrainingCompletionDuration.java b/src/main/java/com/microsoft/graph/models/TrainingCompletionDuration.java new file mode 100644 index 00000000000..ca22c358608 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/TrainingCompletionDuration.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 Training Completion Duration. +*/ +public enum TrainingCompletionDuration +{ + /** + * week + */ + WEEK, + /** + * fortnite + */ + FORTNITE, + /** + * month + */ + MONTH, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For TrainingCompletionDuration values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/TrainingLanguageDetail.java b/src/main/java/com/microsoft/graph/models/TrainingLanguageDetail.java new file mode 100644 index 00000000000..84f1a34c6ae --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/TrainingLanguageDetail.java @@ -0,0 +1,120 @@ +// 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.EmailIdentity; +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 Training Language Detail. + */ +public class TrainingLanguageDetail extends Entity implements IJsonBackedObject { + + + /** + * The Content. + * + */ + @SerializedName(value = "content", alternate = {"Content"}) + @Expose + @Nullable + public String content; + + /** + * The Created By. + * + */ + @SerializedName(value = "createdBy", alternate = {"CreatedBy"}) + @Expose + @Nullable + public EmailIdentity 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 Default Langauge. + * + */ + @SerializedName(value = "isDefaultLangauge", alternate = {"IsDefaultLangauge"}) + @Expose + @Nullable + public Boolean isDefaultLangauge; + + /** + * The Last Modified By. + * + */ + @SerializedName(value = "lastModifiedBy", alternate = {"LastModifiedBy"}) + @Expose + @Nullable + public EmailIdentity lastModifiedBy; + + /** + * The Last Modified Date Time. + * + */ + @SerializedName(value = "lastModifiedDateTime", alternate = {"LastModifiedDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime lastModifiedDateTime; + + /** + * The Locale. + * + */ + @SerializedName(value = "locale", alternate = {"Locale"}) + @Expose + @Nullable + public String locale; + + + /** + * 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/TrainingNotificationSetting.java b/src/main/java/com/microsoft/graph/models/TrainingNotificationSetting.java new file mode 100644 index 00000000000..b2b9c4fb8ca --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/TrainingNotificationSetting.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.BaseEndUserNotification; +import com.microsoft.graph.models.TrainingReminderNotification; +import com.microsoft.graph.models.EndUserNotificationSetting; + + +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 Training Notification Setting. + */ +public class TrainingNotificationSetting extends EndUserNotificationSetting implements IJsonBackedObject { + + + /** + * The Training Assignment. + * + */ + @SerializedName(value = "trainingAssignment", alternate = {"TrainingAssignment"}) + @Expose + @Nullable + public BaseEndUserNotification trainingAssignment; + + /** + * The Training Reminder. + * + */ + @SerializedName(value = "trainingReminder", alternate = {"TrainingReminder"}) + @Expose + @Nullable + public TrainingReminderNotification trainingReminder; + + + /** + * 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/TrainingReminderNotification.java b/src/main/java/com/microsoft/graph/models/TrainingReminderNotification.java new file mode 100644 index 00000000000..224d7deedef --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/TrainingReminderNotification.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.NotificationDeliveryFrequency; +import com.microsoft.graph.models.BaseEndUserNotification; + + +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 Training Reminder Notification. + */ +public class TrainingReminderNotification extends BaseEndUserNotification implements IJsonBackedObject { + + + /** + * The Delivery Frequency. + * + */ + @SerializedName(value = "deliveryFrequency", alternate = {"DeliveryFrequency"}) + @Expose + @Nullable + public NotificationDeliveryFrequency deliveryFrequency; + + + /** + * 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/TrainingSetting.java b/src/main/java/com/microsoft/graph/models/TrainingSetting.java new file mode 100644 index 00000000000..a7fe6596b8a --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/TrainingSetting.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.TrainingSettingType; + + +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 Training Setting. + */ +public class TrainingSetting 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 Setting Type. + * + */ + @SerializedName(value = "settingType", alternate = {"SettingType"}) + @Expose + @Nullable + public TrainingSettingType settingType; + + + /** + * 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/TrainingSettingType.java b/src/main/java/com/microsoft/graph/models/TrainingSettingType.java new file mode 100644 index 00000000000..f59b3fe3c17 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/TrainingSettingType.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 Training Setting Type. +*/ +public enum TrainingSettingType +{ + /** + * microsoft Custom + */ + MICROSOFT_CUSTOM, + /** + * microsoft Managed + */ + MICROSOFT_MANAGED, + /** + * no Training + */ + NO_TRAINING, + /** + * custom + */ + CUSTOM, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For TrainingSettingType values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/TrainingType.java b/src/main/java/com/microsoft/graph/models/TrainingType.java new file mode 100644 index 00000000000..b22215ff9d2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/TrainingType.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 Training Type. +*/ +public enum TrainingType +{ + /** + * unknown + */ + UNKNOWN, + /** + * phishing + */ + PHISHING, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For TrainingType values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/UploadSession.java b/src/main/java/com/microsoft/graph/models/UploadSession.java index f4cab72f184..60d017d4189 100644 --- a/src/main/java/com/microsoft/graph/models/UploadSession.java +++ b/src/main/java/com/microsoft/graph/models/UploadSession.java @@ -49,7 +49,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Next Expected Ranges. - * A collection of byte ranges that the server is missing for the file. These ranges are zero indexed and of the format 'start-end' (e.g. '0-26' to indicate the first 27 bytes of the file). When uploading files as Outlook attachments, instead of a collection of ranges, this property always indicates a single value '{start}', the location in the file where the next upload should begin. + * A collection of byte ranges that the server is missing for the file. These ranges are zero indexed and of the format 'start-end' (for example '0-26' to indicate the first 27 bytes of the file). When uploading files as Outlook attachments, instead of a collection of ranges, this property always indicates a single value '{start}', the location in the file where the next upload should begin. */ @SerializedName(value = "nextExpectedRanges", alternate = {"NextExpectedRanges"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/UsageDetails.java b/src/main/java/com/microsoft/graph/models/UsageDetails.java index 6cb23ea2228..e4f7979c8bc 100644 --- a/src/main/java/com/microsoft/graph/models/UsageDetails.java +++ b/src/main/java/com/microsoft/graph/models/UsageDetails.java @@ -48,7 +48,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Last Modified Date Time. - * The date and time the resource was last modified by the user. The timestamp 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. + * The date and time the resource was last modified by the user. The timestamp 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 = "lastModifiedDateTime", alternate = {"LastModifiedDateTime"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/UserFlowLanguageConfiguration.java b/src/main/java/com/microsoft/graph/models/UserFlowLanguageConfiguration.java index f13529eb843..2d5a33d3e91 100644 --- a/src/main/java/com/microsoft/graph/models/UserFlowLanguageConfiguration.java +++ b/src/main/java/com/microsoft/graph/models/UserFlowLanguageConfiguration.java @@ -46,7 +46,7 @@ public class UserFlowLanguageConfiguration extends Entity implements IJsonBacked /** * The Default Pages. - * Collection of pages with the default content to display in a user flow for a specified language. This collection does not allow any kind of modification. + * Collection of pages with the default content to display in a user flow for a specified language. This collection doesn't allow any kind of modification. */ @SerializedName(value = "defaultPages", alternate = {"DefaultPages"}) @Expose @@ -55,7 +55,7 @@ public class UserFlowLanguageConfiguration extends Entity implements IJsonBacked /** * The Overrides Pages. - * Collection of pages with the overrides messages to display in a user flow for a specified language. This collection only allows to modify the content of the page, any other modification is not allowed (creation or deletion of pages). + * Collection of pages with the overrides messages to display in a user flow for a specified language. This collection only allows you to modify the content of the page, any other modification isn't allowed (creation or deletion of pages). */ @SerializedName(value = "overridesPages", alternate = {"OverridesPages"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/WorkbookChartFont.java b/src/main/java/com/microsoft/graph/models/WorkbookChartFont.java index db20707d3c5..40915a53cf6 100644 --- a/src/main/java/com/microsoft/graph/models/WorkbookChartFont.java +++ b/src/main/java/com/microsoft/graph/models/WorkbookChartFont.java @@ -36,7 +36,7 @@ public class WorkbookChartFont extends Entity implements IJsonBackedObject { /** * The Color. - * HTML color code representation of the text color. E.g. #FF0000 represents Red. + * HTML color code representation of the text color. for example #FF0000 represents Red. */ @SerializedName(value = "color", alternate = {"Color"}) @Expose @@ -54,7 +54,7 @@ public class WorkbookChartFont extends Entity implements IJsonBackedObject { /** * The Name. - * Font name (e.g. 'Calibri') + * Font name (for example 'Calibri') */ @SerializedName(value = "name", alternate = {"Name"}) @Expose @@ -63,7 +63,7 @@ public class WorkbookChartFont extends Entity implements IJsonBackedObject { /** * The Size. - * Size of the font (e.g. 11) + * Size of the font (for example 11) */ @SerializedName(value = "size", alternate = {"Size"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/WorkbookChartPointFormat.java b/src/main/java/com/microsoft/graph/models/WorkbookChartPointFormat.java index 0c7d2477f2e..ac0398e46a3 100644 --- a/src/main/java/com/microsoft/graph/models/WorkbookChartPointFormat.java +++ b/src/main/java/com/microsoft/graph/models/WorkbookChartPointFormat.java @@ -28,7 +28,7 @@ public class WorkbookChartPointFormat extends Entity implements IJsonBackedObjec /** * The Fill. - * Represents the fill format of a chart, which includes background formating information. Read-only. + * Represents the fill format of a chart, which includes background formatting information. Read-only. */ @SerializedName(value = "fill", alternate = {"Fill"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/WorkbookChartSeriesFormat.java b/src/main/java/com/microsoft/graph/models/WorkbookChartSeriesFormat.java index 3f09a3aeba1..71f26aba02a 100644 --- a/src/main/java/com/microsoft/graph/models/WorkbookChartSeriesFormat.java +++ b/src/main/java/com/microsoft/graph/models/WorkbookChartSeriesFormat.java @@ -29,7 +29,7 @@ public class WorkbookChartSeriesFormat extends Entity implements IJsonBackedObje /** * The Fill. - * Represents the fill format of a chart series, which includes background formating information. Read-only. + * Represents the fill format of a chart series, which includes background formatting information. Read-only. */ @SerializedName(value = "fill", alternate = {"Fill"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/WorkbookChartTitle.java b/src/main/java/com/microsoft/graph/models/WorkbookChartTitle.java index 32dfea70df4..7ba092cf332 100644 --- a/src/main/java/com/microsoft/graph/models/WorkbookChartTitle.java +++ b/src/main/java/com/microsoft/graph/models/WorkbookChartTitle.java @@ -46,7 +46,7 @@ public class WorkbookChartTitle extends Entity implements IJsonBackedObject { /** * The Visible. - * A boolean value the represents the visibility of a chart title object. + * A boolean value that represents the visibility of a chart title object. */ @SerializedName(value = "visible", alternate = {"Visible"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/WorkbookFilterDatetime.java b/src/main/java/com/microsoft/graph/models/WorkbookFilterDatetime.java index 7d01285b48e..ab907e4a612 100644 --- a/src/main/java/com/microsoft/graph/models/WorkbookFilterDatetime.java +++ b/src/main/java/com/microsoft/graph/models/WorkbookFilterDatetime.java @@ -48,7 +48,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Specificity. - * How specific the date should be used to keep data. For example, if the date is 2005-04-02 and the specifity is set to 'month', the filter operation will keep all rows with a date in the month of april 2009. The possible values are: Year, Monday, Day, Hour, Minute, Second. + * How specific the date should be used to keep data. For example, if the date is 2005-04-02 and the specificity is set to 'month', the filter operation will keep all rows with a date in the month of April 2009. The possible values are: Year, Monday, Day, Hour, Minute, Second. */ @SerializedName(value = "specificity", alternate = {"Specificity"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/WorkbookRangeFill.java b/src/main/java/com/microsoft/graph/models/WorkbookRangeFill.java index 81fe480326f..daa992ad6b0 100644 --- a/src/main/java/com/microsoft/graph/models/WorkbookRangeFill.java +++ b/src/main/java/com/microsoft/graph/models/WorkbookRangeFill.java @@ -27,7 +27,7 @@ public class WorkbookRangeFill extends Entity implements IJsonBackedObject { /** * The Color. - * HTML color code representing the color of the border line, of the form #RRGGBB (e.g. 'FFA500') or as a named HTML color (e.g. 'orange') + * HTML color code representing the color of the border line, of the form #RRGGBB (for example 'FFA500') or as a named HTML color (for example 'orange') */ @SerializedName(value = "color", alternate = {"Color"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/WorkbookRangeFont.java b/src/main/java/com/microsoft/graph/models/WorkbookRangeFont.java index ae0d1f1262e..2b8852987ba 100644 --- a/src/main/java/com/microsoft/graph/models/WorkbookRangeFont.java +++ b/src/main/java/com/microsoft/graph/models/WorkbookRangeFont.java @@ -36,7 +36,7 @@ public class WorkbookRangeFont extends Entity implements IJsonBackedObject { /** * The Color. - * HTML color code representation of the text color. E.g. #FF0000 represents Red. + * HTML color code representation of the text color. for example #FF0000 represents Red. */ @SerializedName(value = "color", alternate = {"Color"}) @Expose @@ -54,7 +54,7 @@ public class WorkbookRangeFont extends Entity implements IJsonBackedObject { /** * The Name. - * Font name (e.g. 'Calibri') + * Font name (for example 'Calibri') */ @SerializedName(value = "name", alternate = {"Name"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/WorkbookRangeFormat.java b/src/main/java/com/microsoft/graph/models/WorkbookRangeFormat.java index 79fea15bbe4..0dce9ee8298 100644 --- a/src/main/java/com/microsoft/graph/models/WorkbookRangeFormat.java +++ b/src/main/java/com/microsoft/graph/models/WorkbookRangeFormat.java @@ -32,7 +32,7 @@ public class WorkbookRangeFormat extends Entity implements IJsonBackedObject { /** * The Column Width. - * Gets or sets the width of all colums within the range. If the column widths are not uniform, null will be returned. + * Gets or sets the width of all columns within the range. If the column widths aren't uniform, null will be returned. */ @SerializedName(value = "columnWidth", alternate = {"ColumnWidth"}) @Expose @@ -50,7 +50,7 @@ public class WorkbookRangeFormat extends Entity implements IJsonBackedObject { /** * The Row Height. - * Gets or sets the height of all rows in the range. If the row heights are not uniform null will be returned. + * Gets or sets the height of all rows in the range. If the row heights aren't uniform null will be returned. */ @SerializedName(value = "rowHeight", alternate = {"RowHeight"}) @Expose diff --git a/src/main/java/com/microsoft/graph/requests/AttackSimulationOperationCollectionPage.java b/src/main/java/com/microsoft/graph/requests/AttackSimulationOperationCollectionPage.java new file mode 100644 index 00000000000..f2f6efe1998 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/AttackSimulationOperationCollectionPage.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.AttackSimulationOperation; +import com.microsoft.graph.requests.AttackSimulationOperationCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.requests.AttackSimulationOperationCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Attack Simulation Operation Collection Page. + */ +public class AttackSimulationOperationCollectionPage extends BaseCollectionPage { + + /** + * A collection page for AttackSimulationOperation + * + * @param response the serialized AttackSimulationOperationCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public AttackSimulationOperationCollectionPage(@Nonnull final AttackSimulationOperationCollectionResponse response, @Nonnull final AttackSimulationOperationCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for AttackSimulationOperation + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public AttackSimulationOperationCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final AttackSimulationOperationCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/AttackSimulationOperationCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/AttackSimulationOperationCollectionRequest.java new file mode 100644 index 00000000000..2318847de6e --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/AttackSimulationOperationCollectionRequest.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.AttackSimulationRoot; +import com.microsoft.graph.models.AttackSimulationOperation; +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.AttackSimulationOperationCollectionResponse; +import com.microsoft.graph.requests.AttackSimulationOperationCollectionRequestBuilder; +import com.microsoft.graph.requests.AttackSimulationOperationCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Attack Simulation Operation Collection Request. + */ +public class AttackSimulationOperationCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of AttackSimulationOperation + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public AttackSimulationOperationCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, AttackSimulationOperationCollectionResponse.class, AttackSimulationOperationCollectionPage.class, AttackSimulationOperationCollectionRequestBuilder.class); + } + + /** + * Creates a new AttackSimulationOperation + * @param newAttackSimulationOperation the AttackSimulationOperation to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final AttackSimulationOperation newAttackSimulationOperation) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new AttackSimulationOperationRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newAttackSimulationOperation); + } + + /** + * Creates a new AttackSimulationOperation + * @param newAttackSimulationOperation the AttackSimulationOperation to create + * @return the newly created object + */ + @Nonnull + public AttackSimulationOperation post(@Nonnull final AttackSimulationOperation newAttackSimulationOperation) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new AttackSimulationOperationRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newAttackSimulationOperation); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public AttackSimulationOperationCollectionRequest 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 AttackSimulationOperationCollectionRequest 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 AttackSimulationOperationCollectionRequest 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 AttackSimulationOperationCollectionRequest 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 AttackSimulationOperationCollectionRequest 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 AttackSimulationOperationCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public AttackSimulationOperationCollectionRequest 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 AttackSimulationOperationCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public AttackSimulationOperationCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/requests/AttackSimulationOperationCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/AttackSimulationOperationCollectionRequestBuilder.java new file mode 100644 index 00000000000..ee629352b33 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/AttackSimulationOperationCollectionRequestBuilder.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.AttackSimulationRoot; +import com.microsoft.graph.models.AttackSimulationOperation; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.AttackSimulationOperationCollectionRequestBuilder; +import com.microsoft.graph.requests.AttackSimulationOperationRequestBuilder; +import com.microsoft.graph.requests.AttackSimulationOperationCollectionRequest; +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 Attack Simulation Operation Collection Request Builder. + */ +public class AttackSimulationOperationCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of AttackSimulationRoot + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public AttackSimulationOperationCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, AttackSimulationOperationRequestBuilder.class, AttackSimulationOperationCollectionRequest.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/AttackSimulationOperationCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/AttackSimulationOperationCollectionResponse.java new file mode 100644 index 00000000000..2cc4b5f58f5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/AttackSimulationOperationCollectionResponse.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.AttackSimulationOperation; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Attack Simulation Operation Collection Response. + */ +public class AttackSimulationOperationCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/requests/AttackSimulationOperationRequest.java b/src/main/java/com/microsoft/graph/requests/AttackSimulationOperationRequest.java new file mode 100644 index 00000000000..c25506e9930 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/AttackSimulationOperationRequest.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.AttackSimulationOperation; +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 Attack Simulation Operation Request. + */ +public class AttackSimulationOperationRequest extends BaseRequest { + + /** + * The request for the AttackSimulationOperation + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public AttackSimulationOperationRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, AttackSimulationOperation.class); + } + + /** + * Gets the AttackSimulationOperation from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the AttackSimulationOperation from the service + * + * @return the AttackSimulationOperation from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public AttackSimulationOperation 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 AttackSimulationOperation delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this AttackSimulationOperation with a source + * + * @param sourceAttackSimulationOperation the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final AttackSimulationOperation sourceAttackSimulationOperation) { + return sendAsync(HttpMethod.PATCH, sourceAttackSimulationOperation); + } + + /** + * Patches this AttackSimulationOperation with a source + * + * @param sourceAttackSimulationOperation the source object with updates + * @return the updated AttackSimulationOperation + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public AttackSimulationOperation patch(@Nonnull final AttackSimulationOperation sourceAttackSimulationOperation) throws ClientException { + return send(HttpMethod.PATCH, sourceAttackSimulationOperation); + } + + /** + * Creates a AttackSimulationOperation with a new object + * + * @param newAttackSimulationOperation the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final AttackSimulationOperation newAttackSimulationOperation) { + return sendAsync(HttpMethod.POST, newAttackSimulationOperation); + } + + /** + * Creates a AttackSimulationOperation with a new object + * + * @param newAttackSimulationOperation the new object to create + * @return the created AttackSimulationOperation + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public AttackSimulationOperation post(@Nonnull final AttackSimulationOperation newAttackSimulationOperation) throws ClientException { + return send(HttpMethod.POST, newAttackSimulationOperation); + } + + /** + * Creates a AttackSimulationOperation with a new object + * + * @param newAttackSimulationOperation the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final AttackSimulationOperation newAttackSimulationOperation) { + return sendAsync(HttpMethod.PUT, newAttackSimulationOperation); + } + + /** + * Creates a AttackSimulationOperation with a new object + * + * @param newAttackSimulationOperation the object to create/update + * @return the created AttackSimulationOperation + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public AttackSimulationOperation put(@Nonnull final AttackSimulationOperation newAttackSimulationOperation) throws ClientException { + return send(HttpMethod.PUT, newAttackSimulationOperation); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public AttackSimulationOperationRequest 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 AttackSimulationOperationRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/AttackSimulationOperationRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/AttackSimulationOperationRequestBuilder.java new file mode 100644 index 00000000000..ace5e76aac4 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/AttackSimulationOperationRequestBuilder.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.AttackSimulationOperation; +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 Attack Simulation Operation Request Builder. + */ +public class AttackSimulationOperationRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the AttackSimulationOperation + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public AttackSimulationOperationRequestBuilder(@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 AttackSimulationOperationRequest instance + */ + @Nonnull + public AttackSimulationOperationRequest 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 AttackSimulationOperationRequest instance + */ + @Nonnull + public AttackSimulationOperationRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.AttackSimulationOperationRequest(getRequestUrl(), getClient(), requestOptions); + } + + +} diff --git a/src/main/java/com/microsoft/graph/requests/AttackSimulationRootRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/AttackSimulationRootRequestBuilder.java index 89f82af5d2c..31872985021 100644 --- a/src/main/java/com/microsoft/graph/requests/AttackSimulationRootRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/AttackSimulationRootRequestBuilder.java @@ -56,6 +56,106 @@ public AttackSimulationRootRequest buildRequest(@Nonnull final java.util.List { + + /** + * A collection page for CallTranscript + * + * @param response the serialized CallTranscriptCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public CallTranscriptCollectionPage(@Nonnull final CallTranscriptCollectionResponse response, @Nonnull final CallTranscriptCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for CallTranscript + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public CallTranscriptCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final CallTranscriptCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/CallTranscriptCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/CallTranscriptCollectionRequest.java new file mode 100644 index 00000000000..b60585ebc5a --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/CallTranscriptCollectionRequest.java @@ -0,0 +1,173 @@ +// Template Source: BaseEntityCollectionRequest.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.OnlineMeeting; +import com.microsoft.graph.models.CallTranscript; +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.CallTranscriptCollectionResponse; +import com.microsoft.graph.requests.CallTranscriptCollectionRequestBuilder; +import com.microsoft.graph.requests.CallTranscriptCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Call Transcript Collection Request. + */ +public class CallTranscriptCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of CallTranscript + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public CallTranscriptCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, CallTranscriptCollectionResponse.class, CallTranscriptCollectionPage.class, CallTranscriptCollectionRequestBuilder.class); + } + + /** + * Creates a new CallTranscript + * @param newCallTranscript the CallTranscript to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final CallTranscript newCallTranscript) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new CallTranscriptRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newCallTranscript); + } + + /** + * Creates a new CallTranscript + * @param newCallTranscript the CallTranscript to create + * @return the newly created object + */ + @Nonnull + public CallTranscript post(@Nonnull final CallTranscript newCallTranscript) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new CallTranscriptRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newCallTranscript); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public CallTranscriptCollectionRequest 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 CallTranscriptCollectionRequest 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 CallTranscriptCollectionRequest 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 CallTranscriptCollectionRequest 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 CallTranscriptCollectionRequest 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 CallTranscriptCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public CallTranscriptCollectionRequest 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 CallTranscriptCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public CallTranscriptCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/requests/CallTranscriptCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/CallTranscriptCollectionRequestBuilder.java new file mode 100644 index 00000000000..e02a968b244 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/CallTranscriptCollectionRequestBuilder.java @@ -0,0 +1,51 @@ +// Template Source: BaseEntityCollectionRequestBuilder.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.OnlineMeeting; +import com.microsoft.graph.models.CallTranscript; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.CallTranscriptCollectionRequestBuilder; +import com.microsoft.graph.requests.CallTranscriptRequestBuilder; +import com.microsoft.graph.requests.CallTranscriptCollectionRequest; +import com.microsoft.graph.http.BaseCollectionRequestBuilder; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.PrimitiveRequestBuilder; +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Call Transcript Collection Request Builder. + */ +public class CallTranscriptCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of OnlineMeeting + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public CallTranscriptCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, CallTranscriptRequestBuilder.class, CallTranscriptCollectionRequest.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/CallTranscriptCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/CallTranscriptCollectionResponse.java new file mode 100644 index 00000000000..85765d1c4d6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/CallTranscriptCollectionResponse.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.CallTranscript; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Call Transcript Collection Response. + */ +public class CallTranscriptCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/requests/CallTranscriptContentStreamRequest.java b/src/main/java/com/microsoft/graph/requests/CallTranscriptContentStreamRequest.java new file mode 100644 index 00000000000..12dcc7ea6df --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/CallTranscriptContentStreamRequest.java @@ -0,0 +1,81 @@ +// Template Source: BaseStreamRequest.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.CallTranscript; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseStreamRequest; + +import java.io.InputStream; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Call Transcript Content Stream Request. + */ +public class CallTranscriptContentStreamRequest extends BaseStreamRequest { + + /** + * The request for the CallTranscriptContentStream + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public CallTranscriptContentStreamRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, CallTranscript.class); + } + + /** + * Gets the contents of this stream + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(); + } + + /** + * Gets the contents of this stream + * + * @return the stream that the caller needs to close + * @throws ClientException an exception occurs if there was an error while the request was sent + */ + @Nullable + public InputStream get() throws ClientException { + return send(); + } + + /** + * Uploads to the stream + * + * @param fileContents the contents of the stream to upload + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final byte[] fileContents) { + return sendAsync(fileContents); + } + + /** + * Uploads to the stream + * + * @param fileContents the contents of the stream to upload + * @return the result of the upload + * @throws ClientException an exception occurs if there was an error while the request was sent + */ + @Nullable + public CallTranscript put(@Nonnull final byte[] fileContents) throws ClientException { + return send(fileContents); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/CallTranscriptContentStreamRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/CallTranscriptContentStreamRequestBuilder.java new file mode 100644 index 00000000000..3fb1d153400 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/CallTranscriptContentStreamRequestBuilder.java @@ -0,0 +1,58 @@ +// Template Source: BaseEntityStreamRequestBuilder.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.CallTranscript; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseRequestBuilder; +import java.io.InputStream; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Call Transcript Content Stream Request Builder. + */ +public class CallTranscriptContentStreamRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the CallTranscriptContentStream + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public CallTranscriptContentStreamRequestBuilder(@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 CallTranscriptContentStreamRequest instance + */ + @Nonnull + public CallTranscriptContentStreamRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the request with specific options instead of the existing options + * + * @param requestOptions the options for this request + * @return the CallTranscriptContentStreamRequest instance + */ + @Nonnull + public CallTranscriptContentStreamRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new CallTranscriptContentStreamRequest(getRequestUrl(), getClient(), requestOptions); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/CallTranscriptMetadataContentStreamRequest.java b/src/main/java/com/microsoft/graph/requests/CallTranscriptMetadataContentStreamRequest.java new file mode 100644 index 00000000000..9489bf9110e --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/CallTranscriptMetadataContentStreamRequest.java @@ -0,0 +1,81 @@ +// Template Source: BaseStreamRequest.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.CallTranscript; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseStreamRequest; + +import java.io.InputStream; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Call Transcript Metadata Content Stream Request. + */ +public class CallTranscriptMetadataContentStreamRequest extends BaseStreamRequest { + + /** + * The request for the CallTranscriptMetadataContentStream + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public CallTranscriptMetadataContentStreamRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, CallTranscript.class); + } + + /** + * Gets the contents of this stream + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(); + } + + /** + * Gets the contents of this stream + * + * @return the stream that the caller needs to close + * @throws ClientException an exception occurs if there was an error while the request was sent + */ + @Nullable + public InputStream get() throws ClientException { + return send(); + } + + /** + * Uploads to the stream + * + * @param fileContents the contents of the stream to upload + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final byte[] fileContents) { + return sendAsync(fileContents); + } + + /** + * Uploads to the stream + * + * @param fileContents the contents of the stream to upload + * @return the result of the upload + * @throws ClientException an exception occurs if there was an error while the request was sent + */ + @Nullable + public CallTranscript put(@Nonnull final byte[] fileContents) throws ClientException { + return send(fileContents); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/CallTranscriptMetadataContentStreamRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/CallTranscriptMetadataContentStreamRequestBuilder.java new file mode 100644 index 00000000000..9ce3945689c --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/CallTranscriptMetadataContentStreamRequestBuilder.java @@ -0,0 +1,58 @@ +// Template Source: BaseEntityStreamRequestBuilder.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.CallTranscript; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseRequestBuilder; +import java.io.InputStream; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Call Transcript Metadata Content Stream Request Builder. + */ +public class CallTranscriptMetadataContentStreamRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the CallTranscriptMetadataContentStream + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public CallTranscriptMetadataContentStreamRequestBuilder(@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 CallTranscriptMetadataContentStreamRequest instance + */ + @Nonnull + public CallTranscriptMetadataContentStreamRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the request with specific options instead of the existing options + * + * @param requestOptions the options for this request + * @return the CallTranscriptMetadataContentStreamRequest instance + */ + @Nonnull + public CallTranscriptMetadataContentStreamRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new CallTranscriptMetadataContentStreamRequest(getRequestUrl(), getClient(), requestOptions); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/CallTranscriptRequest.java b/src/main/java/com/microsoft/graph/requests/CallTranscriptRequest.java new file mode 100644 index 00000000000..d31e38a17ac --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/CallTranscriptRequest.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.CallTranscript; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseRequest; +import com.microsoft.graph.http.HttpMethod; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Call Transcript Request. + */ +public class CallTranscriptRequest extends BaseRequest { + + /** + * The request for the CallTranscript + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public CallTranscriptRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, CallTranscript.class); + } + + /** + * Gets the CallTranscript from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the CallTranscript from the service + * + * @return the CallTranscript from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public CallTranscript 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 CallTranscript delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this CallTranscript with a source + * + * @param sourceCallTranscript the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final CallTranscript sourceCallTranscript) { + return sendAsync(HttpMethod.PATCH, sourceCallTranscript); + } + + /** + * Patches this CallTranscript with a source + * + * @param sourceCallTranscript the source object with updates + * @return the updated CallTranscript + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public CallTranscript patch(@Nonnull final CallTranscript sourceCallTranscript) throws ClientException { + return send(HttpMethod.PATCH, sourceCallTranscript); + } + + /** + * Creates a CallTranscript with a new object + * + * @param newCallTranscript the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final CallTranscript newCallTranscript) { + return sendAsync(HttpMethod.POST, newCallTranscript); + } + + /** + * Creates a CallTranscript with a new object + * + * @param newCallTranscript the new object to create + * @return the created CallTranscript + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public CallTranscript post(@Nonnull final CallTranscript newCallTranscript) throws ClientException { + return send(HttpMethod.POST, newCallTranscript); + } + + /** + * Creates a CallTranscript with a new object + * + * @param newCallTranscript the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final CallTranscript newCallTranscript) { + return sendAsync(HttpMethod.PUT, newCallTranscript); + } + + /** + * Creates a CallTranscript with a new object + * + * @param newCallTranscript the object to create/update + * @return the created CallTranscript + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public CallTranscript put(@Nonnull final CallTranscript newCallTranscript) throws ClientException { + return send(HttpMethod.PUT, newCallTranscript); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public CallTranscriptRequest 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 CallTranscriptRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/CallTranscriptRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/CallTranscriptRequestBuilder.java new file mode 100644 index 00000000000..2973a58f635 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/CallTranscriptRequestBuilder.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.CallTranscript; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseRequestBuilder; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Call Transcript Request Builder. + */ +public class CallTranscriptRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the CallTranscript + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public CallTranscriptRequestBuilder(@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 CallTranscriptRequest instance + */ + @Nonnull + public CallTranscriptRequest 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 CallTranscriptRequest instance + */ + @Nonnull + public CallTranscriptRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.CallTranscriptRequest(getRequestUrl(), getClient(), requestOptions); + } + + + + /** + * Gets the request builder for content + * + * @return the CallTranscriptContentStreamRequestBuilder instance + */ + @Nonnull + public CallTranscriptContentStreamRequestBuilder content() { + return new CallTranscriptContentStreamRequestBuilder(getRequestUrlWithAdditionalSegment("content"), getClient(), null); + } + + /** + * Gets the request builder for metadataContent + * + * @return the CallTranscriptMetadataContentStreamRequestBuilder instance + */ + @Nonnull + public CallTranscriptMetadataContentStreamRequestBuilder metadataContent() { + return new CallTranscriptMetadataContentStreamRequestBuilder(getRequestUrlWithAdditionalSegment("metadataContent"), getClient(), null); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/EndUserNotificationCollectionPage.java b/src/main/java/com/microsoft/graph/requests/EndUserNotificationCollectionPage.java new file mode 100644 index 00000000000..ef692fa8502 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EndUserNotificationCollectionPage.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.EndUserNotification; +import com.microsoft.graph.requests.EndUserNotificationCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.requests.EndUserNotificationCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the End User Notification Collection Page. + */ +public class EndUserNotificationCollectionPage extends BaseCollectionPage { + + /** + * A collection page for EndUserNotification + * + * @param response the serialized EndUserNotificationCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public EndUserNotificationCollectionPage(@Nonnull final EndUserNotificationCollectionResponse response, @Nonnull final EndUserNotificationCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for EndUserNotification + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public EndUserNotificationCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final EndUserNotificationCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/EndUserNotificationCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/EndUserNotificationCollectionRequest.java new file mode 100644 index 00000000000..6bf8549abaf --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EndUserNotificationCollectionRequest.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.AttackSimulationRoot; +import com.microsoft.graph.models.EndUserNotification; +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.EndUserNotificationCollectionResponse; +import com.microsoft.graph.requests.EndUserNotificationCollectionRequestBuilder; +import com.microsoft.graph.requests.EndUserNotificationCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the End User Notification Collection Request. + */ +public class EndUserNotificationCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of EndUserNotification + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EndUserNotificationCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, EndUserNotificationCollectionResponse.class, EndUserNotificationCollectionPage.class, EndUserNotificationCollectionRequestBuilder.class); + } + + /** + * Creates a new EndUserNotification + * @param newEndUserNotification the EndUserNotification to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final EndUserNotification newEndUserNotification) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new EndUserNotificationRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newEndUserNotification); + } + + /** + * Creates a new EndUserNotification + * @param newEndUserNotification the EndUserNotification to create + * @return the newly created object + */ + @Nonnull + public EndUserNotification post(@Nonnull final EndUserNotification newEndUserNotification) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new EndUserNotificationRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newEndUserNotification); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public EndUserNotificationCollectionRequest 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 EndUserNotificationCollectionRequest 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 EndUserNotificationCollectionRequest 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 EndUserNotificationCollectionRequest 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 EndUserNotificationCollectionRequest 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 EndUserNotificationCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public EndUserNotificationCollectionRequest 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 EndUserNotificationCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public EndUserNotificationCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/requests/EndUserNotificationCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/EndUserNotificationCollectionRequestBuilder.java new file mode 100644 index 00000000000..f1346ecedda --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EndUserNotificationCollectionRequestBuilder.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.AttackSimulationRoot; +import com.microsoft.graph.models.EndUserNotification; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.EndUserNotificationCollectionRequestBuilder; +import com.microsoft.graph.requests.EndUserNotificationRequestBuilder; +import com.microsoft.graph.requests.EndUserNotificationCollectionRequest; +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 End User Notification Collection Request Builder. + */ +public class EndUserNotificationCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of AttackSimulationRoot + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EndUserNotificationCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, EndUserNotificationRequestBuilder.class, EndUserNotificationCollectionRequest.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/EndUserNotificationCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/EndUserNotificationCollectionResponse.java new file mode 100644 index 00000000000..6c8eaadb7d1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EndUserNotificationCollectionResponse.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.EndUserNotification; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the End User Notification Collection Response. + */ +public class EndUserNotificationCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/requests/EndUserNotificationDetailCollectionPage.java b/src/main/java/com/microsoft/graph/requests/EndUserNotificationDetailCollectionPage.java new file mode 100644 index 00000000000..08bdbc78a4c --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EndUserNotificationDetailCollectionPage.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.EndUserNotificationDetail; +import com.microsoft.graph.requests.EndUserNotificationDetailCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.requests.EndUserNotificationDetailCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the End User Notification Detail Collection Page. + */ +public class EndUserNotificationDetailCollectionPage extends BaseCollectionPage { + + /** + * A collection page for EndUserNotificationDetail + * + * @param response the serialized EndUserNotificationDetailCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public EndUserNotificationDetailCollectionPage(@Nonnull final EndUserNotificationDetailCollectionResponse response, @Nonnull final EndUserNotificationDetailCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for EndUserNotificationDetail + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public EndUserNotificationDetailCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final EndUserNotificationDetailCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/EndUserNotificationDetailCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/EndUserNotificationDetailCollectionRequest.java new file mode 100644 index 00000000000..9cb39cd25fd --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EndUserNotificationDetailCollectionRequest.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.EndUserNotification; +import com.microsoft.graph.models.EndUserNotificationDetail; +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.EndUserNotificationDetailCollectionResponse; +import com.microsoft.graph.requests.EndUserNotificationDetailCollectionRequestBuilder; +import com.microsoft.graph.requests.EndUserNotificationDetailCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the End User Notification Detail Collection Request. + */ +public class EndUserNotificationDetailCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of EndUserNotificationDetail + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EndUserNotificationDetailCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, EndUserNotificationDetailCollectionResponse.class, EndUserNotificationDetailCollectionPage.class, EndUserNotificationDetailCollectionRequestBuilder.class); + } + + /** + * Creates a new EndUserNotificationDetail + * @param newEndUserNotificationDetail the EndUserNotificationDetail to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final EndUserNotificationDetail newEndUserNotificationDetail) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new EndUserNotificationDetailRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newEndUserNotificationDetail); + } + + /** + * Creates a new EndUserNotificationDetail + * @param newEndUserNotificationDetail the EndUserNotificationDetail to create + * @return the newly created object + */ + @Nonnull + public EndUserNotificationDetail post(@Nonnull final EndUserNotificationDetail newEndUserNotificationDetail) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new EndUserNotificationDetailRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newEndUserNotificationDetail); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public EndUserNotificationDetailCollectionRequest 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 EndUserNotificationDetailCollectionRequest 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 EndUserNotificationDetailCollectionRequest 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 EndUserNotificationDetailCollectionRequest 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 EndUserNotificationDetailCollectionRequest 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 EndUserNotificationDetailCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public EndUserNotificationDetailCollectionRequest 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 EndUserNotificationDetailCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public EndUserNotificationDetailCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/requests/EndUserNotificationDetailCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/EndUserNotificationDetailCollectionRequestBuilder.java new file mode 100644 index 00000000000..b937e7edcb4 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EndUserNotificationDetailCollectionRequestBuilder.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.EndUserNotification; +import com.microsoft.graph.models.EndUserNotificationDetail; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.EndUserNotificationDetailCollectionRequestBuilder; +import com.microsoft.graph.requests.EndUserNotificationDetailRequestBuilder; +import com.microsoft.graph.requests.EndUserNotificationDetailCollectionRequest; +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 End User Notification Detail Collection Request Builder. + */ +public class EndUserNotificationDetailCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of EndUserNotification + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EndUserNotificationDetailCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, EndUserNotificationDetailRequestBuilder.class, EndUserNotificationDetailCollectionRequest.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/EndUserNotificationDetailCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/EndUserNotificationDetailCollectionResponse.java new file mode 100644 index 00000000000..14d5bb8b7ec --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EndUserNotificationDetailCollectionResponse.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.EndUserNotificationDetail; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the End User Notification Detail Collection Response. + */ +public class EndUserNotificationDetailCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/requests/EndUserNotificationDetailRequest.java b/src/main/java/com/microsoft/graph/requests/EndUserNotificationDetailRequest.java new file mode 100644 index 00000000000..c2e87fbbfdb --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EndUserNotificationDetailRequest.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.EndUserNotificationDetail; +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 End User Notification Detail Request. + */ +public class EndUserNotificationDetailRequest extends BaseRequest { + + /** + * The request for the EndUserNotificationDetail + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EndUserNotificationDetailRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, EndUserNotificationDetail.class); + } + + /** + * Gets the EndUserNotificationDetail from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the EndUserNotificationDetail from the service + * + * @return the EndUserNotificationDetail from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public EndUserNotificationDetail 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 EndUserNotificationDetail delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this EndUserNotificationDetail with a source + * + * @param sourceEndUserNotificationDetail the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final EndUserNotificationDetail sourceEndUserNotificationDetail) { + return sendAsync(HttpMethod.PATCH, sourceEndUserNotificationDetail); + } + + /** + * Patches this EndUserNotificationDetail with a source + * + * @param sourceEndUserNotificationDetail the source object with updates + * @return the updated EndUserNotificationDetail + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public EndUserNotificationDetail patch(@Nonnull final EndUserNotificationDetail sourceEndUserNotificationDetail) throws ClientException { + return send(HttpMethod.PATCH, sourceEndUserNotificationDetail); + } + + /** + * Creates a EndUserNotificationDetail with a new object + * + * @param newEndUserNotificationDetail the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final EndUserNotificationDetail newEndUserNotificationDetail) { + return sendAsync(HttpMethod.POST, newEndUserNotificationDetail); + } + + /** + * Creates a EndUserNotificationDetail with a new object + * + * @param newEndUserNotificationDetail the new object to create + * @return the created EndUserNotificationDetail + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public EndUserNotificationDetail post(@Nonnull final EndUserNotificationDetail newEndUserNotificationDetail) throws ClientException { + return send(HttpMethod.POST, newEndUserNotificationDetail); + } + + /** + * Creates a EndUserNotificationDetail with a new object + * + * @param newEndUserNotificationDetail the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final EndUserNotificationDetail newEndUserNotificationDetail) { + return sendAsync(HttpMethod.PUT, newEndUserNotificationDetail); + } + + /** + * Creates a EndUserNotificationDetail with a new object + * + * @param newEndUserNotificationDetail the object to create/update + * @return the created EndUserNotificationDetail + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public EndUserNotificationDetail put(@Nonnull final EndUserNotificationDetail newEndUserNotificationDetail) throws ClientException { + return send(HttpMethod.PUT, newEndUserNotificationDetail); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public EndUserNotificationDetailRequest 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 EndUserNotificationDetailRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/EndUserNotificationDetailRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/EndUserNotificationDetailRequestBuilder.java new file mode 100644 index 00000000000..f9786aa661c --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EndUserNotificationDetailRequestBuilder.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.EndUserNotificationDetail; +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 End User Notification Detail Request Builder. + */ +public class EndUserNotificationDetailRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the EndUserNotificationDetail + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EndUserNotificationDetailRequestBuilder(@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 EndUserNotificationDetailRequest instance + */ + @Nonnull + public EndUserNotificationDetailRequest 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 EndUserNotificationDetailRequest instance + */ + @Nonnull + public EndUserNotificationDetailRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.EndUserNotificationDetailRequest(getRequestUrl(), getClient(), requestOptions); + } + + +} diff --git a/src/main/java/com/microsoft/graph/requests/EndUserNotificationReferenceRequest.java b/src/main/java/com/microsoft/graph/requests/EndUserNotificationReferenceRequest.java new file mode 100644 index 00000000000..90b4bdf224d --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EndUserNotificationReferenceRequest.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.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.EndUserNotification; +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 End User Notification Reference Request. + */ +public class EndUserNotificationReferenceRequest extends BaseReferenceRequest { + + /** + * The request for the EndUserNotification + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EndUserNotificationReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, EndUserNotification.class); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public EndUserNotificationReferenceRequest 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 EndUserNotificationReferenceRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/EndUserNotificationReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/EndUserNotificationReferenceRequestBuilder.java new file mode 100644 index 00000000000..dd603d65c39 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EndUserNotificationReferenceRequestBuilder.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.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.EndUserNotification; +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 End User Notification Reference Request Builder. + */ +public class EndUserNotificationReferenceRequestBuilder extends BaseReferenceRequestBuilder { + + /** + * The request builder for the EndUserNotification + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EndUserNotificationReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, EndUserNotificationReferenceRequest.class); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/EndUserNotificationRequest.java b/src/main/java/com/microsoft/graph/requests/EndUserNotificationRequest.java new file mode 100644 index 00000000000..4f5b8fc2d7a --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EndUserNotificationRequest.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.EndUserNotification; +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 End User Notification Request. + */ +public class EndUserNotificationRequest extends BaseRequest { + + /** + * The request for the EndUserNotification + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EndUserNotificationRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, EndUserNotification.class); + } + + /** + * Gets the EndUserNotification from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the EndUserNotification from the service + * + * @return the EndUserNotification from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public EndUserNotification 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 EndUserNotification delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this EndUserNotification with a source + * + * @param sourceEndUserNotification the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final EndUserNotification sourceEndUserNotification) { + return sendAsync(HttpMethod.PATCH, sourceEndUserNotification); + } + + /** + * Patches this EndUserNotification with a source + * + * @param sourceEndUserNotification the source object with updates + * @return the updated EndUserNotification + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public EndUserNotification patch(@Nonnull final EndUserNotification sourceEndUserNotification) throws ClientException { + return send(HttpMethod.PATCH, sourceEndUserNotification); + } + + /** + * Creates a EndUserNotification with a new object + * + * @param newEndUserNotification the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final EndUserNotification newEndUserNotification) { + return sendAsync(HttpMethod.POST, newEndUserNotification); + } + + /** + * Creates a EndUserNotification with a new object + * + * @param newEndUserNotification the new object to create + * @return the created EndUserNotification + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public EndUserNotification post(@Nonnull final EndUserNotification newEndUserNotification) throws ClientException { + return send(HttpMethod.POST, newEndUserNotification); + } + + /** + * Creates a EndUserNotification with a new object + * + * @param newEndUserNotification the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final EndUserNotification newEndUserNotification) { + return sendAsync(HttpMethod.PUT, newEndUserNotification); + } + + /** + * Creates a EndUserNotification with a new object + * + * @param newEndUserNotification the object to create/update + * @return the created EndUserNotification + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public EndUserNotification put(@Nonnull final EndUserNotification newEndUserNotification) throws ClientException { + return send(HttpMethod.PUT, newEndUserNotification); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public EndUserNotificationRequest 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 EndUserNotificationRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/EndUserNotificationRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/EndUserNotificationRequestBuilder.java new file mode 100644 index 00000000000..5ae5862acc5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EndUserNotificationRequestBuilder.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.EndUserNotification; +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 End User Notification Request Builder. + */ +public class EndUserNotificationRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the EndUserNotification + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EndUserNotificationRequestBuilder(@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 EndUserNotificationRequest instance + */ + @Nonnull + public EndUserNotificationRequest 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 EndUserNotificationRequest instance + */ + @Nonnull + public EndUserNotificationRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.EndUserNotificationRequest(getRequestUrl(), getClient(), requestOptions); + } + + + /** + * Gets a request builder for the EndUserNotificationDetail collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.requests.EndUserNotificationDetailCollectionRequestBuilder details() { + return new com.microsoft.graph.requests.EndUserNotificationDetailCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("details"), getClient(), null); + } + + /** + * Gets a request builder for the EndUserNotificationDetail item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.requests.EndUserNotificationDetailRequestBuilder details(@Nonnull final String id) { + return new com.microsoft.graph.requests.EndUserNotificationDetailRequestBuilder(getRequestUrlWithAdditionalSegment("details") + "/" + id, getClient(), null); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/EndUserNotificationWithReferenceRequest.java b/src/main/java/com/microsoft/graph/requests/EndUserNotificationWithReferenceRequest.java new file mode 100644 index 00000000000..d9434c18813 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EndUserNotificationWithReferenceRequest.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.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.EndUserNotification; +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 End User Notification With Reference Request. + */ +public class EndUserNotificationWithReferenceRequest extends BaseWithReferenceRequest { + + /** + * The request for the EndUserNotification + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EndUserNotificationWithReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, EndUserNotification.class); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public EndUserNotificationWithReferenceRequest 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 EndUserNotificationWithReferenceRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/EndUserNotificationWithReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/EndUserNotificationWithReferenceRequestBuilder.java new file mode 100644 index 00000000000..c28f4e653ba --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EndUserNotificationWithReferenceRequestBuilder.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.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.EndUserNotification; +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 End User Notification With Reference Request Builder. + */ +public class EndUserNotificationWithReferenceRequestBuilder extends BaseWithReferenceRequestBuilder { + + /** + * The request builder for the EndUserNotification + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EndUserNotificationWithReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, EndUserNotificationWithReferenceRequest.class, EndUserNotificationReferenceRequestBuilder.class); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/LandingPageCollectionPage.java b/src/main/java/com/microsoft/graph/requests/LandingPageCollectionPage.java new file mode 100644 index 00000000000..2e7c9ee66d6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/LandingPageCollectionPage.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.LandingPage; +import com.microsoft.graph.requests.LandingPageCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.requests.LandingPageCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Landing Page Collection Page. + */ +public class LandingPageCollectionPage extends BaseCollectionPage { + + /** + * A collection page for LandingPage + * + * @param response the serialized LandingPageCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public LandingPageCollectionPage(@Nonnull final LandingPageCollectionResponse response, @Nonnull final LandingPageCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for LandingPage + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public LandingPageCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final LandingPageCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/LandingPageCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/LandingPageCollectionRequest.java new file mode 100644 index 00000000000..eff29529542 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/LandingPageCollectionRequest.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.AttackSimulationRoot; +import com.microsoft.graph.models.LandingPage; +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.LandingPageCollectionResponse; +import com.microsoft.graph.requests.LandingPageCollectionRequestBuilder; +import com.microsoft.graph.requests.LandingPageCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Landing Page Collection Request. + */ +public class LandingPageCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of LandingPage + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public LandingPageCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, LandingPageCollectionResponse.class, LandingPageCollectionPage.class, LandingPageCollectionRequestBuilder.class); + } + + /** + * Creates a new LandingPage + * @param newLandingPage the LandingPage to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final LandingPage newLandingPage) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new LandingPageRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newLandingPage); + } + + /** + * Creates a new LandingPage + * @param newLandingPage the LandingPage to create + * @return the newly created object + */ + @Nonnull + public LandingPage post(@Nonnull final LandingPage newLandingPage) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new LandingPageRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newLandingPage); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public LandingPageCollectionRequest 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 LandingPageCollectionRequest 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 LandingPageCollectionRequest 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 LandingPageCollectionRequest 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 LandingPageCollectionRequest 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 LandingPageCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public LandingPageCollectionRequest 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 LandingPageCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public LandingPageCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/requests/LandingPageCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/LandingPageCollectionRequestBuilder.java new file mode 100644 index 00000000000..c5f317829f3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/LandingPageCollectionRequestBuilder.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.AttackSimulationRoot; +import com.microsoft.graph.models.LandingPage; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.LandingPageCollectionRequestBuilder; +import com.microsoft.graph.requests.LandingPageRequestBuilder; +import com.microsoft.graph.requests.LandingPageCollectionRequest; +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 Landing Page Collection Request Builder. + */ +public class LandingPageCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of AttackSimulationRoot + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public LandingPageCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, LandingPageRequestBuilder.class, LandingPageCollectionRequest.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/LandingPageCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/LandingPageCollectionResponse.java new file mode 100644 index 00000000000..3f91ee8484a --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/LandingPageCollectionResponse.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.LandingPage; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Landing Page Collection Response. + */ +public class LandingPageCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/requests/LandingPageDetailCollectionPage.java b/src/main/java/com/microsoft/graph/requests/LandingPageDetailCollectionPage.java new file mode 100644 index 00000000000..ac8d6ba55ba --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/LandingPageDetailCollectionPage.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.LandingPageDetail; +import com.microsoft.graph.requests.LandingPageDetailCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.requests.LandingPageDetailCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Landing Page Detail Collection Page. + */ +public class LandingPageDetailCollectionPage extends BaseCollectionPage { + + /** + * A collection page for LandingPageDetail + * + * @param response the serialized LandingPageDetailCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public LandingPageDetailCollectionPage(@Nonnull final LandingPageDetailCollectionResponse response, @Nonnull final LandingPageDetailCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for LandingPageDetail + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public LandingPageDetailCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final LandingPageDetailCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/LandingPageDetailCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/LandingPageDetailCollectionRequest.java new file mode 100644 index 00000000000..1b14da360c4 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/LandingPageDetailCollectionRequest.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.LandingPage; +import com.microsoft.graph.models.LandingPageDetail; +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.LandingPageDetailCollectionResponse; +import com.microsoft.graph.requests.LandingPageDetailCollectionRequestBuilder; +import com.microsoft.graph.requests.LandingPageDetailCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Landing Page Detail Collection Request. + */ +public class LandingPageDetailCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of LandingPageDetail + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public LandingPageDetailCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, LandingPageDetailCollectionResponse.class, LandingPageDetailCollectionPage.class, LandingPageDetailCollectionRequestBuilder.class); + } + + /** + * Creates a new LandingPageDetail + * @param newLandingPageDetail the LandingPageDetail to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final LandingPageDetail newLandingPageDetail) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new LandingPageDetailRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newLandingPageDetail); + } + + /** + * Creates a new LandingPageDetail + * @param newLandingPageDetail the LandingPageDetail to create + * @return the newly created object + */ + @Nonnull + public LandingPageDetail post(@Nonnull final LandingPageDetail newLandingPageDetail) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new LandingPageDetailRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newLandingPageDetail); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public LandingPageDetailCollectionRequest 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 LandingPageDetailCollectionRequest 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 LandingPageDetailCollectionRequest 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 LandingPageDetailCollectionRequest 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 LandingPageDetailCollectionRequest 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 LandingPageDetailCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public LandingPageDetailCollectionRequest 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 LandingPageDetailCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public LandingPageDetailCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/requests/LandingPageDetailCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/LandingPageDetailCollectionRequestBuilder.java new file mode 100644 index 00000000000..34dcd7ced8f --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/LandingPageDetailCollectionRequestBuilder.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.LandingPage; +import com.microsoft.graph.models.LandingPageDetail; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.LandingPageDetailCollectionRequestBuilder; +import com.microsoft.graph.requests.LandingPageDetailRequestBuilder; +import com.microsoft.graph.requests.LandingPageDetailCollectionRequest; +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 Landing Page Detail Collection Request Builder. + */ +public class LandingPageDetailCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of LandingPage + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public LandingPageDetailCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, LandingPageDetailRequestBuilder.class, LandingPageDetailCollectionRequest.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/LandingPageDetailCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/LandingPageDetailCollectionResponse.java new file mode 100644 index 00000000000..021a4383ce0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/LandingPageDetailCollectionResponse.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.LandingPageDetail; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Landing Page Detail Collection Response. + */ +public class LandingPageDetailCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/requests/LandingPageDetailRequest.java b/src/main/java/com/microsoft/graph/requests/LandingPageDetailRequest.java new file mode 100644 index 00000000000..42054692e1b --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/LandingPageDetailRequest.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.LandingPageDetail; +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 Landing Page Detail Request. + */ +public class LandingPageDetailRequest extends BaseRequest { + + /** + * The request for the LandingPageDetail + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public LandingPageDetailRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, LandingPageDetail.class); + } + + /** + * Gets the LandingPageDetail from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the LandingPageDetail from the service + * + * @return the LandingPageDetail from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public LandingPageDetail 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 LandingPageDetail delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this LandingPageDetail with a source + * + * @param sourceLandingPageDetail the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final LandingPageDetail sourceLandingPageDetail) { + return sendAsync(HttpMethod.PATCH, sourceLandingPageDetail); + } + + /** + * Patches this LandingPageDetail with a source + * + * @param sourceLandingPageDetail the source object with updates + * @return the updated LandingPageDetail + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public LandingPageDetail patch(@Nonnull final LandingPageDetail sourceLandingPageDetail) throws ClientException { + return send(HttpMethod.PATCH, sourceLandingPageDetail); + } + + /** + * Creates a LandingPageDetail with a new object + * + * @param newLandingPageDetail the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final LandingPageDetail newLandingPageDetail) { + return sendAsync(HttpMethod.POST, newLandingPageDetail); + } + + /** + * Creates a LandingPageDetail with a new object + * + * @param newLandingPageDetail the new object to create + * @return the created LandingPageDetail + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public LandingPageDetail post(@Nonnull final LandingPageDetail newLandingPageDetail) throws ClientException { + return send(HttpMethod.POST, newLandingPageDetail); + } + + /** + * Creates a LandingPageDetail with a new object + * + * @param newLandingPageDetail the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final LandingPageDetail newLandingPageDetail) { + return sendAsync(HttpMethod.PUT, newLandingPageDetail); + } + + /** + * Creates a LandingPageDetail with a new object + * + * @param newLandingPageDetail the object to create/update + * @return the created LandingPageDetail + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public LandingPageDetail put(@Nonnull final LandingPageDetail newLandingPageDetail) throws ClientException { + return send(HttpMethod.PUT, newLandingPageDetail); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public LandingPageDetailRequest 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 LandingPageDetailRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/LandingPageDetailRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/LandingPageDetailRequestBuilder.java new file mode 100644 index 00000000000..3a063ec5d40 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/LandingPageDetailRequestBuilder.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.LandingPageDetail; +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 Landing Page Detail Request Builder. + */ +public class LandingPageDetailRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the LandingPageDetail + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public LandingPageDetailRequestBuilder(@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 LandingPageDetailRequest instance + */ + @Nonnull + public LandingPageDetailRequest 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 LandingPageDetailRequest instance + */ + @Nonnull + public LandingPageDetailRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.LandingPageDetailRequest(getRequestUrl(), getClient(), requestOptions); + } + + +} diff --git a/src/main/java/com/microsoft/graph/requests/LandingPageReferenceRequest.java b/src/main/java/com/microsoft/graph/requests/LandingPageReferenceRequest.java new file mode 100644 index 00000000000..337a9eaf1d3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/LandingPageReferenceRequest.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.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.LandingPage; +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 Landing Page Reference Request. + */ +public class LandingPageReferenceRequest extends BaseReferenceRequest { + + /** + * The request for the LandingPage + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public LandingPageReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, LandingPage.class); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public LandingPageReferenceRequest 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 LandingPageReferenceRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/LandingPageReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/LandingPageReferenceRequestBuilder.java new file mode 100644 index 00000000000..9f8da5b2c34 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/LandingPageReferenceRequestBuilder.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.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.LandingPage; +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 Landing Page Reference Request Builder. + */ +public class LandingPageReferenceRequestBuilder extends BaseReferenceRequestBuilder { + + /** + * The request builder for the LandingPage + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public LandingPageReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, LandingPageReferenceRequest.class); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/LandingPageRequest.java b/src/main/java/com/microsoft/graph/requests/LandingPageRequest.java new file mode 100644 index 00000000000..296b63a898c --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/LandingPageRequest.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.LandingPage; +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 Landing Page Request. + */ +public class LandingPageRequest extends BaseRequest { + + /** + * The request for the LandingPage + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public LandingPageRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, LandingPage.class); + } + + /** + * Gets the LandingPage from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the LandingPage from the service + * + * @return the LandingPage from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public LandingPage 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 LandingPage delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this LandingPage with a source + * + * @param sourceLandingPage the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final LandingPage sourceLandingPage) { + return sendAsync(HttpMethod.PATCH, sourceLandingPage); + } + + /** + * Patches this LandingPage with a source + * + * @param sourceLandingPage the source object with updates + * @return the updated LandingPage + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public LandingPage patch(@Nonnull final LandingPage sourceLandingPage) throws ClientException { + return send(HttpMethod.PATCH, sourceLandingPage); + } + + /** + * Creates a LandingPage with a new object + * + * @param newLandingPage the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final LandingPage newLandingPage) { + return sendAsync(HttpMethod.POST, newLandingPage); + } + + /** + * Creates a LandingPage with a new object + * + * @param newLandingPage the new object to create + * @return the created LandingPage + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public LandingPage post(@Nonnull final LandingPage newLandingPage) throws ClientException { + return send(HttpMethod.POST, newLandingPage); + } + + /** + * Creates a LandingPage with a new object + * + * @param newLandingPage the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final LandingPage newLandingPage) { + return sendAsync(HttpMethod.PUT, newLandingPage); + } + + /** + * Creates a LandingPage with a new object + * + * @param newLandingPage the object to create/update + * @return the created LandingPage + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public LandingPage put(@Nonnull final LandingPage newLandingPage) throws ClientException { + return send(HttpMethod.PUT, newLandingPage); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public LandingPageRequest 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 LandingPageRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/LandingPageRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/LandingPageRequestBuilder.java new file mode 100644 index 00000000000..1dcaa743b3d --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/LandingPageRequestBuilder.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.LandingPage; +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 Landing Page Request Builder. + */ +public class LandingPageRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the LandingPage + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public LandingPageRequestBuilder(@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 LandingPageRequest instance + */ + @Nonnull + public LandingPageRequest 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 LandingPageRequest instance + */ + @Nonnull + public LandingPageRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.LandingPageRequest(getRequestUrl(), getClient(), requestOptions); + } + + + /** + * Gets a request builder for the LandingPageDetail collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.requests.LandingPageDetailCollectionRequestBuilder details() { + return new com.microsoft.graph.requests.LandingPageDetailCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("details"), getClient(), null); + } + + /** + * Gets a request builder for the LandingPageDetail item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.requests.LandingPageDetailRequestBuilder details(@Nonnull final String id) { + return new com.microsoft.graph.requests.LandingPageDetailRequestBuilder(getRequestUrlWithAdditionalSegment("details") + "/" + id, getClient(), null); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/LandingPageWithReferenceRequest.java b/src/main/java/com/microsoft/graph/requests/LandingPageWithReferenceRequest.java new file mode 100644 index 00000000000..8d83d62e06c --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/LandingPageWithReferenceRequest.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.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.LandingPage; +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 Landing Page With Reference Request. + */ +public class LandingPageWithReferenceRequest extends BaseWithReferenceRequest { + + /** + * The request for the LandingPage + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public LandingPageWithReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, LandingPage.class); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public LandingPageWithReferenceRequest 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 LandingPageWithReferenceRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/LandingPageWithReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/LandingPageWithReferenceRequestBuilder.java new file mode 100644 index 00000000000..1924e2df783 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/LandingPageWithReferenceRequestBuilder.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.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.LandingPage; +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 Landing Page With Reference Request Builder. + */ +public class LandingPageWithReferenceRequestBuilder extends BaseWithReferenceRequestBuilder { + + /** + * The request builder for the LandingPage + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public LandingPageWithReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, LandingPageWithReferenceRequest.class, LandingPageReferenceRequestBuilder.class); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/LoginPageCollectionPage.java b/src/main/java/com/microsoft/graph/requests/LoginPageCollectionPage.java new file mode 100644 index 00000000000..79b52a11014 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/LoginPageCollectionPage.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.LoginPage; +import com.microsoft.graph.requests.LoginPageCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.requests.LoginPageCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Login Page Collection Page. + */ +public class LoginPageCollectionPage extends BaseCollectionPage { + + /** + * A collection page for LoginPage + * + * @param response the serialized LoginPageCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public LoginPageCollectionPage(@Nonnull final LoginPageCollectionResponse response, @Nonnull final LoginPageCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for LoginPage + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public LoginPageCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final LoginPageCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/LoginPageCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/LoginPageCollectionRequest.java new file mode 100644 index 00000000000..bcafcbac0e6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/LoginPageCollectionRequest.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.AttackSimulationRoot; +import com.microsoft.graph.models.LoginPage; +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.LoginPageCollectionResponse; +import com.microsoft.graph.requests.LoginPageCollectionRequestBuilder; +import com.microsoft.graph.requests.LoginPageCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Login Page Collection Request. + */ +public class LoginPageCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of LoginPage + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public LoginPageCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, LoginPageCollectionResponse.class, LoginPageCollectionPage.class, LoginPageCollectionRequestBuilder.class); + } + + /** + * Creates a new LoginPage + * @param newLoginPage the LoginPage to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final LoginPage newLoginPage) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new LoginPageRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newLoginPage); + } + + /** + * Creates a new LoginPage + * @param newLoginPage the LoginPage to create + * @return the newly created object + */ + @Nonnull + public LoginPage post(@Nonnull final LoginPage newLoginPage) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new LoginPageRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newLoginPage); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public LoginPageCollectionRequest 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 LoginPageCollectionRequest 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 LoginPageCollectionRequest 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 LoginPageCollectionRequest 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 LoginPageCollectionRequest 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 LoginPageCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public LoginPageCollectionRequest 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 LoginPageCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public LoginPageCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/requests/LoginPageCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/LoginPageCollectionRequestBuilder.java new file mode 100644 index 00000000000..1d5bacd0891 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/LoginPageCollectionRequestBuilder.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.AttackSimulationRoot; +import com.microsoft.graph.models.LoginPage; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.LoginPageCollectionRequestBuilder; +import com.microsoft.graph.requests.LoginPageRequestBuilder; +import com.microsoft.graph.requests.LoginPageCollectionRequest; +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 Login Page Collection Request Builder. + */ +public class LoginPageCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of AttackSimulationRoot + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public LoginPageCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, LoginPageRequestBuilder.class, LoginPageCollectionRequest.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/LoginPageCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/LoginPageCollectionResponse.java new file mode 100644 index 00000000000..b778946c907 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/LoginPageCollectionResponse.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.LoginPage; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Login Page Collection Response. + */ +public class LoginPageCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/requests/LoginPageReferenceRequest.java b/src/main/java/com/microsoft/graph/requests/LoginPageReferenceRequest.java new file mode 100644 index 00000000000..cdc3cffb925 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/LoginPageReferenceRequest.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.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.LoginPage; +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 Login Page Reference Request. + */ +public class LoginPageReferenceRequest extends BaseReferenceRequest { + + /** + * The request for the LoginPage + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public LoginPageReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, LoginPage.class); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public LoginPageReferenceRequest 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 LoginPageReferenceRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/LoginPageReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/LoginPageReferenceRequestBuilder.java new file mode 100644 index 00000000000..c87f4043be9 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/LoginPageReferenceRequestBuilder.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.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.LoginPage; +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 Login Page Reference Request Builder. + */ +public class LoginPageReferenceRequestBuilder extends BaseReferenceRequestBuilder { + + /** + * The request builder for the LoginPage + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public LoginPageReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, LoginPageReferenceRequest.class); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/LoginPageRequest.java b/src/main/java/com/microsoft/graph/requests/LoginPageRequest.java new file mode 100644 index 00000000000..6e55c55d75b --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/LoginPageRequest.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.LoginPage; +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 Login Page Request. + */ +public class LoginPageRequest extends BaseRequest { + + /** + * The request for the LoginPage + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public LoginPageRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, LoginPage.class); + } + + /** + * Gets the LoginPage from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the LoginPage from the service + * + * @return the LoginPage from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public LoginPage 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 LoginPage delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this LoginPage with a source + * + * @param sourceLoginPage the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final LoginPage sourceLoginPage) { + return sendAsync(HttpMethod.PATCH, sourceLoginPage); + } + + /** + * Patches this LoginPage with a source + * + * @param sourceLoginPage the source object with updates + * @return the updated LoginPage + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public LoginPage patch(@Nonnull final LoginPage sourceLoginPage) throws ClientException { + return send(HttpMethod.PATCH, sourceLoginPage); + } + + /** + * Creates a LoginPage with a new object + * + * @param newLoginPage the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final LoginPage newLoginPage) { + return sendAsync(HttpMethod.POST, newLoginPage); + } + + /** + * Creates a LoginPage with a new object + * + * @param newLoginPage the new object to create + * @return the created LoginPage + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public LoginPage post(@Nonnull final LoginPage newLoginPage) throws ClientException { + return send(HttpMethod.POST, newLoginPage); + } + + /** + * Creates a LoginPage with a new object + * + * @param newLoginPage the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final LoginPage newLoginPage) { + return sendAsync(HttpMethod.PUT, newLoginPage); + } + + /** + * Creates a LoginPage with a new object + * + * @param newLoginPage the object to create/update + * @return the created LoginPage + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public LoginPage put(@Nonnull final LoginPage newLoginPage) throws ClientException { + return send(HttpMethod.PUT, newLoginPage); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public LoginPageRequest 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 LoginPageRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/LoginPageRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/LoginPageRequestBuilder.java new file mode 100644 index 00000000000..8ab354622a9 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/LoginPageRequestBuilder.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.LoginPage; +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 Login Page Request Builder. + */ +public class LoginPageRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the LoginPage + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public LoginPageRequestBuilder(@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 LoginPageRequest instance + */ + @Nonnull + public LoginPageRequest 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 LoginPageRequest instance + */ + @Nonnull + public LoginPageRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.LoginPageRequest(getRequestUrl(), getClient(), requestOptions); + } + + +} diff --git a/src/main/java/com/microsoft/graph/requests/LoginPageWithReferenceRequest.java b/src/main/java/com/microsoft/graph/requests/LoginPageWithReferenceRequest.java new file mode 100644 index 00000000000..0f20c1b748d --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/LoginPageWithReferenceRequest.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.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.LoginPage; +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 Login Page With Reference Request. + */ +public class LoginPageWithReferenceRequest extends BaseWithReferenceRequest { + + /** + * The request for the LoginPage + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public LoginPageWithReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, LoginPage.class); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public LoginPageWithReferenceRequest 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 LoginPageWithReferenceRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/LoginPageWithReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/LoginPageWithReferenceRequestBuilder.java new file mode 100644 index 00000000000..089b7bfe9b7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/LoginPageWithReferenceRequestBuilder.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.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.LoginPage; +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 Login Page With Reference Request Builder. + */ +public class LoginPageWithReferenceRequestBuilder extends BaseWithReferenceRequestBuilder { + + /** + * The request builder for the LoginPage + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public LoginPageWithReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, LoginPageWithReferenceRequest.class, LoginPageReferenceRequestBuilder.class); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/OnlineMeetingRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/OnlineMeetingRequestBuilder.java index 88ef373ea7c..9a797c54fd1 100644 --- a/src/main/java/com/microsoft/graph/requests/OnlineMeetingRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/OnlineMeetingRequestBuilder.java @@ -78,6 +78,26 @@ public com.microsoft.graph.requests.MeetingAttendanceReportCollectionRequestBuil public com.microsoft.graph.requests.MeetingAttendanceReportRequestBuilder attendanceReports(@Nonnull final String id) { return new com.microsoft.graph.requests.MeetingAttendanceReportRequestBuilder(getRequestUrlWithAdditionalSegment("attendanceReports") + "/" + id, getClient(), null); } + /** + * Gets a request builder for the CallTranscript collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.requests.CallTranscriptCollectionRequestBuilder transcripts() { + return new com.microsoft.graph.requests.CallTranscriptCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("transcripts"), getClient(), null); + } + + /** + * Gets a request builder for the CallTranscript item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.requests.CallTranscriptRequestBuilder transcripts(@Nonnull final String id) { + return new com.microsoft.graph.requests.CallTranscriptRequestBuilder(getRequestUrlWithAdditionalSegment("transcripts") + "/" + id, getClient(), null); + } /** * Gets the request builder for attendeeReport diff --git a/src/main/java/com/microsoft/graph/requests/PayloadCollectionPage.java b/src/main/java/com/microsoft/graph/requests/PayloadCollectionPage.java new file mode 100644 index 00000000000..f2dd6488aee --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/PayloadCollectionPage.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.Payload; +import com.microsoft.graph.requests.PayloadCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.requests.PayloadCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Payload Collection Page. + */ +public class PayloadCollectionPage extends BaseCollectionPage { + + /** + * A collection page for Payload + * + * @param response the serialized PayloadCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public PayloadCollectionPage(@Nonnull final PayloadCollectionResponse response, @Nonnull final PayloadCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for Payload + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public PayloadCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final PayloadCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/PayloadCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/PayloadCollectionRequest.java new file mode 100644 index 00000000000..70ca5efcee8 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/PayloadCollectionRequest.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.AttackSimulationRoot; +import com.microsoft.graph.models.Payload; +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.PayloadCollectionResponse; +import com.microsoft.graph.requests.PayloadCollectionRequestBuilder; +import com.microsoft.graph.requests.PayloadCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Payload Collection Request. + */ +public class PayloadCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of Payload + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public PayloadCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, PayloadCollectionResponse.class, PayloadCollectionPage.class, PayloadCollectionRequestBuilder.class); + } + + /** + * Creates a new Payload + * @param newPayload the Payload to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final Payload newPayload) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new PayloadRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newPayload); + } + + /** + * Creates a new Payload + * @param newPayload the Payload to create + * @return the newly created object + */ + @Nonnull + public Payload post(@Nonnull final Payload newPayload) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new PayloadRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newPayload); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public PayloadCollectionRequest 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 PayloadCollectionRequest 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 PayloadCollectionRequest 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 PayloadCollectionRequest 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 PayloadCollectionRequest 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 PayloadCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public PayloadCollectionRequest 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 PayloadCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public PayloadCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/requests/PayloadCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/PayloadCollectionRequestBuilder.java new file mode 100644 index 00000000000..aa9e39bc458 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/PayloadCollectionRequestBuilder.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.AttackSimulationRoot; +import com.microsoft.graph.models.Payload; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.PayloadCollectionRequestBuilder; +import com.microsoft.graph.requests.PayloadRequestBuilder; +import com.microsoft.graph.requests.PayloadCollectionRequest; +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 Payload Collection Request Builder. + */ +public class PayloadCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of AttackSimulationRoot + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public PayloadCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, PayloadRequestBuilder.class, PayloadCollectionRequest.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/PayloadCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/PayloadCollectionResponse.java new file mode 100644 index 00000000000..5bebdb152a6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/PayloadCollectionResponse.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.Payload; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Payload Collection Response. + */ +public class PayloadCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/requests/PayloadReferenceRequest.java b/src/main/java/com/microsoft/graph/requests/PayloadReferenceRequest.java new file mode 100644 index 00000000000..23ee656458a --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/PayloadReferenceRequest.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.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.Payload; +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 Payload Reference Request. + */ +public class PayloadReferenceRequest extends BaseReferenceRequest { + + /** + * The request for the Payload + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public PayloadReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, Payload.class); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public PayloadReferenceRequest 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 PayloadReferenceRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/PayloadReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/PayloadReferenceRequestBuilder.java new file mode 100644 index 00000000000..fef97aecd3d --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/PayloadReferenceRequestBuilder.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.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.Payload; +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 Payload Reference Request Builder. + */ +public class PayloadReferenceRequestBuilder extends BaseReferenceRequestBuilder { + + /** + * The request builder for the Payload + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public PayloadReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, PayloadReferenceRequest.class); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/PayloadRequest.java b/src/main/java/com/microsoft/graph/requests/PayloadRequest.java new file mode 100644 index 00000000000..1b574905d17 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/PayloadRequest.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.Payload; +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 Payload Request. + */ +public class PayloadRequest extends BaseRequest { + + /** + * The request for the Payload + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public PayloadRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, Payload.class); + } + + /** + * Gets the Payload from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the Payload from the service + * + * @return the Payload from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public Payload 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 Payload delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this Payload with a source + * + * @param sourcePayload the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final Payload sourcePayload) { + return sendAsync(HttpMethod.PATCH, sourcePayload); + } + + /** + * Patches this Payload with a source + * + * @param sourcePayload the source object with updates + * @return the updated Payload + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public Payload patch(@Nonnull final Payload sourcePayload) throws ClientException { + return send(HttpMethod.PATCH, sourcePayload); + } + + /** + * Creates a Payload with a new object + * + * @param newPayload the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final Payload newPayload) { + return sendAsync(HttpMethod.POST, newPayload); + } + + /** + * Creates a Payload with a new object + * + * @param newPayload the new object to create + * @return the created Payload + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public Payload post(@Nonnull final Payload newPayload) throws ClientException { + return send(HttpMethod.POST, newPayload); + } + + /** + * Creates a Payload with a new object + * + * @param newPayload the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final Payload newPayload) { + return sendAsync(HttpMethod.PUT, newPayload); + } + + /** + * Creates a Payload with a new object + * + * @param newPayload the object to create/update + * @return the created Payload + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public Payload put(@Nonnull final Payload newPayload) throws ClientException { + return send(HttpMethod.PUT, newPayload); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public PayloadRequest 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 PayloadRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/PayloadRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/PayloadRequestBuilder.java new file mode 100644 index 00000000000..3ecee553be6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/PayloadRequestBuilder.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.Payload; +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 Payload Request Builder. + */ +public class PayloadRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the Payload + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public PayloadRequestBuilder(@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 PayloadRequest instance + */ + @Nonnull + public PayloadRequest 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 PayloadRequest instance + */ + @Nonnull + public PayloadRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.PayloadRequest(getRequestUrl(), getClient(), requestOptions); + } + + +} diff --git a/src/main/java/com/microsoft/graph/requests/PayloadWithReferenceRequest.java b/src/main/java/com/microsoft/graph/requests/PayloadWithReferenceRequest.java new file mode 100644 index 00000000000..b9ba0bcae87 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/PayloadWithReferenceRequest.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.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.Payload; +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 Payload With Reference Request. + */ +public class PayloadWithReferenceRequest extends BaseWithReferenceRequest { + + /** + * The request for the Payload + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public PayloadWithReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, Payload.class); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public PayloadWithReferenceRequest 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 PayloadWithReferenceRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/PayloadWithReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/PayloadWithReferenceRequestBuilder.java new file mode 100644 index 00000000000..93ad870180b --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/PayloadWithReferenceRequestBuilder.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.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.Payload; +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 Payload With Reference Request Builder. + */ +public class PayloadWithReferenceRequestBuilder extends BaseWithReferenceRequestBuilder { + + /** + * The request builder for the Payload + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public PayloadWithReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, PayloadWithReferenceRequest.class, PayloadReferenceRequestBuilder.class); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/SimulationRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/SimulationRequestBuilder.java index bd85c0bef1b..3fd6177413d 100644 --- a/src/main/java/com/microsoft/graph/requests/SimulationRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/SimulationRequestBuilder.java @@ -56,4 +56,34 @@ public SimulationRequest buildRequest(@Nonnull final java.util.List { + + /** + * A collection page for Training + * + * @param response the serialized TrainingCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public TrainingCollectionPage(@Nonnull final TrainingCollectionResponse response, @Nonnull final TrainingCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for Training + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public TrainingCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final TrainingCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/TrainingCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/TrainingCollectionRequest.java new file mode 100644 index 00000000000..5d67ec43647 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/TrainingCollectionRequest.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.AttackSimulationRoot; +import com.microsoft.graph.models.Training; +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.TrainingCollectionResponse; +import com.microsoft.graph.requests.TrainingCollectionRequestBuilder; +import com.microsoft.graph.requests.TrainingCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Training Collection Request. + */ +public class TrainingCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of Training + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public TrainingCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, TrainingCollectionResponse.class, TrainingCollectionPage.class, TrainingCollectionRequestBuilder.class); + } + + /** + * Creates a new Training + * @param newTraining the Training to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final Training newTraining) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new TrainingRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newTraining); + } + + /** + * Creates a new Training + * @param newTraining the Training to create + * @return the newly created object + */ + @Nonnull + public Training post(@Nonnull final Training newTraining) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new TrainingRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newTraining); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public TrainingCollectionRequest 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 TrainingCollectionRequest 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 TrainingCollectionRequest 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 TrainingCollectionRequest 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 TrainingCollectionRequest 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 TrainingCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public TrainingCollectionRequest 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 TrainingCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public TrainingCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/requests/TrainingCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/TrainingCollectionRequestBuilder.java new file mode 100644 index 00000000000..6291e6f4cc7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/TrainingCollectionRequestBuilder.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.AttackSimulationRoot; +import com.microsoft.graph.models.Training; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.TrainingCollectionRequestBuilder; +import com.microsoft.graph.requests.TrainingRequestBuilder; +import com.microsoft.graph.requests.TrainingCollectionRequest; +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 Training Collection Request Builder. + */ +public class TrainingCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of AttackSimulationRoot + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public TrainingCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, TrainingRequestBuilder.class, TrainingCollectionRequest.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/TrainingCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/TrainingCollectionResponse.java new file mode 100644 index 00000000000..70fa92f8fc5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/TrainingCollectionResponse.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.Training; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Training Collection Response. + */ +public class TrainingCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/requests/TrainingLanguageDetailCollectionPage.java b/src/main/java/com/microsoft/graph/requests/TrainingLanguageDetailCollectionPage.java new file mode 100644 index 00000000000..7e390ad7d95 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/TrainingLanguageDetailCollectionPage.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.TrainingLanguageDetail; +import com.microsoft.graph.requests.TrainingLanguageDetailCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.requests.TrainingLanguageDetailCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Training Language Detail Collection Page. + */ +public class TrainingLanguageDetailCollectionPage extends BaseCollectionPage { + + /** + * A collection page for TrainingLanguageDetail + * + * @param response the serialized TrainingLanguageDetailCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public TrainingLanguageDetailCollectionPage(@Nonnull final TrainingLanguageDetailCollectionResponse response, @Nonnull final TrainingLanguageDetailCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for TrainingLanguageDetail + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public TrainingLanguageDetailCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final TrainingLanguageDetailCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/TrainingLanguageDetailCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/TrainingLanguageDetailCollectionRequest.java new file mode 100644 index 00000000000..2880a0a7709 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/TrainingLanguageDetailCollectionRequest.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.Training; +import com.microsoft.graph.models.TrainingLanguageDetail; +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.TrainingLanguageDetailCollectionResponse; +import com.microsoft.graph.requests.TrainingLanguageDetailCollectionRequestBuilder; +import com.microsoft.graph.requests.TrainingLanguageDetailCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Training Language Detail Collection Request. + */ +public class TrainingLanguageDetailCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of TrainingLanguageDetail + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public TrainingLanguageDetailCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, TrainingLanguageDetailCollectionResponse.class, TrainingLanguageDetailCollectionPage.class, TrainingLanguageDetailCollectionRequestBuilder.class); + } + + /** + * Creates a new TrainingLanguageDetail + * @param newTrainingLanguageDetail the TrainingLanguageDetail to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final TrainingLanguageDetail newTrainingLanguageDetail) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new TrainingLanguageDetailRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newTrainingLanguageDetail); + } + + /** + * Creates a new TrainingLanguageDetail + * @param newTrainingLanguageDetail the TrainingLanguageDetail to create + * @return the newly created object + */ + @Nonnull + public TrainingLanguageDetail post(@Nonnull final TrainingLanguageDetail newTrainingLanguageDetail) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new TrainingLanguageDetailRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newTrainingLanguageDetail); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public TrainingLanguageDetailCollectionRequest 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 TrainingLanguageDetailCollectionRequest 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 TrainingLanguageDetailCollectionRequest 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 TrainingLanguageDetailCollectionRequest 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 TrainingLanguageDetailCollectionRequest 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 TrainingLanguageDetailCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public TrainingLanguageDetailCollectionRequest 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 TrainingLanguageDetailCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public TrainingLanguageDetailCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/requests/TrainingLanguageDetailCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/TrainingLanguageDetailCollectionRequestBuilder.java new file mode 100644 index 00000000000..56456eec2fd --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/TrainingLanguageDetailCollectionRequestBuilder.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.Training; +import com.microsoft.graph.models.TrainingLanguageDetail; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.TrainingLanguageDetailCollectionRequestBuilder; +import com.microsoft.graph.requests.TrainingLanguageDetailRequestBuilder; +import com.microsoft.graph.requests.TrainingLanguageDetailCollectionRequest; +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 Training Language Detail Collection Request Builder. + */ +public class TrainingLanguageDetailCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of Training + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public TrainingLanguageDetailCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, TrainingLanguageDetailRequestBuilder.class, TrainingLanguageDetailCollectionRequest.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/TrainingLanguageDetailCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/TrainingLanguageDetailCollectionResponse.java new file mode 100644 index 00000000000..80a654f9bd5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/TrainingLanguageDetailCollectionResponse.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.TrainingLanguageDetail; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Training Language Detail Collection Response. + */ +public class TrainingLanguageDetailCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/requests/TrainingLanguageDetailRequest.java b/src/main/java/com/microsoft/graph/requests/TrainingLanguageDetailRequest.java new file mode 100644 index 00000000000..ec2b6b526fc --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/TrainingLanguageDetailRequest.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.TrainingLanguageDetail; +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 Training Language Detail Request. + */ +public class TrainingLanguageDetailRequest extends BaseRequest { + + /** + * The request for the TrainingLanguageDetail + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public TrainingLanguageDetailRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, TrainingLanguageDetail.class); + } + + /** + * Gets the TrainingLanguageDetail from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the TrainingLanguageDetail from the service + * + * @return the TrainingLanguageDetail from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public TrainingLanguageDetail 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 TrainingLanguageDetail delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this TrainingLanguageDetail with a source + * + * @param sourceTrainingLanguageDetail the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final TrainingLanguageDetail sourceTrainingLanguageDetail) { + return sendAsync(HttpMethod.PATCH, sourceTrainingLanguageDetail); + } + + /** + * Patches this TrainingLanguageDetail with a source + * + * @param sourceTrainingLanguageDetail the source object with updates + * @return the updated TrainingLanguageDetail + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public TrainingLanguageDetail patch(@Nonnull final TrainingLanguageDetail sourceTrainingLanguageDetail) throws ClientException { + return send(HttpMethod.PATCH, sourceTrainingLanguageDetail); + } + + /** + * Creates a TrainingLanguageDetail with a new object + * + * @param newTrainingLanguageDetail the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final TrainingLanguageDetail newTrainingLanguageDetail) { + return sendAsync(HttpMethod.POST, newTrainingLanguageDetail); + } + + /** + * Creates a TrainingLanguageDetail with a new object + * + * @param newTrainingLanguageDetail the new object to create + * @return the created TrainingLanguageDetail + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public TrainingLanguageDetail post(@Nonnull final TrainingLanguageDetail newTrainingLanguageDetail) throws ClientException { + return send(HttpMethod.POST, newTrainingLanguageDetail); + } + + /** + * Creates a TrainingLanguageDetail with a new object + * + * @param newTrainingLanguageDetail the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final TrainingLanguageDetail newTrainingLanguageDetail) { + return sendAsync(HttpMethod.PUT, newTrainingLanguageDetail); + } + + /** + * Creates a TrainingLanguageDetail with a new object + * + * @param newTrainingLanguageDetail the object to create/update + * @return the created TrainingLanguageDetail + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public TrainingLanguageDetail put(@Nonnull final TrainingLanguageDetail newTrainingLanguageDetail) throws ClientException { + return send(HttpMethod.PUT, newTrainingLanguageDetail); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public TrainingLanguageDetailRequest 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 TrainingLanguageDetailRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/TrainingLanguageDetailRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/TrainingLanguageDetailRequestBuilder.java new file mode 100644 index 00000000000..698db6bba28 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/TrainingLanguageDetailRequestBuilder.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.TrainingLanguageDetail; +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 Training Language Detail Request Builder. + */ +public class TrainingLanguageDetailRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the TrainingLanguageDetail + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public TrainingLanguageDetailRequestBuilder(@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 TrainingLanguageDetailRequest instance + */ + @Nonnull + public TrainingLanguageDetailRequest 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 TrainingLanguageDetailRequest instance + */ + @Nonnull + public TrainingLanguageDetailRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.TrainingLanguageDetailRequest(getRequestUrl(), getClient(), requestOptions); + } + + +} diff --git a/src/main/java/com/microsoft/graph/requests/TrainingReferenceRequest.java b/src/main/java/com/microsoft/graph/requests/TrainingReferenceRequest.java new file mode 100644 index 00000000000..067eeafa8c7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/TrainingReferenceRequest.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.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.Training; +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 Training Reference Request. + */ +public class TrainingReferenceRequest extends BaseReferenceRequest { + + /** + * The request for the Training + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public TrainingReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, Training.class); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public TrainingReferenceRequest 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 TrainingReferenceRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/TrainingReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/TrainingReferenceRequestBuilder.java new file mode 100644 index 00000000000..d2fad8b56aa --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/TrainingReferenceRequestBuilder.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.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.Training; +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 Training Reference Request Builder. + */ +public class TrainingReferenceRequestBuilder extends BaseReferenceRequestBuilder { + + /** + * The request builder for the Training + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public TrainingReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, TrainingReferenceRequest.class); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/TrainingRequest.java b/src/main/java/com/microsoft/graph/requests/TrainingRequest.java new file mode 100644 index 00000000000..f2f2f201a7f --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/TrainingRequest.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.Training; +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 Training Request. + */ +public class TrainingRequest extends BaseRequest { + + /** + * The request for the Training + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public TrainingRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, Training.class); + } + + /** + * Gets the Training from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the Training from the service + * + * @return the Training from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public Training 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 Training delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this Training with a source + * + * @param sourceTraining the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final Training sourceTraining) { + return sendAsync(HttpMethod.PATCH, sourceTraining); + } + + /** + * Patches this Training with a source + * + * @param sourceTraining the source object with updates + * @return the updated Training + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public Training patch(@Nonnull final Training sourceTraining) throws ClientException { + return send(HttpMethod.PATCH, sourceTraining); + } + + /** + * Creates a Training with a new object + * + * @param newTraining the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final Training newTraining) { + return sendAsync(HttpMethod.POST, newTraining); + } + + /** + * Creates a Training with a new object + * + * @param newTraining the new object to create + * @return the created Training + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public Training post(@Nonnull final Training newTraining) throws ClientException { + return send(HttpMethod.POST, newTraining); + } + + /** + * Creates a Training with a new object + * + * @param newTraining the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final Training newTraining) { + return sendAsync(HttpMethod.PUT, newTraining); + } + + /** + * Creates a Training with a new object + * + * @param newTraining the object to create/update + * @return the created Training + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public Training put(@Nonnull final Training newTraining) throws ClientException { + return send(HttpMethod.PUT, newTraining); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public TrainingRequest 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 TrainingRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/TrainingRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/TrainingRequestBuilder.java new file mode 100644 index 00000000000..a07bec1b3c3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/TrainingRequestBuilder.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.Training; +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 Training Request Builder. + */ +public class TrainingRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the Training + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public TrainingRequestBuilder(@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 TrainingRequest instance + */ + @Nonnull + public TrainingRequest 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 TrainingRequest instance + */ + @Nonnull + public TrainingRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.TrainingRequest(getRequestUrl(), getClient(), requestOptions); + } + + + /** + * Gets a request builder for the TrainingLanguageDetail collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.requests.TrainingLanguageDetailCollectionRequestBuilder languageDetails() { + return new com.microsoft.graph.requests.TrainingLanguageDetailCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("languageDetails"), getClient(), null); + } + + /** + * Gets a request builder for the TrainingLanguageDetail item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.requests.TrainingLanguageDetailRequestBuilder languageDetails(@Nonnull final String id) { + return new com.microsoft.graph.requests.TrainingLanguageDetailRequestBuilder(getRequestUrlWithAdditionalSegment("languageDetails") + "/" + id, getClient(), null); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/TrainingWithReferenceRequest.java b/src/main/java/com/microsoft/graph/requests/TrainingWithReferenceRequest.java new file mode 100644 index 00000000000..80fabe4897a --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/TrainingWithReferenceRequest.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.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.Training; +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 Training With Reference Request. + */ +public class TrainingWithReferenceRequest extends BaseWithReferenceRequest { + + /** + * The request for the Training + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public TrainingWithReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, Training.class); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public TrainingWithReferenceRequest 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 TrainingWithReferenceRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/TrainingWithReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/TrainingWithReferenceRequestBuilder.java new file mode 100644 index 00000000000..405399fa427 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/TrainingWithReferenceRequestBuilder.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.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.Training; +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 Training With Reference Request Builder. + */ +public class TrainingWithReferenceRequestBuilder extends BaseWithReferenceRequestBuilder { + + /** + * The request builder for the Training + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public TrainingWithReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, TrainingWithReferenceRequest.class, TrainingReferenceRequestBuilder.class); + } +} 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/SubdomainCollectionPage.java b/src/main/java/com/microsoft/graph/security/requests/SubdomainCollectionPage.java new file mode 100644 index 00000000000..8986c2d83ad --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/SubdomainCollectionPage.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.Subdomain; +import com.microsoft.graph.security.requests.SubdomainCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.security.requests.SubdomainCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Subdomain Collection Page. + */ +public class SubdomainCollectionPage extends BaseCollectionPage { + + /** + * A collection page for Subdomain + * + * @param response the serialized SubdomainCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public SubdomainCollectionPage(@Nonnull final SubdomainCollectionResponse response, @Nonnull final SubdomainCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for Subdomain + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public SubdomainCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final SubdomainCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/SubdomainCollectionReferenceRequest.java b/src/main/java/com/microsoft/graph/security/requests/SubdomainCollectionReferenceRequest.java new file mode 100644 index 00000000000..1c2c8e311fb --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/SubdomainCollectionReferenceRequest.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.Subdomain; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.security.requests.SubdomainWithReferenceRequest; +import com.microsoft.graph.security.requests.SubdomainReferenceRequestBuilder; +import com.microsoft.graph.security.requests.SubdomainWithReferenceRequestBuilder; +import com.microsoft.graph.security.requests.SubdomainCollectionWithReferencesRequest; +import com.microsoft.graph.security.requests.SubdomainCollectionWithReferencesRequestBuilder; +import com.microsoft.graph.security.models.Subdomain; +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 Subdomain Collection Reference Request. + */ +public class SubdomainCollectionReferenceRequest extends BaseCollectionWithReferencesRequest { + + /** + * The request builder for this collection of Subdomain + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public SubdomainCollectionReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, SubdomainCollectionResponse.class, SubdomainCollectionWithReferencesPage.class, SubdomainCollectionWithReferencesRequestBuilder.class); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public SubdomainCollectionReferenceRequest 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 SubdomainCollectionReferenceRequest 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 SubdomainCollectionReferenceRequest 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 SubdomainCollectionReferenceRequest 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 SubdomainCollectionReferenceRequest 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 SubdomainCollectionReferenceRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public SubdomainCollectionReferenceRequest count() { + addCountOption(true); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/SubdomainCollectionReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/security/requests/SubdomainCollectionReferenceRequestBuilder.java new file mode 100644 index 00000000000..db7b7316bf6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/SubdomainCollectionReferenceRequestBuilder.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.Subdomain; +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 Subdomain Collection Reference Request Builder. + */ +public class SubdomainCollectionReferenceRequestBuilder extends BaseCollectionReferenceRequestBuilder { + + /** + * The request builder for this collection of Subdomain + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public SubdomainCollectionReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, SubdomainReferenceRequestBuilder.class, SubdomainCollectionReferenceRequest.class); + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/SubdomainCollectionRequest.java b/src/main/java/com/microsoft/graph/security/requests/SubdomainCollectionRequest.java new file mode 100644 index 00000000000..cd3c50d75e3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/SubdomainCollectionRequest.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.Subdomain; +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.SubdomainCollectionResponse; +import com.microsoft.graph.security.requests.SubdomainCollectionRequestBuilder; +import com.microsoft.graph.security.requests.SubdomainCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Subdomain Collection Request. + */ +public class SubdomainCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of Subdomain + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public SubdomainCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, SubdomainCollectionResponse.class, SubdomainCollectionPage.class, SubdomainCollectionRequestBuilder.class); + } + + /** + * Creates a new Subdomain + * @param newSubdomain the Subdomain to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final Subdomain newSubdomain) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new SubdomainRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newSubdomain); + } + + /** + * Creates a new Subdomain + * @param newSubdomain the Subdomain to create + * @return the newly created object + */ + @Nonnull + public Subdomain post(@Nonnull final Subdomain newSubdomain) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new SubdomainRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newSubdomain); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public SubdomainCollectionRequest 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 SubdomainCollectionRequest 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 SubdomainCollectionRequest 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 SubdomainCollectionRequest 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 SubdomainCollectionRequest 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 SubdomainCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public SubdomainCollectionRequest 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 SubdomainCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public SubdomainCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/security/requests/SubdomainCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/security/requests/SubdomainCollectionRequestBuilder.java new file mode 100644 index 00000000000..0e9b247dd7b --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/SubdomainCollectionRequestBuilder.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.Subdomain; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.security.requests.SubdomainCollectionRequestBuilder; +import com.microsoft.graph.security.requests.SubdomainRequestBuilder; +import com.microsoft.graph.security.requests.SubdomainCollectionRequest; +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 Subdomain Collection Request Builder. + */ +public class SubdomainCollectionRequestBuilder 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 SubdomainCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, SubdomainRequestBuilder.class, SubdomainCollectionRequest.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/SubdomainCollectionResponse.java b/src/main/java/com/microsoft/graph/security/requests/SubdomainCollectionResponse.java new file mode 100644 index 00000000000..8bca5946d18 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/SubdomainCollectionResponse.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.Subdomain; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Subdomain Collection Response. + */ +public class SubdomainCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/security/requests/SubdomainCollectionWithReferencesPage.java b/src/main/java/com/microsoft/graph/security/requests/SubdomainCollectionWithReferencesPage.java new file mode 100644 index 00000000000..2caa55faa1d --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/SubdomainCollectionWithReferencesPage.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.Subdomain; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.security.requests.SubdomainCollectionWithReferencesRequestBuilder; +import com.microsoft.graph.security.requests.SubdomainCollectionWithReferencesPage; +import com.microsoft.graph.security.requests.SubdomainCollectionResponse; +import com.microsoft.graph.security.models.Subdomain; +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 Subdomain Collection With References Page. + */ +public class SubdomainCollectionWithReferencesPage extends BaseCollectionPage { + + /** + * A collection page for Subdomain + * + * @param response the serialized SubdomainCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public SubdomainCollectionWithReferencesPage(@Nonnull final SubdomainCollectionResponse response, @Nullable final SubdomainCollectionWithReferencesRequestBuilder builder) { + super(response.value, builder, response.additionalDataManager()); + } + + /** + * Creates the collection page for Subdomain + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public SubdomainCollectionWithReferencesPage(@Nonnull final java.util.List pageContents, @Nullable final SubdomainCollectionWithReferencesRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/SubdomainCollectionWithReferencesRequest.java b/src/main/java/com/microsoft/graph/security/requests/SubdomainCollectionWithReferencesRequest.java new file mode 100644 index 00000000000..d00bfcc403f --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/SubdomainCollectionWithReferencesRequest.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.Subdomain; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.security.models.Subdomain; +import com.microsoft.graph.security.requests.SubdomainWithReferenceRequest; +import com.microsoft.graph.security.requests.SubdomainReferenceRequestBuilder; +import com.microsoft.graph.security.requests.SubdomainWithReferenceRequestBuilder; +import com.microsoft.graph.security.requests.SubdomainCollectionWithReferencesRequest; +import com.microsoft.graph.security.requests.SubdomainCollectionWithReferencesRequest; +import com.microsoft.graph.security.requests.SubdomainCollectionWithReferencesRequestBuilder; +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 Subdomain Collection With References Request. + */ +public class SubdomainCollectionWithReferencesRequest extends BaseCollectionWithReferencesRequest { + + /** + * The request builder for this collection of Subdomain + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public SubdomainCollectionWithReferencesRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, SubdomainCollectionResponse.class, SubdomainCollectionWithReferencesPage.class, SubdomainCollectionWithReferencesRequestBuilder.class); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public SubdomainCollectionWithReferencesRequest 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 SubdomainCollectionWithReferencesRequest 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 SubdomainCollectionWithReferencesRequest 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 SubdomainCollectionWithReferencesRequest 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 SubdomainCollectionWithReferencesRequest 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 SubdomainCollectionWithReferencesRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public SubdomainCollectionWithReferencesRequest count() { + addCountOption(true); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/SubdomainCollectionWithReferencesRequestBuilder.java b/src/main/java/com/microsoft/graph/security/requests/SubdomainCollectionWithReferencesRequestBuilder.java new file mode 100644 index 00000000000..9f8ab8fb727 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/SubdomainCollectionWithReferencesRequestBuilder.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.Subdomain; +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 Subdomain Collection With References Request Builder. + */ +public class SubdomainCollectionWithReferencesRequestBuilder 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 SubdomainCollectionWithReferencesRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, SubdomainReferenceRequestBuilder.class, SubdomainCollectionReferenceRequest.class, SubdomainCollectionReferenceRequestBuilder.class); + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/WhoisHistoryRecordCollectionPage.java b/src/main/java/com/microsoft/graph/security/requests/WhoisHistoryRecordCollectionPage.java new file mode 100644 index 00000000000..1ea178745bf --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/WhoisHistoryRecordCollectionPage.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.WhoisHistoryRecord; +import com.microsoft.graph.security.requests.WhoisHistoryRecordCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.security.requests.WhoisHistoryRecordCollectionResponse; +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 History Record Collection Page. + */ +public class WhoisHistoryRecordCollectionPage extends BaseCollectionPage { + + /** + * A collection page for WhoisHistoryRecord + * + * @param response the serialized WhoisHistoryRecordCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public WhoisHistoryRecordCollectionPage(@Nonnull final WhoisHistoryRecordCollectionResponse response, @Nonnull final WhoisHistoryRecordCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for WhoisHistoryRecord + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public WhoisHistoryRecordCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final WhoisHistoryRecordCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/WhoisHistoryRecordCollectionReferenceRequest.java b/src/main/java/com/microsoft/graph/security/requests/WhoisHistoryRecordCollectionReferenceRequest.java new file mode 100644 index 00000000000..a09db17b051 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/WhoisHistoryRecordCollectionReferenceRequest.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.WhoisRecord; +import com.microsoft.graph.security.models.WhoisHistoryRecord; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.security.requests.WhoisHistoryRecordWithReferenceRequest; +import com.microsoft.graph.security.requests.WhoisHistoryRecordReferenceRequestBuilder; +import com.microsoft.graph.security.requests.WhoisHistoryRecordWithReferenceRequestBuilder; +import com.microsoft.graph.security.requests.WhoisHistoryRecordCollectionWithReferencesRequest; +import com.microsoft.graph.security.requests.WhoisHistoryRecordCollectionWithReferencesRequestBuilder; +import com.microsoft.graph.security.models.WhoisHistoryRecord; +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 Whois History Record Collection Reference Request. + */ +public class WhoisHistoryRecordCollectionReferenceRequest extends BaseCollectionWithReferencesRequest { + + /** + * The request builder for this collection of WhoisHistoryRecord + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public WhoisHistoryRecordCollectionReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, WhoisHistoryRecordCollectionResponse.class, WhoisHistoryRecordCollectionWithReferencesPage.class, WhoisHistoryRecordCollectionWithReferencesRequestBuilder.class); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public WhoisHistoryRecordCollectionReferenceRequest 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 WhoisHistoryRecordCollectionReferenceRequest 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 WhoisHistoryRecordCollectionReferenceRequest 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 WhoisHistoryRecordCollectionReferenceRequest 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 WhoisHistoryRecordCollectionReferenceRequest 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 WhoisHistoryRecordCollectionReferenceRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public WhoisHistoryRecordCollectionReferenceRequest count() { + addCountOption(true); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/WhoisHistoryRecordCollectionReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/security/requests/WhoisHistoryRecordCollectionReferenceRequestBuilder.java new file mode 100644 index 00000000000..1b7eaa05c7e --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/WhoisHistoryRecordCollectionReferenceRequestBuilder.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.WhoisRecord; +import com.microsoft.graph.security.models.WhoisHistoryRecord; +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 Whois History Record Collection Reference Request Builder. + */ +public class WhoisHistoryRecordCollectionReferenceRequestBuilder extends BaseCollectionReferenceRequestBuilder { + + /** + * The request builder for this collection of WhoisHistoryRecord + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public WhoisHistoryRecordCollectionReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, WhoisHistoryRecordReferenceRequestBuilder.class, WhoisHistoryRecordCollectionReferenceRequest.class); + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/WhoisHistoryRecordCollectionRequest.java b/src/main/java/com/microsoft/graph/security/requests/WhoisHistoryRecordCollectionRequest.java new file mode 100644 index 00000000000..dc23eace468 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/WhoisHistoryRecordCollectionRequest.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.WhoisHistoryRecord; +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.WhoisHistoryRecordCollectionResponse; +import com.microsoft.graph.security.requests.WhoisHistoryRecordCollectionRequestBuilder; +import com.microsoft.graph.security.requests.WhoisHistoryRecordCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Whois History Record Collection Request. + */ +public class WhoisHistoryRecordCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of WhoisHistoryRecord + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public WhoisHistoryRecordCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, WhoisHistoryRecordCollectionResponse.class, WhoisHistoryRecordCollectionPage.class, WhoisHistoryRecordCollectionRequestBuilder.class); + } + + /** + * Creates a new WhoisHistoryRecord + * @param newWhoisHistoryRecord the WhoisHistoryRecord to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final WhoisHistoryRecord newWhoisHistoryRecord) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new WhoisHistoryRecordRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newWhoisHistoryRecord); + } + + /** + * Creates a new WhoisHistoryRecord + * @param newWhoisHistoryRecord the WhoisHistoryRecord to create + * @return the newly created object + */ + @Nonnull + public WhoisHistoryRecord post(@Nonnull final WhoisHistoryRecord newWhoisHistoryRecord) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new WhoisHistoryRecordRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newWhoisHistoryRecord); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public WhoisHistoryRecordCollectionRequest 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 WhoisHistoryRecordCollectionRequest 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 WhoisHistoryRecordCollectionRequest 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 WhoisHistoryRecordCollectionRequest 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 WhoisHistoryRecordCollectionRequest 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 WhoisHistoryRecordCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public WhoisHistoryRecordCollectionRequest 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 WhoisHistoryRecordCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public WhoisHistoryRecordCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/security/requests/WhoisHistoryRecordCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/security/requests/WhoisHistoryRecordCollectionRequestBuilder.java new file mode 100644 index 00000000000..d93ce5cf6a7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/WhoisHistoryRecordCollectionRequestBuilder.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.WhoisHistoryRecord; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.security.requests.WhoisHistoryRecordCollectionRequestBuilder; +import com.microsoft.graph.security.requests.WhoisHistoryRecordRequestBuilder; +import com.microsoft.graph.security.requests.WhoisHistoryRecordCollectionRequest; +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 History Record Collection Request Builder. + */ +public class WhoisHistoryRecordCollectionRequestBuilder 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 WhoisHistoryRecordCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, WhoisHistoryRecordRequestBuilder.class, WhoisHistoryRecordCollectionRequest.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/WhoisHistoryRecordCollectionResponse.java b/src/main/java/com/microsoft/graph/security/requests/WhoisHistoryRecordCollectionResponse.java new file mode 100644 index 00000000000..be35de849a9 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/WhoisHistoryRecordCollectionResponse.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.WhoisHistoryRecord; + +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 History Record Collection Response. + */ +public class WhoisHistoryRecordCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/security/requests/WhoisHistoryRecordCollectionWithReferencesPage.java b/src/main/java/com/microsoft/graph/security/requests/WhoisHistoryRecordCollectionWithReferencesPage.java new file mode 100644 index 00000000000..c1a0564fa95 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/WhoisHistoryRecordCollectionWithReferencesPage.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.WhoisRecord; +import com.microsoft.graph.security.models.WhoisHistoryRecord; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.security.requests.WhoisHistoryRecordCollectionWithReferencesRequestBuilder; +import com.microsoft.graph.security.requests.WhoisHistoryRecordCollectionWithReferencesPage; +import com.microsoft.graph.security.requests.WhoisHistoryRecordCollectionResponse; +import com.microsoft.graph.security.models.WhoisHistoryRecord; +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 Whois History Record Collection With References Page. + */ +public class WhoisHistoryRecordCollectionWithReferencesPage extends BaseCollectionPage { + + /** + * A collection page for WhoisHistoryRecord + * + * @param response the serialized WhoisHistoryRecordCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public WhoisHistoryRecordCollectionWithReferencesPage(@Nonnull final WhoisHistoryRecordCollectionResponse response, @Nullable final WhoisHistoryRecordCollectionWithReferencesRequestBuilder builder) { + super(response.value, builder, response.additionalDataManager()); + } + + /** + * Creates the collection page for WhoisHistoryRecord + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public WhoisHistoryRecordCollectionWithReferencesPage(@Nonnull final java.util.List pageContents, @Nullable final WhoisHistoryRecordCollectionWithReferencesRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/WhoisHistoryRecordCollectionWithReferencesRequest.java b/src/main/java/com/microsoft/graph/security/requests/WhoisHistoryRecordCollectionWithReferencesRequest.java new file mode 100644 index 00000000000..415f73ec626 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/WhoisHistoryRecordCollectionWithReferencesRequest.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.WhoisRecord; +import com.microsoft.graph.security.models.WhoisHistoryRecord; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.security.models.WhoisHistoryRecord; +import com.microsoft.graph.security.requests.WhoisHistoryRecordWithReferenceRequest; +import com.microsoft.graph.security.requests.WhoisHistoryRecordReferenceRequestBuilder; +import com.microsoft.graph.security.requests.WhoisHistoryRecordWithReferenceRequestBuilder; +import com.microsoft.graph.security.requests.WhoisHistoryRecordCollectionWithReferencesRequest; +import com.microsoft.graph.security.requests.WhoisHistoryRecordCollectionWithReferencesRequest; +import com.microsoft.graph.security.requests.WhoisHistoryRecordCollectionWithReferencesRequestBuilder; +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 Whois History Record Collection With References Request. + */ +public class WhoisHistoryRecordCollectionWithReferencesRequest extends BaseCollectionWithReferencesRequest { + + /** + * The request builder for this collection of WhoisHistoryRecord + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public WhoisHistoryRecordCollectionWithReferencesRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, WhoisHistoryRecordCollectionResponse.class, WhoisHistoryRecordCollectionWithReferencesPage.class, WhoisHistoryRecordCollectionWithReferencesRequestBuilder.class); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public WhoisHistoryRecordCollectionWithReferencesRequest 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 WhoisHistoryRecordCollectionWithReferencesRequest 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 WhoisHistoryRecordCollectionWithReferencesRequest 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 WhoisHistoryRecordCollectionWithReferencesRequest 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 WhoisHistoryRecordCollectionWithReferencesRequest 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 WhoisHistoryRecordCollectionWithReferencesRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public WhoisHistoryRecordCollectionWithReferencesRequest count() { + addCountOption(true); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/WhoisHistoryRecordCollectionWithReferencesRequestBuilder.java b/src/main/java/com/microsoft/graph/security/requests/WhoisHistoryRecordCollectionWithReferencesRequestBuilder.java new file mode 100644 index 00000000000..bea510e0722 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/WhoisHistoryRecordCollectionWithReferencesRequestBuilder.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.WhoisRecord; +import com.microsoft.graph.security.models.WhoisHistoryRecord; +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 Whois History Record Collection With References Request Builder. + */ +public class WhoisHistoryRecordCollectionWithReferencesRequestBuilder extends BaseCollectionWithReferencesRequestBuilder { + + /** + * 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 WhoisHistoryRecordCollectionWithReferencesRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, WhoisHistoryRecordReferenceRequestBuilder.class, WhoisHistoryRecordCollectionReferenceRequest.class, WhoisHistoryRecordCollectionReferenceRequestBuilder.class); + } +} 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/Alert.java b/src/main/java/com/microsoft/graph/securitynamespace/models/Alert.java index eacfc248be4..456891ac5be 100644 --- a/src/main/java/com/microsoft/graph/securitynamespace/models/Alert.java +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/Alert.java @@ -127,7 +127,7 @@ public class Alert extends Entity implements IJsonBackedObject { /** * The Detection Source. - * Detection technology or sensor that identified the notable component or activity. Possible values are: unknown, microsoftDefenderForEndpoint, antivirus, smartScreen, customTi, microsoftDefenderForOffice365, automatedInvestigation, microsoftThreatExperts, customDetection, microsoftDefenderForIdentity, cloudAppSecurity, microsoft365Defender, azureAdIdentityProtection, manual, microsoftDataLossPrevention, appGovernancePolicy, appGovernanceDetection, unknownFutureValue, microsoftDefenderForCloud. Note that you must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: microsoftDefenderForCloud. + * Detection technology or sensor that identified the notable component or activity. Possible values are: unknown, microsoftDefenderForEndpoint, antivirus, smartScreen, customTi, microsoftDefenderForOffice365, automatedInvestigation, microsoftThreatExperts, customDetection, microsoftDefenderForIdentity, cloudAppSecurity, microsoft365Defender, azureAdIdentityProtection, manual, microsoftDataLossPrevention, appGovernancePolicy, appGovernanceDetection, unknownFutureValue, microsoftDefenderForCloud. You must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: microsoftDefenderForCloud. */ @SerializedName(value = "detectionSource", alternate = {"DetectionSource"}) @Expose @@ -244,7 +244,7 @@ public class Alert extends Entity implements IJsonBackedObject { /** * The Service Source. - * The service or product that created this alert. Possible values are: unknown, microsoftDefenderForEndpoint, microsoftDefenderForIdentity, microsoftDefenderForCloudApps, microsoftDefenderForOffice365, microsoft365Defender, azureAdIdentityProtection, microsoftAppGovernance, dataLossPrevention, unknownFutureValue, microsoftDefenderForCloud. Note that you must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: microsoftDefenderForCloud. + * The service or product that created this alert. Possible values are: unknown, microsoftDefenderForEndpoint, microsoftDefenderForIdentity, microsoftDefenderForCloudApps, microsoftDefenderForOffice365, microsoft365Defender, azureAdIdentityProtection, microsoftAppGovernance, dataLossPrevention, unknownFutureValue, microsoftDefenderForCloud. You must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: microsoftDefenderForCloud. */ @SerializedName(value = "serviceSource", alternate = {"ServiceSource"}) @Expose 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 917c1e6969d..2066e45939d 100644 --- a/src/main/java/com/microsoft/graph/securitynamespace/models/AlertEvidence.java +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/AlertEvidence.java @@ -79,7 +79,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Roles. - * 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. + * The role/s that an evidence entity represents in an alert, for example, an IP address that is associated with an attacker has the evidence role Attacker. */ @SerializedName(value = "roles", alternate = {"Roles"}) @Expose diff --git a/src/main/java/com/microsoft/graph/securitynamespace/models/EdiscoveryExportOperation.java b/src/main/java/com/microsoft/graph/securitynamespace/models/EdiscoveryExportOperation.java index 8eddaee440b..b47f9890dd6 100644 --- a/src/main/java/com/microsoft/graph/securitynamespace/models/EdiscoveryExportOperation.java +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/EdiscoveryExportOperation.java @@ -51,7 +51,7 @@ public class EdiscoveryExportOperation extends CaseOperation implements IJsonBac /** * The Export Options. - * The options provided for the export. For more details, see reviewSet: export. Possible values are: originalFiles, text, pdfReplacement, tags. + * The options provided for the export. For more information, see reviewSet: export. Possible values are: originalFiles, text, pdfReplacement, tags. */ @SerializedName(value = "exportOptions", alternate = {"ExportOptions"}) @Expose @@ -60,7 +60,7 @@ public class EdiscoveryExportOperation extends CaseOperation implements IJsonBac /** * The Export Structure. - * The options provided that specify the structure of the export. For more details, see reviewSet: export. Possible values are: none, directory, pst. + * The options that specify the structure of the export. For more information, see reviewSet: export. Possible values are: none, directory, pst. */ @SerializedName(value = "exportStructure", alternate = {"ExportStructure"}) @Expose @@ -87,7 +87,7 @@ public class EdiscoveryExportOperation extends CaseOperation implements IJsonBac /** * The Review Set Query. - * The review set query which is used to filter the documents for export. + * The review set query that is used to filter the documents for export. */ @SerializedName(value = "reviewSetQuery", alternate = {"ReviewSetQuery"}) @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 8f085661feb..5497cab1412 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,12 @@ 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; @@ -32,7 +35,7 @@ public class Host extends Artifact implements IJsonBackedObject { /** * The First Seen Date Time. - * The first date and time this host was observed. 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. + * The first date and time when this host was observed. 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 @@ -41,13 +44,20 @@ public class Host extends Artifact implements IJsonBackedObject { /** * The Last Seen Date Time. - * The most recent date and time when this host was observed. 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. + * The most recent date and time when this host was observed. 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 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. @@ -62,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. @@ -85,6 +109,20 @@ public class Host extends Artifact implements IJsonBackedObject { @Nullable public HostReputation reputation; + /** + * The Ssl Certificates. + * The hostSslCertificates that are associated with this host. + */ + @Nullable + public com.microsoft.graph.security.requests.HostSslCertificateCollectionPage sslCertificates; + + /** + * The Subdomains. + * The subdomains that are associated with this host. + */ + @Nullable + public com.microsoft.graph.security.requests.SubdomainCollectionPage subdomains; + /** * The Trackers. * The hostTrackers that are associated with this host. @@ -92,6 +130,15 @@ public class Host extends Artifact implements IJsonBackedObject { @Nullable public com.microsoft.graph.security.requests.HostTrackerCollectionPage trackers; + /** + * The Whois. + * The most recent whoisRecord for this host. + */ + @SerializedName(value = "whois", alternate = {"Whois"}) + @Expose + @Nullable + public WhoisRecord whois; + /** * Sets the raw JSON object @@ -102,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); } @@ -110,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); } @@ -118,6 +177,14 @@ 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); + } + if (json.has("trackers")) { trackers = serializer.deserializeObject(json.get("trackers"), com.microsoft.graph.security.requests.HostTrackerCollectionPage.class); } diff --git a/src/main/java/com/microsoft/graph/securitynamespace/models/HostComponent.java b/src/main/java/com/microsoft/graph/securitynamespace/models/HostComponent.java index b366c56a473..f72e1bd1697 100644 --- a/src/main/java/com/microsoft/graph/securitynamespace/models/HostComponent.java +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/HostComponent.java @@ -64,7 +64,7 @@ public class HostComponent extends Artifact implements IJsonBackedObject { /** * The Version. - * The component version running on the artifact, for example, v8.5. This should not be assumed to be strictly numerical. + * The component version running on the artifact, for example, v8.5. This shouldn't be assumed to be strictly numerical. */ @SerializedName(value = "version", alternate = {"Version"}) @Expose 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..10688832fb5 --- /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 date and time when Microsoft Defender Threat Intelligence first 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 date and time when Microsoft Defender Threat Intelligence last 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 that two hosts are identified as hostPair. + */ + @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..5222cef621d --- /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. + * The first date and time when this hostSslCertificate was observed. 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 most recent date and time when this hostSslCertificate was observed. 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 Ports. + * The ports related with this hostSslCertificate. + */ + @SerializedName(value = "ports", alternate = {"Ports"}) + @Expose + @Nullable + public java.util.List ports; + + /** + * The Host. + * The host for this hostSslCertificate. + */ + @SerializedName(value = "host", alternate = {"Host"}) + @Expose + @Nullable + public Host host; + + /** + * The Ssl Certificate. + * The sslCertificate for this hostSslCertificate. + */ + @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..6d9176bec39 --- /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. + * The first date and time when this port was observed. 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 most recent date and time when this port was observed. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + */ + @SerializedName(value = "lastSeenDateTime", alternate = {"LastSeenDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime lastSeenDateTime; + + /** + * The Port. + * The port number. + */ + @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/IpAddress.java b/src/main/java/com/microsoft/graph/securitynamespace/models/IpAddress.java index 587a3966832..ae261fa3331 100644 --- a/src/main/java/com/microsoft/graph/securitynamespace/models/IpAddress.java +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/IpAddress.java @@ -37,7 +37,7 @@ public class IpAddress extends Host implements IJsonBackedObject { /** * The Country Or Region. - * The country or region for this IP address. + * The country/region for this IP address. */ @SerializedName(value = "countryOrRegion", alternate = {"CountryOrRegion"}) @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..43f4909c4b2 --- /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. + * The date and time when a certificate expires. 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 = "expirationDateTime", alternate = {"ExpirationDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime expirationDateTime; + + /** + * The Fingerprint. + * A hash of the certificate calculated on the data and signature. + */ + @SerializedName(value = "fingerprint", alternate = {"Fingerprint"}) + @Expose + @Nullable + public String fingerprint; + + /** + * The First Seen Date Time. + * The first date and time when this sslCertificate was observed. 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 Issue Date Time. + * The date and time when a certificate was issued. 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 = "issueDateTime", alternate = {"IssueDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime issueDateTime; + + /** + * The Issuer. + * The entity that grants this certificate. + */ + @SerializedName(value = "issuer", alternate = {"Issuer"}) + @Expose + @Nullable + public SslCertificateEntity issuer; + + /** + * The Last Seen Date Time. + * The most recent date and time when this sslCertificate was observed. 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 Serial Number. + * The serial number associated with an SSL certificate. + */ + @SerializedName(value = "serialNumber", alternate = {"SerialNumber"}) + @Expose + @Nullable + public String serialNumber; + + /** + * The Sha1. + * A SHA-1 hash of the certificate. Note: This is not the signature. + */ + @SerializedName(value = "sha1", alternate = {"Sha1"}) + @Expose + @Nullable + public String sha1; + + /** + * The Subject. + * The person, site, machine, and so on, this certificate is for. + */ + @SerializedName(value = "subject", alternate = {"Subject"}) + @Expose + @Nullable + public SslCertificateEntity subject; + + /** + * The Related Hosts. + * The hosts related with this sslCertificate. + */ + @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..5f3b3a2e6f1 --- /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. + * A physical address of the entity. + */ + @SerializedName(value = "address", alternate = {"Address"}) + @Expose + @Nullable + public PhysicalAddress address; + + /** + * The Alternate Names. + * Alternate names for this entity that are part of the certificate. + */ + @SerializedName(value = "alternateNames", alternate = {"AlternateNames"}) + @Expose + @Nullable + public java.util.List alternateNames; + + /** + * The Common Name. + * A common name for this entity. + */ + @SerializedName(value = "commonName", alternate = {"CommonName"}) + @Expose + @Nullable + public String commonName; + + /** + * The Email. + * An email for this entity. + */ + @SerializedName(value = "email", alternate = {"Email"}) + @Expose + @Nullable + public String email; + + /** + * The Given Name. + * If the entity is a person, this is the person's given name (first name). + */ + @SerializedName(value = "givenName", alternate = {"GivenName"}) + @Expose + @Nullable + public String givenName; + + /** + * The Organization Name. + * If the entity is an organization, this is the name of the organization. + */ + @SerializedName(value = "organizationName", alternate = {"OrganizationName"}) + @Expose + @Nullable + public String organizationName; + + /** + * The Organization Unit Name. + * If the entity is an organization, this communicates if a unit in the organization is named on the entity. + */ + @SerializedName(value = "organizationUnitName", alternate = {"OrganizationUnitName"}) + @Expose + @Nullable + public String organizationUnitName; + + /** + * The Serial Number. + * A serial number assigned to the entity; usually only available if the entity is the issuer. + */ + @SerializedName(value = "serialNumber", alternate = {"SerialNumber"}) + @Expose + @Nullable + public String serialNumber; + + /** + * The Surname. + * If the entity is a person, this is the person's surname (last name). + */ + @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/Subdomain.java b/src/main/java/com/microsoft/graph/securitynamespace/models/Subdomain.java new file mode 100644 index 00000000000..81e4de9940e --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/Subdomain.java @@ -0,0 +1,57 @@ +// 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 Subdomain. + */ +public class Subdomain extends Entity implements IJsonBackedObject { + + + /** + * The First Seen Date Time. + * The date and time when Microsoft Defender Threat Intelligence first observed the subdomain. 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 Host. + * The host of the subdomain. + */ + @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/ThreatIntelligence.java b/src/main/java/com/microsoft/graph/securitynamespace/models/ThreatIntelligence.java index c389a055d36..d734e33bb82 100644 --- a/src/main/java/com/microsoft/graph/securitynamespace/models/ThreatIntelligence.java +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/ThreatIntelligence.java @@ -14,12 +14,18 @@ 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.WhoisHistoryRecordCollectionPage; +import com.microsoft.graph.security.requests.WhoisRecordCollectionPage; import com.google.gson.JsonObject; @@ -38,7 +44,7 @@ public class ThreatIntelligence extends Entity implements IJsonBackedObject { /** * The Article Indicators. - * Refers to indicators of threat or compromise highlighted in an microsoft.graph.security.article.Note: List retrieval is not yet supported. + * Refers to indicators of threat or compromise highlighted in an article.Note: List retrieval is not yet supported. */ @SerializedName(value = "articleIndicators", alternate = {"ArticleIndicators"}) @Expose @@ -56,7 +62,7 @@ public class ThreatIntelligence extends Entity implements IJsonBackedObject { /** * The Host Components. - * Retrieve details about microsoft.graph.security.hostComponent objects.Note: List retrieval is not yet supported. + * Retrieve details about hostComponent objects.Note: List retrieval is not yet supported. */ @SerializedName(value = "hostComponents", alternate = {"HostComponents"}) @Expose @@ -65,25 +71,43 @@ public class ThreatIntelligence extends Entity implements IJsonBackedObject { /** * The Host Cookies. - * Retrieve details about microsoft.graph.security.hostCookie objects.Note: List retrieval is not yet supported. + * Retrieve details about hostCookie objects.Note: List retrieval is not yet supported. */ @SerializedName(value = "hostCookies", alternate = {"HostCookies"}) @Expose @Nullable public com.microsoft.graph.security.requests.HostCookieCollectionPage hostCookies; + /** + * The Host Pairs. + * Retrieve details about 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. + * Refers to host objects that Microsoft Threat Intelligence has observed.Note: List retrieval is not yet supported. */ @SerializedName(value = "hosts", alternate = {"Hosts"}) @Expose @Nullable public com.microsoft.graph.security.requests.HostCollectionPage hosts; + /** + * The Host Ssl Certificates. + * Retrieve details about hostSslCertificate objects.Note: List retrieval is not yet supported. + */ + @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. + * Retrieve details about hostTracker objects.Note: List retrieval is not yet supported. */ @SerializedName(value = "hostTrackers", alternate = {"HostTrackers"}) @Expose @@ -110,22 +134,58 @@ public class ThreatIntelligence extends Entity implements IJsonBackedObject { /** * The Passive Dns Records. - * Retrieve details about microsoft.graph.security.passiveDnsRecord objects.Note: List retrieval is not yet supported. + * Retrieve details about passiveDnsRecord objects.Note: List retrieval is not yet supported. */ @SerializedName(value = "passiveDnsRecords", alternate = {"PassiveDnsRecords"}) @Expose @Nullable public com.microsoft.graph.security.requests.PassiveDnsRecordCollectionPage passiveDnsRecords; + /** + * The Ssl Certificates. + * Retrieve details about sslCertificate objects.Note: List retrieval is not yet supported. + */ + @SerializedName(value = "sslCertificates", alternate = {"SslCertificates"}) + @Expose + @Nullable + public com.microsoft.graph.security.requests.SslCertificateCollectionPage sslCertificates; + + /** + * The Subdomains. + * Retrieve details about the subdomain.Note: List retrieval is not yet supported. + */ + @SerializedName(value = "subdomains", alternate = {"Subdomains"}) + @Expose + @Nullable + public com.microsoft.graph.security.requests.SubdomainCollectionPage subdomains; + /** * The Vulnerabilities. - * Retrieve details about microsoft.graph.security.vulnerabilities.Note: List retrieval is not yet supported. + * Retrieve details about vulnerabilities.Note: List retrieval is not yet supported. */ @SerializedName(value = "vulnerabilities", alternate = {"Vulnerabilities"}) @Expose @Nullable public com.microsoft.graph.security.requests.VulnerabilityCollectionPage vulnerabilities; + /** + * The Whois History Records. + * Retrieve details about whoisHistoryRecord objects.Note: List retrieval is not yet supported. + */ + @SerializedName(value = "whoisHistoryRecords", alternate = {"WhoisHistoryRecords"}) + @Expose + @Nullable + public com.microsoft.graph.security.requests.WhoisHistoryRecordCollectionPage whoisHistoryRecords; + + /** + * The Whois Records. + * A list of whoisRecord objects. + */ + @SerializedName(value = "whoisRecords", alternate = {"WhoisRecords"}) + @Expose + @Nullable + public com.microsoft.graph.security.requests.WhoisRecordCollectionPage whoisRecords; + /** * Sets the raw JSON object @@ -152,10 +212,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); } @@ -172,8 +240,24 @@ 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); + } + if (json.has("vulnerabilities")) { vulnerabilities = serializer.deserializeObject(json.get("vulnerabilities"), com.microsoft.graph.security.requests.VulnerabilityCollectionPage.class); } + + if (json.has("whoisHistoryRecords")) { + whoisHistoryRecords = serializer.deserializeObject(json.get("whoisHistoryRecords"), com.microsoft.graph.security.requests.WhoisHistoryRecordCollectionPage.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/WhoisBaseRecord.java b/src/main/java/com/microsoft/graph/securitynamespace/models/WhoisBaseRecord.java new file mode 100644 index 00000000000..b71a2e75622 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/WhoisBaseRecord.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 Base Record. + */ +public class WhoisBaseRecord extends Entity implements IJsonBackedObject { + + + /** + * The Abuse. + * The contact information for the abuse contact. + */ + @SerializedName(value = "abuse", alternate = {"Abuse"}) + @Expose + @Nullable + public WhoisContact abuse; + + /** + * The Admin. + * The contact information for the admin contact. + */ + @SerializedName(value = "admin", alternate = {"Admin"}) + @Expose + @Nullable + public WhoisContact admin; + + /** + * The Billing. + * The contact information for the billing contact. + */ + @SerializedName(value = "billing", alternate = {"Billing"}) + @Expose + @Nullable + public WhoisContact billing; + + /** + * The Domain Status. + * The domain status for this WHOIS object. + */ + @SerializedName(value = "domainStatus", alternate = {"DomainStatus"}) + @Expose + @Nullable + public String domainStatus; + + /** + * The Expiration Date Time. + * The date and time when this WHOIS record expires with the registrar. 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 = "expirationDateTime", alternate = {"ExpirationDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime expirationDateTime; + + /** + * The First Seen Date Time. + * The first seen date and time of this WHOIS record. 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 seen date and time of this WHOIS record. 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 Last Update Date Time. + * The date and time when this WHOIS record was last modified. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + */ + @SerializedName(value = "lastUpdateDateTime", alternate = {"LastUpdateDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime lastUpdateDateTime; + + /** + * The Nameservers. + * The nameservers for this WHOIS object. + */ + @SerializedName(value = "nameservers", alternate = {"Nameservers"}) + @Expose + @Nullable + public java.util.List nameservers; + + /** + * The Noc. + * The contact information for the noc contact. + */ + @SerializedName(value = "noc", alternate = {"Noc"}) + @Expose + @Nullable + public WhoisContact noc; + + /** + * The Raw Whois Text. + * The raw WHOIS details for this WHOIS object. + */ + @SerializedName(value = "rawWhoisText", alternate = {"RawWhoisText"}) + @Expose + @Nullable + public String rawWhoisText; + + /** + * The Registrant. + * The contact information for the registrant contact. + */ + @SerializedName(value = "registrant", alternate = {"Registrant"}) + @Expose + @Nullable + public WhoisContact registrant; + + /** + * The Registrar. + * The contact information for the registrar contact. + */ + @SerializedName(value = "registrar", alternate = {"Registrar"}) + @Expose + @Nullable + public WhoisContact registrar; + + /** + * The Registration Date Time. + * The date and time when this WHOIS record was registered with a registrar. 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 = "registrationDateTime", alternate = {"RegistrationDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime registrationDateTime; + + /** + * The Technical. + * The contact information for the technical contact. + */ + @SerializedName(value = "technical", alternate = {"Technical"}) + @Expose + @Nullable + public WhoisContact technical; + + /** + * The Whois Server. + * The WHOIS server that provides the details. + */ + @SerializedName(value = "whoisServer", alternate = {"WhoisServer"}) + @Expose + @Nullable + public String whoisServer; + + /** + * The Zone. + * The contact information for the zone contact. + */ + @SerializedName(value = "zone", alternate = {"Zone"}) + @Expose + @Nullable + public WhoisContact zone; + + /** + * The Host. + * The host associated to this WHOIS object. + */ + @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/WhoisContact.java b/src/main/java/com/microsoft/graph/securitynamespace/models/WhoisContact.java new file mode 100644 index 00000000000..b5b7c6b0a82 --- /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. + * The physical address of the entity. + */ + @SerializedName(value = "address", alternate = {"Address"}) + @Expose + @Nullable + public PhysicalAddress address; + + /** + * The Email. + * The email of this WHOIS contact. + */ + @SerializedName(value = "email", alternate = {"Email"}) + @Expose + @Nullable + public String email; + + /** + * The Fax. + * The fax of this WHOIS contact. No format is guaranteed. + */ + @SerializedName(value = "fax", alternate = {"Fax"}) + @Expose + @Nullable + public String fax; + + /** + * The Name. + * The name of this WHOIS contact. + */ + @SerializedName(value = "name", alternate = {"Name"}) + @Expose + @Nullable + public String name; + + /** + * The Organization. + * The organization of this WHOIS contact. + */ + @SerializedName(value = "organization", alternate = {"Organization"}) + @Expose + @Nullable + public String organization; + + /** + * The Telephone. + * The telephone of this WHOIS contact. No format is guaranteed. + */ + @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/WhoisHistoryRecord.java b/src/main/java/com/microsoft/graph/securitynamespace/models/WhoisHistoryRecord.java new file mode 100644 index 00000000000..e75121ebd86 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/WhoisHistoryRecord.java @@ -0,0 +1,38 @@ +// 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.WhoisBaseRecord; + + +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 History Record. + */ +public class WhoisHistoryRecord extends WhoisBaseRecord implements IJsonBackedObject { + + + + /** + * 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/WhoisNameserver.java b/src/main/java/com/microsoft/graph/securitynamespace/models/WhoisNameserver.java new file mode 100644 index 00000000000..b1162c09566 --- /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. + * The first seen date and time of this WHOIS contact. 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 seen date and time of this WHOIS contact. 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 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..8724aed5f89 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/WhoisRecord.java @@ -0,0 +1,51 @@ +// 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.WhoisBaseRecord; +import com.microsoft.graph.security.requests.WhoisHistoryRecordCollectionPage; + + +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 WhoisBaseRecord implements IJsonBackedObject { + + + /** + * The History. + * The collection of historical records associated to this WHOIS object. + */ + @Nullable + public com.microsoft.graph.security.requests.WhoisHistoryRecordCollectionPage history; + + + /** + * 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("history")) { + history = serializer.deserializeObject(json.get("history"), com.microsoft.graph.security.requests.WhoisHistoryRecordCollectionPage.class); + } + } +} 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 3ed9bf9a01f..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 9468e34df2d..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 new file mode 100644 index 00000000000..c88f75acbd7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/SubdomainReferenceRequest.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.Subdomain; +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 Subdomain Reference Request. + */ +public class SubdomainReferenceRequest extends BaseReferenceRequest { + + /** + * The request for the Subdomain + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public SubdomainReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, Subdomain.class); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public SubdomainReferenceRequest 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 SubdomainReferenceRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + /** + * Puts the Subdomain + * + * @param srcSubdomain the Subdomain reference to PUT + * @return a future with the result + */ + @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() + "/host/{id}/subdomains/" + srcSubdomain.id)); + return sendAsync(HttpMethod.PUT, payload); + } + + /** + * Puts the Subdomain + * + * @param srcSubdomain the Subdomain reference to PUT + * @return the Subdomain + * @throws ClientException an exception occurs if there was an error while the request was sent + */ + @Nullable + public Subdomain put(@Nonnull final Subdomain srcSubdomain) throws ClientException { + final JsonObject payload = new JsonObject(); + 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/SubdomainReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/SubdomainReferenceRequestBuilder.java new file mode 100644 index 00000000000..7482f6e3df9 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/SubdomainReferenceRequestBuilder.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.Subdomain; +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 Subdomain Reference Request Builder. + */ +public class SubdomainReferenceRequestBuilder extends BaseReferenceRequestBuilder { + + /** + * The request builder for the Subdomain + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public SubdomainReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, SubdomainReferenceRequest.class); + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/SubdomainRequest.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/SubdomainRequest.java new file mode 100644 index 00000000000..aa8b51efd3b --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/SubdomainRequest.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.Subdomain; +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 Subdomain Request. + */ +public class SubdomainRequest extends BaseRequest { + + /** + * The request for the Subdomain + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public SubdomainRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, Subdomain.class); + } + + /** + * Gets the Subdomain from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the Subdomain from the service + * + * @return the Subdomain from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public Subdomain 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 Subdomain delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this Subdomain with a source + * + * @param sourceSubdomain the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final Subdomain sourceSubdomain) { + return sendAsync(HttpMethod.PATCH, sourceSubdomain); + } + + /** + * Patches this Subdomain with a source + * + * @param sourceSubdomain the source object with updates + * @return the updated Subdomain + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public Subdomain patch(@Nonnull final Subdomain sourceSubdomain) throws ClientException { + return send(HttpMethod.PATCH, sourceSubdomain); + } + + /** + * Creates a Subdomain with a new object + * + * @param newSubdomain the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final Subdomain newSubdomain) { + return sendAsync(HttpMethod.POST, newSubdomain); + } + + /** + * Creates a Subdomain with a new object + * + * @param newSubdomain the new object to create + * @return the created Subdomain + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public Subdomain post(@Nonnull final Subdomain newSubdomain) throws ClientException { + return send(HttpMethod.POST, newSubdomain); + } + + /** + * Creates a Subdomain with a new object + * + * @param newSubdomain the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final Subdomain newSubdomain) { + return sendAsync(HttpMethod.PUT, newSubdomain); + } + + /** + * Creates a Subdomain with a new object + * + * @param newSubdomain the object to create/update + * @return the created Subdomain + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public Subdomain put(@Nonnull final Subdomain newSubdomain) throws ClientException { + return send(HttpMethod.PUT, newSubdomain); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public SubdomainRequest 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 SubdomainRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/SubdomainRequestBuilder.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/SubdomainRequestBuilder.java new file mode 100644 index 00000000000..7df2fcf558a --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/SubdomainRequestBuilder.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.Subdomain; +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 Subdomain Request Builder. + */ +public class SubdomainRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the Subdomain + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public SubdomainRequestBuilder(@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 SubdomainRequest instance + */ + @Nonnull + public SubdomainRequest 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 SubdomainRequest instance + */ + @Nonnull + public SubdomainRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.security.requests.SubdomainRequest(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/SubdomainWithReferenceRequest.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/SubdomainWithReferenceRequest.java new file mode 100644 index 00000000000..fa97179eed2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/SubdomainWithReferenceRequest.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.Subdomain; +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 Subdomain With Reference Request. + */ +public class SubdomainWithReferenceRequest extends BaseWithReferenceRequest { + + /** + * The request for the Subdomain + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public SubdomainWithReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, Subdomain.class); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public SubdomainWithReferenceRequest 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 SubdomainWithReferenceRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/SubdomainWithReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/SubdomainWithReferenceRequestBuilder.java new file mode 100644 index 00000000000..230c7f53aaf --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/SubdomainWithReferenceRequestBuilder.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.Subdomain; +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 Subdomain With Reference Request Builder. + */ +public class SubdomainWithReferenceRequestBuilder extends BaseWithReferenceRequestBuilder { + + /** + * The request builder for the Subdomain + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public SubdomainWithReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, SubdomainWithReferenceRequest.class, SubdomainReferenceRequestBuilder.class); + } +} 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 e7520b4e566..64d2b28f619 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,46 @@ 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 + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.security.requests.SubdomainCollectionRequestBuilder subdomains() { + return new com.microsoft.graph.security.requests.SubdomainCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("subdomains"), getClient(), null); + } + + /** + * Gets a request builder for the Subdomain item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.security.requests.SubdomainRequestBuilder subdomains(@Nonnull final String id) { + return new com.microsoft.graph.security.requests.SubdomainRequestBuilder(getRequestUrlWithAdditionalSegment("subdomains") + "/" + id, getClient(), null); + } /** * Gets a request builder for the Vulnerability collection * @@ -256,4 +336,44 @@ 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 WhoisHistoryRecord collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.security.requests.WhoisHistoryRecordCollectionRequestBuilder whoisHistoryRecords() { + return new com.microsoft.graph.security.requests.WhoisHistoryRecordCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("whoisHistoryRecords"), getClient(), null); + } + + /** + * Gets a request builder for the WhoisHistoryRecord item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.security.requests.WhoisHistoryRecordRequestBuilder whoisHistoryRecords(@Nonnull final String id) { + return new com.microsoft.graph.security.requests.WhoisHistoryRecordRequestBuilder(getRequestUrlWithAdditionalSegment("whoisHistoryRecords") + "/" + 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/WhoisBaseRecordRequest.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/WhoisBaseRecordRequest.java new file mode 100644 index 00000000000..2e911083f88 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/WhoisBaseRecordRequest.java @@ -0,0 +1,188 @@ +// 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.WhoisBaseRecord; +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 Base Record Request. + */ +public class WhoisBaseRecordRequest extends BaseRequest { + + /** + * The request for the WhoisBaseRecord + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + * @param responseClass the class of the response + */ + public WhoisBaseRecordRequest(@Nonnull final String requestUrl, + @Nonnull final IBaseClient client, + @Nullable final java.util.List requestOptions, + @Nonnull final Class responseClass) { + super(requestUrl, client, requestOptions, responseClass); + } + + /** + * The request for the WhoisBaseRecord + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public WhoisBaseRecordRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, WhoisBaseRecord.class); + } + + /** + * Gets the WhoisBaseRecord from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the WhoisBaseRecord from the service + * + * @return the WhoisBaseRecord from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public WhoisBaseRecord 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 WhoisBaseRecord delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this WhoisBaseRecord with a source + * + * @param sourceWhoisBaseRecord the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final WhoisBaseRecord sourceWhoisBaseRecord) { + return sendAsync(HttpMethod.PATCH, sourceWhoisBaseRecord); + } + + /** + * Patches this WhoisBaseRecord with a source + * + * @param sourceWhoisBaseRecord the source object with updates + * @return the updated WhoisBaseRecord + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public WhoisBaseRecord patch(@Nonnull final WhoisBaseRecord sourceWhoisBaseRecord) throws ClientException { + return send(HttpMethod.PATCH, sourceWhoisBaseRecord); + } + + /** + * Creates a WhoisBaseRecord with a new object + * + * @param newWhoisBaseRecord the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final WhoisBaseRecord newWhoisBaseRecord) { + return sendAsync(HttpMethod.POST, newWhoisBaseRecord); + } + + /** + * Creates a WhoisBaseRecord with a new object + * + * @param newWhoisBaseRecord the new object to create + * @return the created WhoisBaseRecord + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public WhoisBaseRecord post(@Nonnull final WhoisBaseRecord newWhoisBaseRecord) throws ClientException { + return send(HttpMethod.POST, newWhoisBaseRecord); + } + + /** + * Creates a WhoisBaseRecord with a new object + * + * @param newWhoisBaseRecord the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final WhoisBaseRecord newWhoisBaseRecord) { + return sendAsync(HttpMethod.PUT, newWhoisBaseRecord); + } + + /** + * Creates a WhoisBaseRecord with a new object + * + * @param newWhoisBaseRecord the object to create/update + * @return the created WhoisBaseRecord + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public WhoisBaseRecord put(@Nonnull final WhoisBaseRecord newWhoisBaseRecord) throws ClientException { + return send(HttpMethod.PUT, newWhoisBaseRecord); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public WhoisBaseRecordRequest 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 WhoisBaseRecordRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/WhoisBaseRecordRequestBuilder.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/WhoisBaseRecordRequestBuilder.java new file mode 100644 index 00000000000..b97bc433ff0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/WhoisBaseRecordRequestBuilder.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.WhoisBaseRecord; +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 Base Record Request Builder. + */ +public class WhoisBaseRecordRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the WhoisBaseRecord + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public WhoisBaseRecordRequestBuilder(@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 WhoisBaseRecordRequest instance + */ + @Nonnull + public WhoisBaseRecordRequest 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 WhoisBaseRecordRequest instance + */ + @Nonnull + public WhoisBaseRecordRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.security.requests.WhoisBaseRecordRequest(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/WhoisHistoryRecordReferenceRequest.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/WhoisHistoryRecordReferenceRequest.java new file mode 100644 index 00000000000..8ffd4640462 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/WhoisHistoryRecordReferenceRequest.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.WhoisHistoryRecord; +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 History Record Reference Request. + */ +public class WhoisHistoryRecordReferenceRequest extends BaseReferenceRequest { + + /** + * The request for the WhoisHistoryRecord + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public WhoisHistoryRecordReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, WhoisHistoryRecord.class); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public WhoisHistoryRecordReferenceRequest 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 WhoisHistoryRecordReferenceRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + /** + * Puts the WhoisHistoryRecord + * + * @param srcWhoisHistoryRecord the WhoisHistoryRecord reference to PUT + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final WhoisHistoryRecord srcWhoisHistoryRecord) { + final JsonObject payload = new JsonObject(); + payload.add("@odata.id", new JsonPrimitive(this.getClient().getServiceRoot() + "/security/threatIntelligence/{id}/whoisHistoryRecords/" + srcWhoisHistoryRecord.id)); + return sendAsync(HttpMethod.PUT, payload); + } + + /** + * Puts the WhoisHistoryRecord + * + * @param srcWhoisHistoryRecord the WhoisHistoryRecord reference to PUT + * @return the WhoisHistoryRecord + * @throws ClientException an exception occurs if there was an error while the request was sent + */ + @Nullable + public WhoisHistoryRecord put(@Nonnull final WhoisHistoryRecord srcWhoisHistoryRecord) throws ClientException { + final JsonObject payload = new JsonObject(); + payload.add("@odata.id", new JsonPrimitive(this.getClient().getServiceRoot() + "/security/threatIntelligence/{id}/whoisHistoryRecords/" + srcWhoisHistoryRecord.id)); + return send(HttpMethod.PUT, payload); + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/WhoisHistoryRecordReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/WhoisHistoryRecordReferenceRequestBuilder.java new file mode 100644 index 00000000000..3a34271ef77 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/WhoisHistoryRecordReferenceRequestBuilder.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.WhoisHistoryRecord; +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 History Record Reference Request Builder. + */ +public class WhoisHistoryRecordReferenceRequestBuilder extends BaseReferenceRequestBuilder { + + /** + * The request builder for the WhoisHistoryRecord + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public WhoisHistoryRecordReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, WhoisHistoryRecordReferenceRequest.class); + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/WhoisHistoryRecordRequest.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/WhoisHistoryRecordRequest.java new file mode 100644 index 00000000000..a4321b7013a --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/WhoisHistoryRecordRequest.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.WhoisHistoryRecord; +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 History Record Request. + */ +public class WhoisHistoryRecordRequest extends BaseRequest { + + /** + * The request for the WhoisHistoryRecord + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public WhoisHistoryRecordRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, WhoisHistoryRecord.class); + } + + /** + * Gets the WhoisHistoryRecord from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the WhoisHistoryRecord from the service + * + * @return the WhoisHistoryRecord from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public WhoisHistoryRecord 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 WhoisHistoryRecord delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this WhoisHistoryRecord with a source + * + * @param sourceWhoisHistoryRecord the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final WhoisHistoryRecord sourceWhoisHistoryRecord) { + return sendAsync(HttpMethod.PATCH, sourceWhoisHistoryRecord); + } + + /** + * Patches this WhoisHistoryRecord with a source + * + * @param sourceWhoisHistoryRecord the source object with updates + * @return the updated WhoisHistoryRecord + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public WhoisHistoryRecord patch(@Nonnull final WhoisHistoryRecord sourceWhoisHistoryRecord) throws ClientException { + return send(HttpMethod.PATCH, sourceWhoisHistoryRecord); + } + + /** + * Creates a WhoisHistoryRecord with a new object + * + * @param newWhoisHistoryRecord the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final WhoisHistoryRecord newWhoisHistoryRecord) { + return sendAsync(HttpMethod.POST, newWhoisHistoryRecord); + } + + /** + * Creates a WhoisHistoryRecord with a new object + * + * @param newWhoisHistoryRecord the new object to create + * @return the created WhoisHistoryRecord + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public WhoisHistoryRecord post(@Nonnull final WhoisHistoryRecord newWhoisHistoryRecord) throws ClientException { + return send(HttpMethod.POST, newWhoisHistoryRecord); + } + + /** + * Creates a WhoisHistoryRecord with a new object + * + * @param newWhoisHistoryRecord the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final WhoisHistoryRecord newWhoisHistoryRecord) { + return sendAsync(HttpMethod.PUT, newWhoisHistoryRecord); + } + + /** + * Creates a WhoisHistoryRecord with a new object + * + * @param newWhoisHistoryRecord the object to create/update + * @return the created WhoisHistoryRecord + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public WhoisHistoryRecord put(@Nonnull final WhoisHistoryRecord newWhoisHistoryRecord) throws ClientException { + return send(HttpMethod.PUT, newWhoisHistoryRecord); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public WhoisHistoryRecordRequest 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 WhoisHistoryRecordRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/WhoisHistoryRecordRequestBuilder.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/WhoisHistoryRecordRequestBuilder.java new file mode 100644 index 00000000000..da81759dda1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/WhoisHistoryRecordRequestBuilder.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.WhoisHistoryRecord; +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 History Record Request Builder. + */ +public class WhoisHistoryRecordRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the WhoisHistoryRecord + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public WhoisHistoryRecordRequestBuilder(@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 WhoisHistoryRecordRequest instance + */ + @Nonnull + public WhoisHistoryRecordRequest 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 WhoisHistoryRecordRequest instance + */ + @Nonnull + public WhoisHistoryRecordRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.security.requests.WhoisHistoryRecordRequest(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/WhoisHistoryRecordWithReferenceRequest.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/WhoisHistoryRecordWithReferenceRequest.java new file mode 100644 index 00000000000..6cd5514f6d8 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/WhoisHistoryRecordWithReferenceRequest.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.WhoisHistoryRecord; +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 History Record With Reference Request. + */ +public class WhoisHistoryRecordWithReferenceRequest extends BaseWithReferenceRequest { + + /** + * The request for the WhoisHistoryRecord + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public WhoisHistoryRecordWithReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, WhoisHistoryRecord.class); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public WhoisHistoryRecordWithReferenceRequest 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 WhoisHistoryRecordWithReferenceRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/WhoisHistoryRecordWithReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/WhoisHistoryRecordWithReferenceRequestBuilder.java new file mode 100644 index 00000000000..fa0ec1304e8 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/WhoisHistoryRecordWithReferenceRequestBuilder.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.WhoisHistoryRecord; +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 History Record With Reference Request Builder. + */ +public class WhoisHistoryRecordWithReferenceRequestBuilder extends BaseWithReferenceRequestBuilder { + + /** + * The request builder for the WhoisHistoryRecord + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public WhoisHistoryRecordWithReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, WhoisHistoryRecordWithReferenceRequest.class, WhoisHistoryRecordReferenceRequestBuilder.class); + } +} 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..abcd0e782a8 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/WhoisRecordRequestBuilder.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.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); + } + /** + * Gets a request builder for the WhoisHistoryRecord collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.security.requests.WhoisHistoryRecordCollectionWithReferencesRequestBuilder history() { + return new com.microsoft.graph.security.requests.WhoisHistoryRecordCollectionWithReferencesRequestBuilder(getRequestUrlWithAdditionalSegment("history"), getClient(), null); + } + + /** + * Gets a request builder for the WhoisHistoryRecord item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.security.requests.WhoisHistoryRecordWithReferenceRequestBuilder history(@Nonnull final String id) { + return new com.microsoft.graph.security.requests.WhoisHistoryRecordWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("history") + "/" + id, 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); + } +}