Skip to content

Commit 30155b5

Browse files
Microsoft Graph DevX ToolingMicrosoft Graph DevX Tooling
authored andcommitted
feat(generation): update request builders and models
Update generated files with build 183645
1 parent 7bdc55b commit 30155b5

File tree

1,358 files changed

+38095
-38095
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,358 files changed

+38095
-38095
lines changed

src/Generated/Admin/ServiceAnnouncement/Messages/Archive/ArchivePostResponse.php

Lines changed: 0 additions & 114 deletions
This file was deleted.

src/Generated/Admin/ServiceAnnouncement/Messages/Archive/ArchiveRequestBuilder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap
3333
* Archive a list of serviceUpdateMessages for the signed in user.
3434
* @param ArchivePostRequestBody $body The request body
3535
* @param ArchiveRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
36-
* @return Promise<ArchivePostResponse|null>
36+
* @return Promise<ArchivepostResponse|null>
3737
* @throws Exception
3838
* @link https://learn.microsoft.com/graph/api/serviceupdatemessage-archive?view=graph-rest-1.0 Find more info here
3939
*/
@@ -42,7 +42,7 @@ public function post(ArchivePostRequestBody $body, ?ArchiveRequestBuilderPostReq
4242
$errorMappings = [
4343
'XXX' => [ODataError::class, 'createFromDiscriminatorValue'],
4444
];
45-
return $this->requestAdapter->sendAsync($requestInfo, [ArchivePostResponse::class, 'createFromDiscriminatorValue'], $errorMappings);
45+
return $this->requestAdapter->sendAsync($requestInfo, [ArchivepostResponse::class, 'createFromDiscriminatorValue'], $errorMappings);
4646
}
4747

4848
/**
Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
<?php
2+
3+
namespace Microsoft\Graph\Generated\Admin\ServiceAnnouncement\Messages\Archive;
4+
5+
use Microsoft\Kiota\Abstractions\Serialization\AdditionalDataHolder;
6+
use Microsoft\Kiota\Abstractions\Serialization\Parsable;
7+
use Microsoft\Kiota\Abstractions\Serialization\ParseNode;
8+
use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter;
9+
use Microsoft\Kiota\Abstractions\Store\BackedModel;
10+
use Microsoft\Kiota\Abstractions\Store\BackingStore;
11+
use Microsoft\Kiota\Abstractions\Store\BackingStoreFactorySingleton;
12+
13+
class ArchivepostResponse implements AdditionalDataHolder, BackedModel, Parsable
14+
{
15+
/**
16+
* @var BackingStore $backingStore Stores model information.
17+
*/
18+
private BackingStore $backingStore;
19+
20+
/**
21+
* Instantiates a new ArchivepostResponse and sets the default values.
22+
*/
23+
public function __construct() {
24+
$this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore();
25+
$this->setAdditionalData([]);
26+
}
27+
28+
/**
29+
* Creates a new instance of the appropriate class based on discriminator value
30+
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
31+
* @return ArchivepostResponse
32+
*/
33+
public static function createFromDiscriminatorValue(ParseNode $parseNode): ArchivepostResponse {
34+
return new ArchivepostResponse();
35+
}
36+
37+
/**
38+
* Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
39+
* @return array<string, mixed>|null
40+
*/
41+
public function getAdditionalData(): ?array {
42+
$val = $this->getBackingStore()->get('additionalData');
43+
if (is_null($val) || is_array($val)) {
44+
/** @var array<string, mixed>|null $val */
45+
return $val;
46+
}
47+
throw new \UnexpectedValueException("Invalid type found in backing store for 'additionalData'");
48+
}
49+
50+
/**
51+
* Gets the BackingStore property value. Stores model information.
52+
* @return BackingStore
53+
*/
54+
public function getBackingStore(): BackingStore {
55+
return $this->backingStore;
56+
}
57+
58+
/**
59+
* The deserialization information for the current model
60+
* @return array<string, callable(ParseNode): void>
61+
*/
62+
public function getFieldDeserializers(): array {
63+
$o = $this;
64+
return [
65+
'value' => fn(ParseNode $n) => $o->setValue($n->getBooleanValue()),
66+
];
67+
}
68+
69+
/**
70+
* Gets the value property value. The value property
71+
* @return bool|null
72+
*/
73+
public function getValue(): ?bool {
74+
$val = $this->getBackingStore()->get('value');
75+
if (is_null($val) || is_bool($val)) {
76+
return $val;
77+
}
78+
throw new \UnexpectedValueException("Invalid type found in backing store for 'value'");
79+
}
80+
81+
/**
82+
* Serializes information the current object
83+
* @param SerializationWriter $writer Serialization writer to use to serialize this model
84+
*/
85+
public function serialize(SerializationWriter $writer): void {
86+
$writer->writeBooleanValue('value', $this->getValue());
87+
$writer->writeAdditionalData($this->getAdditionalData());
88+
}
89+
90+
/**
91+
* Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
92+
* @param array<string,mixed> $value Value to set for the AdditionalData property.
93+
*/
94+
public function setAdditionalData(?array $value): void {
95+
$this->getBackingStore()->set('additionalData', $value);
96+
}
97+
98+
/**
99+
* Sets the BackingStore property value. Stores model information.
100+
* @param BackingStore $value Value to set for the BackingStore property.
101+
*/
102+
public function setBackingStore(BackingStore $value): void {
103+
$this->backingStore = $value;
104+
}
105+
106+
/**
107+
* Sets the value property value. The value property
108+
* @param bool|null $value Value to set for the value property.
109+
*/
110+
public function setValue(?bool $value): void {
111+
$this->getBackingStore()->set('value', $value);
112+
}
113+
114+
}

src/Generated/Admin/ServiceAnnouncement/Messages/Favorite/FavoritePostResponse.php

Lines changed: 0 additions & 114 deletions
This file was deleted.

src/Generated/Admin/ServiceAnnouncement/Messages/Favorite/FavoriteRequestBuilder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap
3333
* Change the status of a list of serviceUpdateMessages to favorite for the signed in user.
3434
* @param FavoritePostRequestBody $body The request body
3535
* @param FavoriteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
36-
* @return Promise<FavoritePostResponse|null>
36+
* @return Promise<FavoritepostResponse|null>
3737
* @throws Exception
3838
* @link https://learn.microsoft.com/graph/api/serviceupdatemessage-favorite?view=graph-rest-1.0 Find more info here
3939
*/
@@ -42,7 +42,7 @@ public function post(FavoritePostRequestBody $body, ?FavoriteRequestBuilderPostR
4242
$errorMappings = [
4343
'XXX' => [ODataError::class, 'createFromDiscriminatorValue'],
4444
];
45-
return $this->requestAdapter->sendAsync($requestInfo, [FavoritePostResponse::class, 'createFromDiscriminatorValue'], $errorMappings);
45+
return $this->requestAdapter->sendAsync($requestInfo, [FavoritepostResponse::class, 'createFromDiscriminatorValue'], $errorMappings);
4646
}
4747

4848
/**

0 commit comments

Comments
 (0)