- Implemented OracleRequestBuilder for connectivity checks. - Added OracleHealthCheckResponse and related models. - Updated OpenAPI documentation for new endpoint.
149 lines
5.3 KiB
PHP
149 lines
5.3 KiB
PHP
<?php
|
|
|
|
namespace Uwil\ArcadiaKiotaOpenApiClient\Models;
|
|
|
|
use DateTime;
|
|
use Microsoft\Kiota\Abstractions\ApiException;
|
|
use Microsoft\Kiota\Abstractions\Serialization\AdditionalDataHolder;
|
|
use Microsoft\Kiota\Abstractions\Serialization\Parsable;
|
|
use Microsoft\Kiota\Abstractions\Serialization\ParseNode;
|
|
use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter;
|
|
|
|
/**
|
|
* Résultat de la sonde de connectivité Oracle.
|
|
*/
|
|
class OracleHealthCheckResponse extends ApiException implements AdditionalDataHolder, Parsable
|
|
{
|
|
/**
|
|
* @var array<string, mixed>|null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
*/
|
|
private ?array $additionalData = null;
|
|
|
|
/**
|
|
* @var OracleHealthCheckResponse_oracle|null $oracle The oracle property
|
|
*/
|
|
private ?OracleHealthCheckResponse_oracle $oracle = null;
|
|
|
|
/**
|
|
* @var OracleHealthCheckResponse_status|null $status État de santé global de la connectivité Oracle.
|
|
*/
|
|
private ?OracleHealthCheckResponse_status $status = null;
|
|
|
|
/**
|
|
* @var DateTime|null $timestamp Horodatage de la vérification au format RFC 3339 UTC.
|
|
*/
|
|
private ?DateTime $timestamp = null;
|
|
|
|
/**
|
|
* Instantiates a new OracleHealthCheckResponse and sets the default values.
|
|
*/
|
|
public function __construct() {
|
|
$this->setAdditionalData([]);
|
|
}
|
|
|
|
/**
|
|
* 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 OracleHealthCheckResponse
|
|
*/
|
|
public static function createFromDiscriminatorValue(ParseNode $parseNode): OracleHealthCheckResponse {
|
|
return new OracleHealthCheckResponse();
|
|
}
|
|
|
|
/**
|
|
* Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
* @return array<string, mixed>|null
|
|
*/
|
|
public function getAdditionalData(): ?array {
|
|
return $this->additionalData;
|
|
}
|
|
|
|
/**
|
|
* The deserialization information for the current model
|
|
* @return array<string, callable(ParseNode): void>
|
|
*/
|
|
public function getFieldDeserializers(): array {
|
|
$o = $this;
|
|
return [
|
|
'oracle' => fn(ParseNode $n) => $o->setOracle($n->getObjectValue([OracleHealthCheckResponse_oracle::class, 'createFromDiscriminatorValue'])),
|
|
'status' => fn(ParseNode $n) => $o->setStatus($n->getEnumValue(OracleHealthCheckResponse_status::class)),
|
|
'timestamp' => fn(ParseNode $n) => $o->setTimestamp($n->getDateTimeValue()),
|
|
];
|
|
}
|
|
|
|
/**
|
|
* Gets the oracle property value. The oracle property
|
|
* @return OracleHealthCheckResponse_oracle|null
|
|
*/
|
|
public function getOracle(): ?OracleHealthCheckResponse_oracle {
|
|
return $this->oracle;
|
|
}
|
|
|
|
/**
|
|
* The primary error message.
|
|
* @return string
|
|
*/
|
|
public function getPrimaryErrorMessage(): string {
|
|
return parent::getMessage();
|
|
}
|
|
|
|
/**
|
|
* Gets the status property value. État de santé global de la connectivité Oracle.
|
|
* @return OracleHealthCheckResponse_status|null
|
|
*/
|
|
public function getStatus(): ?OracleHealthCheckResponse_status {
|
|
return $this->status;
|
|
}
|
|
|
|
/**
|
|
* Gets the timestamp property value. Horodatage de la vérification au format RFC 3339 UTC.
|
|
* @return DateTime|null
|
|
*/
|
|
public function getTimestamp(): ?DateTime {
|
|
return $this->timestamp;
|
|
}
|
|
|
|
/**
|
|
* Serializes information the current object
|
|
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
|
*/
|
|
public function serialize(SerializationWriter $writer): void {
|
|
$writer->writeObjectValue('oracle', $this->getOracle());
|
|
$writer->writeEnumValue('status', $this->getStatus());
|
|
$writer->writeDateTimeValue('timestamp', $this->getTimestamp());
|
|
$writer->writeAdditionalData($this->getAdditionalData());
|
|
}
|
|
|
|
/**
|
|
* Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
|
*/
|
|
public function setAdditionalData(?array $value): void {
|
|
$this->additionalData = $value;
|
|
}
|
|
|
|
/**
|
|
* Sets the oracle property value. The oracle property
|
|
* @param OracleHealthCheckResponse_oracle|null $value Value to set for the oracle property.
|
|
*/
|
|
public function setOracle(?OracleHealthCheckResponse_oracle $value): void {
|
|
$this->oracle = $value;
|
|
}
|
|
|
|
/**
|
|
* Sets the status property value. État de santé global de la connectivité Oracle.
|
|
* @param OracleHealthCheckResponse_status|null $value Value to set for the status property.
|
|
*/
|
|
public function setStatus(?OracleHealthCheckResponse_status $value): void {
|
|
$this->status = $value;
|
|
}
|
|
|
|
/**
|
|
* Sets the timestamp property value. Horodatage de la vérification au format RFC 3339 UTC.
|
|
* @param DateTime|null $value Value to set for the timestamp property.
|
|
*/
|
|
public function setTimestamp(?DateTime $value): void {
|
|
$this->timestamp = $value;
|
|
}
|
|
|
|
}
|