Skip to content

Commit b0c5fe0

Browse files
authored
Merge pull request #409 from microsoftgraph/kiota/beta/pipelinebuild/194896
Generated beta models and request builders
2 parents fa3a9ab + 2d1ffbe commit b0c5fe0

File tree

232 files changed

+8752
-295
lines changed

Some content is hidden

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

232 files changed

+8752
-295
lines changed

src/Generated/Admin/People/PeopleRequestBuilder.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
use Http\Promise\Promise;
77
use Microsoft\Graph\Beta\Generated\Admin\People\ItemInsights\ItemInsightsRequestBuilder;
88
use Microsoft\Graph\Beta\Generated\Admin\People\NamePronunciation\NamePronunciationRequestBuilder;
9+
use Microsoft\Graph\Beta\Generated\Admin\People\PhotoUpdateSettings\PhotoUpdateSettingsRequestBuilder;
910
use Microsoft\Graph\Beta\Generated\Admin\People\ProfileCardProperties\ProfileCardPropertiesRequestBuilder;
1011
use Microsoft\Graph\Beta\Generated\Admin\People\ProfilePropertySettings\ProfilePropertySettingsRequestBuilder;
1112
use Microsoft\Graph\Beta\Generated\Admin\People\ProfileSources\ProfileSourcesRequestBuilder;
@@ -37,6 +38,13 @@ public function namePronunciation(): NamePronunciationRequestBuilder {
3738
return new NamePronunciationRequestBuilder($this->pathParameters, $this->requestAdapter);
3839
}
3940

41+
/**
42+
* Provides operations to manage the photoUpdateSettings property of the microsoft.graph.peopleAdminSettings entity.
43+
*/
44+
public function photoUpdateSettings(): PhotoUpdateSettingsRequestBuilder {
45+
return new PhotoUpdateSettingsRequestBuilder($this->pathParameters, $this->requestAdapter);
46+
}
47+
4048
/**
4149
* Provides operations to manage the profileCardProperties property of the microsoft.graph.peopleAdminSettings entity.
4250
*/
Lines changed: 147 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,147 @@
1+
<?php
2+
3+
namespace Microsoft\Graph\Beta\Generated\Admin\People\PhotoUpdateSettings;
4+
5+
use Exception;
6+
use Http\Promise\Promise;
7+
use Microsoft\Graph\Beta\Generated\Models\ODataErrors\ODataError;
8+
use Microsoft\Graph\Beta\Generated\Models\PhotoUpdateSettings;
9+
use Microsoft\Kiota\Abstractions\BaseRequestBuilder;
10+
use Microsoft\Kiota\Abstractions\HttpMethod;
11+
use Microsoft\Kiota\Abstractions\RequestAdapter;
12+
use Microsoft\Kiota\Abstractions\RequestInformation;
13+
14+
/**
15+
* Provides operations to manage the photoUpdateSettings property of the microsoft.graph.peopleAdminSettings entity.
16+
*/
17+
class PhotoUpdateSettingsRequestBuilder extends BaseRequestBuilder
18+
{
19+
/**
20+
* Instantiates a new PhotoUpdateSettingsRequestBuilder and sets the default values.
21+
* @param array<string, mixed>|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL.
22+
* @param RequestAdapter $requestAdapter The request adapter to use to execute the requests.
23+
*/
24+
public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) {
25+
parent::__construct($requestAdapter, [], '{+baseurl}/admin/people/photoUpdateSettings{?%24expand,%24select}');
26+
if (is_array($pathParametersOrRawUrl)) {
27+
$this->pathParameters = $pathParametersOrRawUrl;
28+
} else {
29+
$this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl];
30+
}
31+
}
32+
33+
/**
34+
* Delete a photoUpdateSettings object.
35+
* @param PhotoUpdateSettingsRequestBuilderDeleteRequestConfiguration|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/peopleadminsettings-delete-photoupdatesettings?view=graph-rest-beta Find more info here
39+
*/
40+
public function delete(?PhotoUpdateSettingsRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise {
41+
$requestInfo = $this->toDeleteRequestInformation($requestConfiguration);
42+
$errorMappings = [
43+
'XXX' => [ODataError::class, 'createFromDiscriminatorValue'],
44+
];
45+
return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings);
46+
}
47+
48+
/**
49+
* Read the properties and relationships of a photoUpdateSettings object.
50+
* @param PhotoUpdateSettingsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
51+
* @return Promise<PhotoUpdateSettings|null>
52+
* @throws Exception
53+
* @link https://learn.microsoft.com/graph/api/photoupdatesettings-get?view=graph-rest-beta Find more info here
54+
*/
55+
public function get(?PhotoUpdateSettingsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise {
56+
$requestInfo = $this->toGetRequestInformation($requestConfiguration);
57+
$errorMappings = [
58+
'XXX' => [ODataError::class, 'createFromDiscriminatorValue'],
59+
];
60+
return $this->requestAdapter->sendAsync($requestInfo, [PhotoUpdateSettings::class, 'createFromDiscriminatorValue'], $errorMappings);
61+
}
62+
63+
/**
64+
* Update the properties of a photoUpdateSettings object.
65+
* @param PhotoUpdateSettings $body The request body
66+
* @param PhotoUpdateSettingsRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
67+
* @return Promise<PhotoUpdateSettings|null>
68+
* @throws Exception
69+
* @link https://learn.microsoft.com/graph/api/photoupdatesettings-update?view=graph-rest-beta Find more info here
70+
*/
71+
public function patch(PhotoUpdateSettings $body, ?PhotoUpdateSettingsRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise {
72+
$requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration);
73+
$errorMappings = [
74+
'XXX' => [ODataError::class, 'createFromDiscriminatorValue'],
75+
];
76+
return $this->requestAdapter->sendAsync($requestInfo, [PhotoUpdateSettings::class, 'createFromDiscriminatorValue'], $errorMappings);
77+
}
78+
79+
/**
80+
* Delete a photoUpdateSettings object.
81+
* @param PhotoUpdateSettingsRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
82+
* @return RequestInformation
83+
*/
84+
public function toDeleteRequestInformation(?PhotoUpdateSettingsRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): RequestInformation {
85+
$requestInfo = new RequestInformation();
86+
$requestInfo->urlTemplate = $this->urlTemplate;
87+
$requestInfo->pathParameters = $this->pathParameters;
88+
$requestInfo->httpMethod = HttpMethod::DELETE;
89+
if ($requestConfiguration !== null) {
90+
$requestInfo->addHeaders($requestConfiguration->headers);
91+
$requestInfo->addRequestOptions(...$requestConfiguration->options);
92+
}
93+
$requestInfo->tryAddHeader('Accept', "application/json");
94+
return $requestInfo;
95+
}
96+
97+
/**
98+
* Read the properties and relationships of a photoUpdateSettings object.
99+
* @param PhotoUpdateSettingsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
100+
* @return RequestInformation
101+
*/
102+
public function toGetRequestInformation(?PhotoUpdateSettingsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation {
103+
$requestInfo = new RequestInformation();
104+
$requestInfo->urlTemplate = $this->urlTemplate;
105+
$requestInfo->pathParameters = $this->pathParameters;
106+
$requestInfo->httpMethod = HttpMethod::GET;
107+
if ($requestConfiguration !== null) {
108+
$requestInfo->addHeaders($requestConfiguration->headers);
109+
if ($requestConfiguration->queryParameters !== null) {
110+
$requestInfo->setQueryParameters($requestConfiguration->queryParameters);
111+
}
112+
$requestInfo->addRequestOptions(...$requestConfiguration->options);
113+
}
114+
$requestInfo->tryAddHeader('Accept', "application/json");
115+
return $requestInfo;
116+
}
117+
118+
/**
119+
* Update the properties of a photoUpdateSettings object.
120+
* @param PhotoUpdateSettings $body The request body
121+
* @param PhotoUpdateSettingsRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
122+
* @return RequestInformation
123+
*/
124+
public function toPatchRequestInformation(PhotoUpdateSettings $body, ?PhotoUpdateSettingsRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation {
125+
$requestInfo = new RequestInformation();
126+
$requestInfo->urlTemplate = $this->urlTemplate;
127+
$requestInfo->pathParameters = $this->pathParameters;
128+
$requestInfo->httpMethod = HttpMethod::PATCH;
129+
if ($requestConfiguration !== null) {
130+
$requestInfo->addHeaders($requestConfiguration->headers);
131+
$requestInfo->addRequestOptions(...$requestConfiguration->options);
132+
}
133+
$requestInfo->tryAddHeader('Accept', "application/json");
134+
$requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body);
135+
return $requestInfo;
136+
}
137+
138+
/**
139+
* Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
140+
* @param string $rawUrl The raw URL to use for the request builder.
141+
* @return PhotoUpdateSettingsRequestBuilder
142+
*/
143+
public function withUrl(string $rawUrl): PhotoUpdateSettingsRequestBuilder {
144+
return new PhotoUpdateSettingsRequestBuilder($rawUrl, $this->requestAdapter);
145+
}
146+
147+
}
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\Admin\People\PhotoUpdateSettings;
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 PhotoUpdateSettingsRequestBuilderDeleteRequestConfiguration extends BaseRequestConfiguration
12+
{
13+
/**
14+
* Instantiates a new PhotoUpdateSettingsRequestBuilderDeleteRequestConfiguration 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+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<?php
2+
3+
namespace Microsoft\Graph\Beta\Generated\Admin\People\PhotoUpdateSettings;
4+
5+
use Microsoft\Kiota\Abstractions\QueryParameter;
6+
7+
/**
8+
* Read the properties and relationships of a photoUpdateSettings object.
9+
*/
10+
class PhotoUpdateSettingsRequestBuilderGetQueryParameters
11+
{
12+
/**
13+
* @QueryParameter("%24expand")
14+
* @var array<string>|null $expand Expand related entities
15+
*/
16+
public ?array $expand = null;
17+
18+
/**
19+
* @QueryParameter("%24select")
20+
* @var array<string>|null $select Select properties to be returned
21+
*/
22+
public ?array $select = null;
23+
24+
/**
25+
* Instantiates a new PhotoUpdateSettingsRequestBuilderGetQueryParameters and sets the default values.
26+
* @param array<string>|null $expand Expand related entities
27+
* @param array<string>|null $select Select properties to be returned
28+
*/
29+
public function __construct(?array $expand = null, ?array $select = null) {
30+
$this->expand = $expand;
31+
$this->select = $select;
32+
}
33+
34+
}
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<?php
2+
3+
namespace Microsoft\Graph\Beta\Generated\Admin\People\PhotoUpdateSettings;
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 PhotoUpdateSettingsRequestBuilderGetRequestConfiguration extends BaseRequestConfiguration
12+
{
13+
/**
14+
* @var PhotoUpdateSettingsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters
15+
*/
16+
public ?PhotoUpdateSettingsRequestBuilderGetQueryParameters $queryParameters = null;
17+
18+
/**
19+
* Instantiates a new PhotoUpdateSettingsRequestBuilderGetRequestConfiguration and sets the default values.
20+
* @param array<string, array<string>|string>|null $headers Request headers
21+
* @param array<RequestOption>|null $options Request options
22+
* @param PhotoUpdateSettingsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters
23+
*/
24+
public function __construct(?array $headers = null, ?array $options = null, ?PhotoUpdateSettingsRequestBuilderGetQueryParameters $queryParameters = null) {
25+
parent::__construct($headers ?? [], $options ?? []);
26+
$this->queryParameters = $queryParameters;
27+
}
28+
29+
/**
30+
* Instantiates a new PhotoUpdateSettingsRequestBuilderGetQueryParameters.
31+
* @param array<string>|null $expand Expand related entities
32+
* @param array<string>|null $select Select properties to be returned
33+
* @return PhotoUpdateSettingsRequestBuilderGetQueryParameters
34+
*/
35+
public static function createQueryParameters(?array $expand = null, ?array $select = null): PhotoUpdateSettingsRequestBuilderGetQueryParameters {
36+
return new PhotoUpdateSettingsRequestBuilderGetQueryParameters($expand, $select);
37+
}
38+
39+
}
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\Admin\People\PhotoUpdateSettings;
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 PhotoUpdateSettingsRequestBuilderPatchRequestConfiguration extends BaseRequestConfiguration
12+
{
13+
/**
14+
* Instantiates a new PhotoUpdateSettingsRequestBuilderPatchRequestConfiguration 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/Admin/Windows/Updates/ResourceConnections/Item/ResourceConnectionItemRequestBuilder.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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);
@@ -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
*/

0 commit comments

Comments
 (0)