Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/Generated/Models/Entity.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@
use Microsoft\Graph\Generated\Models\Security\Search;
use Microsoft\Graph\Generated\Models\Security\Security;
use Microsoft\Graph\Generated\Models\Security\Sensor;
use Microsoft\Graph\Generated\Models\Security\SensorCandidate;
use Microsoft\Graph\Generated\Models\Security\SensorCandidateActivationConfiguration;
use Microsoft\Graph\Generated\Models\Security\SiteSource;
use Microsoft\Graph\Generated\Models\Security\SslCertificate;
use Microsoft\Graph\Generated\Models\Security\SubcategoryTemplate;
Expand Down Expand Up @@ -887,6 +889,8 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Entit
case '#microsoft.graph.security.retentionLabel': return new RetentionLabel();
case '#microsoft.graph.security.search': return new Search();
case '#microsoft.graph.security.sensor': return new Sensor();
case '#microsoft.graph.security.sensorCandidate': return new SensorCandidate();
case '#microsoft.graph.security.sensorCandidateActivationConfiguration': return new SensorCandidateActivationConfiguration();
case '#microsoft.graph.security.siteSource': return new SiteSource();
case '#microsoft.graph.security.sslCertificate': return new SslCertificate();
case '#microsoft.graph.security.subcategoryTemplate': return new SubcategoryTemplate();
Expand Down
46 changes: 46 additions & 0 deletions src/Generated/Models/Security/IdentityContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ public function getFieldDeserializers(): array {
$o = $this;
return array_merge(parent::getFieldDeserializers(), [
'healthIssues' => fn(ParseNode $n) => $o->setHealthIssues($n->getCollectionOfObjectValues([HealthIssue::class, 'createFromDiscriminatorValue'])),
'sensorCandidateActivationConfiguration' => fn(ParseNode $n) => $o->setSensorCandidateActivationConfiguration($n->getObjectValue([SensorCandidateActivationConfiguration::class, 'createFromDiscriminatorValue'])),
'sensorCandidates' => fn(ParseNode $n) => $o->setSensorCandidates($n->getCollectionOfObjectValues([SensorCandidate::class, 'createFromDiscriminatorValue'])),
'sensors' => fn(ParseNode $n) => $o->setSensors($n->getCollectionOfObjectValues([Sensor::class, 'createFromDiscriminatorValue'])),
]);
}
Expand All @@ -52,6 +54,32 @@ public function getHealthIssues(): ?array {
throw new \UnexpectedValueException("Invalid type found in backing store for 'healthIssues'");
}

/**
* Gets the sensorCandidateActivationConfiguration property value. The sensorCandidateActivationConfiguration property
* @return SensorCandidateActivationConfiguration|null
*/
public function getSensorCandidateActivationConfiguration(): ?SensorCandidateActivationConfiguration {
$val = $this->getBackingStore()->get('sensorCandidateActivationConfiguration');
if (is_null($val) || $val instanceof SensorCandidateActivationConfiguration) {
return $val;
}
throw new \UnexpectedValueException("Invalid type found in backing store for 'sensorCandidateActivationConfiguration'");
}

/**
* Gets the sensorCandidates property value. Represents Microsoft Defender for Identity sensors that are ready to be activated.
* @return array<SensorCandidate>|null
*/
public function getSensorCandidates(): ?array {
$val = $this->getBackingStore()->get('sensorCandidates');
if (is_array($val) || is_null($val)) {
TypeUtils::validateCollectionValues($val, SensorCandidate::class);
/** @var array<SensorCandidate>|null $val */
return $val;
}
throw new \UnexpectedValueException("Invalid type found in backing store for 'sensorCandidates'");
}

/**
* Gets the sensors property value. Represents a customer's Microsoft Defender for Identity sensors.
* @return array<Sensor>|null
Expand All @@ -73,6 +101,8 @@ public function getSensors(): ?array {
public function serialize(SerializationWriter $writer): void {
parent::serialize($writer);
$writer->writeCollectionOfObjectValues('healthIssues', $this->getHealthIssues());
$writer->writeObjectValue('sensorCandidateActivationConfiguration', $this->getSensorCandidateActivationConfiguration());
$writer->writeCollectionOfObjectValues('sensorCandidates', $this->getSensorCandidates());
$writer->writeCollectionOfObjectValues('sensors', $this->getSensors());
}

Expand All @@ -84,6 +114,22 @@ public function setHealthIssues(?array $value): void {
$this->getBackingStore()->set('healthIssues', $value);
}

/**
* Sets the sensorCandidateActivationConfiguration property value. The sensorCandidateActivationConfiguration property
* @param SensorCandidateActivationConfiguration|null $value Value to set for the sensorCandidateActivationConfiguration property.
*/
public function setSensorCandidateActivationConfiguration(?SensorCandidateActivationConfiguration $value): void {
$this->getBackingStore()->set('sensorCandidateActivationConfiguration', $value);
}

/**
* Sets the sensorCandidates property value. Represents Microsoft Defender for Identity sensors that are ready to be activated.
* @param array<SensorCandidate>|null $value Value to set for the sensorCandidates property.
*/
public function setSensorCandidates(?array $value): void {
$this->getBackingStore()->set('sensorCandidates', $value);
}

/**
* Sets the sensors property value. Represents a customer's Microsoft Defender for Identity sensors.
* @param array<Sensor>|null $value Value to set for the sensors property.
Expand Down
113 changes: 113 additions & 0 deletions src/Generated/Models/Security/SensorCandidate.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
<?php

namespace Microsoft\Graph\Generated\Models\Security;

use DateTime;
use Microsoft\Graph\Generated\Models\Entity;
use Microsoft\Kiota\Abstractions\Serialization\Parsable;
use Microsoft\Kiota\Abstractions\Serialization\ParseNode;
use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter;

class SensorCandidate extends Entity implements Parsable
{
/**
* Instantiates a new SensorCandidate and sets the default values.
*/
public function __construct() {
parent::__construct();
}

/**
* Creates a new instance of the appropriate class based on discriminator value
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
* @return SensorCandidate
*/
public static function createFromDiscriminatorValue(ParseNode $parseNode): SensorCandidate {
return new SensorCandidate();
}

/**
* Gets the computerDnsName property value. The DNS name of the computer associated with the sensor.
* @return string|null
*/
public function getComputerDnsName(): ?string {
$val = $this->getBackingStore()->get('computerDnsName');
if (is_null($val) || is_string($val)) {
return $val;
}
throw new \UnexpectedValueException("Invalid type found in backing store for 'computerDnsName'");
}

/**
* The deserialization information for the current model
* @return array<string, callable(ParseNode): void>
*/
public function getFieldDeserializers(): array {
$o = $this;
return array_merge(parent::getFieldDeserializers(), [
'computerDnsName' => fn(ParseNode $n) => $o->setComputerDnsName($n->getStringValue()),
'lastSeenDateTime' => fn(ParseNode $n) => $o->setLastSeenDateTime($n->getDateTimeValue()),
'senseClientVersion' => fn(ParseNode $n) => $o->setSenseClientVersion($n->getStringValue()),
]);
}

/**
* Gets the lastSeenDateTime property value. The date and time when the sensor was last seen.
* @return DateTime|null
*/
public function getLastSeenDateTime(): ?DateTime {
$val = $this->getBackingStore()->get('lastSeenDateTime');
if (is_null($val) || $val instanceof DateTime) {
return $val;
}
throw new \UnexpectedValueException("Invalid type found in backing store for 'lastSeenDateTime'");
}

/**
* Gets the senseClientVersion property value. The version of the Defender for Identity sensor client. Supports $filter (eq).
* @return string|null
*/
public function getSenseClientVersion(): ?string {
$val = $this->getBackingStore()->get('senseClientVersion');
if (is_null($val) || is_string($val)) {
return $val;
}
throw new \UnexpectedValueException("Invalid type found in backing store for 'senseClientVersion'");
}

/**
* Serializes information the current object
* @param SerializationWriter $writer Serialization writer to use to serialize this model
*/
public function serialize(SerializationWriter $writer): void {
parent::serialize($writer);
$writer->writeStringValue('computerDnsName', $this->getComputerDnsName());
$writer->writeDateTimeValue('lastSeenDateTime', $this->getLastSeenDateTime());
$writer->writeStringValue('senseClientVersion', $this->getSenseClientVersion());
}

/**
* Sets the computerDnsName property value. The DNS name of the computer associated with the sensor.
* @param string|null $value Value to set for the computerDnsName property.
*/
public function setComputerDnsName(?string $value): void {
$this->getBackingStore()->set('computerDnsName', $value);
}

/**
* Sets the lastSeenDateTime property value. The date and time when the sensor was last seen.
* @param DateTime|null $value Value to set for the lastSeenDateTime property.
*/
public function setLastSeenDateTime(?DateTime $value): void {
$this->getBackingStore()->set('lastSeenDateTime', $value);
}

/**
* Sets the senseClientVersion property value. The version of the Defender for Identity sensor client. Supports $filter (eq).
* @param string|null $value Value to set for the senseClientVersion property.
*/
public function setSenseClientVersion(?string $value): void {
$this->getBackingStore()->set('senseClientVersion', $value);
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
<?php

namespace Microsoft\Graph\Generated\Models\Security;

use Microsoft\Graph\Generated\Models\Entity;
use Microsoft\Kiota\Abstractions\Serialization\Parsable;
use Microsoft\Kiota\Abstractions\Serialization\ParseNode;
use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter;

class SensorCandidateActivationConfiguration extends Entity implements Parsable
{
/**
* Instantiates a new SensorCandidateActivationConfiguration and sets the default values.
*/
public function __construct() {
parent::__construct();
}

/**
* Creates a new instance of the appropriate class based on discriminator value
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
* @return SensorCandidateActivationConfiguration
*/
public static function createFromDiscriminatorValue(ParseNode $parseNode): SensorCandidateActivationConfiguration {
return new SensorCandidateActivationConfiguration();
}

/**
* Gets the activationMode property value. The activationMode property
* @return SensorCandidateActivationMode|null
*/
public function getActivationMode(): ?SensorCandidateActivationMode {
$val = $this->getBackingStore()->get('activationMode');
if (is_null($val) || $val instanceof SensorCandidateActivationMode) {
return $val;
}
throw new \UnexpectedValueException("Invalid type found in backing store for 'activationMode'");
}

/**
* The deserialization information for the current model
* @return array<string, callable(ParseNode): void>
*/
public function getFieldDeserializers(): array {
$o = $this;
return array_merge(parent::getFieldDeserializers(), [
'activationMode' => fn(ParseNode $n) => $o->setActivationMode($n->getEnumValue(SensorCandidateActivationMode::class)),
]);
}

/**
* Serializes information the current object
* @param SerializationWriter $writer Serialization writer to use to serialize this model
*/
public function serialize(SerializationWriter $writer): void {
parent::serialize($writer);
$writer->writeEnumValue('activationMode', $this->getActivationMode());
}

/**
* Sets the activationMode property value. The activationMode property
* @param SensorCandidateActivationMode|null $value Value to set for the activationMode property.
*/
public function setActivationMode(?SensorCandidateActivationMode $value): void {
$this->getBackingStore()->set('activationMode', $value);
}

}
11 changes: 11 additions & 0 deletions src/Generated/Models/Security/SensorCandidateActivationMode.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

namespace Microsoft\Graph\Generated\Models\Security;

use Microsoft\Kiota\Abstractions\Enum;

class SensorCandidateActivationMode extends Enum {
public const MANUAL = "manual";
public const AUTOMATED = "automated";
public const UNKNOWN_FUTURE_VALUE = "unknownFutureValue";
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
<?php

namespace Microsoft\Graph\Generated\Models\Security;

use Microsoft\Graph\Generated\Models\BaseCollectionPaginationCountResponse;
use Microsoft\Kiota\Abstractions\Serialization\Parsable;
use Microsoft\Kiota\Abstractions\Serialization\ParseNode;
use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter;
use Microsoft\Kiota\Abstractions\Types\TypeUtils;

class SensorCandidateCollectionResponse extends BaseCollectionPaginationCountResponse implements Parsable
{
/**
* Instantiates a new SensorCandidateCollectionResponse and sets the default values.
*/
public function __construct() {
parent::__construct();
}

/**
* Creates a new instance of the appropriate class based on discriminator value
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
* @return SensorCandidateCollectionResponse
*/
public static function createFromDiscriminatorValue(ParseNode $parseNode): SensorCandidateCollectionResponse {
return new SensorCandidateCollectionResponse();
}

/**
* The deserialization information for the current model
* @return array<string, callable(ParseNode): void>
*/
public function getFieldDeserializers(): array {
$o = $this;
return array_merge(parent::getFieldDeserializers(), [
'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([SensorCandidate::class, 'createFromDiscriminatorValue'])),
]);
}

/**
* Gets the value property value. The value property
* @return array<SensorCandidate>|null
*/
public function getValue(): ?array {
$val = $this->getBackingStore()->get('value');
if (is_array($val) || is_null($val)) {
TypeUtils::validateCollectionValues($val, SensorCandidate::class);
/** @var array<SensorCandidate>|null $val */
return $val;
}
throw new \UnexpectedValueException("Invalid type found in backing store for 'value'");
}

/**
* Serializes information the current object
* @param SerializationWriter $writer Serialization writer to use to serialize this model
*/
public function serialize(SerializationWriter $writer): void {
parent::serialize($writer);
$writer->writeCollectionOfObjectValues('value', $this->getValue());
}

/**
* Sets the value property value. The value property
* @param array<SensorCandidate>|null $value Value to set for the value property.
*/
public function setValue(?array $value): void {
$this->getBackingStore()->set('value', $value);
}

}
16 changes: 16 additions & 0 deletions src/Generated/Security/Identities/IdentitiesRequestBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
use Microsoft\Graph\Generated\Models\ODataErrors\ODataError;
use Microsoft\Graph\Generated\Models\Security\IdentityContainer;
use Microsoft\Graph\Generated\Security\Identities\HealthIssues\HealthIssuesRequestBuilder;
use Microsoft\Graph\Generated\Security\Identities\SensorCandidateActivationConfiguration\SensorCandidateActivationConfigurationRequestBuilder;
use Microsoft\Graph\Generated\Security\Identities\SensorCandidates\SensorCandidatesRequestBuilder;
use Microsoft\Graph\Generated\Security\Identities\Sensors\SensorsRequestBuilder;
use Microsoft\Kiota\Abstractions\BaseRequestBuilder;
use Microsoft\Kiota\Abstractions\HttpMethod;
Expand All @@ -25,6 +27,20 @@ public function healthIssues(): HealthIssuesRequestBuilder {
return new HealthIssuesRequestBuilder($this->pathParameters, $this->requestAdapter);
}

/**
* Provides operations to manage the sensorCandidateActivationConfiguration property of the microsoft.graph.security.identityContainer entity.
*/
public function sensorCandidateActivationConfiguration(): SensorCandidateActivationConfigurationRequestBuilder {
return new SensorCandidateActivationConfigurationRequestBuilder($this->pathParameters, $this->requestAdapter);
}

/**
* Provides operations to manage the sensorCandidates property of the microsoft.graph.security.identityContainer entity.
*/
public function sensorCandidates(): SensorCandidatesRequestBuilder {
return new SensorCandidatesRequestBuilder($this->pathParameters, $this->requestAdapter);
}

/**
* Provides operations to manage the sensors property of the microsoft.graph.security.identityContainer entity.
*/
Expand Down
Loading