From 931584a5b13d4bf722e6fcbc5895660e8482e5ec Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Tue, 3 Oct 2023 10:11:20 +0000 Subject: [PATCH] Update generated files with build 126033 --- src/ExternalConnectors/Model/Label.php | 1 + src/ExternalConnectors/Model/Property.php | 12 +- ...ccessPackageAssignmentApprovalSettings.php | 8 +- src/Model/AccessPackageAssignmentRequest.php | 8 +- ...ssPackageAssignmentRequestCallbackData.php | 4 +- ...cessPackageAssignmentRequestorSettings.php | 4 +- src/Model/AccessPackageTextInputQuestion.php | 4 +- .../AccessReviewHistoryScheduleSettings.php | 4 +- src/Model/AccessReviewScheduleDefinition.php | 20 +- src/Model/AccessReviewStage.php | 4 +- src/Model/AccountTargetContent.php | 57 ++ src/Model/AccountTargetContentType.php | 36 + src/Model/AddressBookAccountTargetContent.php | 63 ++ src/Model/AggregationOption.php | 4 +- src/Model/AllowedValue.php | 4 +- src/Model/AppRole.php | 4 +- src/Model/AttachmentInfo.php | 4 +- src/Model/AttachmentItem.php | 8 +- src/Model/AttackSimulationOperation.php | 112 +++ src/Model/AttackSimulationOperationType.php | 35 + src/Model/AttackSimulationRoot.php | 168 +++++ src/Model/AvailabilityItem.php | 4 +- src/Model/BaseEndUserNotification.php | 83 +++ src/Model/BookingAppointment.php | 8 +- src/Model/BookingQuestionAssignment.php | 4 +- src/Model/Call.php | 8 +- src/Model/CallTranscript.php | 205 ++++++ src/Model/Certification.php | 4 +- src/Model/CoachmarkLocation.php | 109 +++ src/Model/CoachmarkLocationType.php | 39 + src/Model/ConvertIdResult.php | 8 +- .../CustomExtensionClientConfiguration.php | 4 +- src/Model/CustomTrainingSetting.php | 172 +++++ src/Model/DirectoryDefinition.php | 4 +- src/Model/EmailFileAssessmentRequest.php | 4 +- src/Model/EmailPayloadDetail.php | 141 ++++ src/Model/EndUserNotification.php | 353 +++++++++ src/Model/EndUserNotificationDetail.php | 193 +++++ src/Model/EndUserNotificationPreference.php | 36 + src/Model/EndUserNotificationSetting.php | 119 +++ src/Model/EndUserNotificationSettingType.php | 37 + src/Model/EndUserNotificationType.php | 38 + src/Model/FileAssessmentRequest.php | 4 +- src/Model/Filter.php | 8 +- src/Model/Identity.php | 4 +- ...ntitySecurityDefaultsEnforcementPolicy.php | 4 +- src/Model/IdentityUserFlowAttribute.php | 8 +- .../IdentityUserFlowAttributeAssignment.php | 8 +- src/Model/IncludeAllAccountTargetContent.php | 37 + src/Model/Invitation.php | 8 +- src/Model/IpNamedLocation.php | 4 +- src/Model/LandingPage.php | 349 +++++++++ src/Model/LandingPageDetail.php | 108 +++ src/Model/ListInfo.php | 4 +- src/Model/LocationConstraint.php | 4 +- src/Model/LoginPage.php | 321 +++++++++ src/Model/MediaInfo.php | 8 +- ...osoftAuthenticatorAuthenticationMethod.php | 8 +- src/Model/MicrosoftCustomTrainingSetting.php | 130 ++++ src/Model/MicrosoftManagedTrainingSetting.php | 99 +++ .../MicrosoftTrainingAssignmentMapping.php | 99 +++ src/Model/NoTrainingNotificationSetting.php | 68 ++ src/Model/NoTrainingSetting.php | 37 + src/Model/NotificationDeliveryFrequency.php | 36 + src/Model/NotificationDeliveryPreference.php | 36 + src/Model/OAuthAppScope.php | 41 ++ src/Model/OAuthConsentAppDetail.php | 109 +++ src/Model/Onenote.php | 8 +- src/Model/OnenoteEntityHierarchyModel.php | 8 +- src/Model/OnlineMeeting.php | 28 + src/Model/ParticipantInfo.php | 4 +- src/Model/Payload.php | 677 ++++++++++++++++++ src/Model/PayloadBrand.php | 53 ++ src/Model/PayloadCoachmark.php | 187 +++++ src/Model/PayloadComplexity.php | 37 + src/Model/PayloadDetail.php | 109 +++ src/Model/PayloadIndustry.php | 54 ++ src/Model/PayloadTheme.php | 64 ++ src/Model/PermissionGrantConditionSet.php | 16 +- src/Model/PlannerAssignment.php | 8 +- .../PositiveReinforcementNotification.php | 57 ++ src/Model/Presence.php | 2 + src/Model/PresenceStatusMessage.php | 6 + src/Model/ProvisioningErrorInfo.php | 4 +- src/Model/RubricLevel.php | 4 +- src/Model/SearchAlterationOptions.php | 8 +- src/Model/SearchHitsContainer.php | 4 +- ...eSignUpAuthenticationFlowConfiguration.php | 4 +- src/Model/Simulation.php | 275 +++++++ src/Model/SimulationContentSource.php | 36 + src/Model/SimulationContentStatus.php | 38 + src/Model/SimulationNotification.php | 57 ++ src/Model/Subscription.php | 4 +- src/Model/Synchronization.php | 4 +- .../SynchronizationJobRestartCriteria.php | 4 +- src/Model/SynchronizationRule.php | 8 +- src/Model/SynchronizationSchedule.php | 8 +- src/Model/TargettedUserType.php | 37 + src/Model/TeamsAppSettings.php | 2 + src/Model/TeamsTab.php | 4 +- src/Model/Teamwork.php | 2 + src/Model/TeamworkActivityTopic.php | 4 +- src/Model/TeamworkTag.php | 8 +- src/Model/TermsExpiration.php | 4 +- src/Model/Training.php | 434 +++++++++++ src/Model/TrainingAssignedTo.php | 40 ++ src/Model/TrainingAvailabilityStatus.php | 38 + src/Model/TrainingCompletionDuration.php | 36 + src/Model/TrainingLanguageDetail.php | 286 ++++++++ src/Model/TrainingNotificationSetting.php | 99 +++ src/Model/TrainingReminderNotification.php | 57 ++ src/Model/TrainingSetting.php | 57 ++ src/Model/TrainingSettingType.php | 37 + src/Model/TrainingType.php | 35 + src/Model/UploadSession.php | 4 +- src/Model/UsageDetails.php | 4 +- src/Model/UserFlowLanguageConfiguration.php | 8 +- src/Model/WorkbookChartFont.php | 12 +- src/Model/WorkbookChartPointFormat.php | 4 +- src/Model/WorkbookChartSeriesFormat.php | 4 +- src/Model/WorkbookChartTitle.php | 4 +- src/Model/WorkbookFilterDatetime.php | 4 +- src/Model/WorkbookRangeFill.php | 4 +- src/Model/WorkbookRangeFont.php | 8 +- src/Model/WorkbookRangeFormat.php | 8 +- src/SecurityNamespace/Model/Alert.php | 8 +- src/SecurityNamespace/Model/AlertEvidence.php | 4 +- .../Model/EdiscoveryExportOperation.php | 12 +- src/SecurityNamespace/Model/Host.php | 191 ++++- src/SecurityNamespace/Model/HostComponent.php | 4 +- src/SecurityNamespace/Model/HostPair.php | 188 +++++ .../Model/HostSslCertificate.php | 189 +++++ .../Model/HostSslCertificatePort.php | 120 ++++ src/SecurityNamespace/Model/IpAddress.php | 4 +- .../Model/SslCertificate.php | 342 +++++++++ .../Model/SslCertificateEntity.php | 283 ++++++++ src/SecurityNamespace/Model/Subdomain.php | 93 +++ .../Model/ThreatIntelligence.php | 208 +++++- .../Model/WhoisBaseRecord.php | 606 ++++++++++++++++ src/SecurityNamespace/Model/WhoisContact.php | 199 +++++ .../Model/WhoisDomainStatus.php | 38 + .../Model/WhoisHistoryRecord.php | 27 + .../Model/WhoisNameserver.php | 123 ++++ src/SecurityNamespace/Model/WhoisRecord.php | 57 ++ 144 files changed, 9165 insertions(+), 230 deletions(-) create mode 100644 src/Model/AccountTargetContent.php create mode 100644 src/Model/AccountTargetContentType.php create mode 100644 src/Model/AddressBookAccountTargetContent.php create mode 100644 src/Model/AttackSimulationOperation.php create mode 100644 src/Model/AttackSimulationOperationType.php create mode 100644 src/Model/BaseEndUserNotification.php create mode 100644 src/Model/CallTranscript.php create mode 100644 src/Model/CoachmarkLocation.php create mode 100644 src/Model/CoachmarkLocationType.php create mode 100644 src/Model/CustomTrainingSetting.php create mode 100644 src/Model/EmailPayloadDetail.php create mode 100644 src/Model/EndUserNotification.php create mode 100644 src/Model/EndUserNotificationDetail.php create mode 100644 src/Model/EndUserNotificationPreference.php create mode 100644 src/Model/EndUserNotificationSetting.php create mode 100644 src/Model/EndUserNotificationSettingType.php create mode 100644 src/Model/EndUserNotificationType.php create mode 100644 src/Model/IncludeAllAccountTargetContent.php create mode 100644 src/Model/LandingPage.php create mode 100644 src/Model/LandingPageDetail.php create mode 100644 src/Model/LoginPage.php create mode 100644 src/Model/MicrosoftCustomTrainingSetting.php create mode 100644 src/Model/MicrosoftManagedTrainingSetting.php create mode 100644 src/Model/MicrosoftTrainingAssignmentMapping.php create mode 100644 src/Model/NoTrainingNotificationSetting.php create mode 100644 src/Model/NoTrainingSetting.php create mode 100644 src/Model/NotificationDeliveryFrequency.php create mode 100644 src/Model/NotificationDeliveryPreference.php create mode 100644 src/Model/OAuthAppScope.php create mode 100644 src/Model/OAuthConsentAppDetail.php create mode 100644 src/Model/Payload.php create mode 100644 src/Model/PayloadBrand.php create mode 100644 src/Model/PayloadCoachmark.php create mode 100644 src/Model/PayloadComplexity.php create mode 100644 src/Model/PayloadDetail.php create mode 100644 src/Model/PayloadIndustry.php create mode 100644 src/Model/PayloadTheme.php create mode 100644 src/Model/PositiveReinforcementNotification.php create mode 100644 src/Model/SimulationContentSource.php create mode 100644 src/Model/SimulationContentStatus.php create mode 100644 src/Model/SimulationNotification.php create mode 100644 src/Model/TargettedUserType.php create mode 100644 src/Model/Training.php create mode 100644 src/Model/TrainingAssignedTo.php create mode 100644 src/Model/TrainingAvailabilityStatus.php create mode 100644 src/Model/TrainingCompletionDuration.php create mode 100644 src/Model/TrainingLanguageDetail.php create mode 100644 src/Model/TrainingNotificationSetting.php create mode 100644 src/Model/TrainingReminderNotification.php create mode 100644 src/Model/TrainingSetting.php create mode 100644 src/Model/TrainingSettingType.php create mode 100644 src/Model/TrainingType.php create mode 100644 src/SecurityNamespace/Model/HostPair.php create mode 100644 src/SecurityNamespace/Model/HostSslCertificate.php create mode 100644 src/SecurityNamespace/Model/HostSslCertificatePort.php create mode 100644 src/SecurityNamespace/Model/SslCertificate.php create mode 100644 src/SecurityNamespace/Model/SslCertificateEntity.php create mode 100644 src/SecurityNamespace/Model/Subdomain.php create mode 100644 src/SecurityNamespace/Model/WhoisBaseRecord.php create mode 100644 src/SecurityNamespace/Model/WhoisContact.php create mode 100644 src/SecurityNamespace/Model/WhoisDomainStatus.php create mode 100644 src/SecurityNamespace/Model/WhoisHistoryRecord.php create mode 100644 src/SecurityNamespace/Model/WhoisNameserver.php create mode 100644 src/SecurityNamespace/Model/WhoisRecord.php diff --git a/src/ExternalConnectors/Model/Label.php b/src/ExternalConnectors/Model/Label.php index 43b2f3faaae..af74897734c 100644 --- a/src/ExternalConnectors/Model/Label.php +++ b/src/ExternalConnectors/Model/Label.php @@ -39,4 +39,5 @@ class Label extends Enum const FILE_NAME = "fileName"; const FILE_EXTENSION = "fileExtension"; const UNKNOWN_FUTURE_VALUE = "unknownFutureValue"; + const ICON_URL = "iconUrl"; } diff --git a/src/ExternalConnectors/Model/Property.php b/src/ExternalConnectors/Model/Property.php index 29509956746..476b76e6fb7 100644 --- a/src/ExternalConnectors/Model/Property.php +++ b/src/ExternalConnectors/Model/Property.php @@ -25,7 +25,7 @@ class Property extends \Microsoft\Graph\Model\Entity { /** * Gets 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. * * @return string|null The aliases */ @@ -40,7 +40,7 @@ public function getAliases() /** * Sets 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. * * @param string $val The value of the aliases * @@ -137,7 +137,7 @@ public function setIsRetrievable($val) } /** * Gets the isSearchable - * 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. * * @return bool|null The isSearchable */ @@ -152,7 +152,7 @@ public function getIsSearchable() /** * Sets the isSearchable - * 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. * * @param bool $val The value of the isSearchable * @@ -166,7 +166,7 @@ public function setIsSearchable($val) /** * Gets 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. * * @return Label|null The labels */ @@ -185,7 +185,7 @@ public function getLabels() /** * Sets 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. * * @param Label $val The value to assign to the labels * diff --git a/src/Model/AccessPackageAssignmentApprovalSettings.php b/src/Model/AccessPackageAssignmentApprovalSettings.php index 94d0e9dc88a..ae4e2b882bd 100644 --- a/src/Model/AccessPackageAssignmentApprovalSettings.php +++ b/src/Model/AccessPackageAssignmentApprovalSettings.php @@ -25,7 +25,7 @@ class AccessPackageAssignmentApprovalSettings extends Entity { /** * Gets the isApprovalRequiredForAdd - * 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. * * @return bool|null The isApprovalRequiredForAdd */ @@ -40,7 +40,7 @@ public function getIsApprovalRequiredForAdd() /** * Sets the isApprovalRequiredForAdd - * 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. * * @param bool $val The value of the isApprovalRequiredForAdd * @@ -53,7 +53,7 @@ public function setIsApprovalRequiredForAdd($val) } /** * Gets the isApprovalRequiredForUpdate - * 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. * * @return bool|null The isApprovalRequiredForUpdate */ @@ -68,7 +68,7 @@ public function getIsApprovalRequiredForUpdate() /** * Sets the isApprovalRequiredForUpdate - * 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. * * @param bool $val The value of the isApprovalRequiredForUpdate * diff --git a/src/Model/AccessPackageAssignmentRequest.php b/src/Model/AccessPackageAssignmentRequest.php index bdeb0ed6e2d..4f9da7c30ed 100644 --- a/src/Model/AccessPackageAssignmentRequest.php +++ b/src/Model/AccessPackageAssignmentRequest.php @@ -152,7 +152,7 @@ public function setCustomExtensionCalloutInstances($val) /** * Gets the requestType - * 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. * * @return AccessPackageRequestType|null The requestType */ @@ -171,7 +171,7 @@ public function getRequestType() /** * Sets the requestType - * 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. * * @param AccessPackageRequestType $val The requestType * @@ -185,7 +185,7 @@ public function setRequestType($val) /** * Gets 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. * * @return EntitlementManagementSchedule|null The schedule */ @@ -204,7 +204,7 @@ public function getSchedule() /** * Sets 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. * * @param EntitlementManagementSchedule $val The schedule * diff --git a/src/Model/AccessPackageAssignmentRequestCallbackData.php b/src/Model/AccessPackageAssignmentRequestCallbackData.php index 9f8d2ba2a45..f0ef36fc7f7 100644 --- a/src/Model/AccessPackageAssignmentRequestCallbackData.php +++ b/src/Model/AccessPackageAssignmentRequestCallbackData.php @@ -82,7 +82,7 @@ public function setCustomExtensionStageInstanceId($val) /** * Gets 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. * * @return AccessPackageCustomExtensionStage|null The stage */ @@ -101,7 +101,7 @@ public function getStage() /** * Sets 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. * * @param AccessPackageCustomExtensionStage $val The value to assign to the stage * diff --git a/src/Model/AccessPackageAssignmentRequestorSettings.php b/src/Model/AccessPackageAssignmentRequestorSettings.php index b2488ef9e16..187ec2c7fd4 100644 --- a/src/Model/AccessPackageAssignmentRequestorSettings.php +++ b/src/Model/AccessPackageAssignmentRequestorSettings.php @@ -25,7 +25,7 @@ class AccessPackageAssignmentRequestorSettings extends Entity { /** * Gets the allowCustomAssignmentSchedule - * 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. * * @return bool|null The allowCustomAssignmentSchedule */ @@ -40,7 +40,7 @@ public function getAllowCustomAssignmentSchedule() /** * Sets the allowCustomAssignmentSchedule - * 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. * * @param bool $val The value of the allowCustomAssignmentSchedule * diff --git a/src/Model/AccessPackageTextInputQuestion.php b/src/Model/AccessPackageTextInputQuestion.php index b8d304565b9..e464b114f85 100644 --- a/src/Model/AccessPackageTextInputQuestion.php +++ b/src/Model/AccessPackageTextInputQuestion.php @@ -55,7 +55,7 @@ public function setIsSingleLineQuestion($val) /** * Gets the regexPattern - * The regular expression pattern which any answer to this question must match. + * The regular expression pattern that any answer to this question must match. * * @return string|null The regexPattern */ @@ -70,7 +70,7 @@ public function getRegexPattern() /** * Sets the regexPattern - * The regular expression pattern which any answer to this question must match. + * The regular expression pattern that any answer to this question must match. * * @param string $val The regexPattern * diff --git a/src/Model/AccessReviewHistoryScheduleSettings.php b/src/Model/AccessReviewHistoryScheduleSettings.php index ca5622ef046..c7d89602f69 100644 --- a/src/Model/AccessReviewHistoryScheduleSettings.php +++ b/src/Model/AccessReviewHistoryScheduleSettings.php @@ -58,7 +58,7 @@ public function setRecurrence($val) } /** * Gets the reportRange - * 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. * * @return string|null The reportRange */ @@ -73,7 +73,7 @@ public function getReportRange() /** * Sets the reportRange - * 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. * * @param string $val The value of the reportRange * diff --git a/src/Model/AccessReviewScheduleDefinition.php b/src/Model/AccessReviewScheduleDefinition.php index 3031f4e6151..d0099efe390 100644 --- a/src/Model/AccessReviewScheduleDefinition.php +++ b/src/Model/AccessReviewScheduleDefinition.php @@ -151,7 +151,7 @@ public function setDescriptionForAdmins($val) /** * Gets the descriptionForReviewers - * 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. * * @return string|null The descriptionForReviewers */ @@ -166,7 +166,7 @@ public function getDescriptionForReviewers() /** * Sets the descriptionForReviewers - * 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. * * @param string $val The descriptionForReviewers * @@ -210,7 +210,7 @@ public function setDisplayName($val) /** * Gets the fallbackReviewers - * 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. * * @return array|null The fallbackReviewers */ @@ -225,7 +225,7 @@ public function getFallbackReviewers() /** * Sets the fallbackReviewers - * 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. * * @param AccessReviewReviewerScope[] $val The fallbackReviewers * @@ -239,7 +239,7 @@ public function setFallbackReviewers($val) /** * Gets the instanceEnumerationScope - * 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. * * @return AccessReviewScope|null The instanceEnumerationScope */ @@ -258,7 +258,7 @@ public function getInstanceEnumerationScope() /** * Sets the instanceEnumerationScope - * 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. * * @param AccessReviewScope $val The instanceEnumerationScope * @@ -402,7 +402,7 @@ public function setSettings($val) /** * Gets the stageSettings - * 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. * * @return array|null The stageSettings */ @@ -417,7 +417,7 @@ public function getStageSettings() /** * Sets the stageSettings - * 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. * * @param AccessReviewStageSettings[] $val The stageSettings * @@ -461,7 +461,7 @@ public function setStatus($val) /** * Gets 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. * * @return array|null The instances */ @@ -476,7 +476,7 @@ public function getInstances() /** * Sets 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. * * @param AccessReviewInstance[] $val The instances * diff --git a/src/Model/AccessReviewStage.php b/src/Model/AccessReviewStage.php index 8977d174509..dafc7a24c2f 100644 --- a/src/Model/AccessReviewStage.php +++ b/src/Model/AccessReviewStage.php @@ -60,7 +60,7 @@ public function setEndDateTime($val) /** * Gets the fallbackReviewers - * 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. * * @return array|null The fallbackReviewers */ @@ -75,7 +75,7 @@ public function getFallbackReviewers() /** * Sets the fallbackReviewers - * 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. * * @param AccessReviewReviewerScope[] $val The fallbackReviewers * diff --git a/src/Model/AccountTargetContent.php b/src/Model/AccountTargetContent.php new file mode 100644 index 00000000000..dc5fc5b3f95 --- /dev/null +++ b/src/Model/AccountTargetContent.php @@ -0,0 +1,57 @@ +_propDict)) { + if (is_a($this->_propDict["type"], "\Microsoft\Graph\Model\AccountTargetContentType") || is_null($this->_propDict["type"])) { + return $this->_propDict["type"]; + } else { + $this->_propDict["type"] = new AccountTargetContentType($this->_propDict["type"]); + return $this->_propDict["type"]; + } + } + return null; + } + + /** + * Sets the type + * + * @param AccountTargetContentType $val The value to assign to the type + * + * @return AccountTargetContent The AccountTargetContent + */ + public function setType($val) + { + $this->_propDict["type"] = $val; + return $this; + } +} diff --git a/src/Model/AccountTargetContentType.php b/src/Model/AccountTargetContentType.php new file mode 100644 index 00000000000..87c3e6b6618 --- /dev/null +++ b/src/Model/AccountTargetContentType.php @@ -0,0 +1,36 @@ +setODataType("#microsoft.graph.addressBookAccountTargetContent"); + } + + /** + * Gets the accountTargetEmails + * + * @return string|null The accountTargetEmails + */ + public function getAccountTargetEmails() + { + if (array_key_exists("accountTargetEmails", $this->_propDict)) { + return $this->_propDict["accountTargetEmails"]; + } else { + return null; + } + } + + /** + * Sets the accountTargetEmails + * + * @param string $val The value of the accountTargetEmails + * + * @return AddressBookAccountTargetContent + */ + public function setAccountTargetEmails($val) + { + $this->_propDict["accountTargetEmails"] = $val; + return $this; + } +} diff --git a/src/Model/AggregationOption.php b/src/Model/AggregationOption.php index f70891e192d..64c8bb344c5 100644 --- a/src/Model/AggregationOption.php +++ b/src/Model/AggregationOption.php @@ -86,7 +86,7 @@ public function setField($val) } /** * Gets 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. * * @return int|null The size */ @@ -101,7 +101,7 @@ public function getSize() /** * Sets 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. * * @param int $val The value of the size * diff --git a/src/Model/AllowedValue.php b/src/Model/AllowedValue.php index e92a15686cd..1b57742e116 100644 --- a/src/Model/AllowedValue.php +++ b/src/Model/AllowedValue.php @@ -26,7 +26,7 @@ class AllowedValue extends Entity { /** * Gets the isActive - * 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. * * @return bool|null The isActive */ @@ -41,7 +41,7 @@ public function getIsActive() /** * Sets the isActive - * 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. * * @param bool $val The isActive * diff --git a/src/Model/AppRole.php b/src/Model/AppRole.php index 65ab0977eac..97fcd9f5836 100644 --- a/src/Model/AppRole.php +++ b/src/Model/AppRole.php @@ -193,7 +193,7 @@ public function setOrigin($val) } /** * Gets 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 .. * * @return string|null The value */ @@ -208,7 +208,7 @@ public function getValue() /** * Sets 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 .. * * @param string $val The value of the value * diff --git a/src/Model/AttachmentInfo.php b/src/Model/AttachmentInfo.php index c88100080b5..54bab94784f 100644 --- a/src/Model/AttachmentInfo.php +++ b/src/Model/AttachmentInfo.php @@ -86,7 +86,7 @@ public function setContentType($val) } /** * Gets 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. * * @return string|null The name */ @@ -101,7 +101,7 @@ public function getName() /** * Sets 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. * * @param string $val The value of the name * diff --git a/src/Model/AttachmentItem.php b/src/Model/AttachmentItem.php index 98b9a1100d5..d949a861dcd 100644 --- a/src/Model/AttachmentItem.php +++ b/src/Model/AttachmentItem.php @@ -58,7 +58,7 @@ public function setAttachmentType($val) } /** * Gets the contentId - * 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. * * @return string|null The contentId */ @@ -73,7 +73,7 @@ public function getContentId() /** * Sets the contentId - * 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. * * @param string $val The value of the contentId * @@ -142,7 +142,7 @@ public function setIsInline($val) } /** * Gets 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. * * @return string|null The name */ @@ -157,7 +157,7 @@ public function getName() /** * Sets 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. * * @param string $val The value of the name * diff --git a/src/Model/AttackSimulationOperation.php b/src/Model/AttackSimulationOperation.php new file mode 100644 index 00000000000..6834a542e94 --- /dev/null +++ b/src/Model/AttackSimulationOperation.php @@ -0,0 +1,112 @@ +_propDict)) { + return $this->_propDict["percentageCompleted"]; + } else { + return null; + } + } + + /** + * Sets the percentageCompleted + * + * @param int $val The percentageCompleted + * + * @return AttackSimulationOperation + */ + public function setPercentageCompleted($val) + { + $this->_propDict["percentageCompleted"] = intval($val); + return $this; + } + + /** + * Gets the tenantId + * + * @return string|null The tenantId + */ + public function getTenantId() + { + if (array_key_exists("tenantId", $this->_propDict)) { + return $this->_propDict["tenantId"]; + } else { + return null; + } + } + + /** + * Sets the tenantId + * + * @param string $val The tenantId + * + * @return AttackSimulationOperation + */ + public function setTenantId($val) + { + $this->_propDict["tenantId"] = $val; + return $this; + } + + /** + * Gets the type + * + * @return AttackSimulationOperationType|null The type + */ + public function getType() + { + if (array_key_exists("type", $this->_propDict)) { + if (is_a($this->_propDict["type"], "\Microsoft\Graph\Model\AttackSimulationOperationType") || is_null($this->_propDict["type"])) { + return $this->_propDict["type"]; + } else { + $this->_propDict["type"] = new AttackSimulationOperationType($this->_propDict["type"]); + return $this->_propDict["type"]; + } + } + return null; + } + + /** + * Sets the type + * + * @param AttackSimulationOperationType $val The type + * + * @return AttackSimulationOperation + */ + public function setType($val) + { + $this->_propDict["type"] = $val; + return $this; + } + +} diff --git a/src/Model/AttackSimulationOperationType.php b/src/Model/AttackSimulationOperationType.php new file mode 100644 index 00000000000..a3befb7911c --- /dev/null +++ b/src/Model/AttackSimulationOperationType.php @@ -0,0 +1,35 @@ +_propDict)) { + return $this->_propDict["endUserNotifications"]; + } else { + return null; + } + } + + /** + * Sets the endUserNotifications + * + * @param EndUserNotification[] $val The endUserNotifications + * + * @return AttackSimulationRoot + */ + public function setEndUserNotifications($val) + { + $this->_propDict["endUserNotifications"] = $val; + return $this; + } + + + /** + * Gets the landingPages + * + * @return array|null The landingPages + */ + public function getLandingPages() + { + if (array_key_exists("landingPages", $this->_propDict)) { + return $this->_propDict["landingPages"]; + } else { + return null; + } + } + + /** + * Sets the landingPages + * + * @param LandingPage[] $val The landingPages + * + * @return AttackSimulationRoot + */ + public function setLandingPages($val) + { + $this->_propDict["landingPages"] = $val; + return $this; + } + + + /** + * Gets the loginPages + * + * @return array|null The loginPages + */ + public function getLoginPages() + { + if (array_key_exists("loginPages", $this->_propDict)) { + return $this->_propDict["loginPages"]; + } else { + return null; + } + } + + /** + * Sets the loginPages + * + * @param LoginPage[] $val The loginPages + * + * @return AttackSimulationRoot + */ + public function setLoginPages($val) + { + $this->_propDict["loginPages"] = $val; + return $this; + } + + + /** + * Gets the operations + * + * @return array|null The operations + */ + public function getOperations() + { + if (array_key_exists("operations", $this->_propDict)) { + return $this->_propDict["operations"]; + } else { + return null; + } + } + + /** + * Sets the operations + * + * @param AttackSimulationOperation[] $val The operations + * + * @return AttackSimulationRoot + */ + public function setOperations($val) + { + $this->_propDict["operations"] = $val; + return $this; + } + + + /** + * Gets the payloads + * + * @return array|null The payloads + */ + public function getPayloads() + { + if (array_key_exists("payloads", $this->_propDict)) { + return $this->_propDict["payloads"]; + } else { + return null; + } + } + + /** + * Sets the payloads + * + * @param Payload[] $val The payloads + * + * @return AttackSimulationRoot + */ + public function setPayloads($val) + { + $this->_propDict["payloads"] = $val; + return $this; + } + + /** * Gets the simulationAutomations * Represents simulation automation created to run on a tenant. @@ -84,4 +224,32 @@ public function setSimulations($val) return $this; } + + /** + * Gets the trainings + * + * @return array|null The trainings + */ + public function getTrainings() + { + if (array_key_exists("trainings", $this->_propDict)) { + return $this->_propDict["trainings"]; + } else { + return null; + } + } + + /** + * Sets the trainings + * + * @param Training[] $val The trainings + * + * @return AttackSimulationRoot + */ + public function setTrainings($val) + { + $this->_propDict["trainings"] = $val; + return $this; + } + } diff --git a/src/Model/AvailabilityItem.php b/src/Model/AvailabilityItem.php index 2db9170c11a..2a984aa4436 100644 --- a/src/Model/AvailabilityItem.php +++ b/src/Model/AvailabilityItem.php @@ -58,7 +58,7 @@ public function setEndDateTime($val) } /** * Gets the serviceId - * 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. * * @return string|null The serviceId */ @@ -73,7 +73,7 @@ public function getServiceId() /** * Sets the serviceId - * 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. * * @param string $val The value of the serviceId * diff --git a/src/Model/BaseEndUserNotification.php b/src/Model/BaseEndUserNotification.php new file mode 100644 index 00000000000..ec1c6525706 --- /dev/null +++ b/src/Model/BaseEndUserNotification.php @@ -0,0 +1,83 @@ +_propDict)) { + return $this->_propDict["defaultLanguage"]; + } else { + return null; + } + } + + /** + * Sets the defaultLanguage + * + * @param string $val The value of the defaultLanguage + * + * @return BaseEndUserNotification + */ + public function setDefaultLanguage($val) + { + $this->_propDict["defaultLanguage"] = $val; + return $this; + } + + /** + * Gets the endUserNotification + * + * @return EndUserNotification|null The endUserNotification + */ + public function getEndUserNotification() + { + if (array_key_exists("endUserNotification", $this->_propDict)) { + if (is_a($this->_propDict["endUserNotification"], "\Microsoft\Graph\Model\EndUserNotification") || is_null($this->_propDict["endUserNotification"])) { + return $this->_propDict["endUserNotification"]; + } else { + $this->_propDict["endUserNotification"] = new EndUserNotification($this->_propDict["endUserNotification"]); + return $this->_propDict["endUserNotification"]; + } + } + return null; + } + + /** + * Sets the endUserNotification + * + * @param EndUserNotification $val The value to assign to the endUserNotification + * + * @return BaseEndUserNotification The BaseEndUserNotification + */ + public function setEndUserNotification($val) + { + $this->_propDict["endUserNotification"] = $val; + return $this; + } +} diff --git a/src/Model/BookingAppointment.php b/src/Model/BookingAppointment.php index 77878db59d4..5e461a47283 100644 --- a/src/Model/BookingAppointment.php +++ b/src/Model/BookingAppointment.php @@ -85,7 +85,7 @@ public function setAnonymousJoinWebUrl($val) /** * Gets 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. * * @return array|null The customers */ @@ -100,7 +100,7 @@ public function getCustomers() /** * Sets 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. * * @param BookingCustomerInformationBase[] $val The customers * @@ -325,7 +325,7 @@ public function setMaximumAttendeesCount($val) /** * Gets the optOutOfCustomerEmail - * 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. * * @return bool|null The optOutOfCustomerEmail */ @@ -340,7 +340,7 @@ public function getOptOutOfCustomerEmail() /** * Sets the optOutOfCustomerEmail - * 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. * * @param bool $val The optOutOfCustomerEmail * diff --git a/src/Model/BookingQuestionAssignment.php b/src/Model/BookingQuestionAssignment.php index 99e55d4e390..28c46ba86c4 100644 --- a/src/Model/BookingQuestionAssignment.php +++ b/src/Model/BookingQuestionAssignment.php @@ -53,7 +53,7 @@ public function setIsRequired($val) } /** * Gets the questionId - * Indicates whether it is mandatory to answer the custom question. + * Indicates whether it's mandatory to answer the custom question. * * @return string|null The questionId */ @@ -68,7 +68,7 @@ public function getQuestionId() /** * Sets the questionId - * Indicates whether it is mandatory to answer the custom question. + * Indicates whether it's mandatory to answer the custom question. * * @param string $val The value of the questionId * diff --git a/src/Model/Call.php b/src/Model/Call.php index 08a89b3a6c3..5085891d0c1 100644 --- a/src/Model/Call.php +++ b/src/Model/Call.php @@ -180,7 +180,7 @@ public function setChatInfo($val) /** * Gets 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. * * @return CallDirection|null The direction */ @@ -199,7 +199,7 @@ public function getDirection() /** * Sets 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. * * @param CallDirection $val The direction * @@ -402,7 +402,7 @@ public function setRequestedModalities($val) /** * Gets the resultInfo - * The result information. For example can hold termination reason. Read-only. + * The result information. For example, the result can hold termination reason. Read-only. * * @return ResultInfo|null The resultInfo */ @@ -421,7 +421,7 @@ public function getResultInfo() /** * Sets the resultInfo - * The result information. For example can hold termination reason. Read-only. + * The result information. For example, the result can hold termination reason. Read-only. * * @param ResultInfo $val The resultInfo * diff --git a/src/Model/CallTranscript.php b/src/Model/CallTranscript.php new file mode 100644 index 00000000000..8c264584716 --- /dev/null +++ b/src/Model/CallTranscript.php @@ -0,0 +1,205 @@ +_propDict)) { + if (is_a($this->_propDict["content"], "\GuzzleHttp\Psr7\Stream") || is_null($this->_propDict["content"])) { + return $this->_propDict["content"]; + } else { + $this->_propDict["content"] = \GuzzleHttp\Psr7\Utils::streamFor($this->_propDict["content"]); + return $this->_propDict["content"]; + } + } + return null; + } + + /** + * Sets the content + * + * @param \GuzzleHttp\Psr7\Stream $val The content + * + * @return CallTranscript + */ + public function setContent($val) + { + $this->_propDict["content"] = $val; + return $this; + } + + /** + * Gets the createdDateTime + * + * @return \DateTime|null The createdDateTime + */ + public function getCreatedDateTime() + { + if (array_key_exists("createdDateTime", $this->_propDict)) { + if (is_a($this->_propDict["createdDateTime"], "\DateTime") || is_null($this->_propDict["createdDateTime"])) { + return $this->_propDict["createdDateTime"]; + } else { + $this->_propDict["createdDateTime"] = new \DateTime($this->_propDict["createdDateTime"]); + return $this->_propDict["createdDateTime"]; + } + } + return null; + } + + /** + * Sets the createdDateTime + * + * @param \DateTime $val The createdDateTime + * + * @return CallTranscript + */ + public function setCreatedDateTime($val) + { + $this->_propDict["createdDateTime"] = $val; + return $this; + } + + /** + * Gets the meetingId + * + * @return string|null The meetingId + */ + public function getMeetingId() + { + if (array_key_exists("meetingId", $this->_propDict)) { + return $this->_propDict["meetingId"]; + } else { + return null; + } + } + + /** + * Sets the meetingId + * + * @param string $val The meetingId + * + * @return CallTranscript + */ + public function setMeetingId($val) + { + $this->_propDict["meetingId"] = $val; + return $this; + } + + /** + * Gets the meetingOrganizer + * + * @return IdentitySet|null The meetingOrganizer + */ + public function getMeetingOrganizer() + { + if (array_key_exists("meetingOrganizer", $this->_propDict)) { + if (is_a($this->_propDict["meetingOrganizer"], "\Microsoft\Graph\Model\IdentitySet") || is_null($this->_propDict["meetingOrganizer"])) { + return $this->_propDict["meetingOrganizer"]; + } else { + $this->_propDict["meetingOrganizer"] = new IdentitySet($this->_propDict["meetingOrganizer"]); + return $this->_propDict["meetingOrganizer"]; + } + } + return null; + } + + /** + * Sets the meetingOrganizer + * + * @param IdentitySet $val The meetingOrganizer + * + * @return CallTranscript + */ + public function setMeetingOrganizer($val) + { + $this->_propDict["meetingOrganizer"] = $val; + return $this; + } + + /** + * Gets the metadataContent + * + * @return \GuzzleHttp\Psr7\Stream|null The metadataContent + */ + public function getMetadataContent() + { + if (array_key_exists("metadataContent", $this->_propDict)) { + if (is_a($this->_propDict["metadataContent"], "\GuzzleHttp\Psr7\Stream") || is_null($this->_propDict["metadataContent"])) { + return $this->_propDict["metadataContent"]; + } else { + $this->_propDict["metadataContent"] = \GuzzleHttp\Psr7\Utils::streamFor($this->_propDict["metadataContent"]); + return $this->_propDict["metadataContent"]; + } + } + return null; + } + + /** + * Sets the metadataContent + * + * @param \GuzzleHttp\Psr7\Stream $val The metadataContent + * + * @return CallTranscript + */ + public function setMetadataContent($val) + { + $this->_propDict["metadataContent"] = $val; + return $this; + } + + /** + * Gets the transcriptContentUrl + * + * @return string|null The transcriptContentUrl + */ + public function getTranscriptContentUrl() + { + if (array_key_exists("transcriptContentUrl", $this->_propDict)) { + return $this->_propDict["transcriptContentUrl"]; + } else { + return null; + } + } + + /** + * Sets the transcriptContentUrl + * + * @param string $val The transcriptContentUrl + * + * @return CallTranscript + */ + public function setTranscriptContentUrl($val) + { + $this->_propDict["transcriptContentUrl"] = $val; + return $this; + } + +} diff --git a/src/Model/Certification.php b/src/Model/Certification.php index 4070daf1ec5..808b56feea4 100644 --- a/src/Model/Certification.php +++ b/src/Model/Certification.php @@ -54,7 +54,7 @@ public function setCertificationDetailsUrl($val) /** * Gets the certificationExpirationDateTime - * The timestamp when the current certification for the application will expire. + * The timestamp when the current certification for the application expires. * * @return \DateTime|null The certificationExpirationDateTime */ @@ -73,7 +73,7 @@ public function getCertificationExpirationDateTime() /** * Sets the certificationExpirationDateTime - * The timestamp when the current certification for the application will expire. + * The timestamp when the current certification for the application expires. * * @param \DateTime $val The value to assign to the certificationExpirationDateTime * diff --git a/src/Model/CoachmarkLocation.php b/src/Model/CoachmarkLocation.php new file mode 100644 index 00000000000..6c1473b20d1 --- /dev/null +++ b/src/Model/CoachmarkLocation.php @@ -0,0 +1,109 @@ +_propDict)) { + return $this->_propDict["length"]; + } else { + return null; + } + } + + /** + * Sets the length + * + * @param int $val The value of the length + * + * @return CoachmarkLocation + */ + public function setLength($val) + { + $this->_propDict["length"] = $val; + return $this; + } + /** + * Gets the offset + * + * @return int|null The offset + */ + public function getOffset() + { + if (array_key_exists("offset", $this->_propDict)) { + return $this->_propDict["offset"]; + } else { + return null; + } + } + + /** + * Sets the offset + * + * @param int $val The value of the offset + * + * @return CoachmarkLocation + */ + public function setOffset($val) + { + $this->_propDict["offset"] = $val; + return $this; + } + + /** + * Gets the type + * + * @return CoachmarkLocationType|null The type + */ + public function getType() + { + if (array_key_exists("type", $this->_propDict)) { + if (is_a($this->_propDict["type"], "\Microsoft\Graph\Model\CoachmarkLocationType") || is_null($this->_propDict["type"])) { + return $this->_propDict["type"]; + } else { + $this->_propDict["type"] = new CoachmarkLocationType($this->_propDict["type"]); + return $this->_propDict["type"]; + } + } + return null; + } + + /** + * Sets the type + * + * @param CoachmarkLocationType $val The value to assign to the type + * + * @return CoachmarkLocation The CoachmarkLocation + */ + public function setType($val) + { + $this->_propDict["type"] = $val; + return $this; + } +} diff --git a/src/Model/CoachmarkLocationType.php b/src/Model/CoachmarkLocationType.php new file mode 100644 index 00000000000..ffeb8c7c542 --- /dev/null +++ b/src/Model/CoachmarkLocationType.php @@ -0,0 +1,39 @@ +setODataType("#microsoft.graph.customTrainingSetting"); + } + + + /** + * Gets the assignedTo + * + * @return TrainingAssignedTo|null The assignedTo + */ + public function getAssignedTo() + { + if (array_key_exists("assignedTo", $this->_propDict)) { + if (is_a($this->_propDict["assignedTo"], "\Microsoft\Graph\Model\TrainingAssignedTo") || is_null($this->_propDict["assignedTo"])) { + return $this->_propDict["assignedTo"]; + } else { + $this->_propDict["assignedTo"] = new TrainingAssignedTo($this->_propDict["assignedTo"]); + return $this->_propDict["assignedTo"]; + } + } + return null; + } + + /** + * Sets the assignedTo + * + * @param TrainingAssignedTo $val The value to assign to the assignedTo + * + * @return CustomTrainingSetting The CustomTrainingSetting + */ + public function setAssignedTo($val) + { + $this->_propDict["assignedTo"] = $val; + return $this; + } + /** + * Gets the description + * + * @return string|null The description + */ + public function getDescription() + { + if (array_key_exists("description", $this->_propDict)) { + return $this->_propDict["description"]; + } else { + return null; + } + } + + /** + * Sets the description + * + * @param string $val The value of the description + * + * @return CustomTrainingSetting + */ + public function setDescription($val) + { + $this->_propDict["description"] = $val; + return $this; + } + /** + * Gets the displayName + * + * @return string|null The displayName + */ + public function getDisplayName() + { + if (array_key_exists("displayName", $this->_propDict)) { + return $this->_propDict["displayName"]; + } else { + return null; + } + } + + /** + * Sets the displayName + * + * @param string $val The value of the displayName + * + * @return CustomTrainingSetting + */ + public function setDisplayName($val) + { + $this->_propDict["displayName"] = $val; + return $this; + } + /** + * Gets the durationInMinutes + * + * @return int|null The durationInMinutes + */ + public function getDurationInMinutes() + { + if (array_key_exists("durationInMinutes", $this->_propDict)) { + return $this->_propDict["durationInMinutes"]; + } else { + return null; + } + } + + /** + * Sets the durationInMinutes + * + * @param int $val The value of the durationInMinutes + * + * @return CustomTrainingSetting + */ + public function setDurationInMinutes($val) + { + $this->_propDict["durationInMinutes"] = $val; + return $this; + } + /** + * Gets the url + * + * @return string|null The url + */ + public function getUrl() + { + if (array_key_exists("url", $this->_propDict)) { + return $this->_propDict["url"]; + } else { + return null; + } + } + + /** + * Sets the url + * + * @param string $val The value of the url + * + * @return CustomTrainingSetting + */ + public function setUrl($val) + { + $this->_propDict["url"] = $val; + return $this; + } +} diff --git a/src/Model/DirectoryDefinition.php b/src/Model/DirectoryDefinition.php index 5c63537e1f3..44a9433862d 100644 --- a/src/Model/DirectoryDefinition.php +++ b/src/Model/DirectoryDefinition.php @@ -180,7 +180,7 @@ public function setReadOnly($val) /** * Gets 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. * * @return string|null The version */ @@ -195,7 +195,7 @@ public function getVersion() /** * Sets 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. * * @param string $val The version * diff --git a/src/Model/EmailFileAssessmentRequest.php b/src/Model/EmailFileAssessmentRequest.php index fed2e7e8189..7da8410ad4b 100644 --- a/src/Model/EmailFileAssessmentRequest.php +++ b/src/Model/EmailFileAssessmentRequest.php @@ -26,7 +26,7 @@ class EmailFileAssessmentRequest extends ThreatAssessmentRequest { /** * Gets the contentData - * 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. * * @return string|null The contentData */ @@ -41,7 +41,7 @@ public function getContentData() /** * Sets the contentData - * 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. * * @param string $val The contentData * diff --git a/src/Model/EmailPayloadDetail.php b/src/Model/EmailPayloadDetail.php new file mode 100644 index 00000000000..49c44a29a32 --- /dev/null +++ b/src/Model/EmailPayloadDetail.php @@ -0,0 +1,141 @@ +setODataType("#microsoft.graph.emailPayloadDetail"); + } + + /** + * Gets the fromEmail + * + * @return string|null The fromEmail + */ + public function getFromEmail() + { + if (array_key_exists("fromEmail", $this->_propDict)) { + return $this->_propDict["fromEmail"]; + } else { + return null; + } + } + + /** + * Sets the fromEmail + * + * @param string $val The value of the fromEmail + * + * @return EmailPayloadDetail + */ + public function setFromEmail($val) + { + $this->_propDict["fromEmail"] = $val; + return $this; + } + /** + * Gets the fromName + * + * @return string|null The fromName + */ + public function getFromName() + { + if (array_key_exists("fromName", $this->_propDict)) { + return $this->_propDict["fromName"]; + } else { + return null; + } + } + + /** + * Sets the fromName + * + * @param string $val The value of the fromName + * + * @return EmailPayloadDetail + */ + public function setFromName($val) + { + $this->_propDict["fromName"] = $val; + return $this; + } + /** + * Gets the isExternalSender + * + * @return bool|null The isExternalSender + */ + public function getIsExternalSender() + { + if (array_key_exists("isExternalSender", $this->_propDict)) { + return $this->_propDict["isExternalSender"]; + } else { + return null; + } + } + + /** + * Sets the isExternalSender + * + * @param bool $val The value of the isExternalSender + * + * @return EmailPayloadDetail + */ + public function setIsExternalSender($val) + { + $this->_propDict["isExternalSender"] = $val; + return $this; + } + /** + * Gets the subject + * + * @return string|null The subject + */ + public function getSubject() + { + if (array_key_exists("subject", $this->_propDict)) { + return $this->_propDict["subject"]; + } else { + return null; + } + } + + /** + * Sets the subject + * + * @param string $val The value of the subject + * + * @return EmailPayloadDetail + */ + public function setSubject($val) + { + $this->_propDict["subject"] = $val; + return $this; + } +} diff --git a/src/Model/EndUserNotification.php b/src/Model/EndUserNotification.php new file mode 100644 index 00000000000..f7ce2ad9717 --- /dev/null +++ b/src/Model/EndUserNotification.php @@ -0,0 +1,353 @@ +_propDict)) { + if (is_a($this->_propDict["createdBy"], "\Microsoft\Graph\Model\EmailIdentity") || is_null($this->_propDict["createdBy"])) { + return $this->_propDict["createdBy"]; + } else { + $this->_propDict["createdBy"] = new EmailIdentity($this->_propDict["createdBy"]); + return $this->_propDict["createdBy"]; + } + } + return null; + } + + /** + * Sets the createdBy + * + * @param EmailIdentity $val The createdBy + * + * @return EndUserNotification + */ + public function setCreatedBy($val) + { + $this->_propDict["createdBy"] = $val; + return $this; + } + + /** + * Gets the createdDateTime + * + * @return \DateTime|null The createdDateTime + */ + public function getCreatedDateTime() + { + if (array_key_exists("createdDateTime", $this->_propDict)) { + if (is_a($this->_propDict["createdDateTime"], "\DateTime") || is_null($this->_propDict["createdDateTime"])) { + return $this->_propDict["createdDateTime"]; + } else { + $this->_propDict["createdDateTime"] = new \DateTime($this->_propDict["createdDateTime"]); + return $this->_propDict["createdDateTime"]; + } + } + return null; + } + + /** + * Sets the createdDateTime + * + * @param \DateTime $val The createdDateTime + * + * @return EndUserNotification + */ + public function setCreatedDateTime($val) + { + $this->_propDict["createdDateTime"] = $val; + return $this; + } + + /** + * Gets the description + * + * @return string|null The description + */ + public function getDescription() + { + if (array_key_exists("description", $this->_propDict)) { + return $this->_propDict["description"]; + } else { + return null; + } + } + + /** + * Sets the description + * + * @param string $val The description + * + * @return EndUserNotification + */ + public function setDescription($val) + { + $this->_propDict["description"] = $val; + return $this; + } + + /** + * Gets the displayName + * + * @return string|null The displayName + */ + public function getDisplayName() + { + if (array_key_exists("displayName", $this->_propDict)) { + return $this->_propDict["displayName"]; + } else { + return null; + } + } + + /** + * Sets the displayName + * + * @param string $val The displayName + * + * @return EndUserNotification + */ + public function setDisplayName($val) + { + $this->_propDict["displayName"] = $val; + return $this; + } + + /** + * Gets the lastModifiedBy + * + * @return EmailIdentity|null The lastModifiedBy + */ + public function getLastModifiedBy() + { + if (array_key_exists("lastModifiedBy", $this->_propDict)) { + if (is_a($this->_propDict["lastModifiedBy"], "\Microsoft\Graph\Model\EmailIdentity") || is_null($this->_propDict["lastModifiedBy"])) { + return $this->_propDict["lastModifiedBy"]; + } else { + $this->_propDict["lastModifiedBy"] = new EmailIdentity($this->_propDict["lastModifiedBy"]); + return $this->_propDict["lastModifiedBy"]; + } + } + return null; + } + + /** + * Sets the lastModifiedBy + * + * @param EmailIdentity $val The lastModifiedBy + * + * @return EndUserNotification + */ + public function setLastModifiedBy($val) + { + $this->_propDict["lastModifiedBy"] = $val; + return $this; + } + + /** + * Gets the lastModifiedDateTime + * + * @return \DateTime|null The lastModifiedDateTime + */ + public function getLastModifiedDateTime() + { + if (array_key_exists("lastModifiedDateTime", $this->_propDict)) { + if (is_a($this->_propDict["lastModifiedDateTime"], "\DateTime") || is_null($this->_propDict["lastModifiedDateTime"])) { + return $this->_propDict["lastModifiedDateTime"]; + } else { + $this->_propDict["lastModifiedDateTime"] = new \DateTime($this->_propDict["lastModifiedDateTime"]); + return $this->_propDict["lastModifiedDateTime"]; + } + } + return null; + } + + /** + * Sets the lastModifiedDateTime + * + * @param \DateTime $val The lastModifiedDateTime + * + * @return EndUserNotification + */ + public function setLastModifiedDateTime($val) + { + $this->_propDict["lastModifiedDateTime"] = $val; + return $this; + } + + /** + * Gets the notificationType + * + * @return EndUserNotificationType|null The notificationType + */ + public function getNotificationType() + { + if (array_key_exists("notificationType", $this->_propDict)) { + if (is_a($this->_propDict["notificationType"], "\Microsoft\Graph\Model\EndUserNotificationType") || is_null($this->_propDict["notificationType"])) { + return $this->_propDict["notificationType"]; + } else { + $this->_propDict["notificationType"] = new EndUserNotificationType($this->_propDict["notificationType"]); + return $this->_propDict["notificationType"]; + } + } + return null; + } + + /** + * Sets the notificationType + * + * @param EndUserNotificationType $val The notificationType + * + * @return EndUserNotification + */ + public function setNotificationType($val) + { + $this->_propDict["notificationType"] = $val; + return $this; + } + + /** + * Gets the source + * + * @return SimulationContentSource|null The source + */ + public function getSource() + { + if (array_key_exists("source", $this->_propDict)) { + if (is_a($this->_propDict["source"], "\Microsoft\Graph\Model\SimulationContentSource") || is_null($this->_propDict["source"])) { + return $this->_propDict["source"]; + } else { + $this->_propDict["source"] = new SimulationContentSource($this->_propDict["source"]); + return $this->_propDict["source"]; + } + } + return null; + } + + /** + * Sets the source + * + * @param SimulationContentSource $val The source + * + * @return EndUserNotification + */ + public function setSource($val) + { + $this->_propDict["source"] = $val; + return $this; + } + + /** + * Gets the status + * + * @return SimulationContentStatus|null The status + */ + public function getStatus() + { + if (array_key_exists("status", $this->_propDict)) { + if (is_a($this->_propDict["status"], "\Microsoft\Graph\Model\SimulationContentStatus") || is_null($this->_propDict["status"])) { + return $this->_propDict["status"]; + } else { + $this->_propDict["status"] = new SimulationContentStatus($this->_propDict["status"]); + return $this->_propDict["status"]; + } + } + return null; + } + + /** + * Sets the status + * + * @param SimulationContentStatus $val The status + * + * @return EndUserNotification + */ + public function setStatus($val) + { + $this->_propDict["status"] = $val; + return $this; + } + + /** + * Gets the supportedLocales + * + * @return array|null The supportedLocales + */ + public function getSupportedLocales() + { + if (array_key_exists("supportedLocales", $this->_propDict)) { + return $this->_propDict["supportedLocales"]; + } else { + return null; + } + } + + /** + * Sets the supportedLocales + * + * @param string[] $val The supportedLocales + * + * @return EndUserNotification + */ + public function setSupportedLocales($val) + { + $this->_propDict["supportedLocales"] = $val; + return $this; + } + + + /** + * Gets the details + * + * @return array|null The details + */ + public function getDetails() + { + if (array_key_exists("details", $this->_propDict)) { + return $this->_propDict["details"]; + } else { + return null; + } + } + + /** + * Sets the details + * + * @param EndUserNotificationDetail[] $val The details + * + * @return EndUserNotification + */ + public function setDetails($val) + { + $this->_propDict["details"] = $val; + return $this; + } + +} diff --git a/src/Model/EndUserNotificationDetail.php b/src/Model/EndUserNotificationDetail.php new file mode 100644 index 00000000000..2c8472c13df --- /dev/null +++ b/src/Model/EndUserNotificationDetail.php @@ -0,0 +1,193 @@ +_propDict)) { + return $this->_propDict["emailContent"]; + } else { + return null; + } + } + + /** + * Sets the emailContent + * + * @param string $val The emailContent + * + * @return EndUserNotificationDetail + */ + public function setEmailContent($val) + { + $this->_propDict["emailContent"] = $val; + return $this; + } + + /** + * Gets the isDefaultLangauge + * + * @return bool|null The isDefaultLangauge + */ + public function getIsDefaultLangauge() + { + if (array_key_exists("isDefaultLangauge", $this->_propDict)) { + return $this->_propDict["isDefaultLangauge"]; + } else { + return null; + } + } + + /** + * Sets the isDefaultLangauge + * + * @param bool $val The isDefaultLangauge + * + * @return EndUserNotificationDetail + */ + public function setIsDefaultLangauge($val) + { + $this->_propDict["isDefaultLangauge"] = boolval($val); + return $this; + } + + /** + * Gets the language + * + * @return string|null The language + */ + public function getLanguage() + { + if (array_key_exists("language", $this->_propDict)) { + return $this->_propDict["language"]; + } else { + return null; + } + } + + /** + * Sets the language + * + * @param string $val The language + * + * @return EndUserNotificationDetail + */ + public function setLanguage($val) + { + $this->_propDict["language"] = $val; + return $this; + } + + /** + * Gets the locale + * + * @return string|null The locale + */ + public function getLocale() + { + if (array_key_exists("locale", $this->_propDict)) { + return $this->_propDict["locale"]; + } else { + return null; + } + } + + /** + * Sets the locale + * + * @param string $val The locale + * + * @return EndUserNotificationDetail + */ + public function setLocale($val) + { + $this->_propDict["locale"] = $val; + return $this; + } + + /** + * Gets the sentFrom + * + * @return EmailIdentity|null The sentFrom + */ + public function getSentFrom() + { + if (array_key_exists("sentFrom", $this->_propDict)) { + if (is_a($this->_propDict["sentFrom"], "\Microsoft\Graph\Model\EmailIdentity") || is_null($this->_propDict["sentFrom"])) { + return $this->_propDict["sentFrom"]; + } else { + $this->_propDict["sentFrom"] = new EmailIdentity($this->_propDict["sentFrom"]); + return $this->_propDict["sentFrom"]; + } + } + return null; + } + + /** + * Sets the sentFrom + * + * @param EmailIdentity $val The sentFrom + * + * @return EndUserNotificationDetail + */ + public function setSentFrom($val) + { + $this->_propDict["sentFrom"] = $val; + return $this; + } + + /** + * Gets the subject + * + * @return string|null The subject + */ + public function getSubject() + { + if (array_key_exists("subject", $this->_propDict)) { + return $this->_propDict["subject"]; + } else { + return null; + } + } + + /** + * Sets the subject + * + * @param string $val The subject + * + * @return EndUserNotificationDetail + */ + public function setSubject($val) + { + $this->_propDict["subject"] = $val; + return $this; + } + +} diff --git a/src/Model/EndUserNotificationPreference.php b/src/Model/EndUserNotificationPreference.php new file mode 100644 index 00000000000..760a08b45de --- /dev/null +++ b/src/Model/EndUserNotificationPreference.php @@ -0,0 +1,36 @@ +_propDict)) { + if (is_a($this->_propDict["notificationPreference"], "\Microsoft\Graph\Model\EndUserNotificationPreference") || is_null($this->_propDict["notificationPreference"])) { + return $this->_propDict["notificationPreference"]; + } else { + $this->_propDict["notificationPreference"] = new EndUserNotificationPreference($this->_propDict["notificationPreference"]); + return $this->_propDict["notificationPreference"]; + } + } + return null; + } + + /** + * Sets the notificationPreference + * + * @param EndUserNotificationPreference $val The value to assign to the notificationPreference + * + * @return EndUserNotificationSetting The EndUserNotificationSetting + */ + public function setNotificationPreference($val) + { + $this->_propDict["notificationPreference"] = $val; + return $this; + } + + /** + * Gets the positiveReinforcement + * + * @return PositiveReinforcementNotification|null The positiveReinforcement + */ + public function getPositiveReinforcement() + { + if (array_key_exists("positiveReinforcement", $this->_propDict)) { + if (is_a($this->_propDict["positiveReinforcement"], "\Microsoft\Graph\Model\PositiveReinforcementNotification") || is_null($this->_propDict["positiveReinforcement"])) { + return $this->_propDict["positiveReinforcement"]; + } else { + $this->_propDict["positiveReinforcement"] = new PositiveReinforcementNotification($this->_propDict["positiveReinforcement"]); + return $this->_propDict["positiveReinforcement"]; + } + } + return null; + } + + /** + * Sets the positiveReinforcement + * + * @param PositiveReinforcementNotification $val The value to assign to the positiveReinforcement + * + * @return EndUserNotificationSetting The EndUserNotificationSetting + */ + public function setPositiveReinforcement($val) + { + $this->_propDict["positiveReinforcement"] = $val; + return $this; + } + + /** + * Gets the settingType + * + * @return EndUserNotificationSettingType|null The settingType + */ + public function getSettingType() + { + if (array_key_exists("settingType", $this->_propDict)) { + if (is_a($this->_propDict["settingType"], "\Microsoft\Graph\Model\EndUserNotificationSettingType") || is_null($this->_propDict["settingType"])) { + return $this->_propDict["settingType"]; + } else { + $this->_propDict["settingType"] = new EndUserNotificationSettingType($this->_propDict["settingType"]); + return $this->_propDict["settingType"]; + } + } + return null; + } + + /** + * Sets the settingType + * + * @param EndUserNotificationSettingType $val The value to assign to the settingType + * + * @return EndUserNotificationSetting The EndUserNotificationSetting + */ + public function setSettingType($val) + { + $this->_propDict["settingType"] = $val; + return $this; + } +} diff --git a/src/Model/EndUserNotificationSettingType.php b/src/Model/EndUserNotificationSettingType.php new file mode 100644 index 00000000000..2e6b6dde62b --- /dev/null +++ b/src/Model/EndUserNotificationSettingType.php @@ -0,0 +1,37 @@ +setODataType("#microsoft.graph.includeAllAccountTargetContent"); + } + +} diff --git a/src/Model/Invitation.php b/src/Model/Invitation.php index fd0c7257bd4..56215cf97e0 100644 --- a/src/Model/Invitation.php +++ b/src/Model/Invitation.php @@ -55,7 +55,7 @@ public function setInvitedUserDisplayName($val) /** * Gets the invitedUserEmailAddress - * 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. * * @return string|null The invitedUserEmailAddress */ @@ -70,7 +70,7 @@ public function getInvitedUserEmailAddress() /** * Sets the invitedUserEmailAddress - * 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. * * @param string $val The invitedUserEmailAddress * @@ -117,7 +117,7 @@ public function setInvitedUserMessageInfo($val) /** * Gets the invitedUserType - * 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. * * @return string|null The invitedUserType */ @@ -132,7 +132,7 @@ public function getInvitedUserType() /** * Sets the invitedUserType - * 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. * * @param string $val The invitedUserType * diff --git a/src/Model/IpNamedLocation.php b/src/Model/IpNamedLocation.php index 16ac1e33e79..f0ab3d58ed2 100644 --- a/src/Model/IpNamedLocation.php +++ b/src/Model/IpNamedLocation.php @@ -27,7 +27,7 @@ class IpNamedLocation extends NamedLocation /** * Gets the ipRanges - * 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. * * @return array|null The ipRanges */ @@ -42,7 +42,7 @@ public function getIpRanges() /** * Sets the ipRanges - * 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. * * @param IpRange[] $val The ipRanges * diff --git a/src/Model/LandingPage.php b/src/Model/LandingPage.php new file mode 100644 index 00000000000..3e848bfd9be --- /dev/null +++ b/src/Model/LandingPage.php @@ -0,0 +1,349 @@ +_propDict)) { + if (is_a($this->_propDict["createdBy"], "\Microsoft\Graph\Model\EmailIdentity") || is_null($this->_propDict["createdBy"])) { + return $this->_propDict["createdBy"]; + } else { + $this->_propDict["createdBy"] = new EmailIdentity($this->_propDict["createdBy"]); + return $this->_propDict["createdBy"]; + } + } + return null; + } + + /** + * Sets the createdBy + * + * @param EmailIdentity $val The createdBy + * + * @return LandingPage + */ + public function setCreatedBy($val) + { + $this->_propDict["createdBy"] = $val; + return $this; + } + + /** + * Gets the createdDateTime + * + * @return \DateTime|null The createdDateTime + */ + public function getCreatedDateTime() + { + if (array_key_exists("createdDateTime", $this->_propDict)) { + if (is_a($this->_propDict["createdDateTime"], "\DateTime") || is_null($this->_propDict["createdDateTime"])) { + return $this->_propDict["createdDateTime"]; + } else { + $this->_propDict["createdDateTime"] = new \DateTime($this->_propDict["createdDateTime"]); + return $this->_propDict["createdDateTime"]; + } + } + return null; + } + + /** + * Sets the createdDateTime + * + * @param \DateTime $val The createdDateTime + * + * @return LandingPage + */ + public function setCreatedDateTime($val) + { + $this->_propDict["createdDateTime"] = $val; + return $this; + } + + /** + * Gets the description + * + * @return string|null The description + */ + public function getDescription() + { + if (array_key_exists("description", $this->_propDict)) { + return $this->_propDict["description"]; + } else { + return null; + } + } + + /** + * Sets the description + * + * @param string $val The description + * + * @return LandingPage + */ + public function setDescription($val) + { + $this->_propDict["description"] = $val; + return $this; + } + + /** + * Gets the displayName + * + * @return string|null The displayName + */ + public function getDisplayName() + { + if (array_key_exists("displayName", $this->_propDict)) { + return $this->_propDict["displayName"]; + } else { + return null; + } + } + + /** + * Sets the displayName + * + * @param string $val The displayName + * + * @return LandingPage + */ + public function setDisplayName($val) + { + $this->_propDict["displayName"] = $val; + return $this; + } + + /** + * Gets the lastModifiedBy + * + * @return EmailIdentity|null The lastModifiedBy + */ + public function getLastModifiedBy() + { + if (array_key_exists("lastModifiedBy", $this->_propDict)) { + if (is_a($this->_propDict["lastModifiedBy"], "\Microsoft\Graph\Model\EmailIdentity") || is_null($this->_propDict["lastModifiedBy"])) { + return $this->_propDict["lastModifiedBy"]; + } else { + $this->_propDict["lastModifiedBy"] = new EmailIdentity($this->_propDict["lastModifiedBy"]); + return $this->_propDict["lastModifiedBy"]; + } + } + return null; + } + + /** + * Sets the lastModifiedBy + * + * @param EmailIdentity $val The lastModifiedBy + * + * @return LandingPage + */ + public function setLastModifiedBy($val) + { + $this->_propDict["lastModifiedBy"] = $val; + return $this; + } + + /** + * Gets the lastModifiedDateTime + * + * @return \DateTime|null The lastModifiedDateTime + */ + public function getLastModifiedDateTime() + { + if (array_key_exists("lastModifiedDateTime", $this->_propDict)) { + if (is_a($this->_propDict["lastModifiedDateTime"], "\DateTime") || is_null($this->_propDict["lastModifiedDateTime"])) { + return $this->_propDict["lastModifiedDateTime"]; + } else { + $this->_propDict["lastModifiedDateTime"] = new \DateTime($this->_propDict["lastModifiedDateTime"]); + return $this->_propDict["lastModifiedDateTime"]; + } + } + return null; + } + + /** + * Sets the lastModifiedDateTime + * + * @param \DateTime $val The lastModifiedDateTime + * + * @return LandingPage + */ + public function setLastModifiedDateTime($val) + { + $this->_propDict["lastModifiedDateTime"] = $val; + return $this; + } + + /** + * Gets the locale + * + * @return string|null The locale + */ + public function getLocale() + { + if (array_key_exists("locale", $this->_propDict)) { + return $this->_propDict["locale"]; + } else { + return null; + } + } + + /** + * Sets the locale + * + * @param string $val The locale + * + * @return LandingPage + */ + public function setLocale($val) + { + $this->_propDict["locale"] = $val; + return $this; + } + + /** + * Gets the source + * + * @return SimulationContentSource|null The source + */ + public function getSource() + { + if (array_key_exists("source", $this->_propDict)) { + if (is_a($this->_propDict["source"], "\Microsoft\Graph\Model\SimulationContentSource") || is_null($this->_propDict["source"])) { + return $this->_propDict["source"]; + } else { + $this->_propDict["source"] = new SimulationContentSource($this->_propDict["source"]); + return $this->_propDict["source"]; + } + } + return null; + } + + /** + * Sets the source + * + * @param SimulationContentSource $val The source + * + * @return LandingPage + */ + public function setSource($val) + { + $this->_propDict["source"] = $val; + return $this; + } + + /** + * Gets the status + * + * @return SimulationContentStatus|null The status + */ + public function getStatus() + { + if (array_key_exists("status", $this->_propDict)) { + if (is_a($this->_propDict["status"], "\Microsoft\Graph\Model\SimulationContentStatus") || is_null($this->_propDict["status"])) { + return $this->_propDict["status"]; + } else { + $this->_propDict["status"] = new SimulationContentStatus($this->_propDict["status"]); + return $this->_propDict["status"]; + } + } + return null; + } + + /** + * Sets the status + * + * @param SimulationContentStatus $val The status + * + * @return LandingPage + */ + public function setStatus($val) + { + $this->_propDict["status"] = $val; + return $this; + } + + /** + * Gets the supportedLocales + * + * @return array|null The supportedLocales + */ + public function getSupportedLocales() + { + if (array_key_exists("supportedLocales", $this->_propDict)) { + return $this->_propDict["supportedLocales"]; + } else { + return null; + } + } + + /** + * Sets the supportedLocales + * + * @param string[] $val The supportedLocales + * + * @return LandingPage + */ + public function setSupportedLocales($val) + { + $this->_propDict["supportedLocales"] = $val; + return $this; + } + + + /** + * Gets the details + * + * @return array|null The details + */ + public function getDetails() + { + if (array_key_exists("details", $this->_propDict)) { + return $this->_propDict["details"]; + } else { + return null; + } + } + + /** + * Sets the details + * + * @param LandingPageDetail[] $val The details + * + * @return LandingPage + */ + public function setDetails($val) + { + $this->_propDict["details"] = $val; + return $this; + } + +} diff --git a/src/Model/LandingPageDetail.php b/src/Model/LandingPageDetail.php new file mode 100644 index 00000000000..51edd13d55b --- /dev/null +++ b/src/Model/LandingPageDetail.php @@ -0,0 +1,108 @@ +_propDict)) { + return $this->_propDict["content"]; + } else { + return null; + } + } + + /** + * Sets the content + * + * @param string $val The content + * + * @return LandingPageDetail + */ + public function setContent($val) + { + $this->_propDict["content"] = $val; + return $this; + } + + /** + * Gets the isDefaultLangauge + * + * @return bool|null The isDefaultLangauge + */ + public function getIsDefaultLangauge() + { + if (array_key_exists("isDefaultLangauge", $this->_propDict)) { + return $this->_propDict["isDefaultLangauge"]; + } else { + return null; + } + } + + /** + * Sets the isDefaultLangauge + * + * @param bool $val The isDefaultLangauge + * + * @return LandingPageDetail + */ + public function setIsDefaultLangauge($val) + { + $this->_propDict["isDefaultLangauge"] = boolval($val); + return $this; + } + + /** + * Gets the language + * + * @return string|null The language + */ + public function getLanguage() + { + if (array_key_exists("language", $this->_propDict)) { + return $this->_propDict["language"]; + } else { + return null; + } + } + + /** + * Sets the language + * + * @param string $val The language + * + * @return LandingPageDetail + */ + public function setLanguage($val) + { + $this->_propDict["language"] = $val; + return $this; + } + +} diff --git a/src/Model/ListInfo.php b/src/Model/ListInfo.php index 382ff059b21..91d88ea9e62 100644 --- a/src/Model/ListInfo.php +++ b/src/Model/ListInfo.php @@ -53,7 +53,7 @@ public function setContentTypesEnabled($val) } /** * Gets 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. * * @return bool|null The hidden */ @@ -68,7 +68,7 @@ public function getHidden() /** * Sets 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. * * @param bool $val The value of the hidden * diff --git a/src/Model/LocationConstraint.php b/src/Model/LocationConstraint.php index ea57bfa90cf..caf8f07e495 100644 --- a/src/Model/LocationConstraint.php +++ b/src/Model/LocationConstraint.php @@ -25,7 +25,7 @@ class LocationConstraint extends Entity { /** * Gets the isRequired - * 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. * * @return bool|null The isRequired */ @@ -40,7 +40,7 @@ public function getIsRequired() /** * Sets the isRequired - * 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. * * @param bool $val The value of the isRequired * diff --git a/src/Model/LoginPage.php b/src/Model/LoginPage.php new file mode 100644 index 00000000000..a092f06c1ad --- /dev/null +++ b/src/Model/LoginPage.php @@ -0,0 +1,321 @@ +_propDict)) { + return $this->_propDict["content"]; + } else { + return null; + } + } + + /** + * Sets the content + * + * @param string $val The content + * + * @return LoginPage + */ + public function setContent($val) + { + $this->_propDict["content"] = $val; + return $this; + } + + /** + * Gets the createdBy + * + * @return EmailIdentity|null The createdBy + */ + public function getCreatedBy() + { + if (array_key_exists("createdBy", $this->_propDict)) { + if (is_a($this->_propDict["createdBy"], "\Microsoft\Graph\Model\EmailIdentity") || is_null($this->_propDict["createdBy"])) { + return $this->_propDict["createdBy"]; + } else { + $this->_propDict["createdBy"] = new EmailIdentity($this->_propDict["createdBy"]); + return $this->_propDict["createdBy"]; + } + } + return null; + } + + /** + * Sets the createdBy + * + * @param EmailIdentity $val The createdBy + * + * @return LoginPage + */ + public function setCreatedBy($val) + { + $this->_propDict["createdBy"] = $val; + return $this; + } + + /** + * Gets the createdDateTime + * + * @return \DateTime|null The createdDateTime + */ + public function getCreatedDateTime() + { + if (array_key_exists("createdDateTime", $this->_propDict)) { + if (is_a($this->_propDict["createdDateTime"], "\DateTime") || is_null($this->_propDict["createdDateTime"])) { + return $this->_propDict["createdDateTime"]; + } else { + $this->_propDict["createdDateTime"] = new \DateTime($this->_propDict["createdDateTime"]); + return $this->_propDict["createdDateTime"]; + } + } + return null; + } + + /** + * Sets the createdDateTime + * + * @param \DateTime $val The createdDateTime + * + * @return LoginPage + */ + public function setCreatedDateTime($val) + { + $this->_propDict["createdDateTime"] = $val; + return $this; + } + + /** + * Gets the description + * + * @return string|null The description + */ + public function getDescription() + { + if (array_key_exists("description", $this->_propDict)) { + return $this->_propDict["description"]; + } else { + return null; + } + } + + /** + * Sets the description + * + * @param string $val The description + * + * @return LoginPage + */ + public function setDescription($val) + { + $this->_propDict["description"] = $val; + return $this; + } + + /** + * Gets the displayName + * + * @return string|null The displayName + */ + public function getDisplayName() + { + if (array_key_exists("displayName", $this->_propDict)) { + return $this->_propDict["displayName"]; + } else { + return null; + } + } + + /** + * Sets the displayName + * + * @param string $val The displayName + * + * @return LoginPage + */ + public function setDisplayName($val) + { + $this->_propDict["displayName"] = $val; + return $this; + } + + /** + * Gets the language + * + * @return string|null The language + */ + public function getLanguage() + { + if (array_key_exists("language", $this->_propDict)) { + return $this->_propDict["language"]; + } else { + return null; + } + } + + /** + * Sets the language + * + * @param string $val The language + * + * @return LoginPage + */ + public function setLanguage($val) + { + $this->_propDict["language"] = $val; + return $this; + } + + /** + * Gets the lastModifiedBy + * + * @return EmailIdentity|null The lastModifiedBy + */ + public function getLastModifiedBy() + { + if (array_key_exists("lastModifiedBy", $this->_propDict)) { + if (is_a($this->_propDict["lastModifiedBy"], "\Microsoft\Graph\Model\EmailIdentity") || is_null($this->_propDict["lastModifiedBy"])) { + return $this->_propDict["lastModifiedBy"]; + } else { + $this->_propDict["lastModifiedBy"] = new EmailIdentity($this->_propDict["lastModifiedBy"]); + return $this->_propDict["lastModifiedBy"]; + } + } + return null; + } + + /** + * Sets the lastModifiedBy + * + * @param EmailIdentity $val The lastModifiedBy + * + * @return LoginPage + */ + public function setLastModifiedBy($val) + { + $this->_propDict["lastModifiedBy"] = $val; + return $this; + } + + /** + * Gets the lastModifiedDateTime + * + * @return \DateTime|null The lastModifiedDateTime + */ + public function getLastModifiedDateTime() + { + if (array_key_exists("lastModifiedDateTime", $this->_propDict)) { + if (is_a($this->_propDict["lastModifiedDateTime"], "\DateTime") || is_null($this->_propDict["lastModifiedDateTime"])) { + return $this->_propDict["lastModifiedDateTime"]; + } else { + $this->_propDict["lastModifiedDateTime"] = new \DateTime($this->_propDict["lastModifiedDateTime"]); + return $this->_propDict["lastModifiedDateTime"]; + } + } + return null; + } + + /** + * Sets the lastModifiedDateTime + * + * @param \DateTime $val The lastModifiedDateTime + * + * @return LoginPage + */ + public function setLastModifiedDateTime($val) + { + $this->_propDict["lastModifiedDateTime"] = $val; + return $this; + } + + /** + * Gets the source + * + * @return SimulationContentSource|null The source + */ + public function getSource() + { + if (array_key_exists("source", $this->_propDict)) { + if (is_a($this->_propDict["source"], "\Microsoft\Graph\Model\SimulationContentSource") || is_null($this->_propDict["source"])) { + return $this->_propDict["source"]; + } else { + $this->_propDict["source"] = new SimulationContentSource($this->_propDict["source"]); + return $this->_propDict["source"]; + } + } + return null; + } + + /** + * Sets the source + * + * @param SimulationContentSource $val The source + * + * @return LoginPage + */ + public function setSource($val) + { + $this->_propDict["source"] = $val; + return $this; + } + + /** + * Gets the status + * + * @return SimulationContentStatus|null The status + */ + public function getStatus() + { + if (array_key_exists("status", $this->_propDict)) { + if (is_a($this->_propDict["status"], "\Microsoft\Graph\Model\SimulationContentStatus") || is_null($this->_propDict["status"])) { + return $this->_propDict["status"]; + } else { + $this->_propDict["status"] = new SimulationContentStatus($this->_propDict["status"]); + return $this->_propDict["status"]; + } + } + return null; + } + + /** + * Sets the status + * + * @param SimulationContentStatus $val The status + * + * @return LoginPage + */ + public function setStatus($val) + { + $this->_propDict["status"] = $val; + return $this; + } + +} diff --git a/src/Model/MediaInfo.php b/src/Model/MediaInfo.php index 39cee59ac2d..76f4d081bab 100644 --- a/src/Model/MediaInfo.php +++ b/src/Model/MediaInfo.php @@ -25,7 +25,7 @@ class MediaInfo extends Entity { /** * Gets the resourceId - * 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. * * @return string|null The resourceId */ @@ -40,7 +40,7 @@ public function getResourceId() /** * Sets the resourceId - * 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. * * @param string $val The value of the resourceId * @@ -53,7 +53,7 @@ public function setResourceId($val) } /** * Gets 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. * * @return string|null The uri */ @@ -68,7 +68,7 @@ public function getUri() /** * Sets 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. * * @param string $val The value of the uri * diff --git a/src/Model/MicrosoftAuthenticatorAuthenticationMethod.php b/src/Model/MicrosoftAuthenticatorAuthenticationMethod.php index fc738ff3805..748e4768d7e 100644 --- a/src/Model/MicrosoftAuthenticatorAuthenticationMethod.php +++ b/src/Model/MicrosoftAuthenticatorAuthenticationMethod.php @@ -26,7 +26,7 @@ class MicrosoftAuthenticatorAuthenticationMethod extends AuthenticationMethod { /** * Gets the createdDateTime - * 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. * * @return \DateTime|null The createdDateTime */ @@ -45,7 +45,7 @@ public function getCreatedDateTime() /** * Sets the createdDateTime - * 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. * * @param \DateTime $val The createdDateTime * @@ -146,7 +146,7 @@ public function setPhoneAppVersion($val) /** * Gets 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. * * @return Device|null The device */ @@ -165,7 +165,7 @@ public function getDevice() /** * Sets 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. * * @param Device $val The device * diff --git a/src/Model/MicrosoftCustomTrainingSetting.php b/src/Model/MicrosoftCustomTrainingSetting.php new file mode 100644 index 00000000000..f9c5e7b9970 --- /dev/null +++ b/src/Model/MicrosoftCustomTrainingSetting.php @@ -0,0 +1,130 @@ +setODataType("#microsoft.graph.microsoftCustomTrainingSetting"); + } + + + /** + * Gets the completionDateTime + * + * @return \DateTime|null The completionDateTime + */ + public function getCompletionDateTime() + { + if (array_key_exists("completionDateTime", $this->_propDict)) { + if (is_a($this->_propDict["completionDateTime"], "\DateTime") || is_null($this->_propDict["completionDateTime"])) { + return $this->_propDict["completionDateTime"]; + } else { + $this->_propDict["completionDateTime"] = new \DateTime($this->_propDict["completionDateTime"]); + return $this->_propDict["completionDateTime"]; + } + } + return null; + } + + /** + * Sets the completionDateTime + * + * @param \DateTime $val The value to assign to the completionDateTime + * + * @return MicrosoftCustomTrainingSetting The MicrosoftCustomTrainingSetting + */ + public function setCompletionDateTime($val) + { + $this->_propDict["completionDateTime"] = $val; + return $this; + } + + /** + * Gets the trainingAssignmentMappings + * + * @return MicrosoftTrainingAssignmentMapping|null The trainingAssignmentMappings + */ + public function getTrainingAssignmentMappings() + { + if (array_key_exists("trainingAssignmentMappings", $this->_propDict)) { + if (is_a($this->_propDict["trainingAssignmentMappings"], "\Microsoft\Graph\Model\MicrosoftTrainingAssignmentMapping") || is_null($this->_propDict["trainingAssignmentMappings"])) { + return $this->_propDict["trainingAssignmentMappings"]; + } else { + $this->_propDict["trainingAssignmentMappings"] = new MicrosoftTrainingAssignmentMapping($this->_propDict["trainingAssignmentMappings"]); + return $this->_propDict["trainingAssignmentMappings"]; + } + } + return null; + } + + /** + * Sets the trainingAssignmentMappings + * + * @param MicrosoftTrainingAssignmentMapping $val The value to assign to the trainingAssignmentMappings + * + * @return MicrosoftCustomTrainingSetting The MicrosoftCustomTrainingSetting + */ + public function setTrainingAssignmentMappings($val) + { + $this->_propDict["trainingAssignmentMappings"] = $val; + return $this; + } + + /** + * Gets the trainingCompletionDuration + * + * @return TrainingCompletionDuration|null The trainingCompletionDuration + */ + public function getTrainingCompletionDuration() + { + if (array_key_exists("trainingCompletionDuration", $this->_propDict)) { + if (is_a($this->_propDict["trainingCompletionDuration"], "\Microsoft\Graph\Model\TrainingCompletionDuration") || is_null($this->_propDict["trainingCompletionDuration"])) { + return $this->_propDict["trainingCompletionDuration"]; + } else { + $this->_propDict["trainingCompletionDuration"] = new TrainingCompletionDuration($this->_propDict["trainingCompletionDuration"]); + return $this->_propDict["trainingCompletionDuration"]; + } + } + return null; + } + + /** + * Sets the trainingCompletionDuration + * + * @param TrainingCompletionDuration $val The value to assign to the trainingCompletionDuration + * + * @return MicrosoftCustomTrainingSetting The MicrosoftCustomTrainingSetting + */ + public function setTrainingCompletionDuration($val) + { + $this->_propDict["trainingCompletionDuration"] = $val; + return $this; + } +} diff --git a/src/Model/MicrosoftManagedTrainingSetting.php b/src/Model/MicrosoftManagedTrainingSetting.php new file mode 100644 index 00000000000..440817369d1 --- /dev/null +++ b/src/Model/MicrosoftManagedTrainingSetting.php @@ -0,0 +1,99 @@ +setODataType("#microsoft.graph.microsoftManagedTrainingSetting"); + } + + + /** + * Gets the completionDateTime + * + * @return \DateTime|null The completionDateTime + */ + public function getCompletionDateTime() + { + if (array_key_exists("completionDateTime", $this->_propDict)) { + if (is_a($this->_propDict["completionDateTime"], "\DateTime") || is_null($this->_propDict["completionDateTime"])) { + return $this->_propDict["completionDateTime"]; + } else { + $this->_propDict["completionDateTime"] = new \DateTime($this->_propDict["completionDateTime"]); + return $this->_propDict["completionDateTime"]; + } + } + return null; + } + + /** + * Sets the completionDateTime + * + * @param \DateTime $val The value to assign to the completionDateTime + * + * @return MicrosoftManagedTrainingSetting The MicrosoftManagedTrainingSetting + */ + public function setCompletionDateTime($val) + { + $this->_propDict["completionDateTime"] = $val; + return $this; + } + + /** + * Gets the trainingCompletionDuration + * + * @return TrainingCompletionDuration|null The trainingCompletionDuration + */ + public function getTrainingCompletionDuration() + { + if (array_key_exists("trainingCompletionDuration", $this->_propDict)) { + if (is_a($this->_propDict["trainingCompletionDuration"], "\Microsoft\Graph\Model\TrainingCompletionDuration") || is_null($this->_propDict["trainingCompletionDuration"])) { + return $this->_propDict["trainingCompletionDuration"]; + } else { + $this->_propDict["trainingCompletionDuration"] = new TrainingCompletionDuration($this->_propDict["trainingCompletionDuration"]); + return $this->_propDict["trainingCompletionDuration"]; + } + } + return null; + } + + /** + * Sets the trainingCompletionDuration + * + * @param TrainingCompletionDuration $val The value to assign to the trainingCompletionDuration + * + * @return MicrosoftManagedTrainingSetting The MicrosoftManagedTrainingSetting + */ + public function setTrainingCompletionDuration($val) + { + $this->_propDict["trainingCompletionDuration"] = $val; + return $this; + } +} diff --git a/src/Model/MicrosoftTrainingAssignmentMapping.php b/src/Model/MicrosoftTrainingAssignmentMapping.php new file mode 100644 index 00000000000..28a1d37e1b2 --- /dev/null +++ b/src/Model/MicrosoftTrainingAssignmentMapping.php @@ -0,0 +1,99 @@ +setODataType("#microsoft.graph.microsoftTrainingAssignmentMapping"); + } + + + /** + * Gets the assignedTo + * + * @return TrainingAssignedTo|null The assignedTo + */ + public function getAssignedTo() + { + if (array_key_exists("assignedTo", $this->_propDict)) { + if (is_a($this->_propDict["assignedTo"], "\Microsoft\Graph\Model\TrainingAssignedTo") || is_null($this->_propDict["assignedTo"])) { + return $this->_propDict["assignedTo"]; + } else { + $this->_propDict["assignedTo"] = new TrainingAssignedTo($this->_propDict["assignedTo"]); + return $this->_propDict["assignedTo"]; + } + } + return null; + } + + /** + * Sets the assignedTo + * + * @param TrainingAssignedTo $val The value to assign to the assignedTo + * + * @return MicrosoftTrainingAssignmentMapping The MicrosoftTrainingAssignmentMapping + */ + public function setAssignedTo($val) + { + $this->_propDict["assignedTo"] = $val; + return $this; + } + + /** + * Gets the training + * + * @return Training|null The training + */ + public function getTraining() + { + if (array_key_exists("training", $this->_propDict)) { + if (is_a($this->_propDict["training"], "\Microsoft\Graph\Model\Training") || is_null($this->_propDict["training"])) { + return $this->_propDict["training"]; + } else { + $this->_propDict["training"] = new Training($this->_propDict["training"]); + return $this->_propDict["training"]; + } + } + return null; + } + + /** + * Sets the training + * + * @param Training $val The value to assign to the training + * + * @return MicrosoftTrainingAssignmentMapping The MicrosoftTrainingAssignmentMapping + */ + public function setTraining($val) + { + $this->_propDict["training"] = $val; + return $this; + } +} diff --git a/src/Model/NoTrainingNotificationSetting.php b/src/Model/NoTrainingNotificationSetting.php new file mode 100644 index 00000000000..a1e3ef6c85b --- /dev/null +++ b/src/Model/NoTrainingNotificationSetting.php @@ -0,0 +1,68 @@ +setODataType("#microsoft.graph.noTrainingNotificationSetting"); + } + + + /** + * Gets the simulationNotification + * + * @return SimulationNotification|null The simulationNotification + */ + public function getSimulationNotification() + { + if (array_key_exists("simulationNotification", $this->_propDict)) { + if (is_a($this->_propDict["simulationNotification"], "\Microsoft\Graph\Model\SimulationNotification") || is_null($this->_propDict["simulationNotification"])) { + return $this->_propDict["simulationNotification"]; + } else { + $this->_propDict["simulationNotification"] = new SimulationNotification($this->_propDict["simulationNotification"]); + return $this->_propDict["simulationNotification"]; + } + } + return null; + } + + /** + * Sets the simulationNotification + * + * @param SimulationNotification $val The value to assign to the simulationNotification + * + * @return NoTrainingNotificationSetting The NoTrainingNotificationSetting + */ + public function setSimulationNotification($val) + { + $this->_propDict["simulationNotification"] = $val; + return $this; + } +} diff --git a/src/Model/NoTrainingSetting.php b/src/Model/NoTrainingSetting.php new file mode 100644 index 00000000000..aadebf95d72 --- /dev/null +++ b/src/Model/NoTrainingSetting.php @@ -0,0 +1,37 @@ +setODataType("#microsoft.graph.noTrainingSetting"); + } + +} diff --git a/src/Model/NotificationDeliveryFrequency.php b/src/Model/NotificationDeliveryFrequency.php new file mode 100644 index 00000000000..3fd87ebf071 --- /dev/null +++ b/src/Model/NotificationDeliveryFrequency.php @@ -0,0 +1,36 @@ +_propDict)) { + if (is_a($this->_propDict["appScope"], "\Microsoft\Graph\Model\OAuthAppScope") || is_null($this->_propDict["appScope"])) { + return $this->_propDict["appScope"]; + } else { + $this->_propDict["appScope"] = new OAuthAppScope($this->_propDict["appScope"]); + return $this->_propDict["appScope"]; + } + } + return null; + } + + /** + * Sets the appScope + * + * @param OAuthAppScope $val The value to assign to the appScope + * + * @return OAuthConsentAppDetail The OAuthConsentAppDetail + */ + public function setAppScope($val) + { + $this->_propDict["appScope"] = $val; + return $this; + } + /** + * Gets the displayLogo + * + * @return string|null The displayLogo + */ + public function getDisplayLogo() + { + if (array_key_exists("displayLogo", $this->_propDict)) { + return $this->_propDict["displayLogo"]; + } else { + return null; + } + } + + /** + * Sets the displayLogo + * + * @param string $val The value of the displayLogo + * + * @return OAuthConsentAppDetail + */ + public function setDisplayLogo($val) + { + $this->_propDict["displayLogo"] = $val; + return $this; + } + /** + * Gets the displayName + * + * @return string|null The displayName + */ + public function getDisplayName() + { + if (array_key_exists("displayName", $this->_propDict)) { + return $this->_propDict["displayName"]; + } else { + return null; + } + } + + /** + * Sets the displayName + * + * @param string $val The value of the displayName + * + * @return OAuthConsentAppDetail + */ + public function setDisplayName($val) + { + $this->_propDict["displayName"] = $val; + return $this; + } +} diff --git a/src/Model/Onenote.php b/src/Model/Onenote.php index fa191a83a05..6077522f985 100644 --- a/src/Model/Onenote.php +++ b/src/Model/Onenote.php @@ -57,7 +57,7 @@ public function setNotebooks($val) /** * Gets 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. * * @return array|null The operations */ @@ -72,7 +72,7 @@ public function getOperations() /** * Sets 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. * * @param OnenoteOperation[] $val The operations * @@ -117,7 +117,7 @@ public function setPages($val) /** * Gets 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. * * @return array|null The resources */ @@ -132,7 +132,7 @@ public function getResources() /** * Sets 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. * * @param OnenoteResource[] $val The resources * diff --git a/src/Model/OnenoteEntityHierarchyModel.php b/src/Model/OnenoteEntityHierarchyModel.php index 4f23dec75f4..8979144a5fd 100644 --- a/src/Model/OnenoteEntityHierarchyModel.php +++ b/src/Model/OnenoteEntityHierarchyModel.php @@ -26,7 +26,7 @@ class OnenoteEntityHierarchyModel extends OnenoteEntitySchemaObjectModel { /** * Gets the createdBy - * 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. * * @return IdentitySet|null The createdBy */ @@ -45,7 +45,7 @@ public function getCreatedBy() /** * Sets the createdBy - * 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. * * @param IdentitySet $val The createdBy * @@ -88,7 +88,7 @@ public function setDisplayName($val) /** * Gets the lastModifiedBy - * 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. * * @return IdentitySet|null The lastModifiedBy */ @@ -107,7 +107,7 @@ public function getLastModifiedBy() /** * Sets the lastModifiedBy - * 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. * * @param IdentitySet $val The lastModifiedBy * diff --git a/src/Model/OnlineMeeting.php b/src/Model/OnlineMeeting.php index c50d26746a7..602fd65031d 100644 --- a/src/Model/OnlineMeeting.php +++ b/src/Model/OnlineMeeting.php @@ -866,4 +866,32 @@ public function setAttendanceReports($val) return $this; } + + /** + * Gets the transcripts + * + * @return array|null The transcripts + */ + public function getTranscripts() + { + if (array_key_exists("transcripts", $this->_propDict)) { + return $this->_propDict["transcripts"]; + } else { + return null; + } + } + + /** + * Sets the transcripts + * + * @param CallTranscript[] $val The transcripts + * + * @return OnlineMeeting + */ + public function setTranscripts($val) + { + $this->_propDict["transcripts"] = $val; + return $this; + } + } diff --git a/src/Model/ParticipantInfo.php b/src/Model/ParticipantInfo.php index 34c2b1c4919..19c61aed88a 100644 --- a/src/Model/ParticipantInfo.php +++ b/src/Model/ParticipantInfo.php @@ -175,7 +175,7 @@ public function setParticipantId($val) } /** * Gets 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. * * @return string|null The region */ @@ -190,7 +190,7 @@ public function getRegion() /** * Sets 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. * * @param string $val The value of the region * diff --git a/src/Model/Payload.php b/src/Model/Payload.php new file mode 100644 index 00000000000..834fc036025 --- /dev/null +++ b/src/Model/Payload.php @@ -0,0 +1,677 @@ +_propDict)) { + if (is_a($this->_propDict["brand"], "\Microsoft\Graph\Model\PayloadBrand") || is_null($this->_propDict["brand"])) { + return $this->_propDict["brand"]; + } else { + $this->_propDict["brand"] = new PayloadBrand($this->_propDict["brand"]); + return $this->_propDict["brand"]; + } + } + return null; + } + + /** + * Sets the brand + * + * @param PayloadBrand $val The brand + * + * @return Payload + */ + public function setBrand($val) + { + $this->_propDict["brand"] = $val; + return $this; + } + + /** + * Gets the complexity + * + * @return PayloadComplexity|null The complexity + */ + public function getComplexity() + { + if (array_key_exists("complexity", $this->_propDict)) { + if (is_a($this->_propDict["complexity"], "\Microsoft\Graph\Model\PayloadComplexity") || is_null($this->_propDict["complexity"])) { + return $this->_propDict["complexity"]; + } else { + $this->_propDict["complexity"] = new PayloadComplexity($this->_propDict["complexity"]); + return $this->_propDict["complexity"]; + } + } + return null; + } + + /** + * Sets the complexity + * + * @param PayloadComplexity $val The complexity + * + * @return Payload + */ + public function setComplexity($val) + { + $this->_propDict["complexity"] = $val; + return $this; + } + + /** + * Gets the createdBy + * + * @return EmailIdentity|null The createdBy + */ + public function getCreatedBy() + { + if (array_key_exists("createdBy", $this->_propDict)) { + if (is_a($this->_propDict["createdBy"], "\Microsoft\Graph\Model\EmailIdentity") || is_null($this->_propDict["createdBy"])) { + return $this->_propDict["createdBy"]; + } else { + $this->_propDict["createdBy"] = new EmailIdentity($this->_propDict["createdBy"]); + return $this->_propDict["createdBy"]; + } + } + return null; + } + + /** + * Sets the createdBy + * + * @param EmailIdentity $val The createdBy + * + * @return Payload + */ + public function setCreatedBy($val) + { + $this->_propDict["createdBy"] = $val; + return $this; + } + + /** + * Gets the createdDateTime + * + * @return \DateTime|null The createdDateTime + */ + public function getCreatedDateTime() + { + if (array_key_exists("createdDateTime", $this->_propDict)) { + if (is_a($this->_propDict["createdDateTime"], "\DateTime") || is_null($this->_propDict["createdDateTime"])) { + return $this->_propDict["createdDateTime"]; + } else { + $this->_propDict["createdDateTime"] = new \DateTime($this->_propDict["createdDateTime"]); + return $this->_propDict["createdDateTime"]; + } + } + return null; + } + + /** + * Sets the createdDateTime + * + * @param \DateTime $val The createdDateTime + * + * @return Payload + */ + public function setCreatedDateTime($val) + { + $this->_propDict["createdDateTime"] = $val; + return $this; + } + + /** + * Gets the description + * + * @return string|null The description + */ + public function getDescription() + { + if (array_key_exists("description", $this->_propDict)) { + return $this->_propDict["description"]; + } else { + return null; + } + } + + /** + * Sets the description + * + * @param string $val The description + * + * @return Payload + */ + public function setDescription($val) + { + $this->_propDict["description"] = $val; + return $this; + } + + /** + * Gets the detail + * + * @return PayloadDetail|null The detail + */ + public function getDetail() + { + if (array_key_exists("detail", $this->_propDict)) { + if (is_a($this->_propDict["detail"], "\Microsoft\Graph\Model\PayloadDetail") || is_null($this->_propDict["detail"])) { + return $this->_propDict["detail"]; + } else { + $this->_propDict["detail"] = new PayloadDetail($this->_propDict["detail"]); + return $this->_propDict["detail"]; + } + } + return null; + } + + /** + * Sets the detail + * + * @param PayloadDetail $val The detail + * + * @return Payload + */ + public function setDetail($val) + { + $this->_propDict["detail"] = $val; + return $this; + } + + /** + * Gets the displayName + * + * @return string|null The displayName + */ + public function getDisplayName() + { + if (array_key_exists("displayName", $this->_propDict)) { + return $this->_propDict["displayName"]; + } else { + return null; + } + } + + /** + * Sets the displayName + * + * @param string $val The displayName + * + * @return Payload + */ + public function setDisplayName($val) + { + $this->_propDict["displayName"] = $val; + return $this; + } + + /** + * Gets the industry + * + * @return PayloadIndustry|null The industry + */ + public function getIndustry() + { + if (array_key_exists("industry", $this->_propDict)) { + if (is_a($this->_propDict["industry"], "\Microsoft\Graph\Model\PayloadIndustry") || is_null($this->_propDict["industry"])) { + return $this->_propDict["industry"]; + } else { + $this->_propDict["industry"] = new PayloadIndustry($this->_propDict["industry"]); + return $this->_propDict["industry"]; + } + } + return null; + } + + /** + * Sets the industry + * + * @param PayloadIndustry $val The industry + * + * @return Payload + */ + public function setIndustry($val) + { + $this->_propDict["industry"] = $val; + return $this; + } + + /** + * Gets the isAutomated + * + * @return bool|null The isAutomated + */ + public function getIsAutomated() + { + if (array_key_exists("isAutomated", $this->_propDict)) { + return $this->_propDict["isAutomated"]; + } else { + return null; + } + } + + /** + * Sets the isAutomated + * + * @param bool $val The isAutomated + * + * @return Payload + */ + public function setIsAutomated($val) + { + $this->_propDict["isAutomated"] = boolval($val); + return $this; + } + + /** + * Gets the isControversial + * + * @return bool|null The isControversial + */ + public function getIsControversial() + { + if (array_key_exists("isControversial", $this->_propDict)) { + return $this->_propDict["isControversial"]; + } else { + return null; + } + } + + /** + * Sets the isControversial + * + * @param bool $val The isControversial + * + * @return Payload + */ + public function setIsControversial($val) + { + $this->_propDict["isControversial"] = boolval($val); + return $this; + } + + /** + * Gets the isCurrentEvent + * + * @return bool|null The isCurrentEvent + */ + public function getIsCurrentEvent() + { + if (array_key_exists("isCurrentEvent", $this->_propDict)) { + return $this->_propDict["isCurrentEvent"]; + } else { + return null; + } + } + + /** + * Sets the isCurrentEvent + * + * @param bool $val The isCurrentEvent + * + * @return Payload + */ + public function setIsCurrentEvent($val) + { + $this->_propDict["isCurrentEvent"] = boolval($val); + return $this; + } + + /** + * Gets the language + * + * @return string|null The language + */ + public function getLanguage() + { + if (array_key_exists("language", $this->_propDict)) { + return $this->_propDict["language"]; + } else { + return null; + } + } + + /** + * Sets the language + * + * @param string $val The language + * + * @return Payload + */ + public function setLanguage($val) + { + $this->_propDict["language"] = $val; + return $this; + } + + /** + * Gets the lastModifiedBy + * + * @return EmailIdentity|null The lastModifiedBy + */ + public function getLastModifiedBy() + { + if (array_key_exists("lastModifiedBy", $this->_propDict)) { + if (is_a($this->_propDict["lastModifiedBy"], "\Microsoft\Graph\Model\EmailIdentity") || is_null($this->_propDict["lastModifiedBy"])) { + return $this->_propDict["lastModifiedBy"]; + } else { + $this->_propDict["lastModifiedBy"] = new EmailIdentity($this->_propDict["lastModifiedBy"]); + return $this->_propDict["lastModifiedBy"]; + } + } + return null; + } + + /** + * Sets the lastModifiedBy + * + * @param EmailIdentity $val The lastModifiedBy + * + * @return Payload + */ + public function setLastModifiedBy($val) + { + $this->_propDict["lastModifiedBy"] = $val; + return $this; + } + + /** + * Gets the lastModifiedDateTime + * + * @return \DateTime|null The lastModifiedDateTime + */ + public function getLastModifiedDateTime() + { + if (array_key_exists("lastModifiedDateTime", $this->_propDict)) { + if (is_a($this->_propDict["lastModifiedDateTime"], "\DateTime") || is_null($this->_propDict["lastModifiedDateTime"])) { + return $this->_propDict["lastModifiedDateTime"]; + } else { + $this->_propDict["lastModifiedDateTime"] = new \DateTime($this->_propDict["lastModifiedDateTime"]); + return $this->_propDict["lastModifiedDateTime"]; + } + } + return null; + } + + /** + * Sets the lastModifiedDateTime + * + * @param \DateTime $val The lastModifiedDateTime + * + * @return Payload + */ + public function setLastModifiedDateTime($val) + { + $this->_propDict["lastModifiedDateTime"] = $val; + return $this; + } + + /** + * Gets the payloadTags + * + * @return array|null The payloadTags + */ + public function getPayloadTags() + { + if (array_key_exists("payloadTags", $this->_propDict)) { + return $this->_propDict["payloadTags"]; + } else { + return null; + } + } + + /** + * Sets the payloadTags + * + * @param string[] $val The payloadTags + * + * @return Payload + */ + public function setPayloadTags($val) + { + $this->_propDict["payloadTags"] = $val; + return $this; + } + + /** + * Gets the platform + * + * @return PayloadDeliveryPlatform|null The platform + */ + public function getPlatform() + { + if (array_key_exists("platform", $this->_propDict)) { + if (is_a($this->_propDict["platform"], "\Microsoft\Graph\Model\PayloadDeliveryPlatform") || is_null($this->_propDict["platform"])) { + return $this->_propDict["platform"]; + } else { + $this->_propDict["platform"] = new PayloadDeliveryPlatform($this->_propDict["platform"]); + return $this->_propDict["platform"]; + } + } + return null; + } + + /** + * Sets the platform + * + * @param PayloadDeliveryPlatform $val The platform + * + * @return Payload + */ + public function setPlatform($val) + { + $this->_propDict["platform"] = $val; + return $this; + } + + /** + * Gets the predictedCompromiseRate + * + * @return float|null The predictedCompromiseRate + */ + public function getPredictedCompromiseRate() + { + if (array_key_exists("predictedCompromiseRate", $this->_propDict)) { + return $this->_propDict["predictedCompromiseRate"]; + } else { + return null; + } + } + + /** + * Sets the predictedCompromiseRate + * + * @param float $val The predictedCompromiseRate + * + * @return Payload + */ + public function setPredictedCompromiseRate($val) + { + $this->_propDict["predictedCompromiseRate"] = floatval($val); + return $this; + } + + /** + * Gets the simulationAttackType + * + * @return SimulationAttackType|null The simulationAttackType + */ + public function getSimulationAttackType() + { + if (array_key_exists("simulationAttackType", $this->_propDict)) { + if (is_a($this->_propDict["simulationAttackType"], "\Microsoft\Graph\Model\SimulationAttackType") || is_null($this->_propDict["simulationAttackType"])) { + return $this->_propDict["simulationAttackType"]; + } else { + $this->_propDict["simulationAttackType"] = new SimulationAttackType($this->_propDict["simulationAttackType"]); + return $this->_propDict["simulationAttackType"]; + } + } + return null; + } + + /** + * Sets the simulationAttackType + * + * @param SimulationAttackType $val The simulationAttackType + * + * @return Payload + */ + public function setSimulationAttackType($val) + { + $this->_propDict["simulationAttackType"] = $val; + return $this; + } + + /** + * Gets the source + * + * @return SimulationContentSource|null The source + */ + public function getSource() + { + if (array_key_exists("source", $this->_propDict)) { + if (is_a($this->_propDict["source"], "\Microsoft\Graph\Model\SimulationContentSource") || is_null($this->_propDict["source"])) { + return $this->_propDict["source"]; + } else { + $this->_propDict["source"] = new SimulationContentSource($this->_propDict["source"]); + return $this->_propDict["source"]; + } + } + return null; + } + + /** + * Sets the source + * + * @param SimulationContentSource $val The source + * + * @return Payload + */ + public function setSource($val) + { + $this->_propDict["source"] = $val; + return $this; + } + + /** + * Gets the status + * + * @return SimulationContentStatus|null The status + */ + public function getStatus() + { + if (array_key_exists("status", $this->_propDict)) { + if (is_a($this->_propDict["status"], "\Microsoft\Graph\Model\SimulationContentStatus") || is_null($this->_propDict["status"])) { + return $this->_propDict["status"]; + } else { + $this->_propDict["status"] = new SimulationContentStatus($this->_propDict["status"]); + return $this->_propDict["status"]; + } + } + return null; + } + + /** + * Sets the status + * + * @param SimulationContentStatus $val The status + * + * @return Payload + */ + public function setStatus($val) + { + $this->_propDict["status"] = $val; + return $this; + } + + /** + * Gets the technique + * + * @return SimulationAttackTechnique|null The technique + */ + public function getTechnique() + { + if (array_key_exists("technique", $this->_propDict)) { + if (is_a($this->_propDict["technique"], "\Microsoft\Graph\Model\SimulationAttackTechnique") || is_null($this->_propDict["technique"])) { + return $this->_propDict["technique"]; + } else { + $this->_propDict["technique"] = new SimulationAttackTechnique($this->_propDict["technique"]); + return $this->_propDict["technique"]; + } + } + return null; + } + + /** + * Sets the technique + * + * @param SimulationAttackTechnique $val The technique + * + * @return Payload + */ + public function setTechnique($val) + { + $this->_propDict["technique"] = $val; + return $this; + } + + /** + * Gets the theme + * + * @return PayloadTheme|null The theme + */ + public function getTheme() + { + if (array_key_exists("theme", $this->_propDict)) { + if (is_a($this->_propDict["theme"], "\Microsoft\Graph\Model\PayloadTheme") || is_null($this->_propDict["theme"])) { + return $this->_propDict["theme"]; + } else { + $this->_propDict["theme"] = new PayloadTheme($this->_propDict["theme"]); + return $this->_propDict["theme"]; + } + } + return null; + } + + /** + * Sets the theme + * + * @param PayloadTheme $val The theme + * + * @return Payload + */ + public function setTheme($val) + { + $this->_propDict["theme"] = $val; + return $this; + } + +} diff --git a/src/Model/PayloadBrand.php b/src/Model/PayloadBrand.php new file mode 100644 index 00000000000..10ce0a1d3c8 --- /dev/null +++ b/src/Model/PayloadBrand.php @@ -0,0 +1,53 @@ +_propDict)) { + if (is_a($this->_propDict["coachmarkLocation"], "\Microsoft\Graph\Model\CoachmarkLocation") || is_null($this->_propDict["coachmarkLocation"])) { + return $this->_propDict["coachmarkLocation"]; + } else { + $this->_propDict["coachmarkLocation"] = new CoachmarkLocation($this->_propDict["coachmarkLocation"]); + return $this->_propDict["coachmarkLocation"]; + } + } + return null; + } + + /** + * Sets the coachmarkLocation + * + * @param CoachmarkLocation $val The value to assign to the coachmarkLocation + * + * @return PayloadCoachmark The PayloadCoachmark + */ + public function setCoachmarkLocation($val) + { + $this->_propDict["coachmarkLocation"] = $val; + return $this; + } + /** + * Gets the description + * + * @return string|null The description + */ + public function getDescription() + { + if (array_key_exists("description", $this->_propDict)) { + return $this->_propDict["description"]; + } else { + return null; + } + } + + /** + * Sets the description + * + * @param string $val The value of the description + * + * @return PayloadCoachmark + */ + public function setDescription($val) + { + $this->_propDict["description"] = $val; + return $this; + } + /** + * Gets the indicator + * + * @return string|null The indicator + */ + public function getIndicator() + { + if (array_key_exists("indicator", $this->_propDict)) { + return $this->_propDict["indicator"]; + } else { + return null; + } + } + + /** + * Sets the indicator + * + * @param string $val The value of the indicator + * + * @return PayloadCoachmark + */ + public function setIndicator($val) + { + $this->_propDict["indicator"] = $val; + return $this; + } + /** + * Gets the isValid + * + * @return bool|null The isValid + */ + public function getIsValid() + { + if (array_key_exists("isValid", $this->_propDict)) { + return $this->_propDict["isValid"]; + } else { + return null; + } + } + + /** + * Sets the isValid + * + * @param bool $val The value of the isValid + * + * @return PayloadCoachmark + */ + public function setIsValid($val) + { + $this->_propDict["isValid"] = $val; + return $this; + } + /** + * Gets the language + * + * @return string|null The language + */ + public function getLanguage() + { + if (array_key_exists("language", $this->_propDict)) { + return $this->_propDict["language"]; + } else { + return null; + } + } + + /** + * Sets the language + * + * @param string $val The value of the language + * + * @return PayloadCoachmark + */ + public function setLanguage($val) + { + $this->_propDict["language"] = $val; + return $this; + } + /** + * Gets the order + * + * @return string|null The order + */ + public function getOrder() + { + if (array_key_exists("order", $this->_propDict)) { + return $this->_propDict["order"]; + } else { + return null; + } + } + + /** + * Sets the order + * + * @param string $val The value of the order + * + * @return PayloadCoachmark + */ + public function setOrder($val) + { + $this->_propDict["order"] = $val; + return $this; + } +} diff --git a/src/Model/PayloadComplexity.php b/src/Model/PayloadComplexity.php new file mode 100644 index 00000000000..00895252ffc --- /dev/null +++ b/src/Model/PayloadComplexity.php @@ -0,0 +1,37 @@ +_propDict)) { + if (is_a($this->_propDict["coachmarks"], "\Microsoft\Graph\Model\PayloadCoachmark") || is_null($this->_propDict["coachmarks"])) { + return $this->_propDict["coachmarks"]; + } else { + $this->_propDict["coachmarks"] = new PayloadCoachmark($this->_propDict["coachmarks"]); + return $this->_propDict["coachmarks"]; + } + } + return null; + } + + /** + * Sets the coachmarks + * + * @param PayloadCoachmark $val The value to assign to the coachmarks + * + * @return PayloadDetail The PayloadDetail + */ + public function setCoachmarks($val) + { + $this->_propDict["coachmarks"] = $val; + return $this; + } + /** + * Gets the content + * + * @return string|null The content + */ + public function getContent() + { + if (array_key_exists("content", $this->_propDict)) { + return $this->_propDict["content"]; + } else { + return null; + } + } + + /** + * Sets the content + * + * @param string $val The value of the content + * + * @return PayloadDetail + */ + public function setContent($val) + { + $this->_propDict["content"] = $val; + return $this; + } + /** + * Gets the phishingUrl + * + * @return string|null The phishingUrl + */ + public function getPhishingUrl() + { + if (array_key_exists("phishingUrl", $this->_propDict)) { + return $this->_propDict["phishingUrl"]; + } else { + return null; + } + } + + /** + * Sets the phishingUrl + * + * @param string $val The value of the phishingUrl + * + * @return PayloadDetail + */ + public function setPhishingUrl($val) + { + $this->_propDict["phishingUrl"] = $val; + return $this; + } +} diff --git a/src/Model/PayloadIndustry.php b/src/Model/PayloadIndustry.php new file mode 100644 index 00000000000..4cf6a250370 --- /dev/null +++ b/src/Model/PayloadIndustry.php @@ -0,0 +1,54 @@ +_propDict)) { + if (is_a($this->_propDict["deliveryPreference"], "\Microsoft\Graph\Model\NotificationDeliveryPreference") || is_null($this->_propDict["deliveryPreference"])) { + return $this->_propDict["deliveryPreference"]; + } else { + $this->_propDict["deliveryPreference"] = new NotificationDeliveryPreference($this->_propDict["deliveryPreference"]); + return $this->_propDict["deliveryPreference"]; + } + } + return null; + } + + /** + * Sets the deliveryPreference + * + * @param NotificationDeliveryPreference $val The value to assign to the deliveryPreference + * + * @return PositiveReinforcementNotification The PositiveReinforcementNotification + */ + public function setDeliveryPreference($val) + { + $this->_propDict["deliveryPreference"] = $val; + return $this; + } +} diff --git a/src/Model/Presence.php b/src/Model/Presence.php index 08ecdbd1dff..f4358e153e7 100644 --- a/src/Model/Presence.php +++ b/src/Model/Presence.php @@ -84,6 +84,7 @@ public function setAvailability($val) /** * Gets the statusMessage + * The presence status message of a user. * * @return PresenceStatusMessage|null The statusMessage */ @@ -102,6 +103,7 @@ public function getStatusMessage() /** * Sets the statusMessage + * The presence status message of a user. * * @param PresenceStatusMessage $val The statusMessage * diff --git a/src/Model/PresenceStatusMessage.php b/src/Model/PresenceStatusMessage.php index 28ee8f927b3..af0e43850b3 100644 --- a/src/Model/PresenceStatusMessage.php +++ b/src/Model/PresenceStatusMessage.php @@ -26,6 +26,7 @@ class PresenceStatusMessage extends Entity /** * Gets the expiryDateTime + * 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. * * @return DateTimeTimeZone|null The expiryDateTime */ @@ -44,6 +45,7 @@ public function getExpiryDateTime() /** * Sets the expiryDateTime + * 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. * * @param DateTimeTimeZone $val The value to assign to the expiryDateTime * @@ -57,6 +59,7 @@ public function setExpiryDateTime($val) /** * Gets the message + * Status message item. The only supported format currently is message.contentType = 'text'. * * @return ItemBody|null The message */ @@ -75,6 +78,7 @@ public function getMessage() /** * Sets the message + * Status message item. The only supported format currently is message.contentType = 'text'. * * @param ItemBody $val The value to assign to the message * @@ -88,6 +92,7 @@ public function setMessage($val) /** * Gets the publishedDateTime + * Time in which the status message was published.Read-only.publishedDateTime is not available when you request the presence of another user. * * @return \DateTime|null The publishedDateTime */ @@ -106,6 +111,7 @@ public function getPublishedDateTime() /** * Sets the publishedDateTime + * Time in which the status message was published.Read-only.publishedDateTime is not available when you request the presence of another user. * * @param \DateTime $val The value to assign to the publishedDateTime * diff --git a/src/Model/ProvisioningErrorInfo.php b/src/Model/ProvisioningErrorInfo.php index f80692e608b..0e3df26358d 100644 --- a/src/Model/ProvisioningErrorInfo.php +++ b/src/Model/ProvisioningErrorInfo.php @@ -25,7 +25,7 @@ class ProvisioningErrorInfo extends Entity { /** * Gets the additionalDetails - * Additional details in case of error. + * Additional details if there's error. * * @return string|null The additionalDetails */ @@ -40,7 +40,7 @@ public function getAdditionalDetails() /** * Sets the additionalDetails - * Additional details in case of error. + * Additional details if there's error. * * @param string $val The value of the additionalDetails * diff --git a/src/Model/RubricLevel.php b/src/Model/RubricLevel.php index 5a40227e738..b006d026da6 100644 --- a/src/Model/RubricLevel.php +++ b/src/Model/RubricLevel.php @@ -87,7 +87,7 @@ public function setDisplayName($val) /** * Gets 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. * * @return EducationAssignmentGradeType|null The grading */ @@ -106,7 +106,7 @@ public function getGrading() /** * Sets 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. * * @param EducationAssignmentGradeType $val The value to assign to the grading * diff --git a/src/Model/SearchAlterationOptions.php b/src/Model/SearchAlterationOptions.php index 7157a5f9201..4ca2b0323fb 100644 --- a/src/Model/SearchAlterationOptions.php +++ b/src/Model/SearchAlterationOptions.php @@ -25,7 +25,7 @@ class SearchAlterationOptions extends Entity { /** * Gets the enableModification - * 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. * * @return bool|null The enableModification */ @@ -40,7 +40,7 @@ public function getEnableModification() /** * Sets the enableModification - * 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. * * @param bool $val The value of the enableModification * @@ -53,7 +53,7 @@ public function setEnableModification($val) } /** * Gets the enableSuggestion - * 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. * * @return bool|null The enableSuggestion */ @@ -68,7 +68,7 @@ public function getEnableSuggestion() /** * Sets the enableSuggestion - * 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. * * @param bool $val The value of the enableSuggestion * diff --git a/src/Model/SearchHitsContainer.php b/src/Model/SearchHitsContainer.php index 4b6976aeb59..5ebe06886f7 100644 --- a/src/Model/SearchHitsContainer.php +++ b/src/Model/SearchHitsContainer.php @@ -117,7 +117,7 @@ public function setMoreResultsAvailable($val) } /** * Gets 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. * * @return int|null The total */ @@ -132,7 +132,7 @@ public function getTotal() /** * Sets 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. * * @param int $val The value of the total * diff --git a/src/Model/SelfServiceSignUpAuthenticationFlowConfiguration.php b/src/Model/SelfServiceSignUpAuthenticationFlowConfiguration.php index 796e922739c..2c59e8c6358 100644 --- a/src/Model/SelfServiceSignUpAuthenticationFlowConfiguration.php +++ b/src/Model/SelfServiceSignUpAuthenticationFlowConfiguration.php @@ -25,7 +25,7 @@ class SelfServiceSignUpAuthenticationFlowConfiguration extends Entity { /** * Gets the isEnabled - * 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. * * @return bool|null The isEnabled */ @@ -40,7 +40,7 @@ public function getIsEnabled() /** * Sets the isEnabled - * 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. * * @param bool $val The value of the isEnabled * diff --git a/src/Model/Simulation.php b/src/Model/Simulation.php index f5ed4f81cab..3549d8393fe 100644 --- a/src/Model/Simulation.php +++ b/src/Model/Simulation.php @@ -276,6 +276,126 @@ public function setDisplayName($val) return $this; } + /** + * Gets the durationInDays + * + * @return int|null The durationInDays + */ + public function getDurationInDays() + { + if (array_key_exists("durationInDays", $this->_propDict)) { + return $this->_propDict["durationInDays"]; + } else { + return null; + } + } + + /** + * Sets the durationInDays + * + * @param int $val The durationInDays + * + * @return Simulation + */ + public function setDurationInDays($val) + { + $this->_propDict["durationInDays"] = intval($val); + return $this; + } + + /** + * Gets the endUserNotificationSetting + * + * @return EndUserNotificationSetting|null The endUserNotificationSetting + */ + public function getEndUserNotificationSetting() + { + if (array_key_exists("endUserNotificationSetting", $this->_propDict)) { + if (is_a($this->_propDict["endUserNotificationSetting"], "\Microsoft\Graph\Model\EndUserNotificationSetting") || is_null($this->_propDict["endUserNotificationSetting"])) { + return $this->_propDict["endUserNotificationSetting"]; + } else { + $this->_propDict["endUserNotificationSetting"] = new EndUserNotificationSetting($this->_propDict["endUserNotificationSetting"]); + return $this->_propDict["endUserNotificationSetting"]; + } + } + return null; + } + + /** + * Sets the endUserNotificationSetting + * + * @param EndUserNotificationSetting $val The endUserNotificationSetting + * + * @return Simulation + */ + public function setEndUserNotificationSetting($val) + { + $this->_propDict["endUserNotificationSetting"] = $val; + return $this; + } + + /** + * Gets the excludedAccountTarget + * + * @return AccountTargetContent|null The excludedAccountTarget + */ + public function getExcludedAccountTarget() + { + if (array_key_exists("excludedAccountTarget", $this->_propDict)) { + if (is_a($this->_propDict["excludedAccountTarget"], "\Microsoft\Graph\Model\AccountTargetContent") || is_null($this->_propDict["excludedAccountTarget"])) { + return $this->_propDict["excludedAccountTarget"]; + } else { + $this->_propDict["excludedAccountTarget"] = new AccountTargetContent($this->_propDict["excludedAccountTarget"]); + return $this->_propDict["excludedAccountTarget"]; + } + } + return null; + } + + /** + * Sets the excludedAccountTarget + * + * @param AccountTargetContent $val The excludedAccountTarget + * + * @return Simulation + */ + public function setExcludedAccountTarget($val) + { + $this->_propDict["excludedAccountTarget"] = $val; + return $this; + } + + /** + * Gets the includedAccountTarget + * + * @return AccountTargetContent|null The includedAccountTarget + */ + public function getIncludedAccountTarget() + { + if (array_key_exists("includedAccountTarget", $this->_propDict)) { + if (is_a($this->_propDict["includedAccountTarget"], "\Microsoft\Graph\Model\AccountTargetContent") || is_null($this->_propDict["includedAccountTarget"])) { + return $this->_propDict["includedAccountTarget"]; + } else { + $this->_propDict["includedAccountTarget"] = new AccountTargetContent($this->_propDict["includedAccountTarget"]); + return $this->_propDict["includedAccountTarget"]; + } + } + return null; + } + + /** + * Sets the includedAccountTarget + * + * @param AccountTargetContent $val The includedAccountTarget + * + * @return Simulation + */ + public function setIncludedAccountTarget($val) + { + $this->_propDict["includedAccountTarget"] = $val; + return $this; + } + /** * Gets the isAutomated * Flag that represents if the attack simulation and training campaign was created from a simulation automation flow. Supports $filter and $orderby. @@ -404,6 +524,37 @@ public function setLaunchDateTime($val) return $this; } + /** + * Gets the oAuthConsentAppDetail + * + * @return OAuthConsentAppDetail|null The oAuthConsentAppDetail + */ + public function getOAuthConsentAppDetail() + { + if (array_key_exists("oAuthConsentAppDetail", $this->_propDict)) { + if (is_a($this->_propDict["oAuthConsentAppDetail"], "\Microsoft\Graph\Model\OAuthConsentAppDetail") || is_null($this->_propDict["oAuthConsentAppDetail"])) { + return $this->_propDict["oAuthConsentAppDetail"]; + } else { + $this->_propDict["oAuthConsentAppDetail"] = new OAuthConsentAppDetail($this->_propDict["oAuthConsentAppDetail"]); + return $this->_propDict["oAuthConsentAppDetail"]; + } + } + return null; + } + + /** + * Sets the oAuthConsentAppDetail + * + * @param OAuthConsentAppDetail $val The oAuthConsentAppDetail + * + * @return Simulation + */ + public function setOAuthConsentAppDetail($val) + { + $this->_propDict["oAuthConsentAppDetail"] = $val; + return $this; + } + /** * Gets the payloadDeliveryPlatform * Method of delivery of the phishing payload used in the attack simulation and training campaign. Possible values are: unknown, sms, email, teams, unknownFutureValue. @@ -503,4 +654,128 @@ public function setStatus($val) return $this; } + /** + * Gets the trainingSetting + * + * @return TrainingSetting|null The trainingSetting + */ + public function getTrainingSetting() + { + if (array_key_exists("trainingSetting", $this->_propDict)) { + if (is_a($this->_propDict["trainingSetting"], "\Microsoft\Graph\Model\TrainingSetting") || is_null($this->_propDict["trainingSetting"])) { + return $this->_propDict["trainingSetting"]; + } else { + $this->_propDict["trainingSetting"] = new TrainingSetting($this->_propDict["trainingSetting"]); + return $this->_propDict["trainingSetting"]; + } + } + return null; + } + + /** + * Sets the trainingSetting + * + * @param TrainingSetting $val The trainingSetting + * + * @return Simulation + */ + public function setTrainingSetting($val) + { + $this->_propDict["trainingSetting"] = $val; + return $this; + } + + /** + * Gets the landingPage + * + * @return LandingPage|null The landingPage + */ + public function getLandingPage() + { + if (array_key_exists("landingPage", $this->_propDict)) { + if (is_a($this->_propDict["landingPage"], "\Microsoft\Graph\Model\LandingPage") || is_null($this->_propDict["landingPage"])) { + return $this->_propDict["landingPage"]; + } else { + $this->_propDict["landingPage"] = new LandingPage($this->_propDict["landingPage"]); + return $this->_propDict["landingPage"]; + } + } + return null; + } + + /** + * Sets the landingPage + * + * @param LandingPage $val The landingPage + * + * @return Simulation + */ + public function setLandingPage($val) + { + $this->_propDict["landingPage"] = $val; + return $this; + } + + /** + * Gets the loginPage + * + * @return LoginPage|null The loginPage + */ + public function getLoginPage() + { + if (array_key_exists("loginPage", $this->_propDict)) { + if (is_a($this->_propDict["loginPage"], "\Microsoft\Graph\Model\LoginPage") || is_null($this->_propDict["loginPage"])) { + return $this->_propDict["loginPage"]; + } else { + $this->_propDict["loginPage"] = new LoginPage($this->_propDict["loginPage"]); + return $this->_propDict["loginPage"]; + } + } + return null; + } + + /** + * Sets the loginPage + * + * @param LoginPage $val The loginPage + * + * @return Simulation + */ + public function setLoginPage($val) + { + $this->_propDict["loginPage"] = $val; + return $this; + } + + /** + * Gets the payload + * + * @return Payload|null The payload + */ + public function getPayload() + { + if (array_key_exists("payload", $this->_propDict)) { + if (is_a($this->_propDict["payload"], "\Microsoft\Graph\Model\Payload") || is_null($this->_propDict["payload"])) { + return $this->_propDict["payload"]; + } else { + $this->_propDict["payload"] = new Payload($this->_propDict["payload"]); + return $this->_propDict["payload"]; + } + } + return null; + } + + /** + * Sets the payload + * + * @param Payload $val The payload + * + * @return Simulation + */ + public function setPayload($val) + { + $this->_propDict["payload"] = $val; + return $this; + } + } diff --git a/src/Model/SimulationContentSource.php b/src/Model/SimulationContentSource.php new file mode 100644 index 00000000000..923600c8b5a --- /dev/null +++ b/src/Model/SimulationContentSource.php @@ -0,0 +1,36 @@ +_propDict)) { + if (is_a($this->_propDict["targettedUserType"], "\Microsoft\Graph\Model\TargettedUserType") || is_null($this->_propDict["targettedUserType"])) { + return $this->_propDict["targettedUserType"]; + } else { + $this->_propDict["targettedUserType"] = new TargettedUserType($this->_propDict["targettedUserType"]); + return $this->_propDict["targettedUserType"]; + } + } + return null; + } + + /** + * Sets the targettedUserType + * + * @param TargettedUserType $val The value to assign to the targettedUserType + * + * @return SimulationNotification The SimulationNotification + */ + public function setTargettedUserType($val) + { + $this->_propDict["targettedUserType"] = $val; + return $this; + } +} diff --git a/src/Model/Subscription.php b/src/Model/Subscription.php index 9fc39c42fb2..c10e9a2b110 100644 --- a/src/Model/Subscription.php +++ b/src/Model/Subscription.php @@ -84,7 +84,7 @@ public function setChangeType($val) /** * Gets the clientState - * 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. * * @return string|null The clientState */ @@ -99,7 +99,7 @@ public function getClientState() /** * Sets the clientState - * 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. * * @param string $val The clientState * diff --git a/src/Model/Synchronization.php b/src/Model/Synchronization.php index a17488d4a1d..1c9059705c0 100644 --- a/src/Model/Synchronization.php +++ b/src/Model/Synchronization.php @@ -87,7 +87,7 @@ public function setJobs($val) /** * Gets the templates - * Pre-configured synchronization settings for a particular application. + * Preconfigured synchronization settings for a particular application. * * @return array|null The templates */ @@ -102,7 +102,7 @@ public function getTemplates() /** * Sets the templates - * Pre-configured synchronization settings for a particular application. + * Preconfigured synchronization settings for a particular application. * * @param SynchronizationTemplate[] $val The templates * diff --git a/src/Model/SynchronizationJobRestartCriteria.php b/src/Model/SynchronizationJobRestartCriteria.php index 82ddd7347aa..11693da52c7 100644 --- a/src/Model/SynchronizationJobRestartCriteria.php +++ b/src/Model/SynchronizationJobRestartCriteria.php @@ -26,7 +26,7 @@ class SynchronizationJobRestartCriteria extends Entity /** * Gets the resetScope - * 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. * * @return SynchronizationJobRestartScope|null The resetScope */ @@ -45,7 +45,7 @@ public function getResetScope() /** * Sets the resetScope - * 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. * * @param SynchronizationJobRestartScope $val The value to assign to the resetScope * diff --git a/src/Model/SynchronizationRule.php b/src/Model/SynchronizationRule.php index 5f997399c0e..6a5108bac4e 100644 --- a/src/Model/SynchronizationRule.php +++ b/src/Model/SynchronizationRule.php @@ -56,7 +56,7 @@ public function setContainerFilter($val) } /** * Gets 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. * * @return bool|null The editable */ @@ -71,7 +71,7 @@ public function getEditable() /** * Sets 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. * * @param bool $val The value of the editable * @@ -144,7 +144,7 @@ public function setId($val) /** * Gets 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. * * @return StringKeyStringValuePair|null The metadata */ @@ -163,7 +163,7 @@ public function getMetadata() /** * Sets 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. * * @param StringKeyStringValuePair $val The value to assign to the metadata * diff --git a/src/Model/SynchronizationSchedule.php b/src/Model/SynchronizationSchedule.php index a421a015996..bba3a3aa61a 100644 --- a/src/Model/SynchronizationSchedule.php +++ b/src/Model/SynchronizationSchedule.php @@ -26,7 +26,7 @@ class SynchronizationSchedule extends Entity /** * Gets 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. * * @return \DateTime|null The expiration */ @@ -45,7 +45,7 @@ public function getExpiration() /** * Sets 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. * * @param \DateTime $val The value to assign to the expiration * @@ -59,7 +59,7 @@ public function setExpiration($val) /** * Gets 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. * * @return \DateInterval|null The interval */ @@ -78,7 +78,7 @@ public function getInterval() /** * Sets 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. * * @param \DateInterval $val The value to assign to the interval * diff --git a/src/Model/TargettedUserType.php b/src/Model/TargettedUserType.php new file mode 100644 index 00000000000..05d33449b1f --- /dev/null +++ b/src/Model/TargettedUserType.php @@ -0,0 +1,37 @@ +_propDict)) { + if (is_a($this->_propDict["availabilityStatus"], "\Microsoft\Graph\Model\TrainingAvailabilityStatus") || is_null($this->_propDict["availabilityStatus"])) { + return $this->_propDict["availabilityStatus"]; + } else { + $this->_propDict["availabilityStatus"] = new TrainingAvailabilityStatus($this->_propDict["availabilityStatus"]); + return $this->_propDict["availabilityStatus"]; + } + } + return null; + } + + /** + * Sets the availabilityStatus + * + * @param TrainingAvailabilityStatus $val The availabilityStatus + * + * @return Training + */ + public function setAvailabilityStatus($val) + { + $this->_propDict["availabilityStatus"] = $val; + return $this; + } + + /** + * Gets the createdBy + * + * @return EmailIdentity|null The createdBy + */ + public function getCreatedBy() + { + if (array_key_exists("createdBy", $this->_propDict)) { + if (is_a($this->_propDict["createdBy"], "\Microsoft\Graph\Model\EmailIdentity") || is_null($this->_propDict["createdBy"])) { + return $this->_propDict["createdBy"]; + } else { + $this->_propDict["createdBy"] = new EmailIdentity($this->_propDict["createdBy"]); + return $this->_propDict["createdBy"]; + } + } + return null; + } + + /** + * Sets the createdBy + * + * @param EmailIdentity $val The createdBy + * + * @return Training + */ + public function setCreatedBy($val) + { + $this->_propDict["createdBy"] = $val; + return $this; + } + + /** + * Gets the createdDateTime + * + * @return \DateTime|null The createdDateTime + */ + public function getCreatedDateTime() + { + if (array_key_exists("createdDateTime", $this->_propDict)) { + if (is_a($this->_propDict["createdDateTime"], "\DateTime") || is_null($this->_propDict["createdDateTime"])) { + return $this->_propDict["createdDateTime"]; + } else { + $this->_propDict["createdDateTime"] = new \DateTime($this->_propDict["createdDateTime"]); + return $this->_propDict["createdDateTime"]; + } + } + return null; + } + + /** + * Sets the createdDateTime + * + * @param \DateTime $val The createdDateTime + * + * @return Training + */ + public function setCreatedDateTime($val) + { + $this->_propDict["createdDateTime"] = $val; + return $this; + } + + /** + * Gets the description + * + * @return string|null The description + */ + public function getDescription() + { + if (array_key_exists("description", $this->_propDict)) { + return $this->_propDict["description"]; + } else { + return null; + } + } + + /** + * Sets the description + * + * @param string $val The description + * + * @return Training + */ + public function setDescription($val) + { + $this->_propDict["description"] = $val; + return $this; + } + + /** + * Gets the displayName + * + * @return string|null The displayName + */ + public function getDisplayName() + { + if (array_key_exists("displayName", $this->_propDict)) { + return $this->_propDict["displayName"]; + } else { + return null; + } + } + + /** + * Sets the displayName + * + * @param string $val The displayName + * + * @return Training + */ + public function setDisplayName($val) + { + $this->_propDict["displayName"] = $val; + return $this; + } + + /** + * Gets the durationInMinutes + * + * @return int|null The durationInMinutes + */ + public function getDurationInMinutes() + { + if (array_key_exists("durationInMinutes", $this->_propDict)) { + return $this->_propDict["durationInMinutes"]; + } else { + return null; + } + } + + /** + * Sets the durationInMinutes + * + * @param int $val The durationInMinutes + * + * @return Training + */ + public function setDurationInMinutes($val) + { + $this->_propDict["durationInMinutes"] = intval($val); + return $this; + } + + /** + * Gets the hasEvaluation + * + * @return bool|null The hasEvaluation + */ + public function getHasEvaluation() + { + if (array_key_exists("hasEvaluation", $this->_propDict)) { + return $this->_propDict["hasEvaluation"]; + } else { + return null; + } + } + + /** + * Sets the hasEvaluation + * + * @param bool $val The hasEvaluation + * + * @return Training + */ + public function setHasEvaluation($val) + { + $this->_propDict["hasEvaluation"] = boolval($val); + return $this; + } + + /** + * Gets the lastModifiedBy + * + * @return EmailIdentity|null The lastModifiedBy + */ + public function getLastModifiedBy() + { + if (array_key_exists("lastModifiedBy", $this->_propDict)) { + if (is_a($this->_propDict["lastModifiedBy"], "\Microsoft\Graph\Model\EmailIdentity") || is_null($this->_propDict["lastModifiedBy"])) { + return $this->_propDict["lastModifiedBy"]; + } else { + $this->_propDict["lastModifiedBy"] = new EmailIdentity($this->_propDict["lastModifiedBy"]); + return $this->_propDict["lastModifiedBy"]; + } + } + return null; + } + + /** + * Sets the lastModifiedBy + * + * @param EmailIdentity $val The lastModifiedBy + * + * @return Training + */ + public function setLastModifiedBy($val) + { + $this->_propDict["lastModifiedBy"] = $val; + return $this; + } + + /** + * Gets the lastModifiedDateTime + * + * @return \DateTime|null The lastModifiedDateTime + */ + public function getLastModifiedDateTime() + { + if (array_key_exists("lastModifiedDateTime", $this->_propDict)) { + if (is_a($this->_propDict["lastModifiedDateTime"], "\DateTime") || is_null($this->_propDict["lastModifiedDateTime"])) { + return $this->_propDict["lastModifiedDateTime"]; + } else { + $this->_propDict["lastModifiedDateTime"] = new \DateTime($this->_propDict["lastModifiedDateTime"]); + return $this->_propDict["lastModifiedDateTime"]; + } + } + return null; + } + + /** + * Sets the lastModifiedDateTime + * + * @param \DateTime $val The lastModifiedDateTime + * + * @return Training + */ + public function setLastModifiedDateTime($val) + { + $this->_propDict["lastModifiedDateTime"] = $val; + return $this; + } + + /** + * Gets the source + * + * @return SimulationContentSource|null The source + */ + public function getSource() + { + if (array_key_exists("source", $this->_propDict)) { + if (is_a($this->_propDict["source"], "\Microsoft\Graph\Model\SimulationContentSource") || is_null($this->_propDict["source"])) { + return $this->_propDict["source"]; + } else { + $this->_propDict["source"] = new SimulationContentSource($this->_propDict["source"]); + return $this->_propDict["source"]; + } + } + return null; + } + + /** + * Sets the source + * + * @param SimulationContentSource $val The source + * + * @return Training + */ + public function setSource($val) + { + $this->_propDict["source"] = $val; + return $this; + } + + /** + * Gets the supportedLocales + * + * @return array|null The supportedLocales + */ + public function getSupportedLocales() + { + if (array_key_exists("supportedLocales", $this->_propDict)) { + return $this->_propDict["supportedLocales"]; + } else { + return null; + } + } + + /** + * Sets the supportedLocales + * + * @param string[] $val The supportedLocales + * + * @return Training + */ + public function setSupportedLocales($val) + { + $this->_propDict["supportedLocales"] = $val; + return $this; + } + + /** + * Gets the tags + * + * @return array|null The tags + */ + public function getTags() + { + if (array_key_exists("tags", $this->_propDict)) { + return $this->_propDict["tags"]; + } else { + return null; + } + } + + /** + * Sets the tags + * + * @param string[] $val The tags + * + * @return Training + */ + public function setTags($val) + { + $this->_propDict["tags"] = $val; + return $this; + } + + /** + * Gets the type + * + * @return TrainingType|null The type + */ + public function getType() + { + if (array_key_exists("type", $this->_propDict)) { + if (is_a($this->_propDict["type"], "\Microsoft\Graph\Model\TrainingType") || is_null($this->_propDict["type"])) { + return $this->_propDict["type"]; + } else { + $this->_propDict["type"] = new TrainingType($this->_propDict["type"]); + return $this->_propDict["type"]; + } + } + return null; + } + + /** + * Sets the type + * + * @param TrainingType $val The type + * + * @return Training + */ + public function setType($val) + { + $this->_propDict["type"] = $val; + return $this; + } + + + /** + * Gets the languageDetails + * + * @return array|null The languageDetails + */ + public function getLanguageDetails() + { + if (array_key_exists("languageDetails", $this->_propDict)) { + return $this->_propDict["languageDetails"]; + } else { + return null; + } + } + + /** + * Sets the languageDetails + * + * @param TrainingLanguageDetail[] $val The languageDetails + * + * @return Training + */ + public function setLanguageDetails($val) + { + $this->_propDict["languageDetails"] = $val; + return $this; + } + +} diff --git a/src/Model/TrainingAssignedTo.php b/src/Model/TrainingAssignedTo.php new file mode 100644 index 00000000000..8a534289bba --- /dev/null +++ b/src/Model/TrainingAssignedTo.php @@ -0,0 +1,40 @@ +_propDict)) { + return $this->_propDict["content"]; + } else { + return null; + } + } + + /** + * Sets the content + * + * @param string $val The content + * + * @return TrainingLanguageDetail + */ + public function setContent($val) + { + $this->_propDict["content"] = $val; + return $this; + } + + /** + * Gets the createdBy + * + * @return EmailIdentity|null The createdBy + */ + public function getCreatedBy() + { + if (array_key_exists("createdBy", $this->_propDict)) { + if (is_a($this->_propDict["createdBy"], "\Microsoft\Graph\Model\EmailIdentity") || is_null($this->_propDict["createdBy"])) { + return $this->_propDict["createdBy"]; + } else { + $this->_propDict["createdBy"] = new EmailIdentity($this->_propDict["createdBy"]); + return $this->_propDict["createdBy"]; + } + } + return null; + } + + /** + * Sets the createdBy + * + * @param EmailIdentity $val The createdBy + * + * @return TrainingLanguageDetail + */ + public function setCreatedBy($val) + { + $this->_propDict["createdBy"] = $val; + return $this; + } + + /** + * Gets the createdDateTime + * + * @return \DateTime|null The createdDateTime + */ + public function getCreatedDateTime() + { + if (array_key_exists("createdDateTime", $this->_propDict)) { + if (is_a($this->_propDict["createdDateTime"], "\DateTime") || is_null($this->_propDict["createdDateTime"])) { + return $this->_propDict["createdDateTime"]; + } else { + $this->_propDict["createdDateTime"] = new \DateTime($this->_propDict["createdDateTime"]); + return $this->_propDict["createdDateTime"]; + } + } + return null; + } + + /** + * Sets the createdDateTime + * + * @param \DateTime $val The createdDateTime + * + * @return TrainingLanguageDetail + */ + public function setCreatedDateTime($val) + { + $this->_propDict["createdDateTime"] = $val; + return $this; + } + + /** + * Gets the description + * + * @return string|null The description + */ + public function getDescription() + { + if (array_key_exists("description", $this->_propDict)) { + return $this->_propDict["description"]; + } else { + return null; + } + } + + /** + * Sets the description + * + * @param string $val The description + * + * @return TrainingLanguageDetail + */ + public function setDescription($val) + { + $this->_propDict["description"] = $val; + return $this; + } + + /** + * Gets the displayName + * + * @return string|null The displayName + */ + public function getDisplayName() + { + if (array_key_exists("displayName", $this->_propDict)) { + return $this->_propDict["displayName"]; + } else { + return null; + } + } + + /** + * Sets the displayName + * + * @param string $val The displayName + * + * @return TrainingLanguageDetail + */ + public function setDisplayName($val) + { + $this->_propDict["displayName"] = $val; + return $this; + } + + /** + * Gets the isDefaultLangauge + * + * @return bool|null The isDefaultLangauge + */ + public function getIsDefaultLangauge() + { + if (array_key_exists("isDefaultLangauge", $this->_propDict)) { + return $this->_propDict["isDefaultLangauge"]; + } else { + return null; + } + } + + /** + * Sets the isDefaultLangauge + * + * @param bool $val The isDefaultLangauge + * + * @return TrainingLanguageDetail + */ + public function setIsDefaultLangauge($val) + { + $this->_propDict["isDefaultLangauge"] = boolval($val); + return $this; + } + + /** + * Gets the lastModifiedBy + * + * @return EmailIdentity|null The lastModifiedBy + */ + public function getLastModifiedBy() + { + if (array_key_exists("lastModifiedBy", $this->_propDict)) { + if (is_a($this->_propDict["lastModifiedBy"], "\Microsoft\Graph\Model\EmailIdentity") || is_null($this->_propDict["lastModifiedBy"])) { + return $this->_propDict["lastModifiedBy"]; + } else { + $this->_propDict["lastModifiedBy"] = new EmailIdentity($this->_propDict["lastModifiedBy"]); + return $this->_propDict["lastModifiedBy"]; + } + } + return null; + } + + /** + * Sets the lastModifiedBy + * + * @param EmailIdentity $val The lastModifiedBy + * + * @return TrainingLanguageDetail + */ + public function setLastModifiedBy($val) + { + $this->_propDict["lastModifiedBy"] = $val; + return $this; + } + + /** + * Gets the lastModifiedDateTime + * + * @return \DateTime|null The lastModifiedDateTime + */ + public function getLastModifiedDateTime() + { + if (array_key_exists("lastModifiedDateTime", $this->_propDict)) { + if (is_a($this->_propDict["lastModifiedDateTime"], "\DateTime") || is_null($this->_propDict["lastModifiedDateTime"])) { + return $this->_propDict["lastModifiedDateTime"]; + } else { + $this->_propDict["lastModifiedDateTime"] = new \DateTime($this->_propDict["lastModifiedDateTime"]); + return $this->_propDict["lastModifiedDateTime"]; + } + } + return null; + } + + /** + * Sets the lastModifiedDateTime + * + * @param \DateTime $val The lastModifiedDateTime + * + * @return TrainingLanguageDetail + */ + public function setLastModifiedDateTime($val) + { + $this->_propDict["lastModifiedDateTime"] = $val; + return $this; + } + + /** + * Gets the locale + * + * @return string|null The locale + */ + public function getLocale() + { + if (array_key_exists("locale", $this->_propDict)) { + return $this->_propDict["locale"]; + } else { + return null; + } + } + + /** + * Sets the locale + * + * @param string $val The locale + * + * @return TrainingLanguageDetail + */ + public function setLocale($val) + { + $this->_propDict["locale"] = $val; + return $this; + } + +} diff --git a/src/Model/TrainingNotificationSetting.php b/src/Model/TrainingNotificationSetting.php new file mode 100644 index 00000000000..ac40630db21 --- /dev/null +++ b/src/Model/TrainingNotificationSetting.php @@ -0,0 +1,99 @@ +setODataType("#microsoft.graph.trainingNotificationSetting"); + } + + + /** + * Gets the trainingAssignment + * + * @return BaseEndUserNotification|null The trainingAssignment + */ + public function getTrainingAssignment() + { + if (array_key_exists("trainingAssignment", $this->_propDict)) { + if (is_a($this->_propDict["trainingAssignment"], "\Microsoft\Graph\Model\BaseEndUserNotification") || is_null($this->_propDict["trainingAssignment"])) { + return $this->_propDict["trainingAssignment"]; + } else { + $this->_propDict["trainingAssignment"] = new BaseEndUserNotification($this->_propDict["trainingAssignment"]); + return $this->_propDict["trainingAssignment"]; + } + } + return null; + } + + /** + * Sets the trainingAssignment + * + * @param BaseEndUserNotification $val The value to assign to the trainingAssignment + * + * @return TrainingNotificationSetting The TrainingNotificationSetting + */ + public function setTrainingAssignment($val) + { + $this->_propDict["trainingAssignment"] = $val; + return $this; + } + + /** + * Gets the trainingReminder + * + * @return TrainingReminderNotification|null The trainingReminder + */ + public function getTrainingReminder() + { + if (array_key_exists("trainingReminder", $this->_propDict)) { + if (is_a($this->_propDict["trainingReminder"], "\Microsoft\Graph\Model\TrainingReminderNotification") || is_null($this->_propDict["trainingReminder"])) { + return $this->_propDict["trainingReminder"]; + } else { + $this->_propDict["trainingReminder"] = new TrainingReminderNotification($this->_propDict["trainingReminder"]); + return $this->_propDict["trainingReminder"]; + } + } + return null; + } + + /** + * Sets the trainingReminder + * + * @param TrainingReminderNotification $val The value to assign to the trainingReminder + * + * @return TrainingNotificationSetting The TrainingNotificationSetting + */ + public function setTrainingReminder($val) + { + $this->_propDict["trainingReminder"] = $val; + return $this; + } +} diff --git a/src/Model/TrainingReminderNotification.php b/src/Model/TrainingReminderNotification.php new file mode 100644 index 00000000000..37c2b93db52 --- /dev/null +++ b/src/Model/TrainingReminderNotification.php @@ -0,0 +1,57 @@ +_propDict)) { + if (is_a($this->_propDict["deliveryFrequency"], "\Microsoft\Graph\Model\NotificationDeliveryFrequency") || is_null($this->_propDict["deliveryFrequency"])) { + return $this->_propDict["deliveryFrequency"]; + } else { + $this->_propDict["deliveryFrequency"] = new NotificationDeliveryFrequency($this->_propDict["deliveryFrequency"]); + return $this->_propDict["deliveryFrequency"]; + } + } + return null; + } + + /** + * Sets the deliveryFrequency + * + * @param NotificationDeliveryFrequency $val The value to assign to the deliveryFrequency + * + * @return TrainingReminderNotification The TrainingReminderNotification + */ + public function setDeliveryFrequency($val) + { + $this->_propDict["deliveryFrequency"] = $val; + return $this; + } +} diff --git a/src/Model/TrainingSetting.php b/src/Model/TrainingSetting.php new file mode 100644 index 00000000000..882a332ea6e --- /dev/null +++ b/src/Model/TrainingSetting.php @@ -0,0 +1,57 @@ +_propDict)) { + if (is_a($this->_propDict["settingType"], "\Microsoft\Graph\Model\TrainingSettingType") || is_null($this->_propDict["settingType"])) { + return $this->_propDict["settingType"]; + } else { + $this->_propDict["settingType"] = new TrainingSettingType($this->_propDict["settingType"]); + return $this->_propDict["settingType"]; + } + } + return null; + } + + /** + * Sets the settingType + * + * @param TrainingSettingType $val The value to assign to the settingType + * + * @return TrainingSetting The TrainingSetting + */ + public function setSettingType($val) + { + $this->_propDict["settingType"] = $val; + return $this; + } +} diff --git a/src/Model/TrainingSettingType.php b/src/Model/TrainingSettingType.php new file mode 100644 index 00000000000..aa06420e4af --- /dev/null +++ b/src/Model/TrainingSettingType.php @@ -0,0 +1,37 @@ +_propDict)) { + return $this->_propDict["childHostPairs"]; + } else { + return null; + } + } + + /** + * Sets the childHostPairs + * The hostPairs that are resources associated with a host, where that host is the parentHost and has an outgoing pairing to a cihldHost. + * + * @param HostPair[] $val The childHostPairs + * + * @return Host + */ + public function setChildHostPairs($val) + { + $this->_propDict["childHostPairs"] = $val; + return $this; + } + + /** * Gets the components * The hostComponents that are associated with this host. @@ -151,6 +181,66 @@ public function setCookies($val) } + /** + * Gets the hostPairs + * The hostPairs that are associated with this host, where this host is either the parentHost or childHost. + * + * @return array|null The hostPairs + */ + public function getHostPairs() + { + if (array_key_exists("hostPairs", $this->_propDict)) { + return $this->_propDict["hostPairs"]; + } else { + return null; + } + } + + /** + * Sets the hostPairs + * The hostPairs that are associated with this host, where this host is either the parentHost or childHost. + * + * @param HostPair[] $val The hostPairs + * + * @return Host + */ + public function setHostPairs($val) + { + $this->_propDict["hostPairs"] = $val; + return $this; + } + + + /** + * Gets the parentHostPairs + * The hostPairs that are associated with a host, where that host is the childHost and has an incoming pairing with a parentHost. + * + * @return array|null The parentHostPairs + */ + public function getParentHostPairs() + { + if (array_key_exists("parentHostPairs", $this->_propDict)) { + return $this->_propDict["parentHostPairs"]; + } else { + return null; + } + } + + /** + * Sets the parentHostPairs + * The hostPairs that are associated with a host, where that host is the childHost and has an incoming pairing with a parentHost. + * + * @param HostPair[] $val The parentHostPairs + * + * @return Host + */ + public function setParentHostPairs($val) + { + $this->_propDict["parentHostPairs"] = $val; + return $this; + } + + /** * Gets the passiveDns * Passive DNS retrieval about this host. @@ -244,6 +334,66 @@ public function setReputation($val) } + /** + * Gets the sslCertificates + * The hostSslCertificates that are associated with this host. + * + * @return array|null The sslCertificates + */ + public function getSslCertificates() + { + if (array_key_exists("sslCertificates", $this->_propDict)) { + return $this->_propDict["sslCertificates"]; + } else { + return null; + } + } + + /** + * Sets the sslCertificates + * The hostSslCertificates that are associated with this host. + * + * @param HostSslCertificate[] $val The sslCertificates + * + * @return Host + */ + public function setSslCertificates($val) + { + $this->_propDict["sslCertificates"] = $val; + return $this; + } + + + /** + * Gets the subdomains + * The subdomains that are associated with this host. + * + * @return array|null The subdomains + */ + public function getSubdomains() + { + if (array_key_exists("subdomains", $this->_propDict)) { + return $this->_propDict["subdomains"]; + } else { + return null; + } + } + + /** + * Sets the subdomains + * The subdomains that are associated with this host. + * + * @param Subdomain[] $val The subdomains + * + * @return Host + */ + public function setSubdomains($val) + { + $this->_propDict["subdomains"] = $val; + return $this; + } + + /** * Gets the trackers * The hostTrackers that are associated with this host. @@ -273,4 +423,37 @@ public function setTrackers($val) return $this; } + /** + * Gets the whois + * The most recent whoisRecord for this host. + * + * @return WhoisRecord|null The whois + */ + public function getWhois() + { + if (array_key_exists("whois", $this->_propDict)) { + if (is_a($this->_propDict["whois"], "\Microsoft\Graph\SecurityNamespace\Model\WhoisRecord") || is_null($this->_propDict["whois"])) { + return $this->_propDict["whois"]; + } else { + $this->_propDict["whois"] = new WhoisRecord($this->_propDict["whois"]); + return $this->_propDict["whois"]; + } + } + return null; + } + + /** + * Sets the whois + * The most recent whoisRecord for this host. + * + * @param WhoisRecord $val The whois + * + * @return Host + */ + public function setWhois($val) + { + $this->_propDict["whois"] = $val; + return $this; + } + } diff --git a/src/SecurityNamespace/Model/HostComponent.php b/src/SecurityNamespace/Model/HostComponent.php index cd68546af39..206a44a1a9a 100644 --- a/src/SecurityNamespace/Model/HostComponent.php +++ b/src/SecurityNamespace/Model/HostComponent.php @@ -150,7 +150,7 @@ public function setName($val) /** * Gets 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. * * @return string|null The version */ @@ -165,7 +165,7 @@ public function getVersion() /** * Sets 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. * * @param string $val The version * diff --git a/src/SecurityNamespace/Model/HostPair.php b/src/SecurityNamespace/Model/HostPair.php new file mode 100644 index 00000000000..4446f91cdf5 --- /dev/null +++ b/src/SecurityNamespace/Model/HostPair.php @@ -0,0 +1,188 @@ +_propDict)) { + if (is_a($this->_propDict["firstSeenDateTime"], "\DateTime") || is_null($this->_propDict["firstSeenDateTime"])) { + return $this->_propDict["firstSeenDateTime"]; + } else { + $this->_propDict["firstSeenDateTime"] = new \DateTime($this->_propDict["firstSeenDateTime"]); + return $this->_propDict["firstSeenDateTime"]; + } + } + return null; + } + + /** + * Sets the firstSeenDateTime + * 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. + * + * @param \DateTime $val The firstSeenDateTime + * + * @return HostPair + */ + public function setFirstSeenDateTime($val) + { + $this->_propDict["firstSeenDateTime"] = $val; + return $this; + } + + /** + * Gets the lastSeenDateTime + * 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. + * + * @return \DateTime|null The lastSeenDateTime + */ + public function getLastSeenDateTime() + { + if (array_key_exists("lastSeenDateTime", $this->_propDict)) { + if (is_a($this->_propDict["lastSeenDateTime"], "\DateTime") || is_null($this->_propDict["lastSeenDateTime"])) { + return $this->_propDict["lastSeenDateTime"]; + } else { + $this->_propDict["lastSeenDateTime"] = new \DateTime($this->_propDict["lastSeenDateTime"]); + return $this->_propDict["lastSeenDateTime"]; + } + } + return null; + } + + /** + * Sets the lastSeenDateTime + * 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. + * + * @param \DateTime $val The lastSeenDateTime + * + * @return HostPair + */ + public function setLastSeenDateTime($val) + { + $this->_propDict["lastSeenDateTime"] = $val; + return $this; + } + + /** + * Gets the linkKind + * The reason that two hosts are identified as hostPair. + * + * @return string|null The linkKind + */ + public function getLinkKind() + { + if (array_key_exists("linkKind", $this->_propDict)) { + return $this->_propDict["linkKind"]; + } else { + return null; + } + } + + /** + * Sets the linkKind + * The reason that two hosts are identified as hostPair. + * + * @param string $val The linkKind + * + * @return HostPair + */ + public function setLinkKind($val) + { + $this->_propDict["linkKind"] = $val; + return $this; + } + + /** + * Gets the childHost + * Host reached via the parentHost. + * + * @return Host|null The childHost + */ + public function getChildHost() + { + if (array_key_exists("childHost", $this->_propDict)) { + if (is_a($this->_propDict["childHost"], "\Microsoft\Graph\SecurityNamespace\Model\Host") || is_null($this->_propDict["childHost"])) { + return $this->_propDict["childHost"]; + } else { + $this->_propDict["childHost"] = new Host($this->_propDict["childHost"]); + return $this->_propDict["childHost"]; + } + } + return null; + } + + /** + * Sets the childHost + * Host reached via the parentHost. + * + * @param Host $val The childHost + * + * @return HostPair + */ + public function setChildHost($val) + { + $this->_propDict["childHost"] = $val; + return $this; + } + + /** + * Gets the parentHost + * Host used to reach the childHost. + * + * @return Host|null The parentHost + */ + public function getParentHost() + { + if (array_key_exists("parentHost", $this->_propDict)) { + if (is_a($this->_propDict["parentHost"], "\Microsoft\Graph\SecurityNamespace\Model\Host") || is_null($this->_propDict["parentHost"])) { + return $this->_propDict["parentHost"]; + } else { + $this->_propDict["parentHost"] = new Host($this->_propDict["parentHost"]); + return $this->_propDict["parentHost"]; + } + } + return null; + } + + /** + * Sets the parentHost + * Host used to reach the childHost. + * + * @param Host $val The parentHost + * + * @return HostPair + */ + public function setParentHost($val) + { + $this->_propDict["parentHost"] = $val; + return $this; + } + +} diff --git a/src/SecurityNamespace/Model/HostSslCertificate.php b/src/SecurityNamespace/Model/HostSslCertificate.php new file mode 100644 index 00000000000..94c5f3c216a --- /dev/null +++ b/src/SecurityNamespace/Model/HostSslCertificate.php @@ -0,0 +1,189 @@ +_propDict)) { + if (is_a($this->_propDict["firstSeenDateTime"], "\DateTime") || is_null($this->_propDict["firstSeenDateTime"])) { + return $this->_propDict["firstSeenDateTime"]; + } else { + $this->_propDict["firstSeenDateTime"] = new \DateTime($this->_propDict["firstSeenDateTime"]); + return $this->_propDict["firstSeenDateTime"]; + } + } + return null; + } + + /** + * Sets the firstSeenDateTime + * 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. + * + * @param \DateTime $val The firstSeenDateTime + * + * @return HostSslCertificate + */ + public function setFirstSeenDateTime($val) + { + $this->_propDict["firstSeenDateTime"] = $val; + return $this; + } + + /** + * Gets the lastSeenDateTime + * 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. + * + * @return \DateTime|null The lastSeenDateTime + */ + public function getLastSeenDateTime() + { + if (array_key_exists("lastSeenDateTime", $this->_propDict)) { + if (is_a($this->_propDict["lastSeenDateTime"], "\DateTime") || is_null($this->_propDict["lastSeenDateTime"])) { + return $this->_propDict["lastSeenDateTime"]; + } else { + $this->_propDict["lastSeenDateTime"] = new \DateTime($this->_propDict["lastSeenDateTime"]); + return $this->_propDict["lastSeenDateTime"]; + } + } + return null; + } + + /** + * Sets the lastSeenDateTime + * 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. + * + * @param \DateTime $val The lastSeenDateTime + * + * @return HostSslCertificate + */ + public function setLastSeenDateTime($val) + { + $this->_propDict["lastSeenDateTime"] = $val; + return $this; + } + + + /** + * Gets the ports + * The ports related with this hostSslCertificate. + * + * @return array|null The ports + */ + public function getPorts() + { + if (array_key_exists("ports", $this->_propDict)) { + return $this->_propDict["ports"]; + } else { + return null; + } + } + + /** + * Sets the ports + * The ports related with this hostSslCertificate. + * + * @param HostSslCertificatePort[] $val The ports + * + * @return HostSslCertificate + */ + public function setPorts($val) + { + $this->_propDict["ports"] = $val; + return $this; + } + + /** + * Gets the host + * The host for this hostSslCertificate. + * + * @return Host|null The host + */ + public function getHost() + { + if (array_key_exists("host", $this->_propDict)) { + if (is_a($this->_propDict["host"], "\Microsoft\Graph\SecurityNamespace\Model\Host") || is_null($this->_propDict["host"])) { + return $this->_propDict["host"]; + } else { + $this->_propDict["host"] = new Host($this->_propDict["host"]); + return $this->_propDict["host"]; + } + } + return null; + } + + /** + * Sets the host + * The host for this hostSslCertificate. + * + * @param Host $val The host + * + * @return HostSslCertificate + */ + public function setHost($val) + { + $this->_propDict["host"] = $val; + return $this; + } + + /** + * Gets the sslCertificate + * The sslCertificate for this hostSslCertificate. + * + * @return SslCertificate|null The sslCertificate + */ + public function getSslCertificate() + { + if (array_key_exists("sslCertificate", $this->_propDict)) { + if (is_a($this->_propDict["sslCertificate"], "\Microsoft\Graph\SecurityNamespace\Model\SslCertificate") || is_null($this->_propDict["sslCertificate"])) { + return $this->_propDict["sslCertificate"]; + } else { + $this->_propDict["sslCertificate"] = new SslCertificate($this->_propDict["sslCertificate"]); + return $this->_propDict["sslCertificate"]; + } + } + return null; + } + + /** + * Sets the sslCertificate + * The sslCertificate for this hostSslCertificate. + * + * @param SslCertificate $val The sslCertificate + * + * @return HostSslCertificate + */ + public function setSslCertificate($val) + { + $this->_propDict["sslCertificate"] = $val; + return $this; + } + +} diff --git a/src/SecurityNamespace/Model/HostSslCertificatePort.php b/src/SecurityNamespace/Model/HostSslCertificatePort.php new file mode 100644 index 00000000000..1a96bdce76a --- /dev/null +++ b/src/SecurityNamespace/Model/HostSslCertificatePort.php @@ -0,0 +1,120 @@ +_propDict)) { + if (is_a($this->_propDict["firstSeenDateTime"], "\DateTime") || is_null($this->_propDict["firstSeenDateTime"])) { + return $this->_propDict["firstSeenDateTime"]; + } else { + $this->_propDict["firstSeenDateTime"] = new \DateTime($this->_propDict["firstSeenDateTime"]); + return $this->_propDict["firstSeenDateTime"]; + } + } + return null; + } + + /** + * Sets the firstSeenDateTime + * 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. + * + * @param \DateTime $val The value to assign to the firstSeenDateTime + * + * @return HostSslCertificatePort The HostSslCertificatePort + */ + public function setFirstSeenDateTime($val) + { + $this->_propDict["firstSeenDateTime"] = $val; + return $this; + } + + /** + * Gets the lastSeenDateTime + * 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. + * + * @return \DateTime|null The lastSeenDateTime + */ + public function getLastSeenDateTime() + { + if (array_key_exists("lastSeenDateTime", $this->_propDict)) { + if (is_a($this->_propDict["lastSeenDateTime"], "\DateTime") || is_null($this->_propDict["lastSeenDateTime"])) { + return $this->_propDict["lastSeenDateTime"]; + } else { + $this->_propDict["lastSeenDateTime"] = new \DateTime($this->_propDict["lastSeenDateTime"]); + return $this->_propDict["lastSeenDateTime"]; + } + } + return null; + } + + /** + * Sets the lastSeenDateTime + * 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. + * + * @param \DateTime $val The value to assign to the lastSeenDateTime + * + * @return HostSslCertificatePort The HostSslCertificatePort + */ + public function setLastSeenDateTime($val) + { + $this->_propDict["lastSeenDateTime"] = $val; + return $this; + } + /** + * Gets the port + * The port number. + * + * @return int|null The port + */ + public function getPort() + { + if (array_key_exists("port", $this->_propDict)) { + return $this->_propDict["port"]; + } else { + return null; + } + } + + /** + * Sets the port + * The port number. + * + * @param int $val The value of the port + * + * @return HostSslCertificatePort + */ + public function setPort($val) + { + $this->_propDict["port"] = $val; + return $this; + } +} diff --git a/src/SecurityNamespace/Model/IpAddress.php b/src/SecurityNamespace/Model/IpAddress.php index bfb67a65822..541033db530 100644 --- a/src/SecurityNamespace/Model/IpAddress.php +++ b/src/SecurityNamespace/Model/IpAddress.php @@ -59,7 +59,7 @@ public function setAutonomousSystem($val) /** * Gets the countryOrRegion - * The country or region for this IP address. + * The country/region for this IP address. * * @return string|null The countryOrRegion */ @@ -74,7 +74,7 @@ public function getCountryOrRegion() /** * Sets the countryOrRegion - * The country or region for this IP address. + * The country/region for this IP address. * * @param string $val The countryOrRegion * diff --git a/src/SecurityNamespace/Model/SslCertificate.php b/src/SecurityNamespace/Model/SslCertificate.php new file mode 100644 index 00000000000..575aff00f8d --- /dev/null +++ b/src/SecurityNamespace/Model/SslCertificate.php @@ -0,0 +1,342 @@ +_propDict)) { + if (is_a($this->_propDict["expirationDateTime"], "\DateTime") || is_null($this->_propDict["expirationDateTime"])) { + return $this->_propDict["expirationDateTime"]; + } else { + $this->_propDict["expirationDateTime"] = new \DateTime($this->_propDict["expirationDateTime"]); + return $this->_propDict["expirationDateTime"]; + } + } + return null; + } + + /** + * Sets the expirationDateTime + * 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. + * + * @param \DateTime $val The expirationDateTime + * + * @return SslCertificate + */ + public function setExpirationDateTime($val) + { + $this->_propDict["expirationDateTime"] = $val; + return $this; + } + + /** + * Gets the fingerprint + * A hash of the certificate calculated on the data and signature. + * + * @return string|null The fingerprint + */ + public function getFingerprint() + { + if (array_key_exists("fingerprint", $this->_propDict)) { + return $this->_propDict["fingerprint"]; + } else { + return null; + } + } + + /** + * Sets the fingerprint + * A hash of the certificate calculated on the data and signature. + * + * @param string $val The fingerprint + * + * @return SslCertificate + */ + public function setFingerprint($val) + { + $this->_propDict["fingerprint"] = $val; + return $this; + } + + /** + * Gets the firstSeenDateTime + * 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. + * + * @return \DateTime|null The firstSeenDateTime + */ + public function getFirstSeenDateTime() + { + if (array_key_exists("firstSeenDateTime", $this->_propDict)) { + if (is_a($this->_propDict["firstSeenDateTime"], "\DateTime") || is_null($this->_propDict["firstSeenDateTime"])) { + return $this->_propDict["firstSeenDateTime"]; + } else { + $this->_propDict["firstSeenDateTime"] = new \DateTime($this->_propDict["firstSeenDateTime"]); + return $this->_propDict["firstSeenDateTime"]; + } + } + return null; + } + + /** + * Sets the firstSeenDateTime + * 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. + * + * @param \DateTime $val The firstSeenDateTime + * + * @return SslCertificate + */ + public function setFirstSeenDateTime($val) + { + $this->_propDict["firstSeenDateTime"] = $val; + return $this; + } + + /** + * Gets the issueDateTime + * 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. + * + * @return \DateTime|null The issueDateTime + */ + public function getIssueDateTime() + { + if (array_key_exists("issueDateTime", $this->_propDict)) { + if (is_a($this->_propDict["issueDateTime"], "\DateTime") || is_null($this->_propDict["issueDateTime"])) { + return $this->_propDict["issueDateTime"]; + } else { + $this->_propDict["issueDateTime"] = new \DateTime($this->_propDict["issueDateTime"]); + return $this->_propDict["issueDateTime"]; + } + } + return null; + } + + /** + * Sets the issueDateTime + * 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. + * + * @param \DateTime $val The issueDateTime + * + * @return SslCertificate + */ + public function setIssueDateTime($val) + { + $this->_propDict["issueDateTime"] = $val; + return $this; + } + + /** + * Gets the issuer + * The entity that grants this certificate. + * + * @return SslCertificateEntity|null The issuer + */ + public function getIssuer() + { + if (array_key_exists("issuer", $this->_propDict)) { + if (is_a($this->_propDict["issuer"], "\Microsoft\Graph\SecurityNamespace\Model\SslCertificateEntity") || is_null($this->_propDict["issuer"])) { + return $this->_propDict["issuer"]; + } else { + $this->_propDict["issuer"] = new SslCertificateEntity($this->_propDict["issuer"]); + return $this->_propDict["issuer"]; + } + } + return null; + } + + /** + * Sets the issuer + * The entity that grants this certificate. + * + * @param SslCertificateEntity $val The issuer + * + * @return SslCertificate + */ + public function setIssuer($val) + { + $this->_propDict["issuer"] = $val; + return $this; + } + + /** + * Gets the lastSeenDateTime + * 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. + * + * @return \DateTime|null The lastSeenDateTime + */ + public function getLastSeenDateTime() + { + if (array_key_exists("lastSeenDateTime", $this->_propDict)) { + if (is_a($this->_propDict["lastSeenDateTime"], "\DateTime") || is_null($this->_propDict["lastSeenDateTime"])) { + return $this->_propDict["lastSeenDateTime"]; + } else { + $this->_propDict["lastSeenDateTime"] = new \DateTime($this->_propDict["lastSeenDateTime"]); + return $this->_propDict["lastSeenDateTime"]; + } + } + return null; + } + + /** + * Sets the lastSeenDateTime + * 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. + * + * @param \DateTime $val The lastSeenDateTime + * + * @return SslCertificate + */ + public function setLastSeenDateTime($val) + { + $this->_propDict["lastSeenDateTime"] = $val; + return $this; + } + + /** + * Gets the serialNumber + * The serial number associated with an SSL certificate. + * + * @return string|null The serialNumber + */ + public function getSerialNumber() + { + if (array_key_exists("serialNumber", $this->_propDict)) { + return $this->_propDict["serialNumber"]; + } else { + return null; + } + } + + /** + * Sets the serialNumber + * The serial number associated with an SSL certificate. + * + * @param string $val The serialNumber + * + * @return SslCertificate + */ + public function setSerialNumber($val) + { + $this->_propDict["serialNumber"] = $val; + return $this; + } + + /** + * Gets the sha1 + * A SHA-1 hash of the certificate. Note: This is not the signature. + * + * @return string|null The sha1 + */ + public function getSha1() + { + if (array_key_exists("sha1", $this->_propDict)) { + return $this->_propDict["sha1"]; + } else { + return null; + } + } + + /** + * Sets the sha1 + * A SHA-1 hash of the certificate. Note: This is not the signature. + * + * @param string $val The sha1 + * + * @return SslCertificate + */ + public function setSha1($val) + { + $this->_propDict["sha1"] = $val; + return $this; + } + + /** + * Gets the subject + * The person, site, machine, and so on, this certificate is for. + * + * @return SslCertificateEntity|null The subject + */ + public function getSubject() + { + if (array_key_exists("subject", $this->_propDict)) { + if (is_a($this->_propDict["subject"], "\Microsoft\Graph\SecurityNamespace\Model\SslCertificateEntity") || is_null($this->_propDict["subject"])) { + return $this->_propDict["subject"]; + } else { + $this->_propDict["subject"] = new SslCertificateEntity($this->_propDict["subject"]); + return $this->_propDict["subject"]; + } + } + return null; + } + + /** + * Sets the subject + * The person, site, machine, and so on, this certificate is for. + * + * @param SslCertificateEntity $val The subject + * + * @return SslCertificate + */ + public function setSubject($val) + { + $this->_propDict["subject"] = $val; + return $this; + } + + + /** + * Gets the relatedHosts + * The hosts related with this sslCertificate. + * + * @return array|null The relatedHosts + */ + public function getRelatedHosts() + { + if (array_key_exists("relatedHosts", $this->_propDict)) { + return $this->_propDict["relatedHosts"]; + } else { + return null; + } + } + + /** + * Sets the relatedHosts + * The hosts related with this sslCertificate. + * + * @param Host[] $val The relatedHosts + * + * @return SslCertificate + */ + public function setRelatedHosts($val) + { + $this->_propDict["relatedHosts"] = $val; + return $this; + } + +} diff --git a/src/SecurityNamespace/Model/SslCertificateEntity.php b/src/SecurityNamespace/Model/SslCertificateEntity.php new file mode 100644 index 00000000000..83ad73b78d2 --- /dev/null +++ b/src/SecurityNamespace/Model/SslCertificateEntity.php @@ -0,0 +1,283 @@ +_propDict)) { + if (is_a($this->_propDict["address"], "\Microsoft\Graph\Model\PhysicalAddress") || is_null($this->_propDict["address"])) { + return $this->_propDict["address"]; + } else { + $this->_propDict["address"] = new \Microsoft\Graph\Model\PhysicalAddress($this->_propDict["address"]); + return $this->_propDict["address"]; + } + } + return null; + } + + /** + * Sets the address + * A physical address of the entity. + * + * @param \Microsoft\Graph\Model\PhysicalAddress $val The value to assign to the address + * + * @return SslCertificateEntity The SslCertificateEntity + */ + public function setAddress($val) + { + $this->_propDict["address"] = $val; + return $this; + } + /** + * Gets the alternateNames + * Alternate names for this entity that are part of the certificate. + * + * @return string|null The alternateNames + */ + public function getAlternateNames() + { + if (array_key_exists("alternateNames", $this->_propDict)) { + return $this->_propDict["alternateNames"]; + } else { + return null; + } + } + + /** + * Sets the alternateNames + * Alternate names for this entity that are part of the certificate. + * + * @param string $val The value of the alternateNames + * + * @return SslCertificateEntity + */ + public function setAlternateNames($val) + { + $this->_propDict["alternateNames"] = $val; + return $this; + } + /** + * Gets the commonName + * A common name for this entity. + * + * @return string|null The commonName + */ + public function getCommonName() + { + if (array_key_exists("commonName", $this->_propDict)) { + return $this->_propDict["commonName"]; + } else { + return null; + } + } + + /** + * Sets the commonName + * A common name for this entity. + * + * @param string $val The value of the commonName + * + * @return SslCertificateEntity + */ + public function setCommonName($val) + { + $this->_propDict["commonName"] = $val; + return $this; + } + /** + * Gets the email + * An email for this entity. + * + * @return string|null The email + */ + public function getEmail() + { + if (array_key_exists("email", $this->_propDict)) { + return $this->_propDict["email"]; + } else { + return null; + } + } + + /** + * Sets the email + * An email for this entity. + * + * @param string $val The value of the email + * + * @return SslCertificateEntity + */ + public function setEmail($val) + { + $this->_propDict["email"] = $val; + return $this; + } + /** + * Gets the givenName + * If the entity is a person, this is the person's given name (first name). + * + * @return string|null The givenName + */ + public function getGivenName() + { + if (array_key_exists("givenName", $this->_propDict)) { + return $this->_propDict["givenName"]; + } else { + return null; + } + } + + /** + * Sets the givenName + * If the entity is a person, this is the person's given name (first name). + * + * @param string $val The value of the givenName + * + * @return SslCertificateEntity + */ + public function setGivenName($val) + { + $this->_propDict["givenName"] = $val; + return $this; + } + /** + * Gets the organizationName + * If the entity is an organization, this is the name of the organization. + * + * @return string|null The organizationName + */ + public function getOrganizationName() + { + if (array_key_exists("organizationName", $this->_propDict)) { + return $this->_propDict["organizationName"]; + } else { + return null; + } + } + + /** + * Sets the organizationName + * If the entity is an organization, this is the name of the organization. + * + * @param string $val The value of the organizationName + * + * @return SslCertificateEntity + */ + public function setOrganizationName($val) + { + $this->_propDict["organizationName"] = $val; + return $this; + } + /** + * Gets the organizationUnitName + * If the entity is an organization, this communicates if a unit in the organization is named on the entity. + * + * @return string|null The organizationUnitName + */ + public function getOrganizationUnitName() + { + if (array_key_exists("organizationUnitName", $this->_propDict)) { + return $this->_propDict["organizationUnitName"]; + } else { + return null; + } + } + + /** + * Sets the organizationUnitName + * If the entity is an organization, this communicates if a unit in the organization is named on the entity. + * + * @param string $val The value of the organizationUnitName + * + * @return SslCertificateEntity + */ + public function setOrganizationUnitName($val) + { + $this->_propDict["organizationUnitName"] = $val; + return $this; + } + /** + * Gets the serialNumber + * A serial number assigned to the entity; usually only available if the entity is the issuer. + * + * @return string|null The serialNumber + */ + public function getSerialNumber() + { + if (array_key_exists("serialNumber", $this->_propDict)) { + return $this->_propDict["serialNumber"]; + } else { + return null; + } + } + + /** + * Sets the serialNumber + * A serial number assigned to the entity; usually only available if the entity is the issuer. + * + * @param string $val The value of the serialNumber + * + * @return SslCertificateEntity + */ + public function setSerialNumber($val) + { + $this->_propDict["serialNumber"] = $val; + return $this; + } + /** + * Gets the surname + * If the entity is a person, this is the person's surname (last name). + * + * @return string|null The surname + */ + public function getSurname() + { + if (array_key_exists("surname", $this->_propDict)) { + return $this->_propDict["surname"]; + } else { + return null; + } + } + + /** + * Sets the surname + * If the entity is a person, this is the person's surname (last name). + * + * @param string $val The value of the surname + * + * @return SslCertificateEntity + */ + public function setSurname($val) + { + $this->_propDict["surname"] = $val; + return $this; + } +} diff --git a/src/SecurityNamespace/Model/Subdomain.php b/src/SecurityNamespace/Model/Subdomain.php new file mode 100644 index 00000000000..3e82c6db57c --- /dev/null +++ b/src/SecurityNamespace/Model/Subdomain.php @@ -0,0 +1,93 @@ +_propDict)) { + if (is_a($this->_propDict["firstSeenDateTime"], "\DateTime") || is_null($this->_propDict["firstSeenDateTime"])) { + return $this->_propDict["firstSeenDateTime"]; + } else { + $this->_propDict["firstSeenDateTime"] = new \DateTime($this->_propDict["firstSeenDateTime"]); + return $this->_propDict["firstSeenDateTime"]; + } + } + return null; + } + + /** + * Sets the firstSeenDateTime + * 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. + * + * @param \DateTime $val The firstSeenDateTime + * + * @return Subdomain + */ + public function setFirstSeenDateTime($val) + { + $this->_propDict["firstSeenDateTime"] = $val; + return $this; + } + + /** + * Gets the host + * The host of the subdomain. + * + * @return Host|null The host + */ + public function getHost() + { + if (array_key_exists("host", $this->_propDict)) { + if (is_a($this->_propDict["host"], "\Microsoft\Graph\SecurityNamespace\Model\Host") || is_null($this->_propDict["host"])) { + return $this->_propDict["host"]; + } else { + $this->_propDict["host"] = new Host($this->_propDict["host"]); + return $this->_propDict["host"]; + } + } + return null; + } + + /** + * Sets the host + * The host of the subdomain. + * + * @param Host $val The host + * + * @return Subdomain + */ + public function setHost($val) + { + $this->_propDict["host"] = $val; + return $this; + } + +} diff --git a/src/SecurityNamespace/Model/ThreatIntelligence.php b/src/SecurityNamespace/Model/ThreatIntelligence.php index e011fd2f769..88026770272 100644 --- a/src/SecurityNamespace/Model/ThreatIntelligence.php +++ b/src/SecurityNamespace/Model/ThreatIntelligence.php @@ -27,7 +27,7 @@ class ThreatIntelligence extends \Microsoft\Graph\Model\Entity /** * Gets the articleIndicators - * 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. * * @return array|null The articleIndicators */ @@ -42,7 +42,7 @@ public function getArticleIndicators() /** * Sets the articleIndicators - * 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. * * @param ArticleIndicator[] $val The articleIndicators * @@ -87,7 +87,7 @@ public function setArticles($val) /** * Gets the hostComponents - * 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. * * @return array|null The hostComponents */ @@ -102,7 +102,7 @@ public function getHostComponents() /** * Sets the hostComponents - * 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. * * @param HostComponent[] $val The hostComponents * @@ -117,7 +117,7 @@ public function setHostComponents($val) /** * Gets the hostCookies - * 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. * * @return array|null The hostCookies */ @@ -132,7 +132,7 @@ public function getHostCookies() /** * Sets the hostCookies - * 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. * * @param HostCookie[] $val The hostCookies * @@ -145,9 +145,39 @@ public function setHostCookies($val) } + /** + * Gets the hostPairs + * Retrieve details about hostTracker objects.Note: List retrieval is not yet supported. + * + * @return array|null The hostPairs + */ + public function getHostPairs() + { + if (array_key_exists("hostPairs", $this->_propDict)) { + return $this->_propDict["hostPairs"]; + } else { + return null; + } + } + + /** + * Sets the hostPairs + * Retrieve details about hostTracker objects.Note: List retrieval is not yet supported. + * + * @param HostPair[] $val The hostPairs + * + * @return ThreatIntelligence + */ + public function setHostPairs($val) + { + $this->_propDict["hostPairs"] = $val; + return $this; + } + + /** * Gets 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. * * @return array|null The hosts */ @@ -162,7 +192,7 @@ public function getHosts() /** * Sets 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. * * @param Host[] $val The hosts * @@ -175,9 +205,39 @@ public function setHosts($val) } + /** + * Gets the hostSslCertificates + * Retrieve details about hostSslCertificate objects.Note: List retrieval is not yet supported. + * + * @return array|null The hostSslCertificates + */ + public function getHostSslCertificates() + { + if (array_key_exists("hostSslCertificates", $this->_propDict)) { + return $this->_propDict["hostSslCertificates"]; + } else { + return null; + } + } + + /** + * Sets the hostSslCertificates + * Retrieve details about hostSslCertificate objects.Note: List retrieval is not yet supported. + * + * @param HostSslCertificate[] $val The hostSslCertificates + * + * @return ThreatIntelligence + */ + public function setHostSslCertificates($val) + { + $this->_propDict["hostSslCertificates"] = $val; + return $this; + } + + /** * Gets the hostTrackers - * 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. * * @return array|null The hostTrackers */ @@ -192,7 +252,7 @@ public function getHostTrackers() /** * Sets the hostTrackers - * 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. * * @param HostTracker[] $val The hostTrackers * @@ -265,7 +325,7 @@ public function setIntelProfiles($val) /** * Gets the passiveDnsRecords - * 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. * * @return array|null The passiveDnsRecords */ @@ -280,7 +340,7 @@ public function getPassiveDnsRecords() /** * Sets the passiveDnsRecords - * 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. * * @param PassiveDnsRecord[] $val The passiveDnsRecords * @@ -293,9 +353,69 @@ public function setPassiveDnsRecords($val) } + /** + * Gets the sslCertificates + * Retrieve details about sslCertificate objects.Note: List retrieval is not yet supported. + * + * @return array|null The sslCertificates + */ + public function getSslCertificates() + { + if (array_key_exists("sslCertificates", $this->_propDict)) { + return $this->_propDict["sslCertificates"]; + } else { + return null; + } + } + + /** + * Sets the sslCertificates + * Retrieve details about sslCertificate objects.Note: List retrieval is not yet supported. + * + * @param SslCertificate[] $val The sslCertificates + * + * @return ThreatIntelligence + */ + public function setSslCertificates($val) + { + $this->_propDict["sslCertificates"] = $val; + return $this; + } + + + /** + * Gets the subdomains + * Retrieve details about the subdomain.Note: List retrieval is not yet supported. + * + * @return array|null The subdomains + */ + public function getSubdomains() + { + if (array_key_exists("subdomains", $this->_propDict)) { + return $this->_propDict["subdomains"]; + } else { + return null; + } + } + + /** + * Sets the subdomains + * Retrieve details about the subdomain.Note: List retrieval is not yet supported. + * + * @param Subdomain[] $val The subdomains + * + * @return ThreatIntelligence + */ + public function setSubdomains($val) + { + $this->_propDict["subdomains"] = $val; + return $this; + } + + /** * Gets 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. * * @return array|null The vulnerabilities */ @@ -310,7 +430,7 @@ public function getVulnerabilities() /** * Sets 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. * * @param Vulnerability[] $val The vulnerabilities * @@ -322,4 +442,64 @@ public function setVulnerabilities($val) return $this; } + + /** + * Gets the whoisHistoryRecords + * Retrieve details about whoisHistoryRecord objects.Note: List retrieval is not yet supported. + * + * @return array|null The whoisHistoryRecords + */ + public function getWhoisHistoryRecords() + { + if (array_key_exists("whoisHistoryRecords", $this->_propDict)) { + return $this->_propDict["whoisHistoryRecords"]; + } else { + return null; + } + } + + /** + * Sets the whoisHistoryRecords + * Retrieve details about whoisHistoryRecord objects.Note: List retrieval is not yet supported. + * + * @param WhoisHistoryRecord[] $val The whoisHistoryRecords + * + * @return ThreatIntelligence + */ + public function setWhoisHistoryRecords($val) + { + $this->_propDict["whoisHistoryRecords"] = $val; + return $this; + } + + + /** + * Gets the whoisRecords + * A list of whoisRecord objects. + * + * @return array|null The whoisRecords + */ + public function getWhoisRecords() + { + if (array_key_exists("whoisRecords", $this->_propDict)) { + return $this->_propDict["whoisRecords"]; + } else { + return null; + } + } + + /** + * Sets the whoisRecords + * A list of whoisRecord objects. + * + * @param WhoisRecord[] $val The whoisRecords + * + * @return ThreatIntelligence + */ + public function setWhoisRecords($val) + { + $this->_propDict["whoisRecords"] = $val; + return $this; + } + } diff --git a/src/SecurityNamespace/Model/WhoisBaseRecord.php b/src/SecurityNamespace/Model/WhoisBaseRecord.php new file mode 100644 index 00000000000..79076c73cc8 --- /dev/null +++ b/src/SecurityNamespace/Model/WhoisBaseRecord.php @@ -0,0 +1,606 @@ +_propDict)) { + if (is_a($this->_propDict["abuse"], "\Microsoft\Graph\SecurityNamespace\Model\WhoisContact") || is_null($this->_propDict["abuse"])) { + return $this->_propDict["abuse"]; + } else { + $this->_propDict["abuse"] = new WhoisContact($this->_propDict["abuse"]); + return $this->_propDict["abuse"]; + } + } + return null; + } + + /** + * Sets the abuse + * The contact information for the abuse contact. + * + * @param WhoisContact $val The abuse + * + * @return WhoisBaseRecord + */ + public function setAbuse($val) + { + $this->_propDict["abuse"] = $val; + return $this; + } + + /** + * Gets the admin + * The contact information for the admin contact. + * + * @return WhoisContact|null The admin + */ + public function getAdmin() + { + if (array_key_exists("admin", $this->_propDict)) { + if (is_a($this->_propDict["admin"], "\Microsoft\Graph\SecurityNamespace\Model\WhoisContact") || is_null($this->_propDict["admin"])) { + return $this->_propDict["admin"]; + } else { + $this->_propDict["admin"] = new WhoisContact($this->_propDict["admin"]); + return $this->_propDict["admin"]; + } + } + return null; + } + + /** + * Sets the admin + * The contact information for the admin contact. + * + * @param WhoisContact $val The admin + * + * @return WhoisBaseRecord + */ + public function setAdmin($val) + { + $this->_propDict["admin"] = $val; + return $this; + } + + /** + * Gets the billing + * The contact information for the billing contact. + * + * @return WhoisContact|null The billing + */ + public function getBilling() + { + if (array_key_exists("billing", $this->_propDict)) { + if (is_a($this->_propDict["billing"], "\Microsoft\Graph\SecurityNamespace\Model\WhoisContact") || is_null($this->_propDict["billing"])) { + return $this->_propDict["billing"]; + } else { + $this->_propDict["billing"] = new WhoisContact($this->_propDict["billing"]); + return $this->_propDict["billing"]; + } + } + return null; + } + + /** + * Sets the billing + * The contact information for the billing contact. + * + * @param WhoisContact $val The billing + * + * @return WhoisBaseRecord + */ + public function setBilling($val) + { + $this->_propDict["billing"] = $val; + return $this; + } + + /** + * Gets the domainStatus + * The domain status for this WHOIS object. + * + * @return string|null The domainStatus + */ + public function getDomainStatus() + { + if (array_key_exists("domainStatus", $this->_propDict)) { + return $this->_propDict["domainStatus"]; + } else { + return null; + } + } + + /** + * Sets the domainStatus + * The domain status for this WHOIS object. + * + * @param string $val The domainStatus + * + * @return WhoisBaseRecord + */ + public function setDomainStatus($val) + { + $this->_propDict["domainStatus"] = $val; + return $this; + } + + /** + * Gets the expirationDateTime + * 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. + * + * @return \DateTime|null The expirationDateTime + */ + public function getExpirationDateTime() + { + if (array_key_exists("expirationDateTime", $this->_propDict)) { + if (is_a($this->_propDict["expirationDateTime"], "\DateTime") || is_null($this->_propDict["expirationDateTime"])) { + return $this->_propDict["expirationDateTime"]; + } else { + $this->_propDict["expirationDateTime"] = new \DateTime($this->_propDict["expirationDateTime"]); + return $this->_propDict["expirationDateTime"]; + } + } + return null; + } + + /** + * Sets the expirationDateTime + * 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. + * + * @param \DateTime $val The expirationDateTime + * + * @return WhoisBaseRecord + */ + public function setExpirationDateTime($val) + { + $this->_propDict["expirationDateTime"] = $val; + return $this; + } + + /** + * Gets the firstSeenDateTime + * 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. + * + * @return \DateTime|null The firstSeenDateTime + */ + public function getFirstSeenDateTime() + { + if (array_key_exists("firstSeenDateTime", $this->_propDict)) { + if (is_a($this->_propDict["firstSeenDateTime"], "\DateTime") || is_null($this->_propDict["firstSeenDateTime"])) { + return $this->_propDict["firstSeenDateTime"]; + } else { + $this->_propDict["firstSeenDateTime"] = new \DateTime($this->_propDict["firstSeenDateTime"]); + return $this->_propDict["firstSeenDateTime"]; + } + } + return null; + } + + /** + * Sets the firstSeenDateTime + * 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. + * + * @param \DateTime $val The firstSeenDateTime + * + * @return WhoisBaseRecord + */ + public function setFirstSeenDateTime($val) + { + $this->_propDict["firstSeenDateTime"] = $val; + return $this; + } + + /** + * Gets the lastSeenDateTime + * 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. + * + * @return \DateTime|null The lastSeenDateTime + */ + public function getLastSeenDateTime() + { + if (array_key_exists("lastSeenDateTime", $this->_propDict)) { + if (is_a($this->_propDict["lastSeenDateTime"], "\DateTime") || is_null($this->_propDict["lastSeenDateTime"])) { + return $this->_propDict["lastSeenDateTime"]; + } else { + $this->_propDict["lastSeenDateTime"] = new \DateTime($this->_propDict["lastSeenDateTime"]); + return $this->_propDict["lastSeenDateTime"]; + } + } + return null; + } + + /** + * Sets the lastSeenDateTime + * 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. + * + * @param \DateTime $val The lastSeenDateTime + * + * @return WhoisBaseRecord + */ + public function setLastSeenDateTime($val) + { + $this->_propDict["lastSeenDateTime"] = $val; + return $this; + } + + /** + * Gets the lastUpdateDateTime + * 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. + * + * @return \DateTime|null The lastUpdateDateTime + */ + public function getLastUpdateDateTime() + { + if (array_key_exists("lastUpdateDateTime", $this->_propDict)) { + if (is_a($this->_propDict["lastUpdateDateTime"], "\DateTime") || is_null($this->_propDict["lastUpdateDateTime"])) { + return $this->_propDict["lastUpdateDateTime"]; + } else { + $this->_propDict["lastUpdateDateTime"] = new \DateTime($this->_propDict["lastUpdateDateTime"]); + return $this->_propDict["lastUpdateDateTime"]; + } + } + return null; + } + + /** + * Sets the lastUpdateDateTime + * 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. + * + * @param \DateTime $val The lastUpdateDateTime + * + * @return WhoisBaseRecord + */ + public function setLastUpdateDateTime($val) + { + $this->_propDict["lastUpdateDateTime"] = $val; + return $this; + } + + + /** + * Gets the nameservers + * The nameservers for this WHOIS object. + * + * @return array|null The nameservers + */ + public function getNameservers() + { + if (array_key_exists("nameservers", $this->_propDict)) { + return $this->_propDict["nameservers"]; + } else { + return null; + } + } + + /** + * Sets the nameservers + * The nameservers for this WHOIS object. + * + * @param WhoisNameserver[] $val The nameservers + * + * @return WhoisBaseRecord + */ + public function setNameservers($val) + { + $this->_propDict["nameservers"] = $val; + return $this; + } + + /** + * Gets the noc + * The contact information for the noc contact. + * + * @return WhoisContact|null The noc + */ + public function getNoc() + { + if (array_key_exists("noc", $this->_propDict)) { + if (is_a($this->_propDict["noc"], "\Microsoft\Graph\SecurityNamespace\Model\WhoisContact") || is_null($this->_propDict["noc"])) { + return $this->_propDict["noc"]; + } else { + $this->_propDict["noc"] = new WhoisContact($this->_propDict["noc"]); + return $this->_propDict["noc"]; + } + } + return null; + } + + /** + * Sets the noc + * The contact information for the noc contact. + * + * @param WhoisContact $val The noc + * + * @return WhoisBaseRecord + */ + public function setNoc($val) + { + $this->_propDict["noc"] = $val; + return $this; + } + + /** + * Gets the rawWhoisText + * The raw WHOIS details for this WHOIS object. + * + * @return string|null The rawWhoisText + */ + public function getRawWhoisText() + { + if (array_key_exists("rawWhoisText", $this->_propDict)) { + return $this->_propDict["rawWhoisText"]; + } else { + return null; + } + } + + /** + * Sets the rawWhoisText + * The raw WHOIS details for this WHOIS object. + * + * @param string $val The rawWhoisText + * + * @return WhoisBaseRecord + */ + public function setRawWhoisText($val) + { + $this->_propDict["rawWhoisText"] = $val; + return $this; + } + + /** + * Gets the registrant + * The contact information for the registrant contact. + * + * @return WhoisContact|null The registrant + */ + public function getRegistrant() + { + if (array_key_exists("registrant", $this->_propDict)) { + if (is_a($this->_propDict["registrant"], "\Microsoft\Graph\SecurityNamespace\Model\WhoisContact") || is_null($this->_propDict["registrant"])) { + return $this->_propDict["registrant"]; + } else { + $this->_propDict["registrant"] = new WhoisContact($this->_propDict["registrant"]); + return $this->_propDict["registrant"]; + } + } + return null; + } + + /** + * Sets the registrant + * The contact information for the registrant contact. + * + * @param WhoisContact $val The registrant + * + * @return WhoisBaseRecord + */ + public function setRegistrant($val) + { + $this->_propDict["registrant"] = $val; + return $this; + } + + /** + * Gets the registrar + * The contact information for the registrar contact. + * + * @return WhoisContact|null The registrar + */ + public function getRegistrar() + { + if (array_key_exists("registrar", $this->_propDict)) { + if (is_a($this->_propDict["registrar"], "\Microsoft\Graph\SecurityNamespace\Model\WhoisContact") || is_null($this->_propDict["registrar"])) { + return $this->_propDict["registrar"]; + } else { + $this->_propDict["registrar"] = new WhoisContact($this->_propDict["registrar"]); + return $this->_propDict["registrar"]; + } + } + return null; + } + + /** + * Sets the registrar + * The contact information for the registrar contact. + * + * @param WhoisContact $val The registrar + * + * @return WhoisBaseRecord + */ + public function setRegistrar($val) + { + $this->_propDict["registrar"] = $val; + return $this; + } + + /** + * Gets the registrationDateTime + * 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. + * + * @return \DateTime|null The registrationDateTime + */ + public function getRegistrationDateTime() + { + if (array_key_exists("registrationDateTime", $this->_propDict)) { + if (is_a($this->_propDict["registrationDateTime"], "\DateTime") || is_null($this->_propDict["registrationDateTime"])) { + return $this->_propDict["registrationDateTime"]; + } else { + $this->_propDict["registrationDateTime"] = new \DateTime($this->_propDict["registrationDateTime"]); + return $this->_propDict["registrationDateTime"]; + } + } + return null; + } + + /** + * Sets the registrationDateTime + * 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. + * + * @param \DateTime $val The registrationDateTime + * + * @return WhoisBaseRecord + */ + public function setRegistrationDateTime($val) + { + $this->_propDict["registrationDateTime"] = $val; + return $this; + } + + /** + * Gets the technical + * The contact information for the technical contact. + * + * @return WhoisContact|null The technical + */ + public function getTechnical() + { + if (array_key_exists("technical", $this->_propDict)) { + if (is_a($this->_propDict["technical"], "\Microsoft\Graph\SecurityNamespace\Model\WhoisContact") || is_null($this->_propDict["technical"])) { + return $this->_propDict["technical"]; + } else { + $this->_propDict["technical"] = new WhoisContact($this->_propDict["technical"]); + return $this->_propDict["technical"]; + } + } + return null; + } + + /** + * Sets the technical + * The contact information for the technical contact. + * + * @param WhoisContact $val The technical + * + * @return WhoisBaseRecord + */ + public function setTechnical($val) + { + $this->_propDict["technical"] = $val; + return $this; + } + + /** + * Gets the whoisServer + * The WHOIS server that provides the details. + * + * @return string|null The whoisServer + */ + public function getWhoisServer() + { + if (array_key_exists("whoisServer", $this->_propDict)) { + return $this->_propDict["whoisServer"]; + } else { + return null; + } + } + + /** + * Sets the whoisServer + * The WHOIS server that provides the details. + * + * @param string $val The whoisServer + * + * @return WhoisBaseRecord + */ + public function setWhoisServer($val) + { + $this->_propDict["whoisServer"] = $val; + return $this; + } + + /** + * Gets the zone + * The contact information for the zone contact. + * + * @return WhoisContact|null The zone + */ + public function getZone() + { + if (array_key_exists("zone", $this->_propDict)) { + if (is_a($this->_propDict["zone"], "\Microsoft\Graph\SecurityNamespace\Model\WhoisContact") || is_null($this->_propDict["zone"])) { + return $this->_propDict["zone"]; + } else { + $this->_propDict["zone"] = new WhoisContact($this->_propDict["zone"]); + return $this->_propDict["zone"]; + } + } + return null; + } + + /** + * Sets the zone + * The contact information for the zone contact. + * + * @param WhoisContact $val The zone + * + * @return WhoisBaseRecord + */ + public function setZone($val) + { + $this->_propDict["zone"] = $val; + return $this; + } + + /** + * Gets the host + * The host associated to this WHOIS object. + * + * @return Host|null The host + */ + public function getHost() + { + if (array_key_exists("host", $this->_propDict)) { + if (is_a($this->_propDict["host"], "\Microsoft\Graph\SecurityNamespace\Model\Host") || is_null($this->_propDict["host"])) { + return $this->_propDict["host"]; + } else { + $this->_propDict["host"] = new Host($this->_propDict["host"]); + return $this->_propDict["host"]; + } + } + return null; + } + + /** + * Sets the host + * The host associated to this WHOIS object. + * + * @param Host $val The host + * + * @return WhoisBaseRecord + */ + public function setHost($val) + { + $this->_propDict["host"] = $val; + return $this; + } + +} diff --git a/src/SecurityNamespace/Model/WhoisContact.php b/src/SecurityNamespace/Model/WhoisContact.php new file mode 100644 index 00000000000..b7eb05be6ff --- /dev/null +++ b/src/SecurityNamespace/Model/WhoisContact.php @@ -0,0 +1,199 @@ +_propDict)) { + if (is_a($this->_propDict["address"], "\Microsoft\Graph\Model\PhysicalAddress") || is_null($this->_propDict["address"])) { + return $this->_propDict["address"]; + } else { + $this->_propDict["address"] = new \Microsoft\Graph\Model\PhysicalAddress($this->_propDict["address"]); + return $this->_propDict["address"]; + } + } + return null; + } + + /** + * Sets the address + * The physical address of the entity. + * + * @param \Microsoft\Graph\Model\PhysicalAddress $val The value to assign to the address + * + * @return WhoisContact The WhoisContact + */ + public function setAddress($val) + { + $this->_propDict["address"] = $val; + return $this; + } + /** + * Gets the email + * The email of this WHOIS contact. + * + * @return string|null The email + */ + public function getEmail() + { + if (array_key_exists("email", $this->_propDict)) { + return $this->_propDict["email"]; + } else { + return null; + } + } + + /** + * Sets the email + * The email of this WHOIS contact. + * + * @param string $val The value of the email + * + * @return WhoisContact + */ + public function setEmail($val) + { + $this->_propDict["email"] = $val; + return $this; + } + /** + * Gets the fax + * The fax of this WHOIS contact. No format is guaranteed. + * + * @return string|null The fax + */ + public function getFax() + { + if (array_key_exists("fax", $this->_propDict)) { + return $this->_propDict["fax"]; + } else { + return null; + } + } + + /** + * Sets the fax + * The fax of this WHOIS contact. No format is guaranteed. + * + * @param string $val The value of the fax + * + * @return WhoisContact + */ + public function setFax($val) + { + $this->_propDict["fax"] = $val; + return $this; + } + /** + * Gets the name + * The name of this WHOIS contact. + * + * @return string|null The name + */ + public function getName() + { + if (array_key_exists("name", $this->_propDict)) { + return $this->_propDict["name"]; + } else { + return null; + } + } + + /** + * Sets the name + * The name of this WHOIS contact. + * + * @param string $val The value of the name + * + * @return WhoisContact + */ + public function setName($val) + { + $this->_propDict["name"] = $val; + return $this; + } + /** + * Gets the organization + * The organization of this WHOIS contact. + * + * @return string|null The organization + */ + public function getOrganization() + { + if (array_key_exists("organization", $this->_propDict)) { + return $this->_propDict["organization"]; + } else { + return null; + } + } + + /** + * Sets the organization + * The organization of this WHOIS contact. + * + * @param string $val The value of the organization + * + * @return WhoisContact + */ + public function setOrganization($val) + { + $this->_propDict["organization"] = $val; + return $this; + } + /** + * Gets the telephone + * The telephone of this WHOIS contact. No format is guaranteed. + * + * @return string|null The telephone + */ + public function getTelephone() + { + if (array_key_exists("telephone", $this->_propDict)) { + return $this->_propDict["telephone"]; + } else { + return null; + } + } + + /** + * Sets the telephone + * The telephone of this WHOIS contact. No format is guaranteed. + * + * @param string $val The value of the telephone + * + * @return WhoisContact + */ + public function setTelephone($val) + { + $this->_propDict["telephone"] = $val; + return $this; + } +} diff --git a/src/SecurityNamespace/Model/WhoisDomainStatus.php b/src/SecurityNamespace/Model/WhoisDomainStatus.php new file mode 100644 index 00000000000..34e88f32841 --- /dev/null +++ b/src/SecurityNamespace/Model/WhoisDomainStatus.php @@ -0,0 +1,38 @@ +_propDict)) { + if (is_a($this->_propDict["firstSeenDateTime"], "\DateTime") || is_null($this->_propDict["firstSeenDateTime"])) { + return $this->_propDict["firstSeenDateTime"]; + } else { + $this->_propDict["firstSeenDateTime"] = new \DateTime($this->_propDict["firstSeenDateTime"]); + return $this->_propDict["firstSeenDateTime"]; + } + } + return null; + } + + /** + * Sets the firstSeenDateTime + * 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. + * + * @param \DateTime $val The value to assign to the firstSeenDateTime + * + * @return WhoisNameserver The WhoisNameserver + */ + public function setFirstSeenDateTime($val) + { + $this->_propDict["firstSeenDateTime"] = $val; + return $this; + } + + /** + * Gets the lastSeenDateTime + * 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. + * + * @return \DateTime|null The lastSeenDateTime + */ + public function getLastSeenDateTime() + { + if (array_key_exists("lastSeenDateTime", $this->_propDict)) { + if (is_a($this->_propDict["lastSeenDateTime"], "\DateTime") || is_null($this->_propDict["lastSeenDateTime"])) { + return $this->_propDict["lastSeenDateTime"]; + } else { + $this->_propDict["lastSeenDateTime"] = new \DateTime($this->_propDict["lastSeenDateTime"]); + return $this->_propDict["lastSeenDateTime"]; + } + } + return null; + } + + /** + * Sets the lastSeenDateTime + * 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. + * + * @param \DateTime $val The value to assign to the lastSeenDateTime + * + * @return WhoisNameserver The WhoisNameserver + */ + public function setLastSeenDateTime($val) + { + $this->_propDict["lastSeenDateTime"] = $val; + return $this; + } + + /** + * Gets the host + * + * @return Host|null The host + */ + public function getHost() + { + if (array_key_exists("host", $this->_propDict)) { + if (is_a($this->_propDict["host"], "\Microsoft\Graph\SecurityNamespace\Model\Host") || is_null($this->_propDict["host"])) { + return $this->_propDict["host"]; + } else { + $this->_propDict["host"] = new Host($this->_propDict["host"]); + return $this->_propDict["host"]; + } + } + return null; + } + + /** + * Sets the host + * + * @param Host $val The value to assign to the host + * + * @return WhoisNameserver The WhoisNameserver + */ + public function setHost($val) + { + $this->_propDict["host"] = $val; + return $this; + } +} diff --git a/src/SecurityNamespace/Model/WhoisRecord.php b/src/SecurityNamespace/Model/WhoisRecord.php new file mode 100644 index 00000000000..00393de91c7 --- /dev/null +++ b/src/SecurityNamespace/Model/WhoisRecord.php @@ -0,0 +1,57 @@ +_propDict)) { + return $this->_propDict["history"]; + } else { + return null; + } + } + + /** + * Sets the history + * The collection of historical records associated to this WHOIS object. + * + * @param WhoisHistoryRecord[] $val The history + * + * @return WhoisRecord + */ + public function setHistory($val) + { + $this->_propDict["history"] = $val; + return $this; + } + +}