Skip to content

Commit 0a4e317

Browse files
Microsoft Graph DevX ToolingMicrosoft Graph DevX Tooling
authored andcommitted
feat(generation): update request builders and models
Update generated files with build 172840
1 parent b554306 commit 0a4e317

File tree

588 files changed

+23396
-477
lines changed

Some content is hidden

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

588 files changed

+23396
-477
lines changed

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

Lines changed: 6 additions & 6 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);
@@ -46,11 +46,11 @@ public function delete(?ResourceConnectionItemRequestBuilderDeleteRequestConfigu
4646
}
4747

4848
/**
49-
* Read the properties and relationships of an operationalInsightsConnection object.
49+
* Read the properties and relationships of a resourceConnection object.
5050
* @param ResourceConnectionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
5151
* @return Promise<ResourceConnection|null>
5252
* @throws Exception
53-
* @link https://learn.microsoft.com/graph/api/windowsupdates-operationalinsightsconnection-get?view=graph-rest-beta Find more info here
53+
* @link https://learn.microsoft.com/graph/api/windowsupdates-resourceconnection-get?view=graph-rest-beta Find more info here
5454
*/
5555
public function get(?ResourceConnectionItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise {
5656
$requestInfo = $this->toGetRequestInformation($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
*/
@@ -94,7 +94,7 @@ public function toDeleteRequestInformation(?ResourceConnectionItemRequestBuilder
9494
}
9595

9696
/**
97-
* Read the properties and relationships of an operationalInsightsConnection object.
97+
* Read the properties and relationships of a resourceConnection object.
9898
* @param ResourceConnectionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
9999
* @return RequestInformation
100100
*/

src/Generated/Admin/Windows/Updates/ResourceConnections/Item/ResourceConnectionItemRequestBuilderGetQueryParameters.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 operationalInsightsConnection object.
8+
* Read the properties and relationships of a resourceConnection object.
99
*/
1010
class ResourceConnectionItemRequestBuilderGetQueryParameters
1111
{

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

Lines changed: 3 additions & 3 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 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.
66+
* Delete an updatableAssetGroup object. When an updatableAssetGroup object, its member updatableAsset objects are not deleted.
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-azureaddevice-delete?view=graph-rest-beta Find more info here
70+
* @link https://learn.microsoft.com/graph/api/windowsupdates-updatableassetgroup-delete?view=graph-rest-beta Find more info here
7171
*/
7272
public function delete(?UpdatableAssetItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise {
7373
$requestInfo = $this->toDeleteRequestInformation($requestConfiguration);
@@ -108,7 +108,7 @@ public function patch(UpdatableAsset $body, ?UpdatableAssetItemRequestBuilderPat
108108
}
109109

110110
/**
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.
111+
* Delete an updatableAssetGroup object. When an updatableAssetGroup object, its member updatableAsset objects are not deleted.
112112
* @param UpdatableAssetItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
113113
* @return RequestInformation
114114
*/

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 contentApproval object.
42+
* Delete a complianceChange 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-contentapproval-delete?view=graph-rest-beta Find more info here
46+
* @link https://learn.microsoft.com/graph/api/windowsupdates-compliancechange-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 contentApproval object.
72+
* Update the properties of a complianceChange 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-contentapproval-update?view=graph-rest-beta Find more info here
77+
* @link https://learn.microsoft.com/graph/api/windowsupdates-compliancechange-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 contentApproval object.
88+
* Delete a complianceChange 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 contentApproval object.
127+
* Update the properties of a complianceChange 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: 133 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,133 @@
1+
<?php
2+
3+
namespace Microsoft\Graph\Beta\Generated\AuthenticationMethodDevices;
4+
5+
use Exception;
6+
use Http\Promise\Promise;
7+
use Microsoft\Graph\Beta\Generated\AuthenticationMethodDevices\Count\CountRequestBuilder;
8+
use Microsoft\Graph\Beta\Generated\AuthenticationMethodDevices\Item\AuthenticationMethodDeviceItemRequestBuilder;
9+
use Microsoft\Graph\Beta\Generated\Models\AuthenticationMethodDevice;
10+
use Microsoft\Graph\Beta\Generated\Models\AuthenticationMethodDeviceCollectionResponse;
11+
use Microsoft\Graph\Beta\Generated\Models\ODataErrors\ODataError;
12+
use Microsoft\Kiota\Abstractions\BaseRequestBuilder;
13+
use Microsoft\Kiota\Abstractions\HttpMethod;
14+
use Microsoft\Kiota\Abstractions\RequestAdapter;
15+
use Microsoft\Kiota\Abstractions\RequestInformation;
16+
17+
/**
18+
* Provides operations to manage the collection of authenticationMethodDevice entities.
19+
*/
20+
class AuthenticationMethodDevicesRequestBuilder extends BaseRequestBuilder
21+
{
22+
/**
23+
* Provides operations to count the resources in the collection.
24+
*/
25+
public function count(): CountRequestBuilder {
26+
return new CountRequestBuilder($this->pathParameters, $this->requestAdapter);
27+
}
28+
29+
/**
30+
* Provides operations to manage the collection of authenticationMethodDevice entities.
31+
* @param string $authenticationMethodDeviceId The unique identifier of authenticationMethodDevice
32+
* @return AuthenticationMethodDeviceItemRequestBuilder
33+
*/
34+
public function byAuthenticationMethodDeviceId(string $authenticationMethodDeviceId): AuthenticationMethodDeviceItemRequestBuilder {
35+
$urlTplParams = $this->pathParameters;
36+
$urlTplParams['authenticationMethodDevice%2Did'] = $authenticationMethodDeviceId;
37+
return new AuthenticationMethodDeviceItemRequestBuilder($urlTplParams, $this->requestAdapter);
38+
}
39+
40+
/**
41+
* Instantiates a new AuthenticationMethodDevicesRequestBuilder and sets the default values.
42+
* @param array<string, mixed>|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL.
43+
* @param RequestAdapter $requestAdapter The request adapter to use to execute the requests.
44+
*/
45+
public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) {
46+
parent::__construct($requestAdapter, [], '{+baseurl}/authenticationMethodDevices{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}');
47+
if (is_array($pathParametersOrRawUrl)) {
48+
$this->pathParameters = $pathParametersOrRawUrl;
49+
} else {
50+
$this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl];
51+
}
52+
}
53+
54+
/**
55+
* Get entities from authenticationMethodDevices
56+
* @param AuthenticationMethodDevicesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
57+
* @return Promise<AuthenticationMethodDeviceCollectionResponse|null>
58+
* @throws Exception
59+
*/
60+
public function get(?AuthenticationMethodDevicesRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise {
61+
$requestInfo = $this->toGetRequestInformation($requestConfiguration);
62+
$errorMappings = [
63+
'XXX' => [ODataError::class, 'createFromDiscriminatorValue'],
64+
];
65+
return $this->requestAdapter->sendAsync($requestInfo, [AuthenticationMethodDeviceCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings);
66+
}
67+
68+
/**
69+
* Add new entity to authenticationMethodDevices
70+
* @param AuthenticationMethodDevice $body The request body
71+
* @param AuthenticationMethodDevicesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
72+
* @return Promise<AuthenticationMethodDevice|null>
73+
* @throws Exception
74+
*/
75+
public function post(AuthenticationMethodDevice $body, ?AuthenticationMethodDevicesRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise {
76+
$requestInfo = $this->toPostRequestInformation($body, $requestConfiguration);
77+
$errorMappings = [
78+
'XXX' => [ODataError::class, 'createFromDiscriminatorValue'],
79+
];
80+
return $this->requestAdapter->sendAsync($requestInfo, [AuthenticationMethodDevice::class, 'createFromDiscriminatorValue'], $errorMappings);
81+
}
82+
83+
/**
84+
* Get entities from authenticationMethodDevices
85+
* @param AuthenticationMethodDevicesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
86+
* @return RequestInformation
87+
*/
88+
public function toGetRequestInformation(?AuthenticationMethodDevicesRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation {
89+
$requestInfo = new RequestInformation();
90+
$requestInfo->urlTemplate = $this->urlTemplate;
91+
$requestInfo->pathParameters = $this->pathParameters;
92+
$requestInfo->httpMethod = HttpMethod::GET;
93+
if ($requestConfiguration !== null) {
94+
$requestInfo->addHeaders($requestConfiguration->headers);
95+
if ($requestConfiguration->queryParameters !== null) {
96+
$requestInfo->setQueryParameters($requestConfiguration->queryParameters);
97+
}
98+
$requestInfo->addRequestOptions(...$requestConfiguration->options);
99+
}
100+
$requestInfo->tryAddHeader('Accept', "application/json");
101+
return $requestInfo;
102+
}
103+
104+
/**
105+
* Add new entity to authenticationMethodDevices
106+
* @param AuthenticationMethodDevice $body The request body
107+
* @param AuthenticationMethodDevicesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
108+
* @return RequestInformation
109+
*/
110+
public function toPostRequestInformation(AuthenticationMethodDevice $body, ?AuthenticationMethodDevicesRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation {
111+
$requestInfo = new RequestInformation();
112+
$requestInfo->urlTemplate = $this->urlTemplate;
113+
$requestInfo->pathParameters = $this->pathParameters;
114+
$requestInfo->httpMethod = HttpMethod::POST;
115+
if ($requestConfiguration !== null) {
116+
$requestInfo->addHeaders($requestConfiguration->headers);
117+
$requestInfo->addRequestOptions(...$requestConfiguration->options);
118+
}
119+
$requestInfo->tryAddHeader('Accept', "application/json");
120+
$requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body);
121+
return $requestInfo;
122+
}
123+
124+
/**
125+
* Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
126+
* @param string $rawUrl The raw URL to use for the request builder.
127+
* @return AuthenticationMethodDevicesRequestBuilder
128+
*/
129+
public function withUrl(string $rawUrl): AuthenticationMethodDevicesRequestBuilder {
130+
return new AuthenticationMethodDevicesRequestBuilder($rawUrl, $this->requestAdapter);
131+
}
132+
133+
}
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
<?php
2+
3+
namespace Microsoft\Graph\Beta\Generated\AuthenticationMethodDevices;
4+
5+
use Microsoft\Kiota\Abstractions\QueryParameter;
6+
7+
/**
8+
* Get entities from authenticationMethodDevices
9+
*/
10+
class AuthenticationMethodDevicesRequestBuilderGetQueryParameters
11+
{
12+
/**
13+
* @QueryParameter("%24count")
14+
* @var bool|null $count Include count of items
15+
*/
16+
public ?bool $count = null;
17+
18+
/**
19+
* @QueryParameter("%24expand")
20+
* @var array<string>|null $expand Expand related entities
21+
*/
22+
public ?array $expand = null;
23+
24+
/**
25+
* @QueryParameter("%24filter")
26+
* @var string|null $filter Filter items by property values
27+
*/
28+
public ?string $filter = null;
29+
30+
/**
31+
* @QueryParameter("%24orderby")
32+
* @var array<string>|null $orderby Order items by property values
33+
*/
34+
public ?array $orderby = null;
35+
36+
/**
37+
* @QueryParameter("%24search")
38+
* @var string|null $search Search items by search phrases
39+
*/
40+
public ?string $search = null;
41+
42+
/**
43+
* @QueryParameter("%24select")
44+
* @var array<string>|null $select Select properties to be returned
45+
*/
46+
public ?array $select = null;
47+
48+
/**
49+
* @QueryParameter("%24skip")
50+
* @var int|null $skip Skip the first n items
51+
*/
52+
public ?int $skip = null;
53+
54+
/**
55+
* @QueryParameter("%24top")
56+
* @var int|null $top Show only the first n items
57+
*/
58+
public ?int $top = null;
59+
60+
/**
61+
* Instantiates a new AuthenticationMethodDevicesRequestBuilderGetQueryParameters and sets the default values.
62+
* @param bool|null $count Include count of items
63+
* @param array<string>|null $expand Expand related entities
64+
* @param string|null $filter Filter items by property values
65+
* @param array<string>|null $orderby Order items by property values
66+
* @param string|null $search Search items by search phrases
67+
* @param array<string>|null $select Select properties to be returned
68+
* @param int|null $skip Skip the first n items
69+
* @param int|null $top Show only the first n items
70+
*/
71+
public function __construct(?bool $count = null, ?array $expand = null, ?string $filter = null, ?array $orderby = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null) {
72+
$this->count = $count;
73+
$this->expand = $expand;
74+
$this->filter = $filter;
75+
$this->orderby = $orderby;
76+
$this->search = $search;
77+
$this->select = $select;
78+
$this->skip = $skip;
79+
$this->top = $top;
80+
}
81+
82+
}

0 commit comments

Comments
 (0)