Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap
}

/**
* Delete a complianceChange object.
* Delete a contentApproval object.
* @param ComplianceChangeItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return Promise<void|null>
* @throws Exception
* @link https://learn.microsoft.com/graph/api/windowsupdates-compliancechange-delete?view=graph-rest-beta Find more info here
* @link https://learn.microsoft.com/graph/api/windowsupdates-contentapproval-delete?view=graph-rest-beta Find more info here
*/
public function delete(?ComplianceChangeItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise {
$requestInfo = $this->toDeleteRequestInformation($requestConfiguration);
Expand All @@ -69,12 +69,12 @@ public function get(?ComplianceChangeItemRequestBuilderGetRequestConfiguration $
}

/**
* Update the properties of a complianceChange object.
* Update the properties of a contentApproval object.
* @param ComplianceChange $body The request body
* @param ComplianceChangeItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return Promise<ComplianceChange|null>
* @throws Exception
* @link https://learn.microsoft.com/graph/api/windowsupdates-compliancechange-update?view=graph-rest-beta Find more info here
* @link https://learn.microsoft.com/graph/api/windowsupdates-contentapproval-update?view=graph-rest-beta Find more info here
*/
public function patch(ComplianceChange $body, ?ComplianceChangeItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise {
$requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration);
Expand All @@ -85,7 +85,7 @@ public function patch(ComplianceChange $body, ?ComplianceChangeItemRequestBuilde
}

/**
* Delete a complianceChange object.
* Delete a contentApproval object.
* @param ComplianceChangeItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return RequestInformation
*/
Expand Down Expand Up @@ -124,7 +124,7 @@ public function toGetRequestInformation(?ComplianceChangeItemRequestBuilderGetRe
}

/**
* Update the properties of a complianceChange object.
* Update the properties of a contentApproval object.
* @param ComplianceChange $body The request body
* @param ComplianceChangeItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return RequestInformation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap
}

/**
* 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.
* 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.
* @param CheckMemberGroupsPostRequestBody $body The request body
* @param CheckMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return Promise<CheckMemberGroupsPostResponse|null>
Expand All @@ -46,7 +46,7 @@ public function post(CheckMemberGroupsPostRequestBody $body, ?CheckMemberGroupsR
}

/**
* 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.
* 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.
* @param CheckMemberGroupsPostRequestBody $body The request body
* @param CheckMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return RequestInformation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap
}

/**
* Invite participants to the active call. For more information about how to handle operations, see commsOperation.
* 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.
* @param InvitePostRequestBody $body The request body
* @param InviteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return Promise<InviteParticipantsOperation|null>
* @throws Exception
* @link https://learn.microsoft.com/graph/api/participant-invite?view=graph-rest-beta Find more info here
* @link https://learn.microsoft.com/graph/api/participant-delete?view=graph-rest-beta Find more info here
*/
public function post(InvitePostRequestBody $body, ?InviteRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise {
$requestInfo = $this->toPostRequestInformation($body, $requestConfiguration);
Expand All @@ -47,7 +47,7 @@ public function post(InvitePostRequestBody $body, ?InviteRequestBuilderPostReque
}

/**
* Invite participants to the active call. For more information about how to handle operations, see commsOperation.
* 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.
* @param InvitePostRequestBody $body The request body
* @param InviteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return RequestInformation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@
use Exception;
use Http\Promise\Promise;
use Microsoft\Graph\Beta\Generated\AppRoleAssignments\Count\CountRequestBuilder;
use Microsoft\Graph\Beta\Generated\AppRoleAssignments\Delta\DeltaRequestBuilder;
use Microsoft\Graph\Beta\Generated\AppRoleAssignments\GetByIds\GetByIdsRequestBuilder;
use Microsoft\Graph\Beta\Generated\AppRoleAssignments\GetUserOwnedObjects\GetUserOwnedObjectsRequestBuilder;
use Microsoft\Graph\Beta\Generated\AppRoleAssignments\Item\AppRoleAssignmentItemRequestBuilder;
use Microsoft\Graph\Beta\Generated\AppRoleAssignments\ValidateProperties\ValidatePropertiesRequestBuilder;
use Microsoft\Graph\Beta\Generated\Models\AppRoleAssignment;
use Microsoft\Graph\Beta\Generated\Models\AppRoleAssignmentCollectionResponse;
use Microsoft\Graph\Beta\Generated\Models\ODataErrors\ODataError;
Expand All @@ -26,6 +30,34 @@ public function count(): CountRequestBuilder {
return new CountRequestBuilder($this->pathParameters, $this->requestAdapter);
}

/**
* Provides operations to call the delta method.
*/
public function delta(): DeltaRequestBuilder {
return new DeltaRequestBuilder($this->pathParameters, $this->requestAdapter);
}

/**
* Provides operations to call the getByIds method.
*/
public function getByIds(): GetByIdsRequestBuilder {
return new GetByIdsRequestBuilder($this->pathParameters, $this->requestAdapter);
}

/**
* Provides operations to call the getUserOwnedObjects method.
*/
public function getUserOwnedObjects(): GetUserOwnedObjectsRequestBuilder {
return new GetUserOwnedObjectsRequestBuilder($this->pathParameters, $this->requestAdapter);
}

/**
* Provides operations to call the validateProperties method.
*/
public function validateProperties(): ValidatePropertiesRequestBuilder {
return new ValidatePropertiesRequestBuilder($this->pathParameters, $this->requestAdapter);
}

/**
* Provides operations to manage the collection of appRoleAssignment entities.
* @param string $appRoleAssignmentId The unique identifier of appRoleAssignment
Expand Down
72 changes: 72 additions & 0 deletions src/Generated/AppRoleAssignments/Delta/DeltaGetResponse.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
<?php

namespace Microsoft\Graph\Beta\Generated\AppRoleAssignments\Delta;

use Microsoft\Graph\Beta\Generated\Models\BaseDeltaFunctionResponse;
use Microsoft\Graph\Beta\Generated\Models\DirectoryObject;
use Microsoft\Kiota\Abstractions\Serialization\Parsable;
use Microsoft\Kiota\Abstractions\Serialization\ParseNode;
use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter;
use Microsoft\Kiota\Abstractions\Types\TypeUtils;

class DeltaGetResponse extends BaseDeltaFunctionResponse implements Parsable
{
/**
* Instantiates a new DeltaGetResponse and sets the default values.
*/
public function __construct() {
parent::__construct();
}

/**
* Creates a new instance of the appropriate class based on discriminator value
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
* @return DeltaGetResponse
*/
public static function createFromDiscriminatorValue(ParseNode $parseNode): DeltaGetResponse {
return new DeltaGetResponse();
}

/**
* The deserialization information for the current model
* @return array<string, callable(ParseNode): void>
*/
public function getFieldDeserializers(): array {
$o = $this;
return array_merge(parent::getFieldDeserializers(), [
'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([DirectoryObject::class, 'createFromDiscriminatorValue'])),
]);
}

/**
* Gets the value property value. The value property
* @return array<DirectoryObject>|null
*/
public function getValue(): ?array {
$val = $this->getBackingStore()->get('value');
if (is_array($val) || is_null($val)) {
TypeUtils::validateCollectionValues($val, DirectoryObject::class);
/** @var array<DirectoryObject>|null $val */
return $val;
}
throw new \UnexpectedValueException("Invalid type found in backing store for 'value'");
}

/**
* Serializes information the current object
* @param SerializationWriter $writer Serialization writer to use to serialize this model
*/
public function serialize(SerializationWriter $writer): void {
parent::serialize($writer);
$writer->writeCollectionOfObjectValues('value', $this->getValue());
}

/**
* Sets the value property value. The value property
* @param array<DirectoryObject>|null $value Value to set for the value property.
*/
public function setValue(?array $value): void {
$this->getBackingStore()->set('value', $value);
}

}
77 changes: 77 additions & 0 deletions src/Generated/AppRoleAssignments/Delta/DeltaRequestBuilder.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
<?php

namespace Microsoft\Graph\Beta\Generated\AppRoleAssignments\Delta;

use Exception;
use Http\Promise\Promise;
use Microsoft\Graph\Beta\Generated\Models\ODataErrors\ODataError;
use Microsoft\Kiota\Abstractions\BaseRequestBuilder;
use Microsoft\Kiota\Abstractions\HttpMethod;
use Microsoft\Kiota\Abstractions\RequestAdapter;
use Microsoft\Kiota\Abstractions\RequestInformation;

/**
* Provides operations to call the delta method.
*/
class DeltaRequestBuilder extends BaseRequestBuilder
{
/**
* Instantiates a new DeltaRequestBuilder and sets the default values.
* @param array<string, mixed>|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL.
* @param RequestAdapter $requestAdapter The request adapter to use to execute the requests.
*/
public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) {
parent::__construct($requestAdapter, [], '{+baseurl}/appRoleAssignments/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}');
if (is_array($pathParametersOrRawUrl)) {
$this->pathParameters = $pathParametersOrRawUrl;
} else {
$this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl];
}
}

/**
* 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.
* @param DeltaRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return Promise<DeltaGetResponse|null>
* @throws Exception
* @link https://learn.microsoft.com/graph/api/directoryobject-delta?view=graph-rest-beta Find more info here
*/
public function get(?DeltaRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise {
$requestInfo = $this->toGetRequestInformation($requestConfiguration);
$errorMappings = [
'XXX' => [ODataError::class, 'createFromDiscriminatorValue'],
];
return $this->requestAdapter->sendAsync($requestInfo, [DeltaGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings);
}

/**
* 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.
* @param DeltaRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return RequestInformation
*/
public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation {
$requestInfo = new RequestInformation();
$requestInfo->urlTemplate = $this->urlTemplate;
$requestInfo->pathParameters = $this->pathParameters;
$requestInfo->httpMethod = HttpMethod::GET;
if ($requestConfiguration !== null) {
$requestInfo->addHeaders($requestConfiguration->headers);
if ($requestConfiguration->queryParameters !== null) {
$requestInfo->setQueryParameters($requestConfiguration->queryParameters);
}
$requestInfo->addRequestOptions(...$requestConfiguration->options);
}
$requestInfo->tryAddHeader('Accept', "application/json");
return $requestInfo;
}

/**
* Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
* @param string $rawUrl The raw URL to use for the request builder.
* @return DeltaRequestBuilder
*/
public function withUrl(string $rawUrl): DeltaRequestBuilder {
return new DeltaRequestBuilder($rawUrl, $this->requestAdapter);
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
<?php

namespace Microsoft\Graph\Beta\Generated\AppRoleAssignments\Delta;

use Microsoft\Kiota\Abstractions\QueryParameter;

/**
* 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.
*/
class DeltaRequestBuilderGetQueryParameters
{
/**
* @QueryParameter("%24count")
* @var bool|null $count Include count of items
*/
public ?bool $count = null;

/**
* @QueryParameter("%24expand")
* @var array<string>|null $expand Expand related entities
*/
public ?array $expand = null;

/**
* @QueryParameter("%24filter")
* @var string|null $filter Filter items by property values
*/
public ?string $filter = null;

/**
* @QueryParameter("%24orderby")
* @var array<string>|null $orderby Order items by property values
*/
public ?array $orderby = null;

/**
* @QueryParameter("%24search")
* @var string|null $search Search items by search phrases
*/
public ?string $search = null;

/**
* @QueryParameter("%24select")
* @var array<string>|null $select Select properties to be returned
*/
public ?array $select = null;

/**
* @QueryParameter("%24skip")
* @var int|null $skip Skip the first n items
*/
public ?int $skip = null;

/**
* @QueryParameter("%24top")
* @var int|null $top Show only the first n items
*/
public ?int $top = null;

/**
* Instantiates a new DeltaRequestBuilderGetQueryParameters and sets the default values.
* @param bool|null $count Include count of items
* @param array<string>|null $expand Expand related entities
* @param string|null $filter Filter items by property values
* @param array<string>|null $orderby Order items by property values
* @param string|null $search Search items by search phrases
* @param array<string>|null $select Select properties to be returned
* @param int|null $skip Skip the first n items
* @param int|null $top Show only the first n items
*/
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) {
$this->count = $count;
$this->expand = $expand;
$this->filter = $filter;
$this->orderby = $orderby;
$this->search = $search;
$this->select = $select;
$this->skip = $skip;
$this->top = $top;
}

}
Loading
Loading