Skip to content

Commit cd57cd0

Browse files
authored
Merge pull request #357 from microsoftgraph/kiota/beta/pipelinebuild/178264
Generated beta models and request builders
2 parents 6176b75 + d1eec77 commit cd57cd0

File tree

337 files changed

+11305
-307
lines changed

Some content is hidden

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

337 files changed

+11305
-307
lines changed

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

src/Generated/AdministrativeUnits/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap
3030
}
3131

3232
/**
33-
* Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct.
33+
* Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct.
3434
* @param CheckMemberGroupsPostRequestBody $body The request body
3535
* @param CheckMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
3636
* @return Promise<CheckMemberGroupsPostResponse|null>
@@ -46,7 +46,7 @@ public function post(CheckMemberGroupsPostRequestBody $body, ?CheckMemberGroupsR
4646
}
4747

4848
/**
49-
* Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct.
49+
* Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct.
5050
* @param CheckMemberGroupsPostRequestBody $body The request body
5151
* @param CheckMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
5252
* @return RequestInformation

src/Generated/App/Calls/Item/Participants/Invite/InviteRequestBuilder.php

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

3333
/**
34-
* Invite participants to the active call. For more information about how to handle operations, see commsOperation.
34+
* Delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled.
3535
* @param InvitePostRequestBody $body The request body
3636
* @param InviteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
3737
* @return Promise<InviteParticipantsOperation|null>
3838
* @throws Exception
39-
* @link https://learn.microsoft.com/graph/api/participant-invite?view=graph-rest-beta Find more info here
39+
* @link https://learn.microsoft.com/graph/api/participant-delete?view=graph-rest-beta Find more info here
4040
*/
4141
public function post(InvitePostRequestBody $body, ?InviteRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise {
4242
$requestInfo = $this->toPostRequestInformation($body, $requestConfiguration);
@@ -47,7 +47,7 @@ public function post(InvitePostRequestBody $body, ?InviteRequestBuilderPostReque
4747
}
4848

4949
/**
50-
* Invite participants to the active call. For more information about how to handle operations, see commsOperation.
50+
* Delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled.
5151
* @param InvitePostRequestBody $body The request body
5252
* @param InviteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
5353
* @return RequestInformation

src/Generated/AppRoleAssignments/AppRoleAssignmentsRequestBuilder.php

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@
55
use Exception;
66
use Http\Promise\Promise;
77
use Microsoft\Graph\Beta\Generated\AppRoleAssignments\Count\CountRequestBuilder;
8+
use Microsoft\Graph\Beta\Generated\AppRoleAssignments\Delta\DeltaRequestBuilder;
9+
use Microsoft\Graph\Beta\Generated\AppRoleAssignments\GetByIds\GetByIdsRequestBuilder;
10+
use Microsoft\Graph\Beta\Generated\AppRoleAssignments\GetUserOwnedObjects\GetUserOwnedObjectsRequestBuilder;
811
use Microsoft\Graph\Beta\Generated\AppRoleAssignments\Item\AppRoleAssignmentItemRequestBuilder;
12+
use Microsoft\Graph\Beta\Generated\AppRoleAssignments\ValidateProperties\ValidatePropertiesRequestBuilder;
913
use Microsoft\Graph\Beta\Generated\Models\AppRoleAssignment;
1014
use Microsoft\Graph\Beta\Generated\Models\AppRoleAssignmentCollectionResponse;
1115
use Microsoft\Graph\Beta\Generated\Models\ODataErrors\ODataError;
@@ -26,6 +30,34 @@ public function count(): CountRequestBuilder {
2630
return new CountRequestBuilder($this->pathParameters, $this->requestAdapter);
2731
}
2832

33+
/**
34+
* Provides operations to call the delta method.
35+
*/
36+
public function delta(): DeltaRequestBuilder {
37+
return new DeltaRequestBuilder($this->pathParameters, $this->requestAdapter);
38+
}
39+
40+
/**
41+
* Provides operations to call the getByIds method.
42+
*/
43+
public function getByIds(): GetByIdsRequestBuilder {
44+
return new GetByIdsRequestBuilder($this->pathParameters, $this->requestAdapter);
45+
}
46+
47+
/**
48+
* Provides operations to call the getUserOwnedObjects method.
49+
*/
50+
public function getUserOwnedObjects(): GetUserOwnedObjectsRequestBuilder {
51+
return new GetUserOwnedObjectsRequestBuilder($this->pathParameters, $this->requestAdapter);
52+
}
53+
54+
/**
55+
* Provides operations to call the validateProperties method.
56+
*/
57+
public function validateProperties(): ValidatePropertiesRequestBuilder {
58+
return new ValidatePropertiesRequestBuilder($this->pathParameters, $this->requestAdapter);
59+
}
60+
2961
/**
3062
* Provides operations to manage the collection of appRoleAssignment entities.
3163
* @param string $appRoleAssignmentId The unique identifier of appRoleAssignment
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\AppRoleAssignments\Delta;
4+
5+
use Microsoft\Graph\Beta\Generated\Models\BaseDeltaFunctionResponse;
6+
use Microsoft\Graph\Beta\Generated\Models\DirectoryObject;
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 DeltaGetResponse extends BaseDeltaFunctionResponse implements Parsable
13+
{
14+
/**
15+
* Instantiates a new DeltaGetResponse 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 DeltaGetResponse
25+
*/
26+
public static function createFromDiscriminatorValue(ParseNode $parseNode): DeltaGetResponse {
27+
return new DeltaGetResponse();
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([DirectoryObject::class, 'createFromDiscriminatorValue'])),
38+
]);
39+
}
40+
41+
/**
42+
* Gets the value property value. The value property
43+
* @return array<DirectoryObject>|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, DirectoryObject::class);
49+
/** @var array<DirectoryObject>|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<DirectoryObject>|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+
}
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\AppRoleAssignments\Delta;
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 delta method.
15+
*/
16+
class DeltaRequestBuilder extends BaseRequestBuilder
17+
{
18+
/**
19+
* Instantiates a new DeltaRequestBuilder 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}/appRoleAssignments/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}');
25+
if (is_array($pathParametersOrRawUrl)) {
26+
$this->pathParameters = $pathParametersOrRawUrl;
27+
} else {
28+
$this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl];
29+
}
30+
}
31+
32+
/**
33+
* Get newly created, updated, or deleted directory objects without performing a full read of the entire directoryObject collection. For more information, see Use delta query to track changes in Microsoft Graph data for details.
34+
* @param DeltaRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
35+
* @return Promise<DeltaGetResponse|null>
36+
* @throws Exception
37+
* @link https://learn.microsoft.com/graph/api/directoryobject-delta?view=graph-rest-beta Find more info here
38+
*/
39+
public function get(?DeltaRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise {
40+
$requestInfo = $this->toGetRequestInformation($requestConfiguration);
41+
$errorMappings = [
42+
'XXX' => [ODataError::class, 'createFromDiscriminatorValue'],
43+
];
44+
return $this->requestAdapter->sendAsync($requestInfo, [DeltaGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings);
45+
}
46+
47+
/**
48+
* Get newly created, updated, or deleted directory objects without performing a full read of the entire directoryObject collection. For more information, see Use delta query to track changes in Microsoft Graph data for details.
49+
* @param DeltaRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
50+
* @return RequestInformation
51+
*/
52+
public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation {
53+
$requestInfo = new RequestInformation();
54+
$requestInfo->urlTemplate = $this->urlTemplate;
55+
$requestInfo->pathParameters = $this->pathParameters;
56+
$requestInfo->httpMethod = HttpMethod::GET;
57+
if ($requestConfiguration !== null) {
58+
$requestInfo->addHeaders($requestConfiguration->headers);
59+
if ($requestConfiguration->queryParameters !== null) {
60+
$requestInfo->setQueryParameters($requestConfiguration->queryParameters);
61+
}
62+
$requestInfo->addRequestOptions(...$requestConfiguration->options);
63+
}
64+
$requestInfo->tryAddHeader('Accept', "application/json");
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 DeltaRequestBuilder
72+
*/
73+
public function withUrl(string $rawUrl): DeltaRequestBuilder {
74+
return new DeltaRequestBuilder($rawUrl, $this->requestAdapter);
75+
}
76+
77+
}
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\AppRoleAssignments\Delta;
4+
5+
use Microsoft\Kiota\Abstractions\QueryParameter;
6+
7+
/**
8+
* Get newly created, updated, or deleted directory objects without performing a full read of the entire directoryObject collection. For more information, see Use delta query to track changes in Microsoft Graph data for details.
9+
*/
10+
class DeltaRequestBuilderGetQueryParameters
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 DeltaRequestBuilderGetQueryParameters 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)