Skip to content

Commit 63307ca

Browse files
Merge pull request #420 from microsoftgraph/kiota/beta/pipelinebuild/198036
Generated beta models and request builders
2 parents 6f4010b + eeeaa76 commit 63307ca

File tree

747 files changed

+42615
-1324
lines changed

Some content is hidden

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

747 files changed

+42615
-1324
lines changed

src/Generated/Admin/Teams/TeamsRequestBuilder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function delete(?TeamsRequestBuilderDeleteRequestConfiguration $requestCo
6161
}
6262

6363
/**
64-
* Represents a collection of user configurations.
64+
* A container for all Teams telephone number management functionalities and user configurations.
6565
* @param TeamsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
6666
* @return Promise<TeamsAdminRoot|null>
6767
* @throws Exception
@@ -108,7 +108,7 @@ public function toDeleteRequestInformation(?TeamsRequestBuilderDeleteRequestConf
108108
}
109109

110110
/**
111-
* Represents a collection of user configurations.
111+
* A container for all Teams telephone number management functionalities and user configurations.
112112
* @param TeamsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
113113
* @return RequestInformation
114114
*/

src/Generated/Admin/Teams/TeamsRequestBuilderGetQueryParameters.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-
* Represents a collection of user configurations.
8+
* A container for all Teams telephone number management functionalities and user configurations.
99
*/
1010
class TeamsRequestBuilderGetQueryParameters
1111
{

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: 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 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-updatableasset-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);
@@ -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 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
*/
@@ -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
@@ -54,11 +54,11 @@ public function delete(?ComplianceChangeItemRequestBuilderDeleteRequestConfigura
5454
}
5555

5656
/**
57-
* Read the properties and relationships of a contentApproval object.
57+
* Read the properties and relationships of a complianceChange 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-contentapproval-get?view=graph-rest-beta Find more info here
61+
* @link https://learn.microsoft.com/graph/api/windowsupdates-compliancechange-get?view=graph-rest-beta Find more info here
6262
*/
6363
public function get(?ComplianceChangeItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise {
6464
$requestInfo = $this->toGetRequestInformation($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);
@@ -103,7 +103,7 @@ public function toDeleteRequestInformation(?ComplianceChangeItemRequestBuilderDe
103103
}
104104

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

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 contentApproval object.
8+
* Read the properties and relationships of a complianceChange object.
99
*/
1010
class ComplianceChangeItemRequestBuilderGetQueryParameters
1111
{

src/Generated/Chats/Item/Messages/MessagesRequestBuilder.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,12 @@ public function get(?MessagesRequestBuilderGetRequestConfiguration $requestConfi
9191
}
9292

9393
/**
94-
* Send a new chatMessage in the specified channel or a chat.
94+
* Send a new chatMessage in the specified chat. This API cannot create a new chat; you must use the list chats method to retrieve the ID of an existing chat before creating a chat message.
9595
* @param ChatMessage $body The request body
9696
* @param MessagesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
9797
* @return Promise<ChatMessage|null>
9898
* @throws Exception
99-
* @link https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-beta Find more info here
99+
* @link https://learn.microsoft.com/graph/api/chat-post-messages?view=graph-rest-beta Find more info here
100100
*/
101101
public function post(ChatMessage $body, ?MessagesRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise {
102102
$requestInfo = $this->toPostRequestInformation($body, $requestConfiguration);
@@ -128,7 +128,7 @@ public function toGetRequestInformation(?MessagesRequestBuilderGetRequestConfigu
128128
}
129129

130130
/**
131-
* Send a new chatMessage in the specified channel or a chat.
131+
* Send a new chatMessage in the specified chat. This API cannot create a new chat; you must use the list chats method to retrieve the ID of an existing chat before creating a chat message.
132132
* @param ChatMessage $body The request body
133133
* @param MessagesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
134134
* @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\Communications\AdhocCalls;
4+
5+
use Exception;
6+
use Http\Promise\Promise;
7+
use Microsoft\Graph\Beta\Generated\Communications\AdhocCalls\Count\CountRequestBuilder;
8+
use Microsoft\Graph\Beta\Generated\Communications\AdhocCalls\Item\AdhocCallItemRequestBuilder;
9+
use Microsoft\Graph\Beta\Generated\Models\AdhocCall;
10+
use Microsoft\Graph\Beta\Generated\Models\AdhocCallCollectionResponse;
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 adhocCalls property of the microsoft.graph.cloudCommunications entity.
19+
*/
20+
class AdhocCallsRequestBuilder 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 adhocCalls property of the microsoft.graph.cloudCommunications entity.
31+
* @param string $adhocCallId The unique identifier of adhocCall
32+
* @return AdhocCallItemRequestBuilder
33+
*/
34+
public function byAdhocCallId(string $adhocCallId): AdhocCallItemRequestBuilder {
35+
$urlTplParams = $this->pathParameters;
36+
$urlTplParams['adhocCall%2Did'] = $adhocCallId;
37+
return new AdhocCallItemRequestBuilder($urlTplParams, $this->requestAdapter);
38+
}
39+
40+
/**
41+
* Instantiates a new AdhocCallsRequestBuilder 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}/communications/adhocCalls{?%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+
* A collection of ad hoc calls in Teams.
56+
* @param AdhocCallsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
57+
* @return Promise<AdhocCallCollectionResponse|null>
58+
* @throws Exception
59+
*/
60+
public function get(?AdhocCallsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise {
61+
$requestInfo = $this->toGetRequestInformation($requestConfiguration);
62+
$errorMappings = [
63+
'XXX' => [ODataError::class, 'createFromDiscriminatorValue'],
64+
];
65+
return $this->requestAdapter->sendAsync($requestInfo, [AdhocCallCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings);
66+
}
67+
68+
/**
69+
* Create new navigation property to adhocCalls for communications
70+
* @param AdhocCall $body The request body
71+
* @param AdhocCallsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
72+
* @return Promise<AdhocCall|null>
73+
* @throws Exception
74+
*/
75+
public function post(AdhocCall $body, ?AdhocCallsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise {
76+
$requestInfo = $this->toPostRequestInformation($body, $requestConfiguration);
77+
$errorMappings = [
78+
'XXX' => [ODataError::class, 'createFromDiscriminatorValue'],
79+
];
80+
return $this->requestAdapter->sendAsync($requestInfo, [AdhocCall::class, 'createFromDiscriminatorValue'], $errorMappings);
81+
}
82+
83+
/**
84+
* A collection of ad hoc calls in Teams.
85+
* @param AdhocCallsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
86+
* @return RequestInformation
87+
*/
88+
public function toGetRequestInformation(?AdhocCallsRequestBuilderGetRequestConfiguration $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+
* Create new navigation property to adhocCalls for communications
106+
* @param AdhocCall $body The request body
107+
* @param AdhocCallsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
108+
* @return RequestInformation
109+
*/
110+
public function toPostRequestInformation(AdhocCall $body, ?AdhocCallsRequestBuilderPostRequestConfiguration $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 AdhocCallsRequestBuilder
128+
*/
129+
public function withUrl(string $rawUrl): AdhocCallsRequestBuilder {
130+
return new AdhocCallsRequestBuilder($rawUrl, $this->requestAdapter);
131+
}
132+
133+
}

0 commit comments

Comments
 (0)