Skip to content

Commit b6a517b

Browse files
authored
Merge pull request #400 from microsoftgraph/kiota/beta/pipelinebuild/192501
Generated beta models and request builders
2 parents 2727e18 + ec99687 commit b6a517b

File tree

287 files changed

+13879
-322
lines changed

Some content is hidden

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

287 files changed

+13879
-322
lines changed

src/Generated/Admin/Windows/Updates/ResourceConnections/Item/ResourceConnectionItemRequestBuilder.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap
3131
}
3232

3333
/**
34-
* Delete a resourceConnection object.
34+
* Delete an operationalInsightsConnection object.
3535
* @param ResourceConnectionItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
3636
* @return Promise<void|null>
3737
* @throws Exception
38-
* @link https://learn.microsoft.com/graph/api/windowsupdates-resourceconnection-delete?view=graph-rest-beta Find more info here
38+
* @link https://learn.microsoft.com/graph/api/windowsupdates-operationalinsightsconnection-delete?view=graph-rest-beta Find more info here
3939
*/
4040
public function delete(?ResourceConnectionItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise {
4141
$requestInfo = $this->toDeleteRequestInformation($requestConfiguration);
@@ -76,7 +76,7 @@ public function patch(ResourceConnection $body, ?ResourceConnectionItemRequestBu
7676
}
7777

7878
/**
79-
* Delete a resourceConnection object.
79+
* Delete an operationalInsightsConnection object.
8080
* @param ResourceConnectionItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
8181
* @return RequestInformation
8282
*/

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

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

6565
/**
66-
* Delete an updatableAsset object.
66+
* Delete an azureADDevice object. When a Microsoft Entra device is deleted, it is unregistered and automatically unenrolled from management for all update categories, as well as removed from every deploymentAudience and updatableAssetGroup.
6767
* @param UpdatableAssetItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
6868
* @return Promise<void|null>
6969
* @throws Exception
70-
* @link https://learn.microsoft.com/graph/api/windowsupdates-updatableasset-delete?view=graph-rest-beta Find more info here
70+
* @link https://learn.microsoft.com/graph/api/windowsupdates-azureaddevice-delete?view=graph-rest-beta Find more info here
7171
*/
7272
public function delete(?UpdatableAssetItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise {
7373
$requestInfo = $this->toDeleteRequestInformation($requestConfiguration);
@@ -78,11 +78,11 @@ public function delete(?UpdatableAssetItemRequestBuilderDeleteRequestConfigurati
7878
}
7979

8080
/**
81-
* Read the properties and relationships of an updatableAsset object.
81+
* Read the properties of an azureADDevice 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-updatableasset-get?view=graph-rest-beta Find more info here
85+
* @link https://learn.microsoft.com/graph/api/windowsupdates-azureaddevice-get?view=graph-rest-beta Find more info here
8686
*/
8787
public function get(?UpdatableAssetItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise {
8888
$requestInfo = $this->toGetRequestInformation($requestConfiguration);
@@ -108,7 +108,7 @@ public function patch(UpdatableAsset $body, ?UpdatableAssetItemRequestBuilderPat
108108
}
109109

110110
/**
111-
* Delete an updatableAsset object.
111+
* Delete an azureADDevice object. When a Microsoft Entra device is deleted, it is unregistered and automatically unenrolled from management for all update categories, as well as removed from every deploymentAudience and updatableAssetGroup.
112112
* @param UpdatableAssetItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
113113
* @return RequestInformation
114114
*/
@@ -126,7 +126,7 @@ public function toDeleteRequestInformation(?UpdatableAssetItemRequestBuilderDele
126126
}
127127

128128
/**
129-
* Read the properties and relationships of an updatableAsset object.
129+
* Read the properties of an azureADDevice 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 and relationships of an updatableAsset object.
8+
* Read the properties of an azureADDevice 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);
@@ -69,12 +69,12 @@ public function get(?ComplianceChangeItemRequestBuilderGetRequestConfiguration $
6969
}
7070

7171
/**
72-
* Update the properties of a complianceChange object.
72+
* Update the properties of a contentApproval object.
7373
* @param ComplianceChange $body The request body
7474
* @param ComplianceChangeItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
7575
* @return Promise<ComplianceChange|null>
7676
* @throws Exception
77-
* @link https://learn.microsoft.com/graph/api/windowsupdates-compliancechange-update?view=graph-rest-beta Find more info here
77+
* @link https://learn.microsoft.com/graph/api/windowsupdates-contentapproval-update?view=graph-rest-beta Find more info here
7878
*/
7979
public function patch(ComplianceChange $body, ?ComplianceChangeItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise {
8080
$requestInfo = $this->toPatchRequestInformation($body, $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
*/
@@ -124,7 +124,7 @@ public function toGetRequestInformation(?ComplianceChangeItemRequestBuilderGetRe
124124
}
125125

126126
/**
127-
* Update the properties of a complianceChange object.
127+
* Update the properties of a contentApproval object.
128128
* @param ComplianceChange $body The request body
129129
* @param ComplianceChangeItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
130130
* @return RequestInformation
Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
<?php
2+
3+
namespace Microsoft\Graph\Beta\Generated\AuditLogs\SignIns\Dismiss;
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+
use Microsoft\Kiota\Abstractions\Types\TypeUtils;
13+
14+
class DismissPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable
15+
{
16+
/**
17+
* @var BackingStore $backingStore Stores model information.
18+
*/
19+
private BackingStore $backingStore;
20+
21+
/**
22+
* Instantiates a new DismissPostRequestBody and sets the default values.
23+
*/
24+
public function __construct() {
25+
$this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore();
26+
$this->setAdditionalData([]);
27+
}
28+
29+
/**
30+
* Creates a new instance of the appropriate class based on discriminator value
31+
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
32+
* @return DismissPostRequestBody
33+
*/
34+
public static function createFromDiscriminatorValue(ParseNode $parseNode): DismissPostRequestBody {
35+
return new DismissPostRequestBody();
36+
}
37+
38+
/**
39+
* Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
40+
* @return array<string, mixed>|null
41+
*/
42+
public function getAdditionalData(): ?array {
43+
$val = $this->getBackingStore()->get('additionalData');
44+
if (is_null($val) || is_array($val)) {
45+
/** @var array<string, mixed>|null $val */
46+
return $val;
47+
}
48+
throw new \UnexpectedValueException("Invalid type found in backing store for 'additionalData'");
49+
}
50+
51+
/**
52+
* Gets the BackingStore property value. Stores model information.
53+
* @return BackingStore
54+
*/
55+
public function getBackingStore(): BackingStore {
56+
return $this->backingStore;
57+
}
58+
59+
/**
60+
* The deserialization information for the current model
61+
* @return array<string, callable(ParseNode): void>
62+
*/
63+
public function getFieldDeserializers(): array {
64+
$o = $this;
65+
return [
66+
'requestIds' => function (ParseNode $n) {
67+
$val = $n->getCollectionOfPrimitiveValues();
68+
if (is_array($val)) {
69+
TypeUtils::validateCollectionValues($val, 'string');
70+
}
71+
/** @var array<string>|null $val */
72+
$this->setRequestIds($val);
73+
},
74+
];
75+
}
76+
77+
/**
78+
* Gets the requestIds property value. The requestIds property
79+
* @return array<string>|null
80+
*/
81+
public function getRequestIds(): ?array {
82+
$val = $this->getBackingStore()->get('requestIds');
83+
if (is_array($val) || is_null($val)) {
84+
TypeUtils::validateCollectionValues($val, 'string');
85+
/** @var array<string>|null $val */
86+
return $val;
87+
}
88+
throw new \UnexpectedValueException("Invalid type found in backing store for 'requestIds'");
89+
}
90+
91+
/**
92+
* Serializes information the current object
93+
* @param SerializationWriter $writer Serialization writer to use to serialize this model
94+
*/
95+
public function serialize(SerializationWriter $writer): void {
96+
$writer->writeCollectionOfPrimitiveValues('requestIds', $this->getRequestIds());
97+
$writer->writeAdditionalData($this->getAdditionalData());
98+
}
99+
100+
/**
101+
* Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
102+
* @param array<string,mixed> $value Value to set for the AdditionalData property.
103+
*/
104+
public function setAdditionalData(?array $value): void {
105+
$this->getBackingStore()->set('additionalData', $value);
106+
}
107+
108+
/**
109+
* Sets the BackingStore property value. Stores model information.
110+
* @param BackingStore $value Value to set for the BackingStore property.
111+
*/
112+
public function setBackingStore(BackingStore $value): void {
113+
$this->backingStore = $value;
114+
}
115+
116+
/**
117+
* Sets the requestIds property value. The requestIds property
118+
* @param array<string>|null $value Value to set for the requestIds property.
119+
*/
120+
public function setRequestIds(?array $value): void {
121+
$this->getBackingStore()->set('requestIds', $value);
122+
}
123+
124+
}
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
<?php
2+
3+
namespace Microsoft\Graph\Beta\Generated\AuditLogs\SignIns\Dismiss;
4+
5+
use Exception;
6+
use Http\Promise\Promise;
7+
use Microsoft\Graph\Beta\Generated\Models\ODataErrors\ODataError;
8+
use Microsoft\Kiota\Abstractions\BaseRequestBuilder;
9+
use Microsoft\Kiota\Abstractions\HttpMethod;
10+
use Microsoft\Kiota\Abstractions\RequestAdapter;
11+
use Microsoft\Kiota\Abstractions\RequestInformation;
12+
13+
/**
14+
* Provides operations to call the dismiss method.
15+
*/
16+
class DismissRequestBuilder extends BaseRequestBuilder
17+
{
18+
/**
19+
* Instantiates a new DismissRequestBuilder and sets the default values.
20+
* @param array<string, mixed>|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL.
21+
* @param RequestAdapter $requestAdapter The request adapter to use to execute the requests.
22+
*/
23+
public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) {
24+
parent::__construct($requestAdapter, [], '{+baseurl}/auditLogs/signIns/dismiss');
25+
if (is_array($pathParametersOrRawUrl)) {
26+
$this->pathParameters = $pathParametersOrRawUrl;
27+
} else {
28+
$this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl];
29+
}
30+
}
31+
32+
/**
33+
* Mark an event in Microsoft Entra sign-in logs as dismissed. For details about investigating Identity Protection risks, see How to investigate risk.
34+
* @param DismissPostRequestBody $body The request body
35+
* @param DismissRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
36+
* @return Promise<void|null>
37+
* @throws Exception
38+
* @link https://learn.microsoft.com/graph/api/signin-dismiss?view=graph-rest-beta Find more info here
39+
*/
40+
public function post(DismissPostRequestBody $body, ?DismissRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise {
41+
$requestInfo = $this->toPostRequestInformation($body, $requestConfiguration);
42+
$errorMappings = [
43+
'XXX' => [ODataError::class, 'createFromDiscriminatorValue'],
44+
];
45+
return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings);
46+
}
47+
48+
/**
49+
* Mark an event in Microsoft Entra sign-in logs as dismissed. For details about investigating Identity Protection risks, see How to investigate risk.
50+
* @param DismissPostRequestBody $body The request body
51+
* @param DismissRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
52+
* @return RequestInformation
53+
*/
54+
public function toPostRequestInformation(DismissPostRequestBody $body, ?DismissRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation {
55+
$requestInfo = new RequestInformation();
56+
$requestInfo->urlTemplate = $this->urlTemplate;
57+
$requestInfo->pathParameters = $this->pathParameters;
58+
$requestInfo->httpMethod = HttpMethod::POST;
59+
if ($requestConfiguration !== null) {
60+
$requestInfo->addHeaders($requestConfiguration->headers);
61+
$requestInfo->addRequestOptions(...$requestConfiguration->options);
62+
}
63+
$requestInfo->tryAddHeader('Accept', "application/json");
64+
$requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body);
65+
return $requestInfo;
66+
}
67+
68+
/**
69+
* Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
70+
* @param string $rawUrl The raw URL to use for the request builder.
71+
* @return DismissRequestBuilder
72+
*/
73+
public function withUrl(string $rawUrl): DismissRequestBuilder {
74+
return new DismissRequestBuilder($rawUrl, $this->requestAdapter);
75+
}
76+
77+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php
2+
3+
namespace Microsoft\Graph\Beta\Generated\AuditLogs\SignIns\Dismiss;
4+
5+
use Microsoft\Kiota\Abstractions\BaseRequestConfiguration;
6+
use Microsoft\Kiota\Abstractions\RequestOption;
7+
8+
/**
9+
* Configuration for the request such as headers, query parameters, and middleware options.
10+
*/
11+
class DismissRequestBuilderPostRequestConfiguration extends BaseRequestConfiguration
12+
{
13+
/**
14+
* Instantiates a new DismissRequestBuilderPostRequestConfiguration and sets the default values.
15+
* @param array<string, array<string>|string>|null $headers Request headers
16+
* @param array<RequestOption>|null $options Request options
17+
*/
18+
public function __construct(?array $headers = null, ?array $options = null) {
19+
parent::__construct($headers ?? [], $options ?? []);
20+
}
21+
22+
}

src/Generated/AuditLogs/SignIns/SignInsRequestBuilder.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
use Microsoft\Graph\Beta\Generated\AuditLogs\SignIns\ConfirmCompromised\ConfirmCompromisedRequestBuilder;
88
use Microsoft\Graph\Beta\Generated\AuditLogs\SignIns\ConfirmSafe\ConfirmSafeRequestBuilder;
99
use Microsoft\Graph\Beta\Generated\AuditLogs\SignIns\Count\CountRequestBuilder;
10+
use Microsoft\Graph\Beta\Generated\AuditLogs\SignIns\Dismiss\DismissRequestBuilder;
1011
use Microsoft\Graph\Beta\Generated\AuditLogs\SignIns\Item\SignInItemRequestBuilder;
1112
use Microsoft\Graph\Beta\Generated\Models\ODataErrors\ODataError;
1213
use Microsoft\Graph\Beta\Generated\Models\SignIn;
@@ -42,6 +43,13 @@ public function count(): CountRequestBuilder {
4243
return new CountRequestBuilder($this->pathParameters, $this->requestAdapter);
4344
}
4445

46+
/**
47+
* Provides operations to call the dismiss method.
48+
*/
49+
public function dismiss(): DismissRequestBuilder {
50+
return new DismissRequestBuilder($this->pathParameters, $this->requestAdapter);
51+
}
52+
4553
/**
4654
* Provides operations to manage the signIns property of the microsoft.graph.auditLogRoot entity.
4755
* @param string $signInId The unique identifier of signIn

0 commit comments

Comments
 (0)