Skip to content

Commit 363183a

Browse files
authored
Merge pull request #370 from microsoftgraph/kiota/beta/pipelinebuild/182263
Generated beta models and request builders
2 parents 8caf0aa + 6f07cc7 commit 363183a

File tree

341 files changed

+15985
-308
lines changed

Some content is hidden

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

341 files changed

+15985
-308
lines changed

src/Generated/Admin/Windows/Updates/UpdatableAssets/Item/UpdatableAssetItemRequestBuilder.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,11 @@ public function delete(?UpdatableAssetItemRequestBuilderDeleteRequestConfigurati
7878
}
7979

8080
/**
81-
* Read the properties of an azureADDevice object.
81+
* Read the properties and relationships of an updatableAssetGroup object.
8282
* @param UpdatableAssetItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
8383
* @return Promise<UpdatableAsset|null>
8484
* @throws Exception
85-
* @link https://learn.microsoft.com/graph/api/windowsupdates-azureaddevice-get?view=graph-rest-beta Find more info here
85+
* @link https://learn.microsoft.com/graph/api/windowsupdates-updatableassetgroup-get?view=graph-rest-beta Find more info here
8686
*/
8787
public function get(?UpdatableAssetItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise {
8888
$requestInfo = $this->toGetRequestInformation($requestConfiguration);
@@ -126,7 +126,7 @@ public function toDeleteRequestInformation(?UpdatableAssetItemRequestBuilderDele
126126
}
127127

128128
/**
129-
* Read the properties of an azureADDevice object.
129+
* Read the properties and relationships of an updatableAssetGroup object.
130130
* @param UpdatableAssetItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
131131
* @return RequestInformation
132132
*/

src/Generated/Admin/Windows/Updates/UpdatableAssets/Item/UpdatableAssetItemRequestBuilderGetQueryParameters.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use Microsoft\Kiota\Abstractions\QueryParameter;
66

77
/**
8-
* Read the properties of an azureADDevice object.
8+
* Read the properties and relationships of an updatableAssetGroup object.
99
*/
1010
class UpdatableAssetItemRequestBuilderGetQueryParameters
1111
{

src/Generated/Admin/Windows/Updates/UpdatePolicies/Item/ComplianceChanges/Item/ComplianceChangeItemRequestBuilder.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap
3939
}
4040

4141
/**
42-
* Delete a complianceChange object.
42+
* Delete a contentApproval object.
4343
* @param ComplianceChangeItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
4444
* @return Promise<void|null>
4545
* @throws Exception
46-
* @link https://learn.microsoft.com/graph/api/windowsupdates-compliancechange-delete?view=graph-rest-beta Find more info here
46+
* @link https://learn.microsoft.com/graph/api/windowsupdates-contentapproval-delete?view=graph-rest-beta Find more info here
4747
*/
4848
public function delete(?ComplianceChangeItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise {
4949
$requestInfo = $this->toDeleteRequestInformation($requestConfiguration);
@@ -54,11 +54,11 @@ public function delete(?ComplianceChangeItemRequestBuilderDeleteRequestConfigura
5454
}
5555

5656
/**
57-
* Read the properties and relationships of a complianceChange object.
57+
* Read the properties and relationships of a contentApproval object.
5858
* @param ComplianceChangeItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
5959
* @return Promise<ComplianceChange|null>
6060
* @throws Exception
61-
* @link https://learn.microsoft.com/graph/api/windowsupdates-compliancechange-get?view=graph-rest-beta Find more info here
61+
* @link https://learn.microsoft.com/graph/api/windowsupdates-contentapproval-get?view=graph-rest-beta Find more info here
6262
*/
6363
public function get(?ComplianceChangeItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise {
6464
$requestInfo = $this->toGetRequestInformation($requestConfiguration);
@@ -85,7 +85,7 @@ public function patch(ComplianceChange $body, ?ComplianceChangeItemRequestBuilde
8585
}
8686

8787
/**
88-
* Delete a complianceChange object.
88+
* Delete a contentApproval object.
8989
* @param ComplianceChangeItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
9090
* @return RequestInformation
9191
*/
@@ -103,7 +103,7 @@ public function toDeleteRequestInformation(?ComplianceChangeItemRequestBuilderDe
103103
}
104104

105105
/**
106-
* Read the properties and relationships of a complianceChange object.
106+
* Read the properties and relationships of a contentApproval object.
107107
* @param ComplianceChangeItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
108108
* @return RequestInformation
109109
*/

src/Generated/Admin/Windows/Updates/UpdatePolicies/Item/ComplianceChanges/Item/ComplianceChangeItemRequestBuilderGetQueryParameters.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use Microsoft\Kiota\Abstractions\QueryParameter;
66

77
/**
8-
* Read the properties and relationships of a complianceChange object.
8+
* Read the properties and relationships of a contentApproval object.
99
*/
1010
class ComplianceChangeItemRequestBuilderGetQueryParameters
1111
{
Lines changed: 178 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,178 @@
1+
<?php
2+
3+
namespace Microsoft\Graph\Beta\Generated\Chats\Item\Messages\ForwardToChat;
4+
5+
use Microsoft\Graph\Beta\Generated\Models\ChatMessage;
6+
use Microsoft\Kiota\Abstractions\Serialization\AdditionalDataHolder;
7+
use Microsoft\Kiota\Abstractions\Serialization\Parsable;
8+
use Microsoft\Kiota\Abstractions\Serialization\ParseNode;
9+
use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter;
10+
use Microsoft\Kiota\Abstractions\Store\BackedModel;
11+
use Microsoft\Kiota\Abstractions\Store\BackingStore;
12+
use Microsoft\Kiota\Abstractions\Store\BackingStoreFactorySingleton;
13+
use Microsoft\Kiota\Abstractions\Types\TypeUtils;
14+
15+
class ForwardToChatPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable
16+
{
17+
/**
18+
* @var BackingStore $backingStore Stores model information.
19+
*/
20+
private BackingStore $backingStore;
21+
22+
/**
23+
* Instantiates a new ForwardToChatPostRequestBody and sets the default values.
24+
*/
25+
public function __construct() {
26+
$this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore();
27+
$this->setAdditionalData([]);
28+
}
29+
30+
/**
31+
* Creates a new instance of the appropriate class based on discriminator value
32+
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
33+
* @return ForwardToChatPostRequestBody
34+
*/
35+
public static function createFromDiscriminatorValue(ParseNode $parseNode): ForwardToChatPostRequestBody {
36+
return new ForwardToChatPostRequestBody();
37+
}
38+
39+
/**
40+
* Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
41+
* @return array<string, mixed>|null
42+
*/
43+
public function getAdditionalData(): ?array {
44+
$val = $this->getBackingStore()->get('additionalData');
45+
if (is_null($val) || is_array($val)) {
46+
/** @var array<string, mixed>|null $val */
47+
return $val;
48+
}
49+
throw new \UnexpectedValueException("Invalid type found in backing store for 'additionalData'");
50+
}
51+
52+
/**
53+
* Gets the additionalMessage property value. The additionalMessage property
54+
* @return ChatMessage|null
55+
*/
56+
public function getAdditionalMessage(): ?ChatMessage {
57+
$val = $this->getBackingStore()->get('additionalMessage');
58+
if (is_null($val) || $val instanceof ChatMessage) {
59+
return $val;
60+
}
61+
throw new \UnexpectedValueException("Invalid type found in backing store for 'additionalMessage'");
62+
}
63+
64+
/**
65+
* Gets the BackingStore property value. Stores model information.
66+
* @return BackingStore
67+
*/
68+
public function getBackingStore(): BackingStore {
69+
return $this->backingStore;
70+
}
71+
72+
/**
73+
* The deserialization information for the current model
74+
* @return array<string, callable(ParseNode): void>
75+
*/
76+
public function getFieldDeserializers(): array {
77+
$o = $this;
78+
return [
79+
'additionalMessage' => fn(ParseNode $n) => $o->setAdditionalMessage($n->getObjectValue([ChatMessage::class, 'createFromDiscriminatorValue'])),
80+
'messageIds' => function (ParseNode $n) {
81+
$val = $n->getCollectionOfPrimitiveValues();
82+
if (is_array($val)) {
83+
TypeUtils::validateCollectionValues($val, 'string');
84+
}
85+
/** @var array<string>|null $val */
86+
$this->setMessageIds($val);
87+
},
88+
'targetChatIds' => function (ParseNode $n) {
89+
$val = $n->getCollectionOfPrimitiveValues();
90+
if (is_array($val)) {
91+
TypeUtils::validateCollectionValues($val, 'string');
92+
}
93+
/** @var array<string>|null $val */
94+
$this->setTargetChatIds($val);
95+
},
96+
];
97+
}
98+
99+
/**
100+
* Gets the messageIds property value. The messageIds property
101+
* @return array<string>|null
102+
*/
103+
public function getMessageIds(): ?array {
104+
$val = $this->getBackingStore()->get('messageIds');
105+
if (is_array($val) || is_null($val)) {
106+
TypeUtils::validateCollectionValues($val, 'string');
107+
/** @var array<string>|null $val */
108+
return $val;
109+
}
110+
throw new \UnexpectedValueException("Invalid type found in backing store for 'messageIds'");
111+
}
112+
113+
/**
114+
* Gets the targetChatIds property value. The targetChatIds property
115+
* @return array<string>|null
116+
*/
117+
public function getTargetChatIds(): ?array {
118+
$val = $this->getBackingStore()->get('targetChatIds');
119+
if (is_array($val) || is_null($val)) {
120+
TypeUtils::validateCollectionValues($val, 'string');
121+
/** @var array<string>|null $val */
122+
return $val;
123+
}
124+
throw new \UnexpectedValueException("Invalid type found in backing store for 'targetChatIds'");
125+
}
126+
127+
/**
128+
* Serializes information the current object
129+
* @param SerializationWriter $writer Serialization writer to use to serialize this model
130+
*/
131+
public function serialize(SerializationWriter $writer): void {
132+
$writer->writeObjectValue('additionalMessage', $this->getAdditionalMessage());
133+
$writer->writeCollectionOfPrimitiveValues('messageIds', $this->getMessageIds());
134+
$writer->writeCollectionOfPrimitiveValues('targetChatIds', $this->getTargetChatIds());
135+
$writer->writeAdditionalData($this->getAdditionalData());
136+
}
137+
138+
/**
139+
* Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
140+
* @param array<string,mixed> $value Value to set for the AdditionalData property.
141+
*/
142+
public function setAdditionalData(?array $value): void {
143+
$this->getBackingStore()->set('additionalData', $value);
144+
}
145+
146+
/**
147+
* Sets the additionalMessage property value. The additionalMessage property
148+
* @param ChatMessage|null $value Value to set for the additionalMessage property.
149+
*/
150+
public function setAdditionalMessage(?ChatMessage $value): void {
151+
$this->getBackingStore()->set('additionalMessage', $value);
152+
}
153+
154+
/**
155+
* Sets the BackingStore property value. Stores model information.
156+
* @param BackingStore $value Value to set for the BackingStore property.
157+
*/
158+
public function setBackingStore(BackingStore $value): void {
159+
$this->backingStore = $value;
160+
}
161+
162+
/**
163+
* Sets the messageIds property value. The messageIds property
164+
* @param array<string>|null $value Value to set for the messageIds property.
165+
*/
166+
public function setMessageIds(?array $value): void {
167+
$this->getBackingStore()->set('messageIds', $value);
168+
}
169+
170+
/**
171+
* Sets the targetChatIds property value. The targetChatIds property
172+
* @param array<string>|null $value Value to set for the targetChatIds property.
173+
*/
174+
public function setTargetChatIds(?array $value): void {
175+
$this->getBackingStore()->set('targetChatIds', $value);
176+
}
177+
178+
}
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
<?php
2+
3+
namespace Microsoft\Graph\Beta\Generated\Chats\Item\Messages\ForwardToChat;
4+
5+
use Microsoft\Graph\Beta\Generated\Models\ActionResultPart;
6+
use Microsoft\Graph\Beta\Generated\Models\BaseCollectionPaginationCountResponse;
7+
use Microsoft\Kiota\Abstractions\Serialization\Parsable;
8+
use Microsoft\Kiota\Abstractions\Serialization\ParseNode;
9+
use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter;
10+
use Microsoft\Kiota\Abstractions\Types\TypeUtils;
11+
12+
class ForwardToChatPostResponse extends BaseCollectionPaginationCountResponse implements Parsable
13+
{
14+
/**
15+
* Instantiates a new ForwardToChatPostResponse and sets the default values.
16+
*/
17+
public function __construct() {
18+
parent::__construct();
19+
}
20+
21+
/**
22+
* Creates a new instance of the appropriate class based on discriminator value
23+
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
24+
* @return ForwardToChatPostResponse
25+
*/
26+
public static function createFromDiscriminatorValue(ParseNode $parseNode): ForwardToChatPostResponse {
27+
return new ForwardToChatPostResponse();
28+
}
29+
30+
/**
31+
* The deserialization information for the current model
32+
* @return array<string, callable(ParseNode): void>
33+
*/
34+
public function getFieldDeserializers(): array {
35+
$o = $this;
36+
return array_merge(parent::getFieldDeserializers(), [
37+
'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ActionResultPart::class, 'createFromDiscriminatorValue'])),
38+
]);
39+
}
40+
41+
/**
42+
* Gets the value property value. The value property
43+
* @return array<ActionResultPart>|null
44+
*/
45+
public function getValue(): ?array {
46+
$val = $this->getBackingStore()->get('value');
47+
if (is_array($val) || is_null($val)) {
48+
TypeUtils::validateCollectionValues($val, ActionResultPart::class);
49+
/** @var array<ActionResultPart>|null $val */
50+
return $val;
51+
}
52+
throw new \UnexpectedValueException("Invalid type found in backing store for 'value'");
53+
}
54+
55+
/**
56+
* Serializes information the current object
57+
* @param SerializationWriter $writer Serialization writer to use to serialize this model
58+
*/
59+
public function serialize(SerializationWriter $writer): void {
60+
parent::serialize($writer);
61+
$writer->writeCollectionOfObjectValues('value', $this->getValue());
62+
}
63+
64+
/**
65+
* Sets the value property value. The value property
66+
* @param array<ActionResultPart>|null $value Value to set for the value property.
67+
*/
68+
public function setValue(?array $value): void {
69+
$this->getBackingStore()->set('value', $value);
70+
}
71+
72+
}

0 commit comments

Comments
 (0)