diff --git a/README.md b/README.md index 364dc2fdce7..0a24787b680 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ You can install the PHP SDK with Composer by editing your `composer.json` file: ``` { "require": { - "microsoft/microsoft-graph": "^2.6.0" + "microsoft/microsoft-graph": "^2.7.0" } } ``` diff --git a/src/Generated/Communications/Calls/Item/Participants/Invite/InviteRequestBuilder.php b/src/Generated/Communications/Calls/Item/Participants/Invite/InviteRequestBuilder.php index 12acddc4670..8bcf9646ece 100644 --- a/src/Generated/Communications/Calls/Item/Participants/Invite/InviteRequestBuilder.php +++ b/src/Generated/Communications/Calls/Item/Participants/Invite/InviteRequestBuilder.php @@ -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 * @throws Exception - * @link https://learn.microsoft.com/graph/api/participant-invite?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/participant-delete?view=graph-rest-1.0 Find more info here */ public function post(InvitePostRequestBody $body, ?InviteRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -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 diff --git a/src/Generated/DeviceAppManagement/DeviceAppManagementRequestBuilder.php b/src/Generated/DeviceAppManagement/DeviceAppManagementRequestBuilder.php index b9dc36bcf9a..791d4c261d6 100644 --- a/src/Generated/DeviceAppManagement/DeviceAppManagementRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/DeviceAppManagementRequestBuilder.php @@ -155,7 +155,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap * @param DeviceAppManagementRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/intune-partnerintegration-deviceappmanagement-get?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-books-deviceappmanagement-get?view=graph-rest-1.0 Find more info here */ public function get(?DeviceAppManagementRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -171,7 +171,7 @@ public function get(?DeviceAppManagementRequestBuilderGetRequestConfiguration $r * @param DeviceAppManagementRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/intune-policyset-deviceappmanagement-update?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-apps-deviceappmanagement-update?view=graph-rest-1.0 Find more info here */ public function patch(DeviceAppManagement $body, ?DeviceAppManagementRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); diff --git a/src/Generated/DeviceAppManagement/ManagedAppPolicies/Item/TargetApps/TargetAppsRequestBuilder.php b/src/Generated/DeviceAppManagement/ManagedAppPolicies/Item/TargetApps/TargetAppsRequestBuilder.php index c14dff918a3..c9e0d3a0088 100644 --- a/src/Generated/DeviceAppManagement/ManagedAppPolicies/Item/TargetApps/TargetAppsRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/ManagedAppPolicies/Item/TargetApps/TargetAppsRequestBuilder.php @@ -35,7 +35,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap * @param TargetAppsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/intune-mam-managedappprotection-targetapps?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-mam-managedapppolicy-targetapps?view=graph-rest-1.0 Find more info here */ public function post(TargetAppsPostRequestBody $body, ?TargetAppsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); diff --git a/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/Item/TargetApps/TargetAppsRequestBuilder.php b/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/Item/TargetApps/TargetAppsRequestBuilder.php index e141c5e3073..98d1e73293e 100644 --- a/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/Item/TargetApps/TargetAppsRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/Item/TargetApps/TargetAppsRequestBuilder.php @@ -35,7 +35,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap * @param TargetAppsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/intune-mam-managedappprotection-targetapps?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-mam-managedapppolicy-targetapps?view=graph-rest-1.0 Find more info here */ public function post(TargetAppsPostRequestBody $body, ?TargetAppsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); diff --git a/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/Item/TargetApps/TargetAppsRequestBuilder.php b/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/Item/TargetApps/TargetAppsRequestBuilder.php index ae38e904200..f8dc868a894 100644 --- a/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/Item/TargetApps/TargetAppsRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/Item/TargetApps/TargetAppsRequestBuilder.php @@ -35,7 +35,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap * @param TargetAppsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/intune-mam-managedappprotection-targetapps?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-mam-managedapppolicy-targetapps?view=graph-rest-1.0 Find more info here */ public function post(TargetAppsPostRequestBody $body, ?TargetAppsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); diff --git a/src/Generated/DeviceManagement/DeviceManagementRequestBuilder.php b/src/Generated/DeviceManagement/DeviceManagementRequestBuilder.php index da9c6ec6526..7784a91f55c 100644 --- a/src/Generated/DeviceManagement/DeviceManagementRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceManagementRequestBuilder.php @@ -509,7 +509,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap * @param DeviceManagementRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/intune-deviceconfig-devicemanagement-get?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-notification-devicemanagement-get?view=graph-rest-1.0 Find more info here */ public function get(?DeviceManagementRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -534,7 +534,7 @@ public function getEffectivePermissionsWithScope(string $scope): GetEffectivePer * @param DeviceManagementRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/intune-rbac-devicemanagement-update?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-companyterms-devicemanagement-update?view=graph-rest-1.0 Find more info here */ public function patch(DeviceManagement $body, ?DeviceManagementRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); diff --git a/src/Generated/Directory/DirectoryRequestBuilder.php b/src/Generated/Directory/DirectoryRequestBuilder.php index 15fd1fd579a..dfbc3d8b2e5 100644 --- a/src/Generated/Directory/DirectoryRequestBuilder.php +++ b/src/Generated/Directory/DirectoryRequestBuilder.php @@ -11,6 +11,8 @@ use Microsoft\Graph\Generated\Directory\DeviceLocalCredentials\DeviceLocalCredentialsRequestBuilder; use Microsoft\Graph\Generated\Directory\FederationConfigurations\FederationConfigurationsRequestBuilder; use Microsoft\Graph\Generated\Directory\OnPremisesSynchronization\OnPremisesSynchronizationRequestBuilder; +use Microsoft\Graph\Generated\Directory\Subscriptions\SubscriptionsRequestBuilder; +use Microsoft\Graph\Generated\Directory\SubscriptionsWithCommerceSubscriptionId\SubscriptionsWithCommerceSubscriptionIdRequestBuilder; use Microsoft\Graph\Generated\Models\Directory; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; @@ -72,6 +74,13 @@ public function onPremisesSynchronization(): OnPremisesSynchronizationRequestBui return new OnPremisesSynchronizationRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * Provides operations to manage the subscriptions property of the microsoft.graph.directory entity. + */ + public function subscriptions(): SubscriptionsRequestBuilder { + return new SubscriptionsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new DirectoryRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. @@ -115,6 +124,15 @@ public function patch(Directory $body, ?DirectoryRequestBuilderPatchRequestConfi return $this->requestAdapter->sendAsync($requestInfo, [Directory::class, 'createFromDiscriminatorValue'], $errorMappings); } + /** + * Provides operations to manage the subscriptions property of the microsoft.graph.directory entity. + * @param string $commerceSubscriptionId Alternate key of companySubscription + * @return SubscriptionsWithCommerceSubscriptionIdRequestBuilder + */ + public function subscriptionsWithCommerceSubscriptionId(string $commerceSubscriptionId): SubscriptionsWithCommerceSubscriptionIdRequestBuilder { + return new SubscriptionsWithCommerceSubscriptionIdRequestBuilder($this->pathParameters, $this->requestAdapter, $commerceSubscriptionId); + } + /** * Get directory * @param DirectoryRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Generated/Directory/Subscriptions/Count/CountRequestBuilder.php b/src/Generated/Directory/Subscriptions/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..dfae9744c1e --- /dev/null +++ b/src/Generated/Directory/Subscriptions/Count/CountRequestBuilder.php @@ -0,0 +1,78 @@ +|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}/directory/subscriptions/$count{?%24filter,%24search}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get the number of the resource + * @param CountRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + /** @var Promise $result */ + $result = $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + return $result; + } + + /** + * Get the number of the resource + * @param CountRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?CountRequestBuilderGetRequestConfiguration $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', "text/plain;q=0.9"); + 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 CountRequestBuilder + */ + public function withUrl(string $rawUrl): CountRequestBuilder { + return new CountRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Directory/Subscriptions/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/Directory/Subscriptions/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..a553bea2f40 --- /dev/null +++ b/src/Generated/Directory/Subscriptions/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/Directory/Subscriptions/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/Directory/Subscriptions/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..d11b2628d33 --- /dev/null +++ b/src/Generated/Directory/Subscriptions/Count/CountRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param CountRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?CountRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new CountRequestBuilderGetQueryParameters. + * @param string|null $filter Filter items by property values + * @param string|null $search Search items by search phrases + * @return CountRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?string $filter = null, ?string $search = null): CountRequestBuilderGetQueryParameters { + return new CountRequestBuilderGetQueryParameters($filter, $search); + } + +} diff --git a/src/Generated/Directory/Subscriptions/Item/CompanySubscriptionItemRequestBuilder.php b/src/Generated/Directory/Subscriptions/Item/CompanySubscriptionItemRequestBuilder.php new file mode 100644 index 00000000000..b9c42a66508 --- /dev/null +++ b/src/Generated/Directory/Subscriptions/Item/CompanySubscriptionItemRequestBuilder.php @@ -0,0 +1,144 @@ +|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}/directory/subscriptions/{companySubscription%2Did}{?%24expand,%24select}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property subscriptions for directory + * @param CompanySubscriptionItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function delete(?CompanySubscriptionItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } + + /** + * Get subscriptions from directory + * @param CompanySubscriptionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?CompanySubscriptionItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [CompanySubscription::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Update the navigation property subscriptions in directory + * @param CompanySubscription $body The request body + * @param CompanySubscriptionItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function patch(CompanySubscription $body, ?CompanySubscriptionItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [CompanySubscription::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Delete navigation property subscriptions for directory + * @param CompanySubscriptionItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?CompanySubscriptionItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::DELETE; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Get subscriptions from directory + * @param CompanySubscriptionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?CompanySubscriptionItemRequestBuilderGetRequestConfiguration $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; + } + + /** + * Update the navigation property subscriptions in directory + * @param CompanySubscription $body The request body + * @param CompanySubscriptionItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(CompanySubscription $body, ?CompanySubscriptionItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + 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 CompanySubscriptionItemRequestBuilder + */ + public function withUrl(string $rawUrl): CompanySubscriptionItemRequestBuilder { + return new CompanySubscriptionItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Directory/Subscriptions/Item/CompanySubscriptionItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/Directory/Subscriptions/Item/CompanySubscriptionItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..34529c24925 --- /dev/null +++ b/src/Generated/Directory/Subscriptions/Item/CompanySubscriptionItemRequestBuilderDeleteRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Directory/Subscriptions/Item/CompanySubscriptionItemRequestBuilderGetQueryParameters.php b/src/Generated/Directory/Subscriptions/Item/CompanySubscriptionItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..b64db1b42a0 --- /dev/null +++ b/src/Generated/Directory/Subscriptions/Item/CompanySubscriptionItemRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * Instantiates a new CompanySubscriptionItemRequestBuilderGetQueryParameters and sets the default values. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + */ + public function __construct(?array $expand = null, ?array $select = null) { + $this->expand = $expand; + $this->select = $select; + } + +} diff --git a/src/Generated/Directory/Subscriptions/Item/CompanySubscriptionItemRequestBuilderGetRequestConfiguration.php b/src/Generated/Directory/Subscriptions/Item/CompanySubscriptionItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..bdd6262efec --- /dev/null +++ b/src/Generated/Directory/Subscriptions/Item/CompanySubscriptionItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param CompanySubscriptionItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?CompanySubscriptionItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new CompanySubscriptionItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return CompanySubscriptionItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): CompanySubscriptionItemRequestBuilderGetQueryParameters { + return new CompanySubscriptionItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/Directory/Subscriptions/Item/CompanySubscriptionItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/Directory/Subscriptions/Item/CompanySubscriptionItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..b9f6fc151d6 --- /dev/null +++ b/src/Generated/Directory/Subscriptions/Item/CompanySubscriptionItemRequestBuilderPatchRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Directory/Subscriptions/SubscriptionsRequestBuilder.php b/src/Generated/Directory/Subscriptions/SubscriptionsRequestBuilder.php new file mode 100644 index 00000000000..c0c13b6c27b --- /dev/null +++ b/src/Generated/Directory/Subscriptions/SubscriptionsRequestBuilder.php @@ -0,0 +1,133 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the subscriptions property of the microsoft.graph.directory entity. + * @param string $companySubscriptionId The unique identifier of companySubscription + * @return CompanySubscriptionItemRequestBuilder + */ + public function byCompanySubscriptionId(string $companySubscriptionId): CompanySubscriptionItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['companySubscription%2Did'] = $companySubscriptionId; + return new CompanySubscriptionItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new SubscriptionsRequestBuilder and sets the default values. + * @param array|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}/directory/subscriptions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get subscriptions from directory + * @param SubscriptionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?SubscriptionsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [CompanySubscriptionCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Create new navigation property to subscriptions for directory + * @param CompanySubscription $body The request body + * @param SubscriptionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function post(CompanySubscription $body, ?SubscriptionsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [CompanySubscription::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Get subscriptions from directory + * @param SubscriptionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?SubscriptionsRequestBuilderGetRequestConfiguration $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; + } + + /** + * Create new navigation property to subscriptions for directory + * @param CompanySubscription $body The request body + * @param SubscriptionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(CompanySubscription $body, ?SubscriptionsRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + 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 SubscriptionsRequestBuilder + */ + public function withUrl(string $rawUrl): SubscriptionsRequestBuilder { + return new SubscriptionsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Directory/Subscriptions/SubscriptionsRequestBuilderGetQueryParameters.php b/src/Generated/Directory/Subscriptions/SubscriptionsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..a931a226ad2 --- /dev/null +++ b/src/Generated/Directory/Subscriptions/SubscriptionsRequestBuilderGetQueryParameters.php @@ -0,0 +1,82 @@ +|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|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|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 SubscriptionsRequestBuilderGetQueryParameters and sets the default values. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|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; + } + +} diff --git a/src/Generated/Directory/Subscriptions/SubscriptionsRequestBuilderGetRequestConfiguration.php b/src/Generated/Directory/Subscriptions/SubscriptionsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..28afc1da728 --- /dev/null +++ b/src/Generated/Directory/Subscriptions/SubscriptionsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param SubscriptionsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?SubscriptionsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new SubscriptionsRequestBuilderGetQueryParameters. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|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 + * @return SubscriptionsRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?bool $count = null, ?array $expand = null, ?string $filter = null, ?array $orderby = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null): SubscriptionsRequestBuilderGetQueryParameters { + return new SubscriptionsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/Directory/Subscriptions/SubscriptionsRequestBuilderPostRequestConfiguration.php b/src/Generated/Directory/Subscriptions/SubscriptionsRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..c70ef222233 --- /dev/null +++ b/src/Generated/Directory/Subscriptions/SubscriptionsRequestBuilderPostRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Directory/SubscriptionsWithCommerceSubscriptionId/SubscriptionsWithCommerceSubscriptionIdRequestBuilder.php b/src/Generated/Directory/SubscriptionsWithCommerceSubscriptionId/SubscriptionsWithCommerceSubscriptionIdRequestBuilder.php new file mode 100644 index 00000000000..6a75a4fb07c --- /dev/null +++ b/src/Generated/Directory/SubscriptionsWithCommerceSubscriptionId/SubscriptionsWithCommerceSubscriptionIdRequestBuilder.php @@ -0,0 +1,147 @@ +|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. + * @param string|null $commerceSubscriptionId Alternate key of companySubscription + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter, ?string $commerceSubscriptionId = null) { + parent::__construct($requestAdapter, [], '{+baseurl}/directory/subscriptions(commerceSubscriptionId=\'{commerceSubscriptionId}\'){?%24expand,%24select}'); + if (is_array($pathParametersOrRawUrl)) { + $urlTplParams = $pathParametersOrRawUrl; + $urlTplParams['commerceSubscriptionId'] = $commerceSubscriptionId; + $this->pathParameters = $urlTplParams; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property subscriptions for directory + * @param SubscriptionsWithCommerceSubscriptionIdRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function delete(?SubscriptionsWithCommerceSubscriptionIdRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } + + /** + * Get subscriptions from directory + * @param SubscriptionsWithCommerceSubscriptionIdRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?SubscriptionsWithCommerceSubscriptionIdRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [CompanySubscription::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Update the navigation property subscriptions in directory + * @param CompanySubscription $body The request body + * @param SubscriptionsWithCommerceSubscriptionIdRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function patch(CompanySubscription $body, ?SubscriptionsWithCommerceSubscriptionIdRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [CompanySubscription::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Delete navigation property subscriptions for directory + * @param SubscriptionsWithCommerceSubscriptionIdRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?SubscriptionsWithCommerceSubscriptionIdRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::DELETE; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Get subscriptions from directory + * @param SubscriptionsWithCommerceSubscriptionIdRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?SubscriptionsWithCommerceSubscriptionIdRequestBuilderGetRequestConfiguration $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; + } + + /** + * Update the navigation property subscriptions in directory + * @param CompanySubscription $body The request body + * @param SubscriptionsWithCommerceSubscriptionIdRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(CompanySubscription $body, ?SubscriptionsWithCommerceSubscriptionIdRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + 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 SubscriptionsWithCommerceSubscriptionIdRequestBuilder + */ + public function withUrl(string $rawUrl): SubscriptionsWithCommerceSubscriptionIdRequestBuilder { + return new SubscriptionsWithCommerceSubscriptionIdRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Directory/SubscriptionsWithCommerceSubscriptionId/SubscriptionsWithCommerceSubscriptionIdRequestBuilderDeleteRequestConfiguration.php b/src/Generated/Directory/SubscriptionsWithCommerceSubscriptionId/SubscriptionsWithCommerceSubscriptionIdRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..98b2cd0c7d2 --- /dev/null +++ b/src/Generated/Directory/SubscriptionsWithCommerceSubscriptionId/SubscriptionsWithCommerceSubscriptionIdRequestBuilderDeleteRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Directory/SubscriptionsWithCommerceSubscriptionId/SubscriptionsWithCommerceSubscriptionIdRequestBuilderGetQueryParameters.php b/src/Generated/Directory/SubscriptionsWithCommerceSubscriptionId/SubscriptionsWithCommerceSubscriptionIdRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..e7eae41c444 --- /dev/null +++ b/src/Generated/Directory/SubscriptionsWithCommerceSubscriptionId/SubscriptionsWithCommerceSubscriptionIdRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * Instantiates a new SubscriptionsWithCommerceSubscriptionIdRequestBuilderGetQueryParameters and sets the default values. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + */ + public function __construct(?array $expand = null, ?array $select = null) { + $this->expand = $expand; + $this->select = $select; + } + +} diff --git a/src/Generated/Directory/SubscriptionsWithCommerceSubscriptionId/SubscriptionsWithCommerceSubscriptionIdRequestBuilderGetRequestConfiguration.php b/src/Generated/Directory/SubscriptionsWithCommerceSubscriptionId/SubscriptionsWithCommerceSubscriptionIdRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..6a77697545b --- /dev/null +++ b/src/Generated/Directory/SubscriptionsWithCommerceSubscriptionId/SubscriptionsWithCommerceSubscriptionIdRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param SubscriptionsWithCommerceSubscriptionIdRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?SubscriptionsWithCommerceSubscriptionIdRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new SubscriptionsWithCommerceSubscriptionIdRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return SubscriptionsWithCommerceSubscriptionIdRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): SubscriptionsWithCommerceSubscriptionIdRequestBuilderGetQueryParameters { + return new SubscriptionsWithCommerceSubscriptionIdRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/Directory/SubscriptionsWithCommerceSubscriptionId/SubscriptionsWithCommerceSubscriptionIdRequestBuilderPatchRequestConfiguration.php b/src/Generated/Directory/SubscriptionsWithCommerceSubscriptionId/SubscriptionsWithCommerceSubscriptionIdRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..c4d771ba8bf --- /dev/null +++ b/src/Generated/Directory/SubscriptionsWithCommerceSubscriptionId/SubscriptionsWithCommerceSubscriptionIdRequestBuilderPatchRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Domains/Item/DomainItemRequestBuilder.php b/src/Generated/Domains/Item/DomainItemRequestBuilder.php index 83708d82d3a..a49e3cc837d 100644 --- a/src/Generated/Domains/Item/DomainItemRequestBuilder.php +++ b/src/Generated/Domains/Item/DomainItemRequestBuilder.php @@ -87,7 +87,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Deletes a domain from a tenant. + * Delete a domain from a tenant. * @param DomainItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception @@ -117,7 +117,7 @@ public function get(?DomainItemRequestBuilderGetRequestConfiguration $requestCon } /** - * Update the properties of domain object. + * Update the properties of domain object. Only verified domains can be updated. * @param Domain $body The request body * @param DomainItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -133,7 +133,7 @@ public function patch(Domain $body, ?DomainItemRequestBuilderPatchRequestConfigu } /** - * Deletes a domain from a tenant. + * Delete a domain from a tenant. * @param DomainItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -172,7 +172,7 @@ public function toGetRequestInformation(?DomainItemRequestBuilderGetRequestConfi } /** - * Update the properties of domain object. + * Update the properties of domain object. Only verified domains can be updated. * @param Domain $body The request body * @param DomainItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Domains/Item/DomainNameReferences/DomainNameReferencesRequestBuilder.php b/src/Generated/Domains/Item/DomainNameReferences/DomainNameReferencesRequestBuilder.php index 4af2b6d532c..221263a114a 100644 --- a/src/Generated/Domains/Item/DomainNameReferences/DomainNameReferencesRequestBuilder.php +++ b/src/Generated/Domains/Item/DomainNameReferences/DomainNameReferencesRequestBuilder.php @@ -51,7 +51,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * The objects such as users and groups that reference the domain ID. Read-only, Nullable. Supports $expand and $filter by the OData type of objects returned. For example /domains/{domainId}/domainNameReferences/microsoft.graph.user and /domains/{domainId}/domainNameReferences/microsoft.graph.group. + * The objects such as users and groups that reference the domain ID. Read-only, Nullable. Supports $expand and $filter by the OData type of objects returned. For example, /domains/{domainId}/domainNameReferences/microsoft.graph.user and /domains/{domainId}/domainNameReferences/microsoft.graph.group. * @param DomainNameReferencesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception @@ -65,7 +65,7 @@ public function get(?DomainNameReferencesRequestBuilderGetRequestConfiguration $ } /** - * The objects such as users and groups that reference the domain ID. Read-only, Nullable. Supports $expand and $filter by the OData type of objects returned. For example /domains/{domainId}/domainNameReferences/microsoft.graph.user and /domains/{domainId}/domainNameReferences/microsoft.graph.group. + * The objects such as users and groups that reference the domain ID. Read-only, Nullable. Supports $expand and $filter by the OData type of objects returned. For example, /domains/{domainId}/domainNameReferences/microsoft.graph.user and /domains/{domainId}/domainNameReferences/microsoft.graph.group. * @param DomainNameReferencesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Domains/Item/DomainNameReferences/DomainNameReferencesRequestBuilderGetQueryParameters.php b/src/Generated/Domains/Item/DomainNameReferences/DomainNameReferencesRequestBuilderGetQueryParameters.php index 24aec29116b..ac55652889a 100644 --- a/src/Generated/Domains/Item/DomainNameReferences/DomainNameReferencesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Domains/Item/DomainNameReferences/DomainNameReferencesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * The objects such as users and groups that reference the domain ID. Read-only, Nullable. Supports $expand and $filter by the OData type of objects returned. For example /domains/{domainId}/domainNameReferences/microsoft.graph.user and /domains/{domainId}/domainNameReferences/microsoft.graph.group. + * The objects such as users and groups that reference the domain ID. Read-only, Nullable. Supports $expand and $filter by the OData type of objects returned. For example, /domains/{domainId}/domainNameReferences/microsoft.graph.user and /domains/{domainId}/domainNameReferences/microsoft.graph.group. */ class DomainNameReferencesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Domains/Item/DomainNameReferences/Item/DirectoryObjectItemRequestBuilder.php b/src/Generated/Domains/Item/DomainNameReferences/Item/DirectoryObjectItemRequestBuilder.php index db442f1df3b..70bf506a4c5 100644 --- a/src/Generated/Domains/Item/DomainNameReferences/Item/DirectoryObjectItemRequestBuilder.php +++ b/src/Generated/Domains/Item/DomainNameReferences/Item/DirectoryObjectItemRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * The objects such as users and groups that reference the domain ID. Read-only, Nullable. Supports $expand and $filter by the OData type of objects returned. For example /domains/{domainId}/domainNameReferences/microsoft.graph.user and /domains/{domainId}/domainNameReferences/microsoft.graph.group. + * The objects such as users and groups that reference the domain ID. Read-only, Nullable. Supports $expand and $filter by the OData type of objects returned. For example, /domains/{domainId}/domainNameReferences/microsoft.graph.user and /domains/{domainId}/domainNameReferences/microsoft.graph.group. * @param DirectoryObjectItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception @@ -45,7 +45,7 @@ public function get(?DirectoryObjectItemRequestBuilderGetRequestConfiguration $r } /** - * The objects such as users and groups that reference the domain ID. Read-only, Nullable. Supports $expand and $filter by the OData type of objects returned. For example /domains/{domainId}/domainNameReferences/microsoft.graph.user and /domains/{domainId}/domainNameReferences/microsoft.graph.group. + * The objects such as users and groups that reference the domain ID. Read-only, Nullable. Supports $expand and $filter by the OData type of objects returned. For example, /domains/{domainId}/domainNameReferences/microsoft.graph.user and /domains/{domainId}/domainNameReferences/microsoft.graph.group. * @param DirectoryObjectItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Domains/Item/DomainNameReferences/Item/DirectoryObjectItemRequestBuilderGetQueryParameters.php b/src/Generated/Domains/Item/DomainNameReferences/Item/DirectoryObjectItemRequestBuilderGetQueryParameters.php index 977d4114217..2399418ec19 100644 --- a/src/Generated/Domains/Item/DomainNameReferences/Item/DirectoryObjectItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Domains/Item/DomainNameReferences/Item/DirectoryObjectItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * The objects such as users and groups that reference the domain ID. Read-only, Nullable. Supports $expand and $filter by the OData type of objects returned. For example /domains/{domainId}/domainNameReferences/microsoft.graph.user and /domains/{domainId}/domainNameReferences/microsoft.graph.group. + * The objects such as users and groups that reference the domain ID. Read-only, Nullable. Supports $expand and $filter by the OData type of objects returned. For example, /domains/{domainId}/domainNameReferences/microsoft.graph.user and /domains/{domainId}/domainNameReferences/microsoft.graph.group. */ class DirectoryObjectItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Domains/Item/ForceDelete/ForceDeleteRequestBuilder.php b/src/Generated/Domains/Item/ForceDelete/ForceDeleteRequestBuilder.php index 2835d0c44e1..fd05bf27d56 100644 --- a/src/Generated/Domains/Item/ForceDelete/ForceDeleteRequestBuilder.php +++ b/src/Generated/Domains/Item/ForceDelete/ForceDeleteRequestBuilder.php @@ -30,7 +30,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Deletes a domain using an asynchronous long-running operation. Prior to calling forceDelete, you must update or remove any references to Exchange as the provisioning service. The following actions are performed as part of this operation: After the domain deletion completes, API operations for the deleted domain will return an HTTP 404 status code. To verify deletion of a domain, you can perform a get domain operation. + * Delete a domain using an asynchronous long-running operation. Before performing this operation, you must update or remove any references to Exchange as the provisioning service. The following actions are performed as part of this operation: After the domain deletion completes, API operations for the deleted domain return an HTTP 404 status code. To verify deletion of a domain, you can perform a get domain operation. * @param ForceDeletePostRequestBody $body The request body * @param ForceDeleteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -46,7 +46,7 @@ public function post(ForceDeletePostRequestBody $body, ?ForceDeleteRequestBuilde } /** - * Deletes a domain using an asynchronous long-running operation. Prior to calling forceDelete, you must update or remove any references to Exchange as the provisioning service. The following actions are performed as part of this operation: After the domain deletion completes, API operations for the deleted domain will return an HTTP 404 status code. To verify deletion of a domain, you can perform a get domain operation. + * Delete a domain using an asynchronous long-running operation. Before performing this operation, you must update or remove any references to Exchange as the provisioning service. The following actions are performed as part of this operation: After the domain deletion completes, API operations for the deleted domain return an HTTP 404 status code. To verify deletion of a domain, you can perform a get domain operation. * @param ForceDeletePostRequestBody $body The request body * @param ForceDeleteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Add/AddRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Add/AddRequestBuilder.php index 02cf8f938d1..12be304bc7c 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Add/AddRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Add/AddRequestBuilder.php @@ -31,12 +31,12 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Use this API to create a new Table. + * Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is generated. * @param AddPostRequestBody $body The request body * @param AddRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/workbook-post-tables?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/tablecollection-add?view=graph-rest-1.0 Find more info here */ public function post(AddPostRequestBody $body, ?AddRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -47,7 +47,7 @@ public function post(AddPostRequestBody $body, ?AddRequestBuilderPostRequestConf } /** - * Use this API to create a new Table. + * Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is generated. * @param AddPostRequestBody $body The request body * @param AddRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Add/AddRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Add/AddRequestBuilder.php index cc31d651f51..817867f8755 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Add/AddRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Add/AddRequestBuilder.php @@ -31,12 +31,12 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Use this API to create a new Table. + * Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is generated. * @param AddPostRequestBody $body The request body * @param AddRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/workbook-post-tables?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/tablecollection-add?view=graph-rest-1.0 Find more info here */ public function post(AddPostRequestBody $body, ?AddRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -47,7 +47,7 @@ public function post(AddPostRequestBody $body, ?AddRequestBuilderPostRequestConf } /** - * Use this API to create a new Table. + * Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is generated. * @param AddPostRequestBody $body The request body * @param AddRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/GroupsRequestBuilder.php b/src/Generated/Groups/GroupsRequestBuilder.php index 044a44b5102..f6a2b404f5e 100644 --- a/src/Generated/Groups/GroupsRequestBuilder.php +++ b/src/Generated/Groups/GroupsRequestBuilder.php @@ -99,12 +99,12 @@ public function get(?GroupsRequestBuilderGetRequestConfiguration $requestConfigu } /** - * Create a new group object if it doesn't exist, or update the properties of an existing group object.You can create or update the following types of group: By default, this operation returns only a subset of the properties for each group. For a list of properties that are returned by default, see thethe Properties section of the group resource. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option. + * Create a new group as specified in the request body. You can create the following types of groups: This operation returns by default only a subset of the properties for each group. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option. * @param Group $body The request body * @param GroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/group-upsert?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/group-post-groups?view=graph-rest-1.0 Find more info here */ public function post(Group $body, ?GroupsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -136,7 +136,7 @@ public function toGetRequestInformation(?GroupsRequestBuilderGetRequestConfigura } /** - * Create a new group object if it doesn't exist, or update the properties of an existing group object.You can create or update the following types of group: By default, this operation returns only a subset of the properties for each group. For a list of properties that are returned by default, see thethe Properties section of the group resource. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option. + * Create a new group as specified in the request body. You can create the following types of groups: This operation returns by default only a subset of the properties for each group. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option. * @param Group $body The request body * @param GroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Reply/ReplyRequestBuilder.php b/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Reply/ReplyRequestBuilder.php index 87ff9d06b72..ff71408b5cc 100644 --- a/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Reply/ReplyRequestBuilder.php +++ b/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Reply/ReplyRequestBuilder.php @@ -30,12 +30,12 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + * Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. * @param ReplyPostRequestBody $body The request body * @param ReplyRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/post-reply?view=graph-rest-1.0 Find more info here */ public function post(ReplyPostRequestBody $body, ?ReplyRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -46,7 +46,7 @@ public function post(ReplyPostRequestBody $body, ?ReplyRequestBuilderPostRequest } /** - * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + * Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. * @param ReplyPostRequestBody $body The request body * @param ReplyRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/GroupItemRequestBuilder.php b/src/Generated/Groups/Item/GroupItemRequestBuilder.php index 57c8f2cfa9f..2c0420f082f 100644 --- a/src/Generated/Groups/Item/GroupItemRequestBuilder.php +++ b/src/Generated/Groups/Item/GroupItemRequestBuilder.php @@ -405,7 +405,7 @@ public function get(?GroupItemRequestBuilderGetRequestConfiguration $requestConf } /** - * Create a new group object if it doesn't exist, or update the properties of an existing group object.You can create or update the following types of group: By default, this operation returns only a subset of the properties for each group. For a list of properties that are returned by default, see thethe Properties section of the group resource. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option. + * Create a new group object if it doesn't exist, or update the properties of an existing group object.You can create or update the following types of group: By default, this operation returns only a subset of the properties for each group. For a list of properties that are returned by default, see the Properties section of the group resource. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option. * @param Group $body The request body * @param GroupItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -460,7 +460,7 @@ public function toGetRequestInformation(?GroupItemRequestBuilderGetRequestConfig } /** - * Create a new group object if it doesn't exist, or update the properties of an existing group object.You can create or update the following types of group: By default, this operation returns only a subset of the properties for each group. For a list of properties that are returned by default, see thethe Properties section of the group resource. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option. + * Create a new group object if it doesn't exist, or update the properties of an existing group object.You can create or update the following types of group: By default, this operation returns only a subset of the properties for each group. For a list of properties that are returned by default, see the Properties section of the group resource. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option. * @param Group $body The request body * @param GroupItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Threads/Item/Reply/ReplyRequestBuilder.php b/src/Generated/Groups/Item/Threads/Item/Reply/ReplyRequestBuilder.php index 719c5714495..f4530b3b65b 100644 --- a/src/Generated/Groups/Item/Threads/Item/Reply/ReplyRequestBuilder.php +++ b/src/Generated/Groups/Item/Threads/Item/Reply/ReplyRequestBuilder.php @@ -30,12 +30,12 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + * Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. * @param ReplyPostRequestBody $body The request body * @param ReplyRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/post-reply?view=graph-rest-1.0 Find more info here */ public function post(ReplyPostRequestBody $body, ?ReplyRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -46,7 +46,7 @@ public function post(ReplyPostRequestBody $body, ?ReplyRequestBuilderPostRequest } /** - * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + * Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. * @param ReplyPostRequestBody $body The request body * @param ReplyRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/GroupsWithUniqueName/GroupsWithUniqueNameRequestBuilder.php b/src/Generated/GroupsWithUniqueName/GroupsWithUniqueNameRequestBuilder.php index 32ebd2cf663..a8b658143e0 100644 --- a/src/Generated/GroupsWithUniqueName/GroupsWithUniqueNameRequestBuilder.php +++ b/src/Generated/GroupsWithUniqueName/GroupsWithUniqueNameRequestBuilder.php @@ -64,7 +64,7 @@ public function get(?GroupsWithUniqueNameRequestBuilderGetRequestConfiguration $ } /** - * Create a new group object if it doesn't exist, or update the properties of an existing group object.You can create or update the following types of group: By default, this operation returns only a subset of the properties for each group. For a list of properties that are returned by default, see thethe Properties section of the group resource. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option. + * Create a new group object if it doesn't exist, or update the properties of an existing group object.You can create or update the following types of group: By default, this operation returns only a subset of the properties for each group. For a list of properties that are returned by default, see the Properties section of the group resource. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option. * @param Group $body The request body * @param GroupsWithUniqueNameRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -119,7 +119,7 @@ public function toGetRequestInformation(?GroupsWithUniqueNameRequestBuilderGetRe } /** - * Create a new group object if it doesn't exist, or update the properties of an existing group object.You can create or update the following types of group: By default, this operation returns only a subset of the properties for each group. For a list of properties that are returned by default, see thethe Properties section of the group resource. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option. + * Create a new group object if it doesn't exist, or update the properties of an existing group object.You can create or update the following types of group: By default, this operation returns only a subset of the properties for each group. For a list of properties that are returned by default, see the Properties section of the group resource. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option. * @param Group $body The request body * @param GroupsWithUniqueNameRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Identity/AuthenticationEventListeners/AuthenticationEventListenersRequestBuilder.php b/src/Generated/Identity/AuthenticationEventListeners/AuthenticationEventListenersRequestBuilder.php new file mode 100644 index 00000000000..74e9631379d --- /dev/null +++ b/src/Generated/Identity/AuthenticationEventListeners/AuthenticationEventListenersRequestBuilder.php @@ -0,0 +1,133 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the authenticationEventListeners property of the microsoft.graph.identityContainer entity. + * @param string $authenticationEventListenerId The unique identifier of authenticationEventListener + * @return AuthenticationEventListenerItemRequestBuilder + */ + public function byAuthenticationEventListenerId(string $authenticationEventListenerId): AuthenticationEventListenerItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['authenticationEventListener%2Did'] = $authenticationEventListenerId; + return new AuthenticationEventListenerItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new AuthenticationEventListenersRequestBuilder and sets the default values. + * @param array|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}/identity/authenticationEventListeners{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Represents listeners for custom authentication extension events in Azure AD for workforce and customers. + * @param AuthenticationEventListenersRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?AuthenticationEventListenersRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [AuthenticationEventListenerCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Create new navigation property to authenticationEventListeners for identity + * @param AuthenticationEventListener $body The request body + * @param AuthenticationEventListenersRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function post(AuthenticationEventListener $body, ?AuthenticationEventListenersRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [AuthenticationEventListener::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Represents listeners for custom authentication extension events in Azure AD for workforce and customers. + * @param AuthenticationEventListenersRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?AuthenticationEventListenersRequestBuilderGetRequestConfiguration $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; + } + + /** + * Create new navigation property to authenticationEventListeners for identity + * @param AuthenticationEventListener $body The request body + * @param AuthenticationEventListenersRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(AuthenticationEventListener $body, ?AuthenticationEventListenersRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + 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 AuthenticationEventListenersRequestBuilder + */ + public function withUrl(string $rawUrl): AuthenticationEventListenersRequestBuilder { + return new AuthenticationEventListenersRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Identity/AuthenticationEventListeners/AuthenticationEventListenersRequestBuilderGetQueryParameters.php b/src/Generated/Identity/AuthenticationEventListeners/AuthenticationEventListenersRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..826fff391b9 --- /dev/null +++ b/src/Generated/Identity/AuthenticationEventListeners/AuthenticationEventListenersRequestBuilderGetQueryParameters.php @@ -0,0 +1,82 @@ +|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|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|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 AuthenticationEventListenersRequestBuilderGetQueryParameters and sets the default values. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|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; + } + +} diff --git a/src/Generated/Identity/AuthenticationEventListeners/AuthenticationEventListenersRequestBuilderGetRequestConfiguration.php b/src/Generated/Identity/AuthenticationEventListeners/AuthenticationEventListenersRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..66ec5fcaaa9 --- /dev/null +++ b/src/Generated/Identity/AuthenticationEventListeners/AuthenticationEventListenersRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param AuthenticationEventListenersRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?AuthenticationEventListenersRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new AuthenticationEventListenersRequestBuilderGetQueryParameters. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|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 + * @return AuthenticationEventListenersRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?bool $count = null, ?array $expand = null, ?string $filter = null, ?array $orderby = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null): AuthenticationEventListenersRequestBuilderGetQueryParameters { + return new AuthenticationEventListenersRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/Identity/AuthenticationEventListeners/AuthenticationEventListenersRequestBuilderPostRequestConfiguration.php b/src/Generated/Identity/AuthenticationEventListeners/AuthenticationEventListenersRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..bcd04680072 --- /dev/null +++ b/src/Generated/Identity/AuthenticationEventListeners/AuthenticationEventListenersRequestBuilderPostRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Identity/AuthenticationEventListeners/Count/CountRequestBuilder.php b/src/Generated/Identity/AuthenticationEventListeners/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..f08011be1cb --- /dev/null +++ b/src/Generated/Identity/AuthenticationEventListeners/Count/CountRequestBuilder.php @@ -0,0 +1,78 @@ +|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}/identity/authenticationEventListeners/$count{?%24filter,%24search}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get the number of the resource + * @param CountRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + /** @var Promise $result */ + $result = $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + return $result; + } + + /** + * Get the number of the resource + * @param CountRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?CountRequestBuilderGetRequestConfiguration $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', "text/plain;q=0.9"); + 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 CountRequestBuilder + */ + public function withUrl(string $rawUrl): CountRequestBuilder { + return new CountRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Identity/AuthenticationEventListeners/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/Identity/AuthenticationEventListeners/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..72c0c6b4ea8 --- /dev/null +++ b/src/Generated/Identity/AuthenticationEventListeners/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/Identity/AuthenticationEventListeners/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/Identity/AuthenticationEventListeners/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..6e3a5ece481 --- /dev/null +++ b/src/Generated/Identity/AuthenticationEventListeners/Count/CountRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param CountRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?CountRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new CountRequestBuilderGetQueryParameters. + * @param string|null $filter Filter items by property values + * @param string|null $search Search items by search phrases + * @return CountRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?string $filter = null, ?string $search = null): CountRequestBuilderGetQueryParameters { + return new CountRequestBuilderGetQueryParameters($filter, $search); + } + +} diff --git a/src/Generated/Identity/AuthenticationEventListeners/Item/AuthenticationEventListenerItemRequestBuilder.php b/src/Generated/Identity/AuthenticationEventListeners/Item/AuthenticationEventListenerItemRequestBuilder.php new file mode 100644 index 00000000000..e7b2e3e171d --- /dev/null +++ b/src/Generated/Identity/AuthenticationEventListeners/Item/AuthenticationEventListenerItemRequestBuilder.php @@ -0,0 +1,144 @@ +|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}/identity/authenticationEventListeners/{authenticationEventListener%2Did}{?%24expand,%24select}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property authenticationEventListeners for identity + * @param AuthenticationEventListenerItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function delete(?AuthenticationEventListenerItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } + + /** + * Represents listeners for custom authentication extension events in Azure AD for workforce and customers. + * @param AuthenticationEventListenerItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?AuthenticationEventListenerItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [AuthenticationEventListener::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Update the navigation property authenticationEventListeners in identity + * @param AuthenticationEventListener $body The request body + * @param AuthenticationEventListenerItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function patch(AuthenticationEventListener $body, ?AuthenticationEventListenerItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [AuthenticationEventListener::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Delete navigation property authenticationEventListeners for identity + * @param AuthenticationEventListenerItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?AuthenticationEventListenerItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::DELETE; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Represents listeners for custom authentication extension events in Azure AD for workforce and customers. + * @param AuthenticationEventListenerItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?AuthenticationEventListenerItemRequestBuilderGetRequestConfiguration $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; + } + + /** + * Update the navigation property authenticationEventListeners in identity + * @param AuthenticationEventListener $body The request body + * @param AuthenticationEventListenerItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(AuthenticationEventListener $body, ?AuthenticationEventListenerItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + 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 AuthenticationEventListenerItemRequestBuilder + */ + public function withUrl(string $rawUrl): AuthenticationEventListenerItemRequestBuilder { + return new AuthenticationEventListenerItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Identity/AuthenticationEventListeners/Item/AuthenticationEventListenerItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/Identity/AuthenticationEventListeners/Item/AuthenticationEventListenerItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..a7644a02941 --- /dev/null +++ b/src/Generated/Identity/AuthenticationEventListeners/Item/AuthenticationEventListenerItemRequestBuilderDeleteRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Identity/AuthenticationEventListeners/Item/AuthenticationEventListenerItemRequestBuilderGetQueryParameters.php b/src/Generated/Identity/AuthenticationEventListeners/Item/AuthenticationEventListenerItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..bec670c42d0 --- /dev/null +++ b/src/Generated/Identity/AuthenticationEventListeners/Item/AuthenticationEventListenerItemRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * Instantiates a new AuthenticationEventListenerItemRequestBuilderGetQueryParameters and sets the default values. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + */ + public function __construct(?array $expand = null, ?array $select = null) { + $this->expand = $expand; + $this->select = $select; + } + +} diff --git a/src/Generated/Identity/AuthenticationEventListeners/Item/AuthenticationEventListenerItemRequestBuilderGetRequestConfiguration.php b/src/Generated/Identity/AuthenticationEventListeners/Item/AuthenticationEventListenerItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..ce17931bb2e --- /dev/null +++ b/src/Generated/Identity/AuthenticationEventListeners/Item/AuthenticationEventListenerItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param AuthenticationEventListenerItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?AuthenticationEventListenerItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new AuthenticationEventListenerItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return AuthenticationEventListenerItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): AuthenticationEventListenerItemRequestBuilderGetQueryParameters { + return new AuthenticationEventListenerItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/Identity/AuthenticationEventListeners/Item/AuthenticationEventListenerItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/Identity/AuthenticationEventListeners/Item/AuthenticationEventListenerItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..a9797ce6262 --- /dev/null +++ b/src/Generated/Identity/AuthenticationEventListeners/Item/AuthenticationEventListenerItemRequestBuilderPatchRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Identity/CustomAuthenticationExtensions/Count/CountRequestBuilder.php b/src/Generated/Identity/CustomAuthenticationExtensions/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..260fae8b785 --- /dev/null +++ b/src/Generated/Identity/CustomAuthenticationExtensions/Count/CountRequestBuilder.php @@ -0,0 +1,78 @@ +|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}/identity/customAuthenticationExtensions/$count{?%24filter,%24search}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get the number of the resource + * @param CountRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + /** @var Promise $result */ + $result = $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + return $result; + } + + /** + * Get the number of the resource + * @param CountRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?CountRequestBuilderGetRequestConfiguration $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', "text/plain;q=0.9"); + 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 CountRequestBuilder + */ + public function withUrl(string $rawUrl): CountRequestBuilder { + return new CountRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Identity/CustomAuthenticationExtensions/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/Identity/CustomAuthenticationExtensions/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..9ddf431e338 --- /dev/null +++ b/src/Generated/Identity/CustomAuthenticationExtensions/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/Identity/CustomAuthenticationExtensions/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/Identity/CustomAuthenticationExtensions/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..48f697fb68a --- /dev/null +++ b/src/Generated/Identity/CustomAuthenticationExtensions/Count/CountRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param CountRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?CountRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new CountRequestBuilderGetQueryParameters. + * @param string|null $filter Filter items by property values + * @param string|null $search Search items by search phrases + * @return CountRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?string $filter = null, ?string $search = null): CountRequestBuilderGetQueryParameters { + return new CountRequestBuilderGetQueryParameters($filter, $search); + } + +} diff --git a/src/Generated/Identity/CustomAuthenticationExtensions/CustomAuthenticationExtensionsRequestBuilder.php b/src/Generated/Identity/CustomAuthenticationExtensions/CustomAuthenticationExtensionsRequestBuilder.php new file mode 100644 index 00000000000..3357c49436a --- /dev/null +++ b/src/Generated/Identity/CustomAuthenticationExtensions/CustomAuthenticationExtensionsRequestBuilder.php @@ -0,0 +1,141 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to call the validateAuthenticationConfiguration method. + */ + public function validateAuthenticationConfiguration(): ValidateAuthenticationConfigurationRequestBuilder { + return new ValidateAuthenticationConfigurationRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the customAuthenticationExtensions property of the microsoft.graph.identityContainer entity. + * @param string $customAuthenticationExtensionId The unique identifier of customAuthenticationExtension + * @return CustomAuthenticationExtensionItemRequestBuilder + */ + public function byCustomAuthenticationExtensionId(string $customAuthenticationExtensionId): CustomAuthenticationExtensionItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['customAuthenticationExtension%2Did'] = $customAuthenticationExtensionId; + return new CustomAuthenticationExtensionItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new CustomAuthenticationExtensionsRequestBuilder and sets the default values. + * @param array|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}/identity/customAuthenticationExtensions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Represents custom extensions to authentication flows in Azure AD for workforce and customers. + * @param CustomAuthenticationExtensionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?CustomAuthenticationExtensionsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [CustomAuthenticationExtensionCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Create new navigation property to customAuthenticationExtensions for identity + * @param CustomAuthenticationExtension $body The request body + * @param CustomAuthenticationExtensionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function post(CustomAuthenticationExtension $body, ?CustomAuthenticationExtensionsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [CustomAuthenticationExtension::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Represents custom extensions to authentication flows in Azure AD for workforce and customers. + * @param CustomAuthenticationExtensionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?CustomAuthenticationExtensionsRequestBuilderGetRequestConfiguration $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; + } + + /** + * Create new navigation property to customAuthenticationExtensions for identity + * @param CustomAuthenticationExtension $body The request body + * @param CustomAuthenticationExtensionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(CustomAuthenticationExtension $body, ?CustomAuthenticationExtensionsRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + 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 CustomAuthenticationExtensionsRequestBuilder + */ + public function withUrl(string $rawUrl): CustomAuthenticationExtensionsRequestBuilder { + return new CustomAuthenticationExtensionsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Identity/CustomAuthenticationExtensions/CustomAuthenticationExtensionsRequestBuilderGetQueryParameters.php b/src/Generated/Identity/CustomAuthenticationExtensions/CustomAuthenticationExtensionsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..96c009c9abc --- /dev/null +++ b/src/Generated/Identity/CustomAuthenticationExtensions/CustomAuthenticationExtensionsRequestBuilderGetQueryParameters.php @@ -0,0 +1,82 @@ +|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|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|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 CustomAuthenticationExtensionsRequestBuilderGetQueryParameters and sets the default values. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|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; + } + +} diff --git a/src/Generated/Identity/CustomAuthenticationExtensions/CustomAuthenticationExtensionsRequestBuilderGetRequestConfiguration.php b/src/Generated/Identity/CustomAuthenticationExtensions/CustomAuthenticationExtensionsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..85d2d679dca --- /dev/null +++ b/src/Generated/Identity/CustomAuthenticationExtensions/CustomAuthenticationExtensionsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param CustomAuthenticationExtensionsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?CustomAuthenticationExtensionsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new CustomAuthenticationExtensionsRequestBuilderGetQueryParameters. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|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 + * @return CustomAuthenticationExtensionsRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?bool $count = null, ?array $expand = null, ?string $filter = null, ?array $orderby = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null): CustomAuthenticationExtensionsRequestBuilderGetQueryParameters { + return new CustomAuthenticationExtensionsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/Identity/CustomAuthenticationExtensions/CustomAuthenticationExtensionsRequestBuilderPostRequestConfiguration.php b/src/Generated/Identity/CustomAuthenticationExtensions/CustomAuthenticationExtensionsRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..34e09b1bd4c --- /dev/null +++ b/src/Generated/Identity/CustomAuthenticationExtensions/CustomAuthenticationExtensionsRequestBuilderPostRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Identity/CustomAuthenticationExtensions/Item/CustomAuthenticationExtensionItemRequestBuilder.php b/src/Generated/Identity/CustomAuthenticationExtensions/Item/CustomAuthenticationExtensionItemRequestBuilder.php new file mode 100644 index 00000000000..8cdc4dd34e2 --- /dev/null +++ b/src/Generated/Identity/CustomAuthenticationExtensions/Item/CustomAuthenticationExtensionItemRequestBuilder.php @@ -0,0 +1,152 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new CustomAuthenticationExtensionItemRequestBuilder and sets the default values. + * @param array|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}/identity/customAuthenticationExtensions/{customAuthenticationExtension%2Did}{?%24expand,%24select}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property customAuthenticationExtensions for identity + * @param CustomAuthenticationExtensionItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function delete(?CustomAuthenticationExtensionItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } + + /** + * Represents custom extensions to authentication flows in Azure AD for workforce and customers. + * @param CustomAuthenticationExtensionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?CustomAuthenticationExtensionItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [CustomAuthenticationExtension::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Update the navigation property customAuthenticationExtensions in identity + * @param CustomAuthenticationExtension $body The request body + * @param CustomAuthenticationExtensionItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function patch(CustomAuthenticationExtension $body, ?CustomAuthenticationExtensionItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [CustomAuthenticationExtension::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Delete navigation property customAuthenticationExtensions for identity + * @param CustomAuthenticationExtensionItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?CustomAuthenticationExtensionItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::DELETE; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Represents custom extensions to authentication flows in Azure AD for workforce and customers. + * @param CustomAuthenticationExtensionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?CustomAuthenticationExtensionItemRequestBuilderGetRequestConfiguration $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; + } + + /** + * Update the navigation property customAuthenticationExtensions in identity + * @param CustomAuthenticationExtension $body The request body + * @param CustomAuthenticationExtensionItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(CustomAuthenticationExtension $body, ?CustomAuthenticationExtensionItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + 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 CustomAuthenticationExtensionItemRequestBuilder + */ + public function withUrl(string $rawUrl): CustomAuthenticationExtensionItemRequestBuilder { + return new CustomAuthenticationExtensionItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Identity/CustomAuthenticationExtensions/Item/CustomAuthenticationExtensionItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/Identity/CustomAuthenticationExtensions/Item/CustomAuthenticationExtensionItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..b44cf850ba0 --- /dev/null +++ b/src/Generated/Identity/CustomAuthenticationExtensions/Item/CustomAuthenticationExtensionItemRequestBuilderDeleteRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Identity/CustomAuthenticationExtensions/Item/CustomAuthenticationExtensionItemRequestBuilderGetQueryParameters.php b/src/Generated/Identity/CustomAuthenticationExtensions/Item/CustomAuthenticationExtensionItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..d9459e68dc5 --- /dev/null +++ b/src/Generated/Identity/CustomAuthenticationExtensions/Item/CustomAuthenticationExtensionItemRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * Instantiates a new CustomAuthenticationExtensionItemRequestBuilderGetQueryParameters and sets the default values. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + */ + public function __construct(?array $expand = null, ?array $select = null) { + $this->expand = $expand; + $this->select = $select; + } + +} diff --git a/src/Generated/Identity/CustomAuthenticationExtensions/Item/CustomAuthenticationExtensionItemRequestBuilderGetRequestConfiguration.php b/src/Generated/Identity/CustomAuthenticationExtensions/Item/CustomAuthenticationExtensionItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..3346e5b8832 --- /dev/null +++ b/src/Generated/Identity/CustomAuthenticationExtensions/Item/CustomAuthenticationExtensionItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param CustomAuthenticationExtensionItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?CustomAuthenticationExtensionItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new CustomAuthenticationExtensionItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return CustomAuthenticationExtensionItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): CustomAuthenticationExtensionItemRequestBuilderGetQueryParameters { + return new CustomAuthenticationExtensionItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/Identity/CustomAuthenticationExtensions/Item/CustomAuthenticationExtensionItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/Identity/CustomAuthenticationExtensions/Item/CustomAuthenticationExtensionItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..e93b9c7efcd --- /dev/null +++ b/src/Generated/Identity/CustomAuthenticationExtensions/Item/CustomAuthenticationExtensionItemRequestBuilderPatchRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Identity/CustomAuthenticationExtensions/Item/ValidateAuthenticationConfiguration/ValidateAuthenticationConfigurationRequestBuilder.php b/src/Generated/Identity/CustomAuthenticationExtensions/Item/ValidateAuthenticationConfiguration/ValidateAuthenticationConfigurationRequestBuilder.php new file mode 100644 index 00000000000..4460faaf90e --- /dev/null +++ b/src/Generated/Identity/CustomAuthenticationExtensions/Item/ValidateAuthenticationConfiguration/ValidateAuthenticationConfigurationRequestBuilder.php @@ -0,0 +1,75 @@ +|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}/identity/customAuthenticationExtensions/{customAuthenticationExtension%2Did}/validateAuthenticationConfiguration'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * An API to check validity of the endpoint and and authentication configuration for a customAuthenticationExtension. + * @param ValidateAuthenticationConfigurationRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + * @link https://learn.microsoft.com/graph/api/customauthenticationextension-validateauthenticationconfiguration?view=graph-rest-1.0 Find more info here + */ + public function post(?ValidateAuthenticationConfigurationRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [AuthenticationConfigurationValidation::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * An API to check validity of the endpoint and and authentication configuration for a customAuthenticationExtension. + * @param ValidateAuthenticationConfigurationRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(?ValidateAuthenticationConfigurationRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $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 ValidateAuthenticationConfigurationRequestBuilder + */ + public function withUrl(string $rawUrl): ValidateAuthenticationConfigurationRequestBuilder { + return new ValidateAuthenticationConfigurationRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Identity/CustomAuthenticationExtensions/Item/ValidateAuthenticationConfiguration/ValidateAuthenticationConfigurationRequestBuilderPostRequestConfiguration.php b/src/Generated/Identity/CustomAuthenticationExtensions/Item/ValidateAuthenticationConfiguration/ValidateAuthenticationConfigurationRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..3b2193c781a --- /dev/null +++ b/src/Generated/Identity/CustomAuthenticationExtensions/Item/ValidateAuthenticationConfiguration/ValidateAuthenticationConfigurationRequestBuilderPostRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Identity/CustomAuthenticationExtensions/ValidateAuthenticationConfiguration/ValidateAuthenticationConfigurationPostRequestBody.php b/src/Generated/Identity/CustomAuthenticationExtensions/ValidateAuthenticationConfiguration/ValidateAuthenticationConfigurationPostRequestBody.php new file mode 100644 index 00000000000..7846d72a789 --- /dev/null +++ b/src/Generated/Identity/CustomAuthenticationExtensions/ValidateAuthenticationConfiguration/ValidateAuthenticationConfigurationPostRequestBody.php @@ -0,0 +1,138 @@ +backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); + $this->setAdditionalData([]); + } + + /** + * 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 ValidateAuthenticationConfigurationPostRequestBody + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): ValidateAuthenticationConfigurationPostRequestBody { + return new ValidateAuthenticationConfigurationPostRequestBody(); + } + + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return array|null + */ + public function getAdditionalData(): ?array { + $val = $this->getBackingStore()->get('additionalData'); + if (is_null($val) || is_array($val)) { + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'additionalData'"); + } + + /** + * Gets the authenticationConfiguration property value. The authenticationConfiguration property + * @return CustomExtensionAuthenticationConfiguration|null + */ + public function getAuthenticationConfiguration(): ?CustomExtensionAuthenticationConfiguration { + $val = $this->getBackingStore()->get('authenticationConfiguration'); + if (is_null($val) || $val instanceof CustomExtensionAuthenticationConfiguration) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'authenticationConfiguration'"); + } + + /** + * Gets the BackingStore property value. Stores model information. + * @return BackingStore + */ + public function getBackingStore(): BackingStore { + return $this->backingStore; + } + + /** + * Gets the endpointConfiguration property value. The endpointConfiguration property + * @return CustomExtensionEndpointConfiguration|null + */ + public function getEndpointConfiguration(): ?CustomExtensionEndpointConfiguration { + $val = $this->getBackingStore()->get('endpointConfiguration'); + if (is_null($val) || $val instanceof CustomExtensionEndpointConfiguration) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'endpointConfiguration'"); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return [ + 'authenticationConfiguration' => fn(ParseNode $n) => $o->setAuthenticationConfiguration($n->getObjectValue([CustomExtensionAuthenticationConfiguration::class, 'createFromDiscriminatorValue'])), + 'endpointConfiguration' => fn(ParseNode $n) => $o->setEndpointConfiguration($n->getObjectValue([CustomExtensionEndpointConfiguration::class, 'createFromDiscriminatorValue'])), + ]; + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + $writer->writeObjectValue('authenticationConfiguration', $this->getAuthenticationConfiguration()); + $writer->writeObjectValue('endpointConfiguration', $this->getEndpointConfiguration()); + $writer->writeAdditionalData($this->getAdditionalData()); + } + + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void { + $this->getBackingStore()->set('additionalData', $value); + } + + /** + * Sets the authenticationConfiguration property value. The authenticationConfiguration property + * @param CustomExtensionAuthenticationConfiguration|null $value Value to set for the authenticationConfiguration property. + */ + public function setAuthenticationConfiguration(?CustomExtensionAuthenticationConfiguration $value): void { + $this->getBackingStore()->set('authenticationConfiguration', $value); + } + + /** + * Sets the BackingStore property value. Stores model information. + * @param BackingStore $value Value to set for the BackingStore property. + */ + public function setBackingStore(BackingStore $value): void { + $this->backingStore = $value; + } + + /** + * Sets the endpointConfiguration property value. The endpointConfiguration property + * @param CustomExtensionEndpointConfiguration|null $value Value to set for the endpointConfiguration property. + */ + public function setEndpointConfiguration(?CustomExtensionEndpointConfiguration $value): void { + $this->getBackingStore()->set('endpointConfiguration', $value); + } + +} diff --git a/src/Generated/Identity/CustomAuthenticationExtensions/ValidateAuthenticationConfiguration/ValidateAuthenticationConfigurationRequestBuilder.php b/src/Generated/Identity/CustomAuthenticationExtensions/ValidateAuthenticationConfiguration/ValidateAuthenticationConfigurationRequestBuilder.php new file mode 100644 index 00000000000..b4332408a6a --- /dev/null +++ b/src/Generated/Identity/CustomAuthenticationExtensions/ValidateAuthenticationConfiguration/ValidateAuthenticationConfigurationRequestBuilder.php @@ -0,0 +1,77 @@ +|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}/identity/customAuthenticationExtensions/validateAuthenticationConfiguration'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Invoke action validateAuthenticationConfiguration + * @param ValidateAuthenticationConfigurationPostRequestBody $body The request body + * @param ValidateAuthenticationConfigurationRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function post(ValidateAuthenticationConfigurationPostRequestBody $body, ?ValidateAuthenticationConfigurationRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [AuthenticationConfigurationValidation::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Invoke action validateAuthenticationConfiguration + * @param ValidateAuthenticationConfigurationPostRequestBody $body The request body + * @param ValidateAuthenticationConfigurationRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(ValidateAuthenticationConfigurationPostRequestBody $body, ?ValidateAuthenticationConfigurationRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + 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 ValidateAuthenticationConfigurationRequestBuilder + */ + public function withUrl(string $rawUrl): ValidateAuthenticationConfigurationRequestBuilder { + return new ValidateAuthenticationConfigurationRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Identity/CustomAuthenticationExtensions/ValidateAuthenticationConfiguration/ValidateAuthenticationConfigurationRequestBuilderPostRequestConfiguration.php b/src/Generated/Identity/CustomAuthenticationExtensions/ValidateAuthenticationConfiguration/ValidateAuthenticationConfigurationRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..55f7d78d8fc --- /dev/null +++ b/src/Generated/Identity/CustomAuthenticationExtensions/ValidateAuthenticationConfiguration/ValidateAuthenticationConfigurationRequestBuilderPostRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Identity/IdentityRequestBuilder.php b/src/Generated/Identity/IdentityRequestBuilder.php index e37e31b2d17..65823fff125 100644 --- a/src/Generated/Identity/IdentityRequestBuilder.php +++ b/src/Generated/Identity/IdentityRequestBuilder.php @@ -5,8 +5,10 @@ use Exception; use Http\Promise\Promise; use Microsoft\Graph\Generated\Identity\ApiConnectors\ApiConnectorsRequestBuilder; +use Microsoft\Graph\Generated\Identity\AuthenticationEventListeners\AuthenticationEventListenersRequestBuilder; use Microsoft\Graph\Generated\Identity\B2xUserFlows\B2xUserFlowsRequestBuilder; use Microsoft\Graph\Generated\Identity\ConditionalAccess\ConditionalAccessRequestBuilder; +use Microsoft\Graph\Generated\Identity\CustomAuthenticationExtensions\CustomAuthenticationExtensionsRequestBuilder; use Microsoft\Graph\Generated\Identity\IdentityProviders\IdentityProvidersRequestBuilder; use Microsoft\Graph\Generated\Identity\UserFlowAttributes\UserFlowAttributesRequestBuilder; use Microsoft\Graph\Generated\Models\IdentityContainer; @@ -28,6 +30,13 @@ public function apiConnectors(): ApiConnectorsRequestBuilder { return new ApiConnectorsRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * Provides operations to manage the authenticationEventListeners property of the microsoft.graph.identityContainer entity. + */ + public function authenticationEventListeners(): AuthenticationEventListenersRequestBuilder { + return new AuthenticationEventListenersRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Provides operations to manage the b2xUserFlows property of the microsoft.graph.identityContainer entity. */ @@ -42,6 +51,13 @@ public function conditionalAccess(): ConditionalAccessRequestBuilder { return new ConditionalAccessRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * Provides operations to manage the customAuthenticationExtensions property of the microsoft.graph.identityContainer entity. + */ + public function customAuthenticationExtensions(): CustomAuthenticationExtensionsRequestBuilder { + return new CustomAuthenticationExtensionsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Provides operations to manage the identityProviders property of the microsoft.graph.identityContainer entity. */ diff --git a/src/Generated/Models/AuthenticationConditionApplication.php b/src/Generated/Models/AuthenticationConditionApplication.php new file mode 100644 index 00000000000..d61b5f7a03e --- /dev/null +++ b/src/Generated/Models/AuthenticationConditionApplication.php @@ -0,0 +1,136 @@ +backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); + $this->setAdditionalData([]); + } + + /** + * 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 AuthenticationConditionApplication + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): AuthenticationConditionApplication { + return new AuthenticationConditionApplication(); + } + + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return array|null + */ + public function getAdditionalData(): ?array { + $val = $this->getBackingStore()->get('additionalData'); + if (is_null($val) || is_array($val)) { + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'additionalData'"); + } + + /** + * Gets the appId property value. The identifier for an application corresponding to a condition that triggers an authenticationEventListener. + * @return string|null + */ + public function getAppId(): ?string { + $val = $this->getBackingStore()->get('appId'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'appId'"); + } + + /** + * Gets the BackingStore property value. Stores model information. + * @return BackingStore + */ + public function getBackingStore(): BackingStore { + return $this->backingStore; + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return [ + 'appId' => fn(ParseNode $n) => $o->setAppId($n->getStringValue()), + '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()), + ]; + } + + /** + * Gets the @odata.type property value. The OdataType property + * @return string|null + */ + public function getOdataType(): ?string { + $val = $this->getBackingStore()->get('odataType'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'odataType'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + $writer->writeStringValue('appId', $this->getAppId()); + $writer->writeStringValue('@odata.type', $this->getOdataType()); + $writer->writeAdditionalData($this->getAdditionalData()); + } + + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void { + $this->getBackingStore()->set('additionalData', $value); + } + + /** + * Sets the appId property value. The identifier for an application corresponding to a condition that triggers an authenticationEventListener. + * @param string|null $value Value to set for the appId property. + */ + public function setAppId(?string $value): void { + $this->getBackingStore()->set('appId', $value); + } + + /** + * Sets the BackingStore property value. Stores model information. + * @param BackingStore $value Value to set for the BackingStore property. + */ + public function setBackingStore(BackingStore $value): void { + $this->backingStore = $value; + } + + /** + * Sets the @odata.type property value. The OdataType property + * @param string|null $value Value to set for the @odata.type property. + */ + public function setOdataType(?string $value): void { + $this->getBackingStore()->set('odataType', $value); + } + +} diff --git a/src/Generated/Models/AuthenticationConditions.php b/src/Generated/Models/AuthenticationConditions.php new file mode 100644 index 00000000000..1097bba6cb0 --- /dev/null +++ b/src/Generated/Models/AuthenticationConditions.php @@ -0,0 +1,136 @@ +backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); + $this->setAdditionalData([]); + } + + /** + * 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 AuthenticationConditions + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): AuthenticationConditions { + return new AuthenticationConditions(); + } + + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return array|null + */ + public function getAdditionalData(): ?array { + $val = $this->getBackingStore()->get('additionalData'); + if (is_null($val) || is_array($val)) { + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'additionalData'"); + } + + /** + * Gets the applications property value. Applications which trigger a custom authentication extension. + * @return AuthenticationConditionsApplications|null + */ + public function getApplications(): ?AuthenticationConditionsApplications { + $val = $this->getBackingStore()->get('applications'); + if (is_null($val) || $val instanceof AuthenticationConditionsApplications) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'applications'"); + } + + /** + * Gets the BackingStore property value. Stores model information. + * @return BackingStore + */ + public function getBackingStore(): BackingStore { + return $this->backingStore; + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return [ + 'applications' => fn(ParseNode $n) => $o->setApplications($n->getObjectValue([AuthenticationConditionsApplications::class, 'createFromDiscriminatorValue'])), + '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()), + ]; + } + + /** + * Gets the @odata.type property value. The OdataType property + * @return string|null + */ + public function getOdataType(): ?string { + $val = $this->getBackingStore()->get('odataType'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'odataType'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + $writer->writeObjectValue('applications', $this->getApplications()); + $writer->writeStringValue('@odata.type', $this->getOdataType()); + $writer->writeAdditionalData($this->getAdditionalData()); + } + + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void { + $this->getBackingStore()->set('additionalData', $value); + } + + /** + * Sets the applications property value. Applications which trigger a custom authentication extension. + * @param AuthenticationConditionsApplications|null $value Value to set for the applications property. + */ + public function setApplications(?AuthenticationConditionsApplications $value): void { + $this->getBackingStore()->set('applications', $value); + } + + /** + * Sets the BackingStore property value. Stores model information. + * @param BackingStore $value Value to set for the BackingStore property. + */ + public function setBackingStore(BackingStore $value): void { + $this->backingStore = $value; + } + + /** + * Sets the @odata.type property value. The OdataType property + * @param string|null $value Value to set for the @odata.type property. + */ + public function setOdataType(?string $value): void { + $this->getBackingStore()->set('odataType', $value); + } + +} diff --git a/src/Generated/Models/AuthenticationConditionsApplications.php b/src/Generated/Models/AuthenticationConditionsApplications.php new file mode 100644 index 00000000000..c45604b12b1 --- /dev/null +++ b/src/Generated/Models/AuthenticationConditionsApplications.php @@ -0,0 +1,139 @@ +backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); + $this->setAdditionalData([]); + } + + /** + * 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 AuthenticationConditionsApplications + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): AuthenticationConditionsApplications { + return new AuthenticationConditionsApplications(); + } + + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return array|null + */ + public function getAdditionalData(): ?array { + $val = $this->getBackingStore()->get('additionalData'); + if (is_null($val) || is_array($val)) { + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'additionalData'"); + } + + /** + * Gets the BackingStore property value. Stores model information. + * @return BackingStore + */ + public function getBackingStore(): BackingStore { + return $this->backingStore; + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return [ + 'includeApplications' => fn(ParseNode $n) => $o->setIncludeApplications($n->getCollectionOfObjectValues([AuthenticationConditionApplication::class, 'createFromDiscriminatorValue'])), + '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()), + ]; + } + + /** + * Gets the includeApplications property value. The includeApplications property + * @return array|null + */ + public function getIncludeApplications(): ?array { + $val = $this->getBackingStore()->get('includeApplications'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, AuthenticationConditionApplication::class); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'includeApplications'"); + } + + /** + * Gets the @odata.type property value. The OdataType property + * @return string|null + */ + public function getOdataType(): ?string { + $val = $this->getBackingStore()->get('odataType'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'odataType'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + $writer->writeCollectionOfObjectValues('includeApplications', $this->getIncludeApplications()); + $writer->writeStringValue('@odata.type', $this->getOdataType()); + $writer->writeAdditionalData($this->getAdditionalData()); + } + + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void { + $this->getBackingStore()->set('additionalData', $value); + } + + /** + * Sets the BackingStore property value. Stores model information. + * @param BackingStore $value Value to set for the BackingStore property. + */ + public function setBackingStore(BackingStore $value): void { + $this->backingStore = $value; + } + + /** + * Sets the includeApplications property value. The includeApplications property + * @param array|null $value Value to set for the includeApplications property. + */ + public function setIncludeApplications(?array $value): void { + $this->getBackingStore()->set('includeApplications', $value); + } + + /** + * Sets the @odata.type property value. The OdataType property + * @param string|null $value Value to set for the @odata.type property. + */ + public function setOdataType(?string $value): void { + $this->getBackingStore()->set('odataType', $value); + } + +} diff --git a/src/Generated/Models/AuthenticationConfigurationValidation.php b/src/Generated/Models/AuthenticationConfigurationValidation.php new file mode 100644 index 00000000000..d8eadfab4c6 --- /dev/null +++ b/src/Generated/Models/AuthenticationConfigurationValidation.php @@ -0,0 +1,163 @@ +backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); + $this->setAdditionalData([]); + } + + /** + * 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 AuthenticationConfigurationValidation + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): AuthenticationConfigurationValidation { + return new AuthenticationConfigurationValidation(); + } + + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return array|null + */ + public function getAdditionalData(): ?array { + $val = $this->getBackingStore()->get('additionalData'); + if (is_null($val) || is_array($val)) { + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'additionalData'"); + } + + /** + * Gets the BackingStore property value. Stores model information. + * @return BackingStore + */ + public function getBackingStore(): BackingStore { + return $this->backingStore; + } + + /** + * Gets the errors property value. Errors in the validation result of a customAuthenticationExtension. + * @return array|null + */ + public function getErrors(): ?array { + $val = $this->getBackingStore()->get('errors'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, GenericError::class); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'errors'"); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return [ + 'errors' => fn(ParseNode $n) => $o->setErrors($n->getCollectionOfObjectValues([GenericError::class, 'createFromDiscriminatorValue'])), + '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()), + 'warnings' => fn(ParseNode $n) => $o->setWarnings($n->getCollectionOfObjectValues([GenericError::class, 'createFromDiscriminatorValue'])), + ]; + } + + /** + * Gets the @odata.type property value. The OdataType property + * @return string|null + */ + public function getOdataType(): ?string { + $val = $this->getBackingStore()->get('odataType'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'odataType'"); + } + + /** + * Gets the warnings property value. Warnings in the validation result of a customAuthenticationExtension. + * @return array|null + */ + public function getWarnings(): ?array { + $val = $this->getBackingStore()->get('warnings'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, GenericError::class); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'warnings'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + $writer->writeCollectionOfObjectValues('errors', $this->getErrors()); + $writer->writeStringValue('@odata.type', $this->getOdataType()); + $writer->writeCollectionOfObjectValues('warnings', $this->getWarnings()); + $writer->writeAdditionalData($this->getAdditionalData()); + } + + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void { + $this->getBackingStore()->set('additionalData', $value); + } + + /** + * Sets the BackingStore property value. Stores model information. + * @param BackingStore $value Value to set for the BackingStore property. + */ + public function setBackingStore(BackingStore $value): void { + $this->backingStore = $value; + } + + /** + * Sets the errors property value. Errors in the validation result of a customAuthenticationExtension. + * @param array|null $value Value to set for the errors property. + */ + public function setErrors(?array $value): void { + $this->getBackingStore()->set('errors', $value); + } + + /** + * Sets the @odata.type property value. The OdataType property + * @param string|null $value Value to set for the @odata.type property. + */ + public function setOdataType(?string $value): void { + $this->getBackingStore()->set('odataType', $value); + } + + /** + * Sets the warnings property value. Warnings in the validation result of a customAuthenticationExtension. + * @param array|null $value Value to set for the warnings property. + */ + public function setWarnings(?array $value): void { + $this->getBackingStore()->set('warnings', $value); + } + +} diff --git a/src/Generated/Models/AuthenticationEventListener.php b/src/Generated/Models/AuthenticationEventListener.php new file mode 100644 index 00000000000..386a6218956 --- /dev/null +++ b/src/Generated/Models/AuthenticationEventListener.php @@ -0,0 +1,96 @@ +getChildNode("@odata.type"); + if ($mappingValueNode !== null) { + $mappingValue = $mappingValueNode->getStringValue(); + switch ($mappingValue) { + case '#microsoft.graph.onTokenIssuanceStartListener': return new OnTokenIssuanceStartListener(); + } + } + return new AuthenticationEventListener(); + } + + /** + * Gets the authenticationEventsFlowId property value. The authenticationEventsFlowId property + * @return string|null + */ + public function getAuthenticationEventsFlowId(): ?string { + $val = $this->getBackingStore()->get('authenticationEventsFlowId'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'authenticationEventsFlowId'"); + } + + /** + * Gets the conditions property value. The conditions on which this authenticationEventListener should trigger. + * @return AuthenticationConditions|null + */ + public function getConditions(): ?AuthenticationConditions { + $val = $this->getBackingStore()->get('conditions'); + if (is_null($val) || $val instanceof AuthenticationConditions) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'conditions'"); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'authenticationEventsFlowId' => fn(ParseNode $n) => $o->setAuthenticationEventsFlowId($n->getStringValue()), + 'conditions' => fn(ParseNode $n) => $o->setConditions($n->getObjectValue([AuthenticationConditions::class, 'createFromDiscriminatorValue'])), + ]); + } + + /** + * 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->writeStringValue('authenticationEventsFlowId', $this->getAuthenticationEventsFlowId()); + $writer->writeObjectValue('conditions', $this->getConditions()); + } + + /** + * Sets the authenticationEventsFlowId property value. The authenticationEventsFlowId property + * @param string|null $value Value to set for the authenticationEventsFlowId property. + */ + public function setAuthenticationEventsFlowId(?string $value): void { + $this->getBackingStore()->set('authenticationEventsFlowId', $value); + } + + /** + * Sets the conditions property value. The conditions on which this authenticationEventListener should trigger. + * @param AuthenticationConditions|null $value Value to set for the conditions property. + */ + public function setConditions(?AuthenticationConditions $value): void { + $this->getBackingStore()->set('conditions', $value); + } + +} diff --git a/src/Generated/Models/AuthenticationEventListenerCollectionResponse.php b/src/Generated/Models/AuthenticationEventListenerCollectionResponse.php new file mode 100644 index 00000000000..28577407d0d --- /dev/null +++ b/src/Generated/Models/AuthenticationEventListenerCollectionResponse.php @@ -0,0 +1,70 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([AuthenticationEventListener::class, 'createFromDiscriminatorValue'])), + ]); + } + + /** + * Gets the value property value. The value property + * @return array|null + */ + public function getValue(): ?array { + $val = $this->getBackingStore()->get('value'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, AuthenticationEventListener::class); + /** @var array|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|null $value Value to set for the value property. + */ + public function setValue(?array $value): void { + $this->getBackingStore()->set('value', $value); + } + +} diff --git a/src/Generated/Models/AzureAdTokenAuthentication.php b/src/Generated/Models/AzureAdTokenAuthentication.php new file mode 100644 index 00000000000..11dccf29cc9 --- /dev/null +++ b/src/Generated/Models/AzureAdTokenAuthentication.php @@ -0,0 +1,68 @@ +setOdataType('#microsoft.graph.azureAdTokenAuthentication'); + } + + /** + * 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 AzureAdTokenAuthentication + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): AzureAdTokenAuthentication { + return new AzureAdTokenAuthentication(); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'resourceId' => fn(ParseNode $n) => $o->setResourceId($n->getStringValue()), + ]); + } + + /** + * Gets the resourceId property value. The appID of the Microsoft Entra application to use to authenticate an app with a custom extension. + * @return string|null + */ + public function getResourceId(): ?string { + $val = $this->getBackingStore()->get('resourceId'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'resourceId'"); + } + + /** + * 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->writeStringValue('resourceId', $this->getResourceId()); + } + + /** + * Sets the resourceId property value. The appID of the Microsoft Entra application to use to authenticate an app with a custom extension. + * @param string|null $value Value to set for the resourceId property. + */ + public function setResourceId(?string $value): void { + $this->getBackingStore()->set('resourceId', $value); + } + +} diff --git a/src/Generated/Models/BookingAppointment.php b/src/Generated/Models/BookingAppointment.php index a84f5f8ff78..8c0cdbf727e 100644 --- a/src/Generated/Models/BookingAppointment.php +++ b/src/Generated/Models/BookingAppointment.php @@ -53,6 +53,54 @@ public function getAnonymousJoinWebUrl(): ?string { throw new \UnexpectedValueException("Invalid type found in backing store for 'anonymousJoinWebUrl'"); } + /** + * Gets the customerEmailAddress property value. The customerEmailAddress property + * @return string|null + */ + public function getCustomerEmailAddress(): ?string { + $val = $this->getBackingStore()->get('customerEmailAddress'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'customerEmailAddress'"); + } + + /** + * Gets the customerName property value. The customerName property + * @return string|null + */ + public function getCustomerName(): ?string { + $val = $this->getBackingStore()->get('customerName'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'customerName'"); + } + + /** + * Gets the customerNotes property value. Notes from the customer associated with this appointment. + * @return string|null + */ + public function getCustomerNotes(): ?string { + $val = $this->getBackingStore()->get('customerNotes'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'customerNotes'"); + } + + /** + * Gets the customerPhone property value. The customerPhone property + * @return string|null + */ + public function getCustomerPhone(): ?string { + $val = $this->getBackingStore()->get('customerPhone'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'customerPhone'"); + } + /** * Gets the customers property value. A collection of customer properties for an appointment. An appointment contains a list of customer information and each unit will indicate the properties of a customer who is part of that appointment. Optional. * @return array|null @@ -112,6 +160,10 @@ public function getFieldDeserializers(): array { return array_merge(parent::getFieldDeserializers(), [ 'additionalInformation' => fn(ParseNode $n) => $o->setAdditionalInformation($n->getStringValue()), 'anonymousJoinWebUrl' => fn(ParseNode $n) => $o->setAnonymousJoinWebUrl($n->getStringValue()), + 'customerEmailAddress' => fn(ParseNode $n) => $o->setCustomerEmailAddress($n->getStringValue()), + 'customerName' => fn(ParseNode $n) => $o->setCustomerName($n->getStringValue()), + 'customerNotes' => fn(ParseNode $n) => $o->setCustomerNotes($n->getStringValue()), + 'customerPhone' => fn(ParseNode $n) => $o->setCustomerPhone($n->getStringValue()), 'customers' => fn(ParseNode $n) => $o->setCustomers($n->getCollectionOfObjectValues([BookingCustomerInformationBase::class, 'createFromDiscriminatorValue'])), 'customerTimeZone' => fn(ParseNode $n) => $o->setCustomerTimeZone($n->getStringValue()), 'duration' => fn(ParseNode $n) => $o->setDuration($n->getDateIntervalValue()), @@ -372,6 +424,10 @@ public function serialize(SerializationWriter $writer): void { parent::serialize($writer); $writer->writeStringValue('additionalInformation', $this->getAdditionalInformation()); $writer->writeStringValue('anonymousJoinWebUrl', $this->getAnonymousJoinWebUrl()); + $writer->writeStringValue('customerEmailAddress', $this->getCustomerEmailAddress()); + $writer->writeStringValue('customerName', $this->getCustomerName()); + $writer->writeStringValue('customerNotes', $this->getCustomerNotes()); + $writer->writeStringValue('customerPhone', $this->getCustomerPhone()); $writer->writeCollectionOfObjectValues('customers', $this->getCustomers()); $writer->writeStringValue('customerTimeZone', $this->getCustomerTimeZone()); $writer->writeObjectValue('endDateTime', $this->getEndDateTime()); @@ -410,6 +466,38 @@ public function setAnonymousJoinWebUrl(?string $value): void { $this->getBackingStore()->set('anonymousJoinWebUrl', $value); } + /** + * Sets the customerEmailAddress property value. The customerEmailAddress property + * @param string|null $value Value to set for the customerEmailAddress property. + */ + public function setCustomerEmailAddress(?string $value): void { + $this->getBackingStore()->set('customerEmailAddress', $value); + } + + /** + * Sets the customerName property value. The customerName property + * @param string|null $value Value to set for the customerName property. + */ + public function setCustomerName(?string $value): void { + $this->getBackingStore()->set('customerName', $value); + } + + /** + * Sets the customerNotes property value. Notes from the customer associated with this appointment. + * @param string|null $value Value to set for the customerNotes property. + */ + public function setCustomerNotes(?string $value): void { + $this->getBackingStore()->set('customerNotes', $value); + } + + /** + * Sets the customerPhone property value. The customerPhone property + * @param string|null $value Value to set for the customerPhone property. + */ + public function setCustomerPhone(?string $value): void { + $this->getBackingStore()->set('customerPhone', $value); + } + /** * Sets the customers property value. A collection of customer properties for an appointment. An appointment contains a list of customer information and each unit will indicate the properties of a customer who is part of that appointment. Optional. * @param array|null $value Value to set for the customers property. diff --git a/src/Generated/Models/BookingStaffMember.php b/src/Generated/Models/BookingStaffMember.php index b6f4fb277ad..f3b1c9871e7 100644 --- a/src/Generated/Models/BookingStaffMember.php +++ b/src/Generated/Models/BookingStaffMember.php @@ -76,6 +76,7 @@ public function getFieldDeserializers(): array { 'displayName' => fn(ParseNode $n) => $o->setDisplayName($n->getStringValue()), 'emailAddress' => fn(ParseNode $n) => $o->setEmailAddress($n->getStringValue()), 'isEmailNotificationEnabled' => fn(ParseNode $n) => $o->setIsEmailNotificationEnabled($n->getBooleanValue()), + 'membershipStatus' => fn(ParseNode $n) => $o->setMembershipStatus($n->getEnumValue(BookingStaffMembershipStatus::class)), 'role' => fn(ParseNode $n) => $o->setRole($n->getEnumValue(BookingStaffRole::class)), 'timeZone' => fn(ParseNode $n) => $o->setTimeZone($n->getStringValue()), 'useBusinessHours' => fn(ParseNode $n) => $o->setUseBusinessHours($n->getBooleanValue()), @@ -95,6 +96,18 @@ public function getIsEmailNotificationEnabled(): ?bool { throw new \UnexpectedValueException("Invalid type found in backing store for 'isEmailNotificationEnabled'"); } + /** + * Gets the membershipStatus property value. The membershipStatus property + * @return BookingStaffMembershipStatus|null + */ + public function getMembershipStatus(): ?BookingStaffMembershipStatus { + $val = $this->getBackingStore()->get('membershipStatus'); + if (is_null($val) || $val instanceof BookingStaffMembershipStatus) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'membershipStatus'"); + } + /** * Gets the role property value. The role property * @return BookingStaffRole|null @@ -155,6 +168,7 @@ public function serialize(SerializationWriter $writer): void { $writer->writeStringValue('displayName', $this->getDisplayName()); $writer->writeStringValue('emailAddress', $this->getEmailAddress()); $writer->writeBooleanValue('isEmailNotificationEnabled', $this->getIsEmailNotificationEnabled()); + $writer->writeEnumValue('membershipStatus', $this->getMembershipStatus()); $writer->writeEnumValue('role', $this->getRole()); $writer->writeStringValue('timeZone', $this->getTimeZone()); $writer->writeBooleanValue('useBusinessHours', $this->getUseBusinessHours()); @@ -193,6 +207,14 @@ public function setIsEmailNotificationEnabled(?bool $value): void { $this->getBackingStore()->set('isEmailNotificationEnabled', $value); } + /** + * Sets the membershipStatus property value. The membershipStatus property + * @param BookingStaffMembershipStatus|null $value Value to set for the membershipStatus property. + */ + public function setMembershipStatus(?BookingStaffMembershipStatus $value): void { + $this->getBackingStore()->set('membershipStatus', $value); + } + /** * Sets the role property value. The role property * @param BookingStaffRole|null $value Value to set for the role property. diff --git a/src/Generated/Models/BookingStaffMembershipStatus.php b/src/Generated/Models/BookingStaffMembershipStatus.php new file mode 100644 index 00000000000..2f4d6decc89 --- /dev/null +++ b/src/Generated/Models/BookingStaffMembershipStatus.php @@ -0,0 +1,12 @@ +getBackingStore()->get('commerceSubscriptionId'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'commerceSubscriptionId'"); + } + + /** + * Gets the createdDateTime property value. The createdDateTime property + * @return DateTime|null + */ + public function getCreatedDateTime(): ?DateTime { + $val = $this->getBackingStore()->get('createdDateTime'); + if (is_null($val) || $val instanceof DateTime) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'createdDateTime'"); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'commerceSubscriptionId' => fn(ParseNode $n) => $o->setCommerceSubscriptionId($n->getStringValue()), + 'createdDateTime' => fn(ParseNode $n) => $o->setCreatedDateTime($n->getDateTimeValue()), + 'isTrial' => fn(ParseNode $n) => $o->setIsTrial($n->getBooleanValue()), + 'nextLifecycleDateTime' => fn(ParseNode $n) => $o->setNextLifecycleDateTime($n->getDateTimeValue()), + 'ownerId' => fn(ParseNode $n) => $o->setOwnerId($n->getStringValue()), + 'ownerTenantId' => fn(ParseNode $n) => $o->setOwnerTenantId($n->getStringValue()), + 'ownerType' => fn(ParseNode $n) => $o->setOwnerType($n->getStringValue()), + 'serviceStatus' => fn(ParseNode $n) => $o->setServiceStatus($n->getCollectionOfObjectValues([ServicePlanInfo::class, 'createFromDiscriminatorValue'])), + 'skuId' => fn(ParseNode $n) => $o->setSkuId($n->getStringValue()), + 'skuPartNumber' => fn(ParseNode $n) => $o->setSkuPartNumber($n->getStringValue()), + 'status' => fn(ParseNode $n) => $o->setStatus($n->getStringValue()), + 'totalLicenses' => fn(ParseNode $n) => $o->setTotalLicenses($n->getIntegerValue()), + ]); + } + + /** + * Gets the isTrial property value. The isTrial property + * @return bool|null + */ + public function getIsTrial(): ?bool { + $val = $this->getBackingStore()->get('isTrial'); + if (is_null($val) || is_bool($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'isTrial'"); + } + + /** + * Gets the nextLifecycleDateTime property value. The nextLifecycleDateTime property + * @return DateTime|null + */ + public function getNextLifecycleDateTime(): ?DateTime { + $val = $this->getBackingStore()->get('nextLifecycleDateTime'); + if (is_null($val) || $val instanceof DateTime) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'nextLifecycleDateTime'"); + } + + /** + * Gets the ownerId property value. The ownerId property + * @return string|null + */ + public function getOwnerId(): ?string { + $val = $this->getBackingStore()->get('ownerId'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'ownerId'"); + } + + /** + * Gets the ownerTenantId property value. The ownerTenantId property + * @return string|null + */ + public function getOwnerTenantId(): ?string { + $val = $this->getBackingStore()->get('ownerTenantId'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'ownerTenantId'"); + } + + /** + * Gets the ownerType property value. The ownerType property + * @return string|null + */ + public function getOwnerType(): ?string { + $val = $this->getBackingStore()->get('ownerType'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'ownerType'"); + } + + /** + * Gets the serviceStatus property value. The serviceStatus property + * @return array|null + */ + public function getServiceStatus(): ?array { + $val = $this->getBackingStore()->get('serviceStatus'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, ServicePlanInfo::class); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'serviceStatus'"); + } + + /** + * Gets the skuId property value. The skuId property + * @return string|null + */ + public function getSkuId(): ?string { + $val = $this->getBackingStore()->get('skuId'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'skuId'"); + } + + /** + * Gets the skuPartNumber property value. The skuPartNumber property + * @return string|null + */ + public function getSkuPartNumber(): ?string { + $val = $this->getBackingStore()->get('skuPartNumber'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'skuPartNumber'"); + } + + /** + * Gets the status property value. The status property + * @return string|null + */ + public function getStatus(): ?string { + $val = $this->getBackingStore()->get('status'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'status'"); + } + + /** + * Gets the totalLicenses property value. The totalLicenses property + * @return int|null + */ + public function getTotalLicenses(): ?int { + $val = $this->getBackingStore()->get('totalLicenses'); + if (is_null($val) || is_int($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'totalLicenses'"); + } + + /** + * 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->writeStringValue('commerceSubscriptionId', $this->getCommerceSubscriptionId()); + $writer->writeDateTimeValue('createdDateTime', $this->getCreatedDateTime()); + $writer->writeBooleanValue('isTrial', $this->getIsTrial()); + $writer->writeDateTimeValue('nextLifecycleDateTime', $this->getNextLifecycleDateTime()); + $writer->writeStringValue('ownerId', $this->getOwnerId()); + $writer->writeStringValue('ownerTenantId', $this->getOwnerTenantId()); + $writer->writeStringValue('ownerType', $this->getOwnerType()); + $writer->writeCollectionOfObjectValues('serviceStatus', $this->getServiceStatus()); + $writer->writeStringValue('skuId', $this->getSkuId()); + $writer->writeStringValue('skuPartNumber', $this->getSkuPartNumber()); + $writer->writeStringValue('status', $this->getStatus()); + $writer->writeIntegerValue('totalLicenses', $this->getTotalLicenses()); + } + + /** + * Sets the commerceSubscriptionId property value. The commerceSubscriptionId property + * @param string|null $value Value to set for the commerceSubscriptionId property. + */ + public function setCommerceSubscriptionId(?string $value): void { + $this->getBackingStore()->set('commerceSubscriptionId', $value); + } + + /** + * Sets the createdDateTime property value. The createdDateTime property + * @param DateTime|null $value Value to set for the createdDateTime property. + */ + public function setCreatedDateTime(?DateTime $value): void { + $this->getBackingStore()->set('createdDateTime', $value); + } + + /** + * Sets the isTrial property value. The isTrial property + * @param bool|null $value Value to set for the isTrial property. + */ + public function setIsTrial(?bool $value): void { + $this->getBackingStore()->set('isTrial', $value); + } + + /** + * Sets the nextLifecycleDateTime property value. The nextLifecycleDateTime property + * @param DateTime|null $value Value to set for the nextLifecycleDateTime property. + */ + public function setNextLifecycleDateTime(?DateTime $value): void { + $this->getBackingStore()->set('nextLifecycleDateTime', $value); + } + + /** + * Sets the ownerId property value. The ownerId property + * @param string|null $value Value to set for the ownerId property. + */ + public function setOwnerId(?string $value): void { + $this->getBackingStore()->set('ownerId', $value); + } + + /** + * Sets the ownerTenantId property value. The ownerTenantId property + * @param string|null $value Value to set for the ownerTenantId property. + */ + public function setOwnerTenantId(?string $value): void { + $this->getBackingStore()->set('ownerTenantId', $value); + } + + /** + * Sets the ownerType property value. The ownerType property + * @param string|null $value Value to set for the ownerType property. + */ + public function setOwnerType(?string $value): void { + $this->getBackingStore()->set('ownerType', $value); + } + + /** + * Sets the serviceStatus property value. The serviceStatus property + * @param array|null $value Value to set for the serviceStatus property. + */ + public function setServiceStatus(?array $value): void { + $this->getBackingStore()->set('serviceStatus', $value); + } + + /** + * Sets the skuId property value. The skuId property + * @param string|null $value Value to set for the skuId property. + */ + public function setSkuId(?string $value): void { + $this->getBackingStore()->set('skuId', $value); + } + + /** + * Sets the skuPartNumber property value. The skuPartNumber property + * @param string|null $value Value to set for the skuPartNumber property. + */ + public function setSkuPartNumber(?string $value): void { + $this->getBackingStore()->set('skuPartNumber', $value); + } + + /** + * Sets the status property value. The status property + * @param string|null $value Value to set for the status property. + */ + public function setStatus(?string $value): void { + $this->getBackingStore()->set('status', $value); + } + + /** + * Sets the totalLicenses property value. The totalLicenses property + * @param int|null $value Value to set for the totalLicenses property. + */ + public function setTotalLicenses(?int $value): void { + $this->getBackingStore()->set('totalLicenses', $value); + } + +} diff --git a/src/Generated/Models/CompanySubscriptionCollectionResponse.php b/src/Generated/Models/CompanySubscriptionCollectionResponse.php new file mode 100644 index 00000000000..e1541900f94 --- /dev/null +++ b/src/Generated/Models/CompanySubscriptionCollectionResponse.php @@ -0,0 +1,70 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([CompanySubscription::class, 'createFromDiscriminatorValue'])), + ]); + } + + /** + * Gets the value property value. The value property + * @return array|null + */ + public function getValue(): ?array { + $val = $this->getBackingStore()->get('value'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, CompanySubscription::class); + /** @var array|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|null $value Value to set for the value property. + */ + public function setValue(?array $value): void { + $this->getBackingStore()->set('value', $value); + } + +} diff --git a/src/Generated/Models/CrossTenantAccessPolicy.php b/src/Generated/Models/CrossTenantAccessPolicy.php index cf696f32c30..625525ef7d9 100644 --- a/src/Generated/Models/CrossTenantAccessPolicy.php +++ b/src/Generated/Models/CrossTenantAccessPolicy.php @@ -69,6 +69,7 @@ public function getFieldDeserializers(): array { }, 'default' => fn(ParseNode $n) => $o->setEscapedDefault($n->getObjectValue([CrossTenantAccessPolicyConfigurationDefault::class, 'createFromDiscriminatorValue'])), 'partners' => fn(ParseNode $n) => $o->setPartners($n->getCollectionOfObjectValues([CrossTenantAccessPolicyConfigurationPartner::class, 'createFromDiscriminatorValue'])), + 'templates' => fn(ParseNode $n) => $o->setTemplates($n->getObjectValue([PolicyTemplate::class, 'createFromDiscriminatorValue'])), ]); } @@ -86,6 +87,18 @@ public function getPartners(): ?array { throw new \UnexpectedValueException("Invalid type found in backing store for 'partners'"); } + /** + * Gets the templates property value. Represents the base policy in the directory for multitenant organization settings. + * @return PolicyTemplate|null + */ + public function getTemplates(): ?PolicyTemplate { + $val = $this->getBackingStore()->get('templates'); + if (is_null($val) || $val instanceof PolicyTemplate) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'templates'"); + } + /** * Serializes information the current object * @param SerializationWriter $writer Serialization writer to use to serialize this model @@ -95,6 +108,7 @@ public function serialize(SerializationWriter $writer): void { $writer->writeCollectionOfPrimitiveValues('allowedCloudEndpoints', $this->getAllowedCloudEndpoints()); $writer->writeObjectValue('default', $this->getEscapedDefault()); $writer->writeCollectionOfObjectValues('partners', $this->getPartners()); + $writer->writeObjectValue('templates', $this->getTemplates()); } /** @@ -121,4 +135,12 @@ public function setPartners(?array $value): void { $this->getBackingStore()->set('partners', $value); } + /** + * Sets the templates property value. Represents the base policy in the directory for multitenant organization settings. + * @param PolicyTemplate|null $value Value to set for the templates property. + */ + public function setTemplates(?PolicyTemplate $value): void { + $this->getBackingStore()->set('templates', $value); + } + } diff --git a/src/Generated/Models/CrossTenantAccessPolicyConfigurationPartner.php b/src/Generated/Models/CrossTenantAccessPolicyConfigurationPartner.php index 0f7ccd85f92..0fb924bb553 100644 --- a/src/Generated/Models/CrossTenantAccessPolicyConfigurationPartner.php +++ b/src/Generated/Models/CrossTenantAccessPolicyConfigurationPartner.php @@ -129,6 +129,7 @@ public function getFieldDeserializers(): array { 'b2bDirectConnectOutbound' => fn(ParseNode $n) => $o->setB2bDirectConnectOutbound($n->getObjectValue([CrossTenantAccessPolicyB2BSetting::class, 'createFromDiscriminatorValue'])), 'identitySynchronization' => fn(ParseNode $n) => $o->setIdentitySynchronization($n->getObjectValue([CrossTenantIdentitySyncPolicyPartner::class, 'createFromDiscriminatorValue'])), 'inboundTrust' => fn(ParseNode $n) => $o->setInboundTrust($n->getObjectValue([CrossTenantAccessPolicyInboundTrust::class, 'createFromDiscriminatorValue'])), + 'isInMultiTenantOrganization' => fn(ParseNode $n) => $o->setIsInMultiTenantOrganization($n->getBooleanValue()), 'isServiceProvider' => fn(ParseNode $n) => $o->setIsServiceProvider($n->getBooleanValue()), '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()), 'tenantId' => fn(ParseNode $n) => $o->setTenantId($n->getStringValue()), @@ -159,6 +160,18 @@ public function getInboundTrust(): ?CrossTenantAccessPolicyInboundTrust { throw new \UnexpectedValueException("Invalid type found in backing store for 'inboundTrust'"); } + /** + * Gets the isInMultiTenantOrganization property value. Identifies whether a tenant is a member of a multitenant organization. + * @return bool|null + */ + public function getIsInMultiTenantOrganization(): ?bool { + $val = $this->getBackingStore()->get('isInMultiTenantOrganization'); + if (is_null($val) || is_bool($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'isInMultiTenantOrganization'"); + } + /** * Gets the isServiceProvider property value. Identifies whether the partner-specific configuration is a Cloud Service Provider for your organization. * @return bool|null @@ -207,6 +220,7 @@ public function serialize(SerializationWriter $writer): void { $writer->writeObjectValue('b2bDirectConnectOutbound', $this->getB2bDirectConnectOutbound()); $writer->writeObjectValue('identitySynchronization', $this->getIdentitySynchronization()); $writer->writeObjectValue('inboundTrust', $this->getInboundTrust()); + $writer->writeBooleanValue('isInMultiTenantOrganization', $this->getIsInMultiTenantOrganization()); $writer->writeBooleanValue('isServiceProvider', $this->getIsServiceProvider()); $writer->writeStringValue('@odata.type', $this->getOdataType()); $writer->writeStringValue('tenantId', $this->getTenantId()); @@ -285,6 +299,14 @@ public function setInboundTrust(?CrossTenantAccessPolicyInboundTrust $value): vo $this->getBackingStore()->set('inboundTrust', $value); } + /** + * Sets the isInMultiTenantOrganization property value. Identifies whether a tenant is a member of a multitenant organization. + * @param bool|null $value Value to set for the isInMultiTenantOrganization property. + */ + public function setIsInMultiTenantOrganization(?bool $value): void { + $this->getBackingStore()->set('isInMultiTenantOrganization', $value); + } + /** * Sets the isServiceProvider property value. Identifies whether the partner-specific configuration is a Cloud Service Provider for your organization. * @param bool|null $value Value to set for the isServiceProvider property. diff --git a/src/Generated/Models/CustomAuthenticationExtension.php b/src/Generated/Models/CustomAuthenticationExtension.php new file mode 100644 index 00000000000..a8aeed635c0 --- /dev/null +++ b/src/Generated/Models/CustomAuthenticationExtension.php @@ -0,0 +1,53 @@ +setOdataType('#microsoft.graph.customAuthenticationExtension'); + } + + /** + * 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 CustomAuthenticationExtension + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): CustomAuthenticationExtension { + $mappingValueNode = $parseNode->getChildNode("@odata.type"); + if ($mappingValueNode !== null) { + $mappingValue = $mappingValueNode->getStringValue(); + switch ($mappingValue) { + case '#microsoft.graph.onTokenIssuanceStartCustomExtension': return new OnTokenIssuanceStartCustomExtension(); + } + } + return new CustomAuthenticationExtension(); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + ]); + } + + /** + * 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); + } + +} diff --git a/src/Generated/Models/CustomAuthenticationExtensionCollectionResponse.php b/src/Generated/Models/CustomAuthenticationExtensionCollectionResponse.php new file mode 100644 index 00000000000..bcf2f49bdf6 --- /dev/null +++ b/src/Generated/Models/CustomAuthenticationExtensionCollectionResponse.php @@ -0,0 +1,70 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([CustomAuthenticationExtension::class, 'createFromDiscriminatorValue'])), + ]); + } + + /** + * Gets the value property value. The value property + * @return array|null + */ + public function getValue(): ?array { + $val = $this->getBackingStore()->get('value'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, CustomAuthenticationExtension::class); + /** @var array|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|null $value Value to set for the value property. + */ + public function setValue(?array $value): void { + $this->getBackingStore()->set('value', $value); + } + +} diff --git a/src/Generated/Models/CustomCalloutExtension.php b/src/Generated/Models/CustomCalloutExtension.php index 7d3c9150deb..19336c58796 100644 --- a/src/Generated/Models/CustomCalloutExtension.php +++ b/src/Generated/Models/CustomCalloutExtension.php @@ -28,7 +28,9 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Custo switch ($mappingValue) { case '#microsoft.graph.accessPackageAssignmentRequestWorkflowExtension': return new AccessPackageAssignmentRequestWorkflowExtension(); case '#microsoft.graph.accessPackageAssignmentWorkflowExtension': return new AccessPackageAssignmentWorkflowExtension(); + case '#microsoft.graph.customAuthenticationExtension': return new CustomAuthenticationExtension(); case '#microsoft.graph.identityGovernance.customTaskExtension': return new CustomTaskExtension(); + case '#microsoft.graph.onTokenIssuanceStartCustomExtension': return new OnTokenIssuanceStartCustomExtension(); } } return new CustomCalloutExtension(); diff --git a/src/Generated/Models/CustomExtensionAuthenticationConfiguration.php b/src/Generated/Models/CustomExtensionAuthenticationConfiguration.php index 5fc8f2c87c7..50aeeb26802 100644 --- a/src/Generated/Models/CustomExtensionAuthenticationConfiguration.php +++ b/src/Generated/Models/CustomExtensionAuthenticationConfiguration.php @@ -36,6 +36,7 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Custo $mappingValue = $mappingValueNode->getStringValue(); switch ($mappingValue) { case '#microsoft.graph.azureAdPopTokenAuthentication': return new AzureAdPopTokenAuthentication(); + case '#microsoft.graph.azureAdTokenAuthentication': return new AzureAdTokenAuthentication(); } } return new CustomExtensionAuthenticationConfiguration(); diff --git a/src/Generated/Models/CustomExtensionClientConfiguration.php b/src/Generated/Models/CustomExtensionClientConfiguration.php index 98dbd396f94..63062b09fef 100644 --- a/src/Generated/Models/CustomExtensionClientConfiguration.php +++ b/src/Generated/Models/CustomExtensionClientConfiguration.php @@ -62,11 +62,24 @@ public function getBackingStore(): BackingStore { public function getFieldDeserializers(): array { $o = $this; return [ + 'maximumRetries' => fn(ParseNode $n) => $o->setMaximumRetries($n->getIntegerValue()), '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()), 'timeoutInMilliseconds' => fn(ParseNode $n) => $o->setTimeoutInMilliseconds($n->getIntegerValue()), ]; } + /** + * Gets the maximumRetries property value. The max number of retries that Microsoft Entra ID makes to the external API. Values of 0 or 1 are supported. If null, the default for the service applies. + * @return int|null + */ + public function getMaximumRetries(): ?int { + $val = $this->getBackingStore()->get('maximumRetries'); + if (is_null($val) || is_int($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'maximumRetries'"); + } + /** * Gets the @odata.type property value. The OdataType property * @return string|null @@ -96,6 +109,7 @@ public function getTimeoutInMilliseconds(): ?int { * @param SerializationWriter $writer Serialization writer to use to serialize this model */ public function serialize(SerializationWriter $writer): void { + $writer->writeIntegerValue('maximumRetries', $this->getMaximumRetries()); $writer->writeStringValue('@odata.type', $this->getOdataType()); $writer->writeIntegerValue('timeoutInMilliseconds', $this->getTimeoutInMilliseconds()); $writer->writeAdditionalData($this->getAdditionalData()); @@ -117,6 +131,14 @@ public function setBackingStore(BackingStore $value): void { $this->backingStore = $value; } + /** + * Sets the maximumRetries property value. The max number of retries that Microsoft Entra ID makes to the external API. Values of 0 or 1 are supported. If null, the default for the service applies. + * @param int|null $value Value to set for the maximumRetries property. + */ + public function setMaximumRetries(?int $value): void { + $this->getBackingStore()->set('maximumRetries', $value); + } + /** * Sets the @odata.type property value. The OdataType property * @param string|null $value Value to set for the @odata.type property. diff --git a/src/Generated/Models/CustomExtensionEndpointConfiguration.php b/src/Generated/Models/CustomExtensionEndpointConfiguration.php index 4b052a33407..210cc01cdc6 100644 --- a/src/Generated/Models/CustomExtensionEndpointConfiguration.php +++ b/src/Generated/Models/CustomExtensionEndpointConfiguration.php @@ -35,6 +35,7 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Custo if ($mappingValueNode !== null) { $mappingValue = $mappingValueNode->getStringValue(); switch ($mappingValue) { + case '#microsoft.graph.httpRequestEndpoint': return new HttpRequestEndpoint(); case '#microsoft.graph.logicAppTriggerEndpointConfiguration': return new LogicAppTriggerEndpointConfiguration(); } } diff --git a/src/Generated/Models/CustomExtensionOverwriteConfiguration.php b/src/Generated/Models/CustomExtensionOverwriteConfiguration.php new file mode 100644 index 00000000000..7257efa0f86 --- /dev/null +++ b/src/Generated/Models/CustomExtensionOverwriteConfiguration.php @@ -0,0 +1,136 @@ +backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); + $this->setAdditionalData([]); + } + + /** + * 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 CustomExtensionOverwriteConfiguration + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): CustomExtensionOverwriteConfiguration { + return new CustomExtensionOverwriteConfiguration(); + } + + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return array|null + */ + public function getAdditionalData(): ?array { + $val = $this->getBackingStore()->get('additionalData'); + if (is_null($val) || is_array($val)) { + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'additionalData'"); + } + + /** + * Gets the BackingStore property value. Stores model information. + * @return BackingStore + */ + public function getBackingStore(): BackingStore { + return $this->backingStore; + } + + /** + * Gets the clientConfiguration property value. Configuration regarding properties of the custom extension which can be overwritten per event listener. If no values are provided, the properties on the custom extension are used. + * @return CustomExtensionClientConfiguration|null + */ + public function getClientConfiguration(): ?CustomExtensionClientConfiguration { + $val = $this->getBackingStore()->get('clientConfiguration'); + if (is_null($val) || $val instanceof CustomExtensionClientConfiguration) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'clientConfiguration'"); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return [ + 'clientConfiguration' => fn(ParseNode $n) => $o->setClientConfiguration($n->getObjectValue([CustomExtensionClientConfiguration::class, 'createFromDiscriminatorValue'])), + '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()), + ]; + } + + /** + * Gets the @odata.type property value. The OdataType property + * @return string|null + */ + public function getOdataType(): ?string { + $val = $this->getBackingStore()->get('odataType'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'odataType'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + $writer->writeObjectValue('clientConfiguration', $this->getClientConfiguration()); + $writer->writeStringValue('@odata.type', $this->getOdataType()); + $writer->writeAdditionalData($this->getAdditionalData()); + } + + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void { + $this->getBackingStore()->set('additionalData', $value); + } + + /** + * Sets the BackingStore property value. Stores model information. + * @param BackingStore $value Value to set for the BackingStore property. + */ + public function setBackingStore(BackingStore $value): void { + $this->backingStore = $value; + } + + /** + * Sets the clientConfiguration property value. Configuration regarding properties of the custom extension which can be overwritten per event listener. If no values are provided, the properties on the custom extension are used. + * @param CustomExtensionClientConfiguration|null $value Value to set for the clientConfiguration property. + */ + public function setClientConfiguration(?CustomExtensionClientConfiguration $value): void { + $this->getBackingStore()->set('clientConfiguration', $value); + } + + /** + * Sets the @odata.type property value. The OdataType property + * @param string|null $value Value to set for the @odata.type property. + */ + public function setOdataType(?string $value): void { + $this->getBackingStore()->set('odataType', $value); + } + +} diff --git a/src/Generated/Models/Directory.php b/src/Generated/Models/Directory.php index 07693397cc3..94190a1d60e 100644 --- a/src/Generated/Models/Directory.php +++ b/src/Generated/Models/Directory.php @@ -123,6 +123,7 @@ public function getFieldDeserializers(): array { 'deviceLocalCredentials' => fn(ParseNode $n) => $o->setDeviceLocalCredentials($n->getCollectionOfObjectValues([DeviceLocalCredentialInfo::class, 'createFromDiscriminatorValue'])), 'federationConfigurations' => fn(ParseNode $n) => $o->setFederationConfigurations($n->getCollectionOfObjectValues([IdentityProviderBase::class, 'createFromDiscriminatorValue'])), 'onPremisesSynchronization' => fn(ParseNode $n) => $o->setOnPremisesSynchronization($n->getCollectionOfObjectValues([OnPremisesDirectorySynchronization::class, 'createFromDiscriminatorValue'])), + 'subscriptions' => fn(ParseNode $n) => $o->setSubscriptions($n->getCollectionOfObjectValues([CompanySubscription::class, 'createFromDiscriminatorValue'])), ]); } @@ -140,6 +141,20 @@ public function getOnPremisesSynchronization(): ?array { throw new \UnexpectedValueException("Invalid type found in backing store for 'onPremisesSynchronization'"); } + /** + * Gets the subscriptions property value. The subscriptions property + * @return array|null + */ + public function getSubscriptions(): ?array { + $val = $this->getBackingStore()->get('subscriptions'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, CompanySubscription::class); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'subscriptions'"); + } + /** * Serializes information the current object * @param SerializationWriter $writer Serialization writer to use to serialize this model @@ -153,6 +168,7 @@ public function serialize(SerializationWriter $writer): void { $writer->writeCollectionOfObjectValues('deviceLocalCredentials', $this->getDeviceLocalCredentials()); $writer->writeCollectionOfObjectValues('federationConfigurations', $this->getFederationConfigurations()); $writer->writeCollectionOfObjectValues('onPremisesSynchronization', $this->getOnPremisesSynchronization()); + $writer->writeCollectionOfObjectValues('subscriptions', $this->getSubscriptions()); } /** @@ -211,4 +227,12 @@ public function setOnPremisesSynchronization(?array $value): void { $this->getBackingStore()->set('onPremisesSynchronization', $value); } + /** + * Sets the subscriptions property value. The subscriptions property + * @param array|null $value Value to set for the subscriptions property. + */ + public function setSubscriptions(?array $value): void { + $this->getBackingStore()->set('subscriptions', $value); + } + } diff --git a/src/Generated/Models/DirectoryObject.php b/src/Generated/Models/DirectoryObject.php index 3745d3a8947..d02c190b5f6 100644 --- a/src/Generated/Models/DirectoryObject.php +++ b/src/Generated/Models/DirectoryObject.php @@ -45,6 +45,7 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Direc case '#microsoft.graph.groupSettingTemplate': return new GroupSettingTemplate(); case '#microsoft.graph.homeRealmDiscoveryPolicy': return new HomeRealmDiscoveryPolicy(); case '#microsoft.graph.identitySecurityDefaultsEnforcementPolicy': return new IdentitySecurityDefaultsEnforcementPolicy(); + case '#microsoft.graph.multiTenantOrganizationMember': return new MultiTenantOrganizationMember(); case '#microsoft.graph.organization': return new Organization(); case '#microsoft.graph.orgContact': return new OrgContact(); case '#microsoft.graph.permissionGrantPolicy': return new PermissionGrantPolicy(); diff --git a/src/Generated/Models/Domain.php b/src/Generated/Models/Domain.php index d5c46a44592..2d1475d5298 100644 --- a/src/Generated/Models/Domain.php +++ b/src/Generated/Models/Domain.php @@ -26,7 +26,7 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Domai } /** - * Gets the authenticationType property value. Indicates the configured authentication type for the domain. The value is either Managed or Federated. Managed indicates a cloud managed domain where Microsoft Entra ID performs user authentication. Federated indicates authentication is federated with an identity provider such as the tenant's on-premises Active Directory via Active Directory Federation Services. Not nullable. + * Gets the authenticationType property value. Indicates the configured authentication type for the domain. The value is either Managed or Federated. Managed indicates a cloud managed domain where Microsoft Entra ID performs user authentication. Federated indicates authentication is federated with an identity provider such as the tenant's on-premises Active Directory via Active Directory Federation Services. Not nullable. To update this property in delegated scenarios, the calling app must be assigned the Directory.AccessAsUser.All delegated permission. * @return string|null */ public function getAuthenticationType(): ?string { @@ -50,7 +50,7 @@ public function getAvailabilityStatus(): ?string { } /** - * Gets the domainNameReferences property value. The objects such as users and groups that reference the domain ID. Read-only, Nullable. Supports $expand and $filter by the OData type of objects returned. For example /domains/{domainId}/domainNameReferences/microsoft.graph.user and /domains/{domainId}/domainNameReferences/microsoft.graph.group. + * Gets the domainNameReferences property value. The objects such as users and groups that reference the domain ID. Read-only, Nullable. Supports $expand and $filter by the OData type of objects returned. For example, /domains/{domainId}/domainNameReferences/microsoft.graph.user and /domains/{domainId}/domainNameReferences/microsoft.graph.group. * @return array|null */ public function getDomainNameReferences(): ?array { @@ -112,7 +112,7 @@ public function getFieldDeserializers(): array { } /** - * Gets the isAdminManaged property value. The value of the property is false if the DNS record management of the domain has been delegated to Microsoft 365. Otherwise, the value is true. Not nullable + * Gets the isAdminManaged property value. The value of the property is false if the DNS record management of the domain is delegated to Microsoft 365. Otherwise, the value is true. Not nullable * @return bool|null */ public function getIsAdminManaged(): ?bool { @@ -124,7 +124,7 @@ public function getIsAdminManaged(): ?bool { } /** - * Gets the isDefault property value. true if this is the default domain that is used for user creation. There is only one default domain per company. Not nullable + * Gets the isDefault property value. true if this is the default domain that is used for user creation. There's only one default domain per company. Not nullable * @return bool|null */ public function getIsDefault(): ?bool { @@ -136,7 +136,7 @@ public function getIsDefault(): ?bool { } /** - * Gets the isInitial property value. true if this is the initial domain created by Microsoft Online Services (contoso.com). There is only one initial domain per company. Not nullable + * Gets the isInitial property value. true if this is the initial domain created by Microsoft Online Services (contoso.com). There's only one initial domain per company. Not nullable * @return bool|null */ public function getIsInitial(): ?bool { @@ -196,7 +196,7 @@ public function getModel(): ?string { } /** - * Gets the passwordNotificationWindowInDays property value. Specifies the number of days before a user receives notification that their password will expire. If the property is not set, a default value of 14 days will be used. + * Gets the passwordNotificationWindowInDays property value. Specifies the number of days before a user receives notification that their password will expire. If the property isn't set, a default value of 14 days is used. * @return int|null */ public function getPasswordNotificationWindowInDays(): ?int { @@ -208,7 +208,7 @@ public function getPasswordNotificationWindowInDays(): ?int { } /** - * Gets the passwordValidityPeriodInDays property value. Specifies the length of time that a password is valid before it must be changed. If the property is not set, a default value of 90 days will be used. + * Gets the passwordValidityPeriodInDays property value. Specifies the length of time that a password is valid before it must be changed. If the property isn't set, a default value of 90 days is used. * @return int|null */ public function getPasswordValidityPeriodInDays(): ?int { @@ -246,7 +246,7 @@ public function getState(): ?DomainState { } /** - * Gets the supportedServices property value. The capabilities assigned to the domain. Can include 0, 1 or more of following values: Email, Sharepoint, EmailInternalRelayOnly, OfficeCommunicationsOnline, SharePointDefaultDomain, FullRedelegation, SharePointPublic, OrgIdAuthentication, Yammer, Intune. The values which you can add/remove using Graph API include: Email, OfficeCommunicationsOnline, Yammer. Not nullable. + * Gets the supportedServices property value. The capabilities assigned to the domain. Can include 0, 1 or more of following values: Email, Sharepoint, EmailInternalRelayOnly, OfficeCommunicationsOnline, SharePointDefaultDomain, FullRedelegation, SharePointPublic, OrgIdAuthentication, Yammer, Intune. The values that you can add or remove using the API include: Email, OfficeCommunicationsOnline, Yammer. Not nullable. * @return array|null */ public function getSupportedServices(): ?array { @@ -299,7 +299,7 @@ public function serialize(SerializationWriter $writer): void { } /** - * Sets the authenticationType property value. Indicates the configured authentication type for the domain. The value is either Managed or Federated. Managed indicates a cloud managed domain where Microsoft Entra ID performs user authentication. Federated indicates authentication is federated with an identity provider such as the tenant's on-premises Active Directory via Active Directory Federation Services. Not nullable. + * Sets the authenticationType property value. Indicates the configured authentication type for the domain. The value is either Managed or Federated. Managed indicates a cloud managed domain where Microsoft Entra ID performs user authentication. Federated indicates authentication is federated with an identity provider such as the tenant's on-premises Active Directory via Active Directory Federation Services. Not nullable. To update this property in delegated scenarios, the calling app must be assigned the Directory.AccessAsUser.All delegated permission. * @param string|null $value Value to set for the authenticationType property. */ public function setAuthenticationType(?string $value): void { @@ -315,7 +315,7 @@ public function setAvailabilityStatus(?string $value): void { } /** - * Sets the domainNameReferences property value. The objects such as users and groups that reference the domain ID. Read-only, Nullable. Supports $expand and $filter by the OData type of objects returned. For example /domains/{domainId}/domainNameReferences/microsoft.graph.user and /domains/{domainId}/domainNameReferences/microsoft.graph.group. + * Sets the domainNameReferences property value. The objects such as users and groups that reference the domain ID. Read-only, Nullable. Supports $expand and $filter by the OData type of objects returned. For example, /domains/{domainId}/domainNameReferences/microsoft.graph.user and /domains/{domainId}/domainNameReferences/microsoft.graph.group. * @param array|null $value Value to set for the domainNameReferences property. */ public function setDomainNameReferences(?array $value): void { @@ -331,7 +331,7 @@ public function setFederationConfiguration(?array $value): void { } /** - * Sets the isAdminManaged property value. The value of the property is false if the DNS record management of the domain has been delegated to Microsoft 365. Otherwise, the value is true. Not nullable + * Sets the isAdminManaged property value. The value of the property is false if the DNS record management of the domain is delegated to Microsoft 365. Otherwise, the value is true. Not nullable * @param bool|null $value Value to set for the isAdminManaged property. */ public function setIsAdminManaged(?bool $value): void { @@ -339,7 +339,7 @@ public function setIsAdminManaged(?bool $value): void { } /** - * Sets the isDefault property value. true if this is the default domain that is used for user creation. There is only one default domain per company. Not nullable + * Sets the isDefault property value. true if this is the default domain that is used for user creation. There's only one default domain per company. Not nullable * @param bool|null $value Value to set for the isDefault property. */ public function setIsDefault(?bool $value): void { @@ -347,7 +347,7 @@ public function setIsDefault(?bool $value): void { } /** - * Sets the isInitial property value. true if this is the initial domain created by Microsoft Online Services (contoso.com). There is only one initial domain per company. Not nullable + * Sets the isInitial property value. true if this is the initial domain created by Microsoft Online Services (contoso.com). There's only one initial domain per company. Not nullable * @param bool|null $value Value to set for the isInitial property. */ public function setIsInitial(?bool $value): void { @@ -387,7 +387,7 @@ public function setModel(?string $value): void { } /** - * Sets the passwordNotificationWindowInDays property value. Specifies the number of days before a user receives notification that their password will expire. If the property is not set, a default value of 14 days will be used. + * Sets the passwordNotificationWindowInDays property value. Specifies the number of days before a user receives notification that their password will expire. If the property isn't set, a default value of 14 days is used. * @param int|null $value Value to set for the passwordNotificationWindowInDays property. */ public function setPasswordNotificationWindowInDays(?int $value): void { @@ -395,7 +395,7 @@ public function setPasswordNotificationWindowInDays(?int $value): void { } /** - * Sets the passwordValidityPeriodInDays property value. Specifies the length of time that a password is valid before it must be changed. If the property is not set, a default value of 90 days will be used. + * Sets the passwordValidityPeriodInDays property value. Specifies the length of time that a password is valid before it must be changed. If the property isn't set, a default value of 90 days is used. * @param int|null $value Value to set for the passwordValidityPeriodInDays property. */ public function setPasswordValidityPeriodInDays(?int $value): void { @@ -419,7 +419,7 @@ public function setState(?DomainState $value): void { } /** - * Sets the supportedServices property value. The capabilities assigned to the domain. Can include 0, 1 or more of following values: Email, Sharepoint, EmailInternalRelayOnly, OfficeCommunicationsOnline, SharePointDefaultDomain, FullRedelegation, SharePointPublic, OrgIdAuthentication, Yammer, Intune. The values which you can add/remove using Graph API include: Email, OfficeCommunicationsOnline, Yammer. Not nullable. + * Sets the supportedServices property value. The capabilities assigned to the domain. Can include 0, 1 or more of following values: Email, Sharepoint, EmailInternalRelayOnly, OfficeCommunicationsOnline, SharePointDefaultDomain, FullRedelegation, SharePointPublic, OrgIdAuthentication, Yammer, Intune. The values that you can add or remove using the API include: Email, OfficeCommunicationsOnline, Yammer. Not nullable. * @param array|null $value Value to set for the supportedServices property. */ public function setSupportedServices(?array $value): void { diff --git a/src/Generated/Models/DomainDnsRecord.php b/src/Generated/Models/DomainDnsRecord.php index dd67815e6e2..ddc3a018de0 100644 --- a/src/Generated/Models/DomainDnsRecord.php +++ b/src/Generated/Models/DomainDnsRecord.php @@ -51,7 +51,7 @@ public function getFieldDeserializers(): array { } /** - * Gets the isOptional property value. If false, this record must be configured by the customer at the DNS host for Microsoft Online Services to operate correctly with the domain. + * Gets the isOptional property value. If false, the customer must configure this record at the DNS host for Microsoft Online Services to operate correctly with the domain. * @return bool|null */ public function getIsOptional(): ?bool { @@ -124,7 +124,7 @@ public function serialize(SerializationWriter $writer): void { } /** - * Sets the isOptional property value. If false, this record must be configured by the customer at the DNS host for Microsoft Online Services to operate correctly with the domain. + * Sets the isOptional property value. If false, the customer must configure this record at the DNS host for Microsoft Online Services to operate correctly with the domain. * @param bool|null $value Value to set for the isOptional property. */ public function setIsOptional(?bool $value): void { diff --git a/src/Generated/Models/DomainState.php b/src/Generated/Models/DomainState.php index b554d0cfd68..eab787596dc 100644 --- a/src/Generated/Models/DomainState.php +++ b/src/Generated/Models/DomainState.php @@ -95,7 +95,7 @@ public function getOdataType(): ?string { } /** - * Gets the operation property value. Type of asynchronous operation. The values can be ForceDelete or Verification + * Gets the operation property value. Type of asynchronous operation. The values can be ForceDelete or Verification. * @return string|null */ public function getOperation(): ?string { @@ -107,7 +107,7 @@ public function getOperation(): ?string { } /** - * Gets the status property value. Current status of the operation. Scheduled - Operation has been scheduled but has not started. InProgress - Task has started and is in progress. Failed - Operation has failed. + * Gets the status property value. Current status of the operation. Scheduled - Operation is scheduled but hasn't started. InProgress - Task is in progress. Failed - The operation failed. * @return string|null */ public function getStatus(): ?string { @@ -163,7 +163,7 @@ public function setOdataType(?string $value): void { } /** - * Sets the operation property value. Type of asynchronous operation. The values can be ForceDelete or Verification + * Sets the operation property value. Type of asynchronous operation. The values can be ForceDelete or Verification. * @param string|null $value Value to set for the operation property. */ public function setOperation(?string $value): void { @@ -171,7 +171,7 @@ public function setOperation(?string $value): void { } /** - * Sets the status property value. Current status of the operation. Scheduled - Operation has been scheduled but has not started. InProgress - Task has started and is in progress. Failed - Operation has failed. + * Sets the status property value. Current status of the operation. Scheduled - Operation is scheduled but hasn't started. InProgress - Task is in progress. Failed - The operation failed. * @param string|null $value Value to set for the status property. */ public function setStatus(?string $value): void { diff --git a/src/Generated/Models/Entity.php b/src/Generated/Models/Entity.php index b85f8e33bf5..53eb2cff108 100644 --- a/src/Generated/Models/Entity.php +++ b/src/Generated/Models/Entity.php @@ -227,6 +227,7 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Entit case '#microsoft.graph.authentication': return new Authentication(); case '#microsoft.graph.authenticationCombinationConfiguration': return new AuthenticationCombinationConfiguration(); case '#microsoft.graph.authenticationContextClassReference': return new AuthenticationContextClassReference(); + case '#microsoft.graph.authenticationEventListener': return new AuthenticationEventListener(); case '#microsoft.graph.authenticationFlowsPolicy': return new AuthenticationFlowsPolicy(); case '#microsoft.graph.authenticationMethod': return new AuthenticationMethod(); case '#microsoft.graph.authenticationMethodConfiguration': return new AuthenticationMethodConfiguration(); @@ -294,6 +295,7 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Entit case '#microsoft.graph.columnDefinition': return new ColumnDefinition(); case '#microsoft.graph.columnLink': return new ColumnLink(); case '#microsoft.graph.commsOperation': return new CommsOperation(); + case '#microsoft.graph.companySubscription': return new CompanySubscription(); case '#microsoft.graph.complianceManagementPartner': return new ComplianceManagementPartner(); case '#microsoft.graph.conditionalAccessPolicy': return new ConditionalAccessPolicy(); case '#microsoft.graph.conditionalAccessRoot': return new ConditionalAccessRoot(); @@ -310,6 +312,7 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Entit case '#microsoft.graph.countryNamedLocation': return new CountryNamedLocation(); case '#microsoft.graph.crossTenantAccessPolicy': return new CrossTenantAccessPolicy(); case '#microsoft.graph.crossTenantAccessPolicyConfigurationDefault': return new CrossTenantAccessPolicyConfigurationDefault(); + case '#microsoft.graph.customAuthenticationExtension': return new CustomAuthenticationExtension(); case '#microsoft.graph.customCalloutExtension': return new CustomCalloutExtension(); case '#microsoft.graph.customExtensionStageSetting': return new CustomExtensionStageSetting(); case '#microsoft.graph.customSecurityAttributeDefinition': return new CustomSecurityAttributeDefinition(); @@ -576,6 +579,11 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Entit case '#microsoft.graph.mobileContainedApp': return new MobileContainedApp(); case '#microsoft.graph.mobileLobApp': return new MobileLobApp(); case '#microsoft.graph.mobileThreatDefenseConnector': return new MobileThreatDefenseConnector(); + case '#microsoft.graph.multiTenantOrganization': return new MultiTenantOrganization(); + case '#microsoft.graph.multiTenantOrganizationIdentitySyncPolicyTemplate': return new MultiTenantOrganizationIdentitySyncPolicyTemplate(); + case '#microsoft.graph.multiTenantOrganizationJoinRequestRecord': return new MultiTenantOrganizationJoinRequestRecord(); + case '#microsoft.graph.multiTenantOrganizationMember': return new MultiTenantOrganizationMember(); + case '#microsoft.graph.multiTenantOrganizationPartnerConfigurationTemplate': return new MultiTenantOrganizationPartnerConfigurationTemplate(); case '#microsoft.graph.multiValueLegacyExtendedProperty': return new MultiValueLegacyExtendedProperty(); case '#microsoft.graph.muteParticipantOperation': return new MuteParticipantOperation(); case '#microsoft.graph.namedLocation': return new NamedLocation(); @@ -596,6 +604,8 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Entit case '#microsoft.graph.onlineMeetingBase': return new OnlineMeetingBase(); case '#microsoft.graph.onPremisesConditionalAccessSettings': return new OnPremisesConditionalAccessSettings(); case '#microsoft.graph.onPremisesDirectorySynchronization': return new OnPremisesDirectorySynchronization(); + case '#microsoft.graph.onTokenIssuanceStartCustomExtension': return new OnTokenIssuanceStartCustomExtension(); + case '#microsoft.graph.onTokenIssuanceStartListener': return new OnTokenIssuanceStartListener(); case '#microsoft.graph.openShift': return new OpenShift(); case '#microsoft.graph.openShiftChangeRequest': return new OpenShiftChangeRequest(); case '#microsoft.graph.openTypeExtension': return new OpenTypeExtension(); @@ -647,6 +657,7 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Entit case '#microsoft.graph.playPromptOperation': return new PlayPromptOperation(); case '#microsoft.graph.policyBase': return new PolicyBase(); case '#microsoft.graph.policyRoot': return new PolicyRoot(); + case '#microsoft.graph.policyTemplate': return new PolicyTemplate(); case '#microsoft.graph.post': return new Post(); case '#microsoft.graph.presence': return new Presence(); case '#microsoft.graph.printConnector': return new PrintConnector(); diff --git a/src/Generated/Models/HttpRequestEndpoint.php b/src/Generated/Models/HttpRequestEndpoint.php new file mode 100644 index 00000000000..1165d368f82 --- /dev/null +++ b/src/Generated/Models/HttpRequestEndpoint.php @@ -0,0 +1,68 @@ +setOdataType('#microsoft.graph.httpRequestEndpoint'); + } + + /** + * 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 HttpRequestEndpoint + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): HttpRequestEndpoint { + return new HttpRequestEndpoint(); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'targetUrl' => fn(ParseNode $n) => $o->setTargetUrl($n->getStringValue()), + ]); + } + + /** + * Gets the targetUrl property value. The HTTP endpoint that a custom extension calls. + * @return string|null + */ + public function getTargetUrl(): ?string { + $val = $this->getBackingStore()->get('targetUrl'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'targetUrl'"); + } + + /** + * 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->writeStringValue('targetUrl', $this->getTargetUrl()); + } + + /** + * Sets the targetUrl property value. The HTTP endpoint that a custom extension calls. + * @param string|null $value Value to set for the targetUrl property. + */ + public function setTargetUrl(?string $value): void { + $this->getBackingStore()->set('targetUrl', $value); + } + +} diff --git a/src/Generated/Models/IdentityContainer.php b/src/Generated/Models/IdentityContainer.php index 1d8156cb2ce..43c86017613 100644 --- a/src/Generated/Models/IdentityContainer.php +++ b/src/Generated/Models/IdentityContainer.php @@ -39,6 +39,20 @@ public function getApiConnectors(): ?array { throw new \UnexpectedValueException("Invalid type found in backing store for 'apiConnectors'"); } + /** + * Gets the authenticationEventListeners property value. Represents listeners for custom authentication extension events in Azure AD for workforce and customers. + * @return array|null + */ + public function getAuthenticationEventListeners(): ?array { + $val = $this->getBackingStore()->get('authenticationEventListeners'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, AuthenticationEventListener::class); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'authenticationEventListeners'"); + } + /** * Gets the b2xUserFlows property value. Represents entry point for B2X/self-service sign-up identity userflows. * @return array|null @@ -65,6 +79,20 @@ public function getConditionalAccess(): ?ConditionalAccessRoot { throw new \UnexpectedValueException("Invalid type found in backing store for 'conditionalAccess'"); } + /** + * Gets the customAuthenticationExtensions property value. Represents custom extensions to authentication flows in Azure AD for workforce and customers. + * @return array|null + */ + public function getCustomAuthenticationExtensions(): ?array { + $val = $this->getBackingStore()->get('customAuthenticationExtensions'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, CustomAuthenticationExtension::class); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'customAuthenticationExtensions'"); + } + /** * The deserialization information for the current model * @return array @@ -73,8 +101,10 @@ public function getFieldDeserializers(): array { $o = $this; return array_merge(parent::getFieldDeserializers(), [ 'apiConnectors' => fn(ParseNode $n) => $o->setApiConnectors($n->getCollectionOfObjectValues([IdentityApiConnector::class, 'createFromDiscriminatorValue'])), + 'authenticationEventListeners' => fn(ParseNode $n) => $o->setAuthenticationEventListeners($n->getCollectionOfObjectValues([AuthenticationEventListener::class, 'createFromDiscriminatorValue'])), 'b2xUserFlows' => fn(ParseNode $n) => $o->setB2xUserFlows($n->getCollectionOfObjectValues([B2xIdentityUserFlow::class, 'createFromDiscriminatorValue'])), 'conditionalAccess' => fn(ParseNode $n) => $o->setConditionalAccess($n->getObjectValue([ConditionalAccessRoot::class, 'createFromDiscriminatorValue'])), + 'customAuthenticationExtensions' => fn(ParseNode $n) => $o->setCustomAuthenticationExtensions($n->getCollectionOfObjectValues([CustomAuthenticationExtension::class, 'createFromDiscriminatorValue'])), 'identityProviders' => fn(ParseNode $n) => $o->setIdentityProviders($n->getCollectionOfObjectValues([IdentityProviderBase::class, 'createFromDiscriminatorValue'])), 'userFlowAttributes' => fn(ParseNode $n) => $o->setUserFlowAttributes($n->getCollectionOfObjectValues([IdentityUserFlowAttribute::class, 'createFromDiscriminatorValue'])), ]); @@ -115,8 +145,10 @@ public function getUserFlowAttributes(): ?array { public function serialize(SerializationWriter $writer): void { parent::serialize($writer); $writer->writeCollectionOfObjectValues('apiConnectors', $this->getApiConnectors()); + $writer->writeCollectionOfObjectValues('authenticationEventListeners', $this->getAuthenticationEventListeners()); $writer->writeCollectionOfObjectValues('b2xUserFlows', $this->getB2xUserFlows()); $writer->writeObjectValue('conditionalAccess', $this->getConditionalAccess()); + $writer->writeCollectionOfObjectValues('customAuthenticationExtensions', $this->getCustomAuthenticationExtensions()); $writer->writeCollectionOfObjectValues('identityProviders', $this->getIdentityProviders()); $writer->writeCollectionOfObjectValues('userFlowAttributes', $this->getUserFlowAttributes()); } @@ -129,6 +161,14 @@ public function setApiConnectors(?array $value): void { $this->getBackingStore()->set('apiConnectors', $value); } + /** + * Sets the authenticationEventListeners property value. Represents listeners for custom authentication extension events in Azure AD for workforce and customers. + * @param array|null $value Value to set for the authenticationEventListeners property. + */ + public function setAuthenticationEventListeners(?array $value): void { + $this->getBackingStore()->set('authenticationEventListeners', $value); + } + /** * Sets the b2xUserFlows property value. Represents entry point for B2X/self-service sign-up identity userflows. * @param array|null $value Value to set for the b2xUserFlows property. @@ -145,6 +185,14 @@ public function setConditionalAccess(?ConditionalAccessRoot $value): void { $this->getBackingStore()->set('conditionalAccess', $value); } + /** + * Sets the customAuthenticationExtensions property value. Represents custom extensions to authentication flows in Azure AD for workforce and customers. + * @param array|null $value Value to set for the customAuthenticationExtensions property. + */ + public function setCustomAuthenticationExtensions(?array $value): void { + $this->getBackingStore()->set('customAuthenticationExtensions', $value); + } + /** * Sets the identityProviders property value. The identityProviders property * @param array|null $value Value to set for the identityProviders property. diff --git a/src/Generated/Models/LearningContent.php b/src/Generated/Models/LearningContent.php index 83594e9bc4a..c6820d70908 100644 --- a/src/Generated/Models/LearningContent.php +++ b/src/Generated/Models/LearningContent.php @@ -238,7 +238,7 @@ public function getLastModifiedDateTime(): ?DateTime { } /** - * Gets the level property value. The level property + * Gets the level property value. The difficulty level of the learning content. Possible values are: Beginner, Intermediate, Advanced, unknownFutureValue. Optional. * @return Level|null */ public function getLevel(): ?Level { @@ -443,7 +443,7 @@ public function setLastModifiedDateTime(?DateTime $value): void { } /** - * Sets the level property value. The level property + * Sets the level property value. The difficulty level of the learning content. Possible values are: Beginner, Intermediate, Advanced, unknownFutureValue. Optional. * @param Level|null $value Value to set for the level property. */ public function setLevel(?Level $value): void { diff --git a/src/Generated/Models/MultiTenantOrganization.php b/src/Generated/Models/MultiTenantOrganization.php new file mode 100644 index 00000000000..1c54da13f4c --- /dev/null +++ b/src/Generated/Models/MultiTenantOrganization.php @@ -0,0 +1,181 @@ +getBackingStore()->get('createdDateTime'); + if (is_null($val) || $val instanceof DateTime) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'createdDateTime'"); + } + + /** + * Gets the description property value. Description of the multitenant organization. + * @return string|null + */ + public function getDescription(): ?string { + $val = $this->getBackingStore()->get('description'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'description'"); + } + + /** + * Gets the displayName property value. Display name of the multitenant organization. + * @return string|null + */ + public function getDisplayName(): ?string { + $val = $this->getBackingStore()->get('displayName'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'displayName'"); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'createdDateTime' => fn(ParseNode $n) => $o->setCreatedDateTime($n->getDateTimeValue()), + 'description' => fn(ParseNode $n) => $o->setDescription($n->getStringValue()), + 'displayName' => fn(ParseNode $n) => $o->setDisplayName($n->getStringValue()), + 'joinRequest' => fn(ParseNode $n) => $o->setJoinRequest($n->getObjectValue([MultiTenantOrganizationJoinRequestRecord::class, 'createFromDiscriminatorValue'])), + 'state' => fn(ParseNode $n) => $o->setState($n->getEnumValue(MultiTenantOrganizationState::class)), + 'tenants' => fn(ParseNode $n) => $o->setTenants($n->getCollectionOfObjectValues([MultiTenantOrganizationMember::class, 'createFromDiscriminatorValue'])), + ]); + } + + /** + * Gets the joinRequest property value. Defines the status of a tenant joining a multitenant organization. + * @return MultiTenantOrganizationJoinRequestRecord|null + */ + public function getJoinRequest(): ?MultiTenantOrganizationJoinRequestRecord { + $val = $this->getBackingStore()->get('joinRequest'); + if (is_null($val) || $val instanceof MultiTenantOrganizationJoinRequestRecord) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'joinRequest'"); + } + + /** + * Gets the state property value. State of the multitenant organization. The possible values are: active, inactive, unknownFutureValue. active indicates the multitenant organization is created. inactive indicates the multitenant organization isn't created. Read-only. + * @return MultiTenantOrganizationState|null + */ + public function getState(): ?MultiTenantOrganizationState { + $val = $this->getBackingStore()->get('state'); + if (is_null($val) || $val instanceof MultiTenantOrganizationState) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'state'"); + } + + /** + * Gets the tenants property value. Defines tenants added to a multitenant organization. + * @return array|null + */ + public function getTenants(): ?array { + $val = $this->getBackingStore()->get('tenants'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, MultiTenantOrganizationMember::class); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'tenants'"); + } + + /** + * 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->writeDateTimeValue('createdDateTime', $this->getCreatedDateTime()); + $writer->writeStringValue('description', $this->getDescription()); + $writer->writeStringValue('displayName', $this->getDisplayName()); + $writer->writeObjectValue('joinRequest', $this->getJoinRequest()); + $writer->writeEnumValue('state', $this->getState()); + $writer->writeCollectionOfObjectValues('tenants', $this->getTenants()); + } + + /** + * Sets the createdDateTime property value. Date when multitenant organization was created. Read-only. + * @param DateTime|null $value Value to set for the createdDateTime property. + */ + public function setCreatedDateTime(?DateTime $value): void { + $this->getBackingStore()->set('createdDateTime', $value); + } + + /** + * Sets the description property value. Description of the multitenant organization. + * @param string|null $value Value to set for the description property. + */ + public function setDescription(?string $value): void { + $this->getBackingStore()->set('description', $value); + } + + /** + * Sets the displayName property value. Display name of the multitenant organization. + * @param string|null $value Value to set for the displayName property. + */ + public function setDisplayName(?string $value): void { + $this->getBackingStore()->set('displayName', $value); + } + + /** + * Sets the joinRequest property value. Defines the status of a tenant joining a multitenant organization. + * @param MultiTenantOrganizationJoinRequestRecord|null $value Value to set for the joinRequest property. + */ + public function setJoinRequest(?MultiTenantOrganizationJoinRequestRecord $value): void { + $this->getBackingStore()->set('joinRequest', $value); + } + + /** + * Sets the state property value. State of the multitenant organization. The possible values are: active, inactive, unknownFutureValue. active indicates the multitenant organization is created. inactive indicates the multitenant organization isn't created. Read-only. + * @param MultiTenantOrganizationState|null $value Value to set for the state property. + */ + public function setState(?MultiTenantOrganizationState $value): void { + $this->getBackingStore()->set('state', $value); + } + + /** + * Sets the tenants property value. Defines tenants added to a multitenant organization. + * @param array|null $value Value to set for the tenants property. + */ + public function setTenants(?array $value): void { + $this->getBackingStore()->set('tenants', $value); + } + +} diff --git a/src/Generated/Models/MultiTenantOrganizationIdentitySyncPolicyTemplate.php b/src/Generated/Models/MultiTenantOrganizationIdentitySyncPolicyTemplate.php new file mode 100644 index 00000000000..0d56ff22c7f --- /dev/null +++ b/src/Generated/Models/MultiTenantOrganizationIdentitySyncPolicyTemplate.php @@ -0,0 +1,89 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'templateApplicationLevel' => fn(ParseNode $n) => $o->setTemplateApplicationLevel($n->getEnumValue(TemplateApplicationLevel::class)), + 'userSyncInbound' => fn(ParseNode $n) => $o->setUserSyncInbound($n->getObjectValue([CrossTenantUserSyncInbound::class, 'createFromDiscriminatorValue'])), + ]); + } + + /** + * Gets the templateApplicationLevel property value. The templateApplicationLevel property + * @return TemplateApplicationLevel|null + */ + public function getTemplateApplicationLevel(): ?TemplateApplicationLevel { + $val = $this->getBackingStore()->get('templateApplicationLevel'); + if (is_null($val) || $val instanceof TemplateApplicationLevel) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'templateApplicationLevel'"); + } + + /** + * Gets the userSyncInbound property value. Defines whether users can be synchronized from the partner tenant. + * @return CrossTenantUserSyncInbound|null + */ + public function getUserSyncInbound(): ?CrossTenantUserSyncInbound { + $val = $this->getBackingStore()->get('userSyncInbound'); + if (is_null($val) || $val instanceof CrossTenantUserSyncInbound) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'userSyncInbound'"); + } + + /** + * 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->writeEnumValue('templateApplicationLevel', $this->getTemplateApplicationLevel()); + $writer->writeObjectValue('userSyncInbound', $this->getUserSyncInbound()); + } + + /** + * Sets the templateApplicationLevel property value. The templateApplicationLevel property + * @param TemplateApplicationLevel|null $value Value to set for the templateApplicationLevel property. + */ + public function setTemplateApplicationLevel(?TemplateApplicationLevel $value): void { + $this->getBackingStore()->set('templateApplicationLevel', $value); + } + + /** + * Sets the userSyncInbound property value. Defines whether users can be synchronized from the partner tenant. + * @param CrossTenantUserSyncInbound|null $value Value to set for the userSyncInbound property. + */ + public function setUserSyncInbound(?CrossTenantUserSyncInbound $value): void { + $this->getBackingStore()->set('userSyncInbound', $value); + } + +} diff --git a/src/Generated/Models/MultiTenantOrganizationJoinRequestRecord.php b/src/Generated/Models/MultiTenantOrganizationJoinRequestRecord.php new file mode 100644 index 00000000000..8b9416a17f0 --- /dev/null +++ b/src/Generated/Models/MultiTenantOrganizationJoinRequestRecord.php @@ -0,0 +1,133 @@ +getBackingStore()->get('addedByTenantId'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'addedByTenantId'"); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'addedByTenantId' => fn(ParseNode $n) => $o->setAddedByTenantId($n->getStringValue()), + 'memberState' => fn(ParseNode $n) => $o->setMemberState($n->getEnumValue(MultiTenantOrganizationMemberState::class)), + 'role' => fn(ParseNode $n) => $o->setRole($n->getEnumValue(MultiTenantOrganizationMemberRole::class)), + 'transitionDetails' => fn(ParseNode $n) => $o->setTransitionDetails($n->getObjectValue([MultiTenantOrganizationJoinRequestTransitionDetails::class, 'createFromDiscriminatorValue'])), + ]); + } + + /** + * Gets the memberState property value. State of the tenant in the multitenant organization. The possible values are: pending, active, removed, unknownFutureValue. Tenants in the pending state must join the multitenant organization to participate in the multitenant organization. Tenants in the active state can participate in the multitenant organization. Tenants in the removed state are in the process of being removed from the multitenant organization. Read-only. + * @return MultiTenantOrganizationMemberState|null + */ + public function getMemberState(): ?MultiTenantOrganizationMemberState { + $val = $this->getBackingStore()->get('memberState'); + if (is_null($val) || $val instanceof MultiTenantOrganizationMemberState) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'memberState'"); + } + + /** + * Gets the role property value. Role of the tenant in the multitenant organization. The possible values are: owner, member (default), unknownFutureValue. Tenants with the owner role can manage the multitenant organization. There can be multiple tenants with the owner role in a multitenant organization. Tenants with the member role can participate in a multitenant organization. + * @return MultiTenantOrganizationMemberRole|null + */ + public function getRole(): ?MultiTenantOrganizationMemberRole { + $val = $this->getBackingStore()->get('role'); + if (is_null($val) || $val instanceof MultiTenantOrganizationMemberRole) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'role'"); + } + + /** + * Gets the transitionDetails property value. Details of the processing status for a tenant joining a multitenant organization. Read-only. + * @return MultiTenantOrganizationJoinRequestTransitionDetails|null + */ + public function getTransitionDetails(): ?MultiTenantOrganizationJoinRequestTransitionDetails { + $val = $this->getBackingStore()->get('transitionDetails'); + if (is_null($val) || $val instanceof MultiTenantOrganizationJoinRequestTransitionDetails) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'transitionDetails'"); + } + + /** + * 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->writeStringValue('addedByTenantId', $this->getAddedByTenantId()); + $writer->writeEnumValue('memberState', $this->getMemberState()); + $writer->writeEnumValue('role', $this->getRole()); + $writer->writeObjectValue('transitionDetails', $this->getTransitionDetails()); + } + + /** + * Sets the addedByTenantId property value. Tenant ID of the Microsoft Entra tenant that added a tenant to the multitenant organization. To reset a failed join request, set addedByTenantId to 00000000-0000-0000-0000-000000000000. Required. + * @param string|null $value Value to set for the addedByTenantId property. + */ + public function setAddedByTenantId(?string $value): void { + $this->getBackingStore()->set('addedByTenantId', $value); + } + + /** + * Sets the memberState property value. State of the tenant in the multitenant organization. The possible values are: pending, active, removed, unknownFutureValue. Tenants in the pending state must join the multitenant organization to participate in the multitenant organization. Tenants in the active state can participate in the multitenant organization. Tenants in the removed state are in the process of being removed from the multitenant organization. Read-only. + * @param MultiTenantOrganizationMemberState|null $value Value to set for the memberState property. + */ + public function setMemberState(?MultiTenantOrganizationMemberState $value): void { + $this->getBackingStore()->set('memberState', $value); + } + + /** + * Sets the role property value. Role of the tenant in the multitenant organization. The possible values are: owner, member (default), unknownFutureValue. Tenants with the owner role can manage the multitenant organization. There can be multiple tenants with the owner role in a multitenant organization. Tenants with the member role can participate in a multitenant organization. + * @param MultiTenantOrganizationMemberRole|null $value Value to set for the role property. + */ + public function setRole(?MultiTenantOrganizationMemberRole $value): void { + $this->getBackingStore()->set('role', $value); + } + + /** + * Sets the transitionDetails property value. Details of the processing status for a tenant joining a multitenant organization. Read-only. + * @param MultiTenantOrganizationJoinRequestTransitionDetails|null $value Value to set for the transitionDetails property. + */ + public function setTransitionDetails(?MultiTenantOrganizationJoinRequestTransitionDetails $value): void { + $this->getBackingStore()->set('transitionDetails', $value); + } + +} diff --git a/src/Generated/Models/MultiTenantOrganizationJoinRequestTransitionDetails.php b/src/Generated/Models/MultiTenantOrganizationJoinRequestTransitionDetails.php new file mode 100644 index 00000000000..a333a4b488f --- /dev/null +++ b/src/Generated/Models/MultiTenantOrganizationJoinRequestTransitionDetails.php @@ -0,0 +1,180 @@ +backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); + $this->setAdditionalData([]); + } + + /** + * 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 MultiTenantOrganizationJoinRequestTransitionDetails + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): MultiTenantOrganizationJoinRequestTransitionDetails { + return new MultiTenantOrganizationJoinRequestTransitionDetails(); + } + + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return array|null + */ + public function getAdditionalData(): ?array { + $val = $this->getBackingStore()->get('additionalData'); + if (is_null($val) || is_array($val)) { + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'additionalData'"); + } + + /** + * Gets the BackingStore property value. Stores model information. + * @return BackingStore + */ + public function getBackingStore(): BackingStore { + return $this->backingStore; + } + + /** + * Gets the desiredMemberState property value. State of the tenant in the multitenant organization currently being processed. The possible values are: pending, active, removed, unknownFutureValue. Read-only. + * @return MultiTenantOrganizationMemberState|null + */ + public function getDesiredMemberState(): ?MultiTenantOrganizationMemberState { + $val = $this->getBackingStore()->get('desiredMemberState'); + if (is_null($val) || $val instanceof MultiTenantOrganizationMemberState) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'desiredMemberState'"); + } + + /** + * Gets the details property value. Details that explain the processing status if any. Read-only. + * @return string|null + */ + public function getDetails(): ?string { + $val = $this->getBackingStore()->get('details'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'details'"); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return [ + 'desiredMemberState' => fn(ParseNode $n) => $o->setDesiredMemberState($n->getEnumValue(MultiTenantOrganizationMemberState::class)), + 'details' => fn(ParseNode $n) => $o->setDetails($n->getStringValue()), + '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()), + 'status' => fn(ParseNode $n) => $o->setStatus($n->getEnumValue(MultiTenantOrganizationMemberProcessingStatus::class)), + ]; + } + + /** + * Gets the @odata.type property value. The OdataType property + * @return string|null + */ + public function getOdataType(): ?string { + $val = $this->getBackingStore()->get('odataType'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'odataType'"); + } + + /** + * Gets the status property value. Processing state of the asynchronous job. The possible values are: notStarted, running, succeeded, failed, unknownFutureValue. Read-only. + * @return MultiTenantOrganizationMemberProcessingStatus|null + */ + public function getStatus(): ?MultiTenantOrganizationMemberProcessingStatus { + $val = $this->getBackingStore()->get('status'); + if (is_null($val) || $val instanceof MultiTenantOrganizationMemberProcessingStatus) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'status'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + $writer->writeEnumValue('desiredMemberState', $this->getDesiredMemberState()); + $writer->writeStringValue('details', $this->getDetails()); + $writer->writeStringValue('@odata.type', $this->getOdataType()); + $writer->writeEnumValue('status', $this->getStatus()); + $writer->writeAdditionalData($this->getAdditionalData()); + } + + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void { + $this->getBackingStore()->set('additionalData', $value); + } + + /** + * Sets the BackingStore property value. Stores model information. + * @param BackingStore $value Value to set for the BackingStore property. + */ + public function setBackingStore(BackingStore $value): void { + $this->backingStore = $value; + } + + /** + * Sets the desiredMemberState property value. State of the tenant in the multitenant organization currently being processed. The possible values are: pending, active, removed, unknownFutureValue. Read-only. + * @param MultiTenantOrganizationMemberState|null $value Value to set for the desiredMemberState property. + */ + public function setDesiredMemberState(?MultiTenantOrganizationMemberState $value): void { + $this->getBackingStore()->set('desiredMemberState', $value); + } + + /** + * Sets the details property value. Details that explain the processing status if any. Read-only. + * @param string|null $value Value to set for the details property. + */ + public function setDetails(?string $value): void { + $this->getBackingStore()->set('details', $value); + } + + /** + * Sets the @odata.type property value. The OdataType property + * @param string|null $value Value to set for the @odata.type property. + */ + public function setOdataType(?string $value): void { + $this->getBackingStore()->set('odataType', $value); + } + + /** + * Sets the status property value. Processing state of the asynchronous job. The possible values are: notStarted, running, succeeded, failed, unknownFutureValue. Read-only. + * @param MultiTenantOrganizationMemberProcessingStatus|null $value Value to set for the status property. + */ + public function setStatus(?MultiTenantOrganizationMemberProcessingStatus $value): void { + $this->getBackingStore()->set('status', $value); + } + +} diff --git a/src/Generated/Models/MultiTenantOrganizationMember.php b/src/Generated/Models/MultiTenantOrganizationMember.php new file mode 100644 index 00000000000..d35bece2480 --- /dev/null +++ b/src/Generated/Models/MultiTenantOrganizationMember.php @@ -0,0 +1,223 @@ +setOdataType('#microsoft.graph.multiTenantOrganizationMember'); + } + + /** + * 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 MultiTenantOrganizationMember + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): MultiTenantOrganizationMember { + return new MultiTenantOrganizationMember(); + } + + /** + * Gets the addedByTenantId property value. Tenant ID of the tenant that added the tenant to the multitenant organization. Read-only. + * @return string|null + */ + public function getAddedByTenantId(): ?string { + $val = $this->getBackingStore()->get('addedByTenantId'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'addedByTenantId'"); + } + + /** + * Gets the addedDateTime property value. Date and time when the tenant was added to the multitenant organization. Read-only. + * @return DateTime|null + */ + public function getAddedDateTime(): ?DateTime { + $val = $this->getBackingStore()->get('addedDateTime'); + if (is_null($val) || $val instanceof DateTime) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'addedDateTime'"); + } + + /** + * Gets the displayName property value. Display name of the tenant added to the multitenant organization. + * @return string|null + */ + public function getDisplayName(): ?string { + $val = $this->getBackingStore()->get('displayName'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'displayName'"); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'addedByTenantId' => fn(ParseNode $n) => $o->setAddedByTenantId($n->getStringValue()), + 'addedDateTime' => fn(ParseNode $n) => $o->setAddedDateTime($n->getDateTimeValue()), + 'displayName' => fn(ParseNode $n) => $o->setDisplayName($n->getStringValue()), + 'joinedDateTime' => fn(ParseNode $n) => $o->setJoinedDateTime($n->getDateTimeValue()), + 'role' => fn(ParseNode $n) => $o->setRole($n->getEnumValue(MultiTenantOrganizationMemberRole::class)), + 'state' => fn(ParseNode $n) => $o->setState($n->getEnumValue(MultiTenantOrganizationMemberState::class)), + 'tenantId' => fn(ParseNode $n) => $o->setTenantId($n->getStringValue()), + 'transitionDetails' => fn(ParseNode $n) => $o->setTransitionDetails($n->getObjectValue([MultiTenantOrganizationMemberTransitionDetails::class, 'createFromDiscriminatorValue'])), + ]); + } + + /** + * Gets the joinedDateTime property value. Date and time when the tenant joined the multitenant organization. Read-only. + * @return DateTime|null + */ + public function getJoinedDateTime(): ?DateTime { + $val = $this->getBackingStore()->get('joinedDateTime'); + if (is_null($val) || $val instanceof DateTime) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'joinedDateTime'"); + } + + /** + * Gets the role property value. Role of the tenant in the multitenant organization. The possible values are: owner, member (default), unknownFutureValue. Tenants with the owner role can manage the multitenant organization but tenants with the member role can only participate in a multitenant organization. There can be multiple tenants with the owner role in a multitenant organization. + * @return MultiTenantOrganizationMemberRole|null + */ + public function getRole(): ?MultiTenantOrganizationMemberRole { + $val = $this->getBackingStore()->get('role'); + if (is_null($val) || $val instanceof MultiTenantOrganizationMemberRole) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'role'"); + } + + /** + * Gets the state property value. State of the tenant in the multitenant organization. The possible values are: pending, active, removed, unknownFutureValue. Tenants in the pending state must join the multitenant organization to participate in the multitenant organization. Tenants in the active state can participate in the multitenant organization. Tenants in the removed state are in the process of being removed from the multitenant organization. Read-only. + * @return MultiTenantOrganizationMemberState|null + */ + public function getState(): ?MultiTenantOrganizationMemberState { + $val = $this->getBackingStore()->get('state'); + if (is_null($val) || $val instanceof MultiTenantOrganizationMemberState) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'state'"); + } + + /** + * Gets the tenantId property value. Tenant ID of the Microsoft Entra tenant added to the multitenant organization. Set at the time tenant is added.Supports $filter. Key. + * @return string|null + */ + public function getTenantId(): ?string { + $val = $this->getBackingStore()->get('tenantId'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'tenantId'"); + } + + /** + * Gets the transitionDetails property value. Details of the processing status for a tenant in a multitenant organization. Read-only. Nullable. + * @return MultiTenantOrganizationMemberTransitionDetails|null + */ + public function getTransitionDetails(): ?MultiTenantOrganizationMemberTransitionDetails { + $val = $this->getBackingStore()->get('transitionDetails'); + if (is_null($val) || $val instanceof MultiTenantOrganizationMemberTransitionDetails) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'transitionDetails'"); + } + + /** + * 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->writeStringValue('addedByTenantId', $this->getAddedByTenantId()); + $writer->writeDateTimeValue('addedDateTime', $this->getAddedDateTime()); + $writer->writeStringValue('displayName', $this->getDisplayName()); + $writer->writeDateTimeValue('joinedDateTime', $this->getJoinedDateTime()); + $writer->writeEnumValue('role', $this->getRole()); + $writer->writeEnumValue('state', $this->getState()); + $writer->writeStringValue('tenantId', $this->getTenantId()); + $writer->writeObjectValue('transitionDetails', $this->getTransitionDetails()); + } + + /** + * Sets the addedByTenantId property value. Tenant ID of the tenant that added the tenant to the multitenant organization. Read-only. + * @param string|null $value Value to set for the addedByTenantId property. + */ + public function setAddedByTenantId(?string $value): void { + $this->getBackingStore()->set('addedByTenantId', $value); + } + + /** + * Sets the addedDateTime property value. Date and time when the tenant was added to the multitenant organization. Read-only. + * @param DateTime|null $value Value to set for the addedDateTime property. + */ + public function setAddedDateTime(?DateTime $value): void { + $this->getBackingStore()->set('addedDateTime', $value); + } + + /** + * Sets the displayName property value. Display name of the tenant added to the multitenant organization. + * @param string|null $value Value to set for the displayName property. + */ + public function setDisplayName(?string $value): void { + $this->getBackingStore()->set('displayName', $value); + } + + /** + * Sets the joinedDateTime property value. Date and time when the tenant joined the multitenant organization. Read-only. + * @param DateTime|null $value Value to set for the joinedDateTime property. + */ + public function setJoinedDateTime(?DateTime $value): void { + $this->getBackingStore()->set('joinedDateTime', $value); + } + + /** + * Sets the role property value. Role of the tenant in the multitenant organization. The possible values are: owner, member (default), unknownFutureValue. Tenants with the owner role can manage the multitenant organization but tenants with the member role can only participate in a multitenant organization. There can be multiple tenants with the owner role in a multitenant organization. + * @param MultiTenantOrganizationMemberRole|null $value Value to set for the role property. + */ + public function setRole(?MultiTenantOrganizationMemberRole $value): void { + $this->getBackingStore()->set('role', $value); + } + + /** + * Sets the state property value. State of the tenant in the multitenant organization. The possible values are: pending, active, removed, unknownFutureValue. Tenants in the pending state must join the multitenant organization to participate in the multitenant organization. Tenants in the active state can participate in the multitenant organization. Tenants in the removed state are in the process of being removed from the multitenant organization. Read-only. + * @param MultiTenantOrganizationMemberState|null $value Value to set for the state property. + */ + public function setState(?MultiTenantOrganizationMemberState $value): void { + $this->getBackingStore()->set('state', $value); + } + + /** + * Sets the tenantId property value. Tenant ID of the Microsoft Entra tenant added to the multitenant organization. Set at the time tenant is added.Supports $filter. Key. + * @param string|null $value Value to set for the tenantId property. + */ + public function setTenantId(?string $value): void { + $this->getBackingStore()->set('tenantId', $value); + } + + /** + * Sets the transitionDetails property value. Details of the processing status for a tenant in a multitenant organization. Read-only. Nullable. + * @param MultiTenantOrganizationMemberTransitionDetails|null $value Value to set for the transitionDetails property. + */ + public function setTransitionDetails(?MultiTenantOrganizationMemberTransitionDetails $value): void { + $this->getBackingStore()->set('transitionDetails', $value); + } + +} diff --git a/src/Generated/Models/MultiTenantOrganizationMemberCollectionResponse.php b/src/Generated/Models/MultiTenantOrganizationMemberCollectionResponse.php new file mode 100644 index 00000000000..4fbc3c67fc3 --- /dev/null +++ b/src/Generated/Models/MultiTenantOrganizationMemberCollectionResponse.php @@ -0,0 +1,70 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([MultiTenantOrganizationMember::class, 'createFromDiscriminatorValue'])), + ]); + } + + /** + * Gets the value property value. The value property + * @return array|null + */ + public function getValue(): ?array { + $val = $this->getBackingStore()->get('value'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, MultiTenantOrganizationMember::class); + /** @var array|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|null $value Value to set for the value property. + */ + public function setValue(?array $value): void { + $this->getBackingStore()->set('value', $value); + } + +} diff --git a/src/Generated/Models/MultiTenantOrganizationMemberProcessingStatus.php b/src/Generated/Models/MultiTenantOrganizationMemberProcessingStatus.php new file mode 100644 index 00000000000..3c07f87aaf7 --- /dev/null +++ b/src/Generated/Models/MultiTenantOrganizationMemberProcessingStatus.php @@ -0,0 +1,13 @@ +backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); + $this->setAdditionalData([]); + } + + /** + * 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 MultiTenantOrganizationMemberTransitionDetails + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): MultiTenantOrganizationMemberTransitionDetails { + return new MultiTenantOrganizationMemberTransitionDetails(); + } + + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return array|null + */ + public function getAdditionalData(): ?array { + $val = $this->getBackingStore()->get('additionalData'); + if (is_null($val) || is_array($val)) { + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'additionalData'"); + } + + /** + * Gets the BackingStore property value. Stores model information. + * @return BackingStore + */ + public function getBackingStore(): BackingStore { + return $this->backingStore; + } + + /** + * Gets the desiredRole property value. Role of the tenant in the multitenant organization. The possible values are: owner, member, unknownFutureValue. + * @return MultiTenantOrganizationMemberRole|null + */ + public function getDesiredRole(): ?MultiTenantOrganizationMemberRole { + $val = $this->getBackingStore()->get('desiredRole'); + if (is_null($val) || $val instanceof MultiTenantOrganizationMemberRole) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'desiredRole'"); + } + + /** + * Gets the desiredState property value. State of the tenant in the multitenant organization currently being processed. The possible values are: pending, active, removed, unknownFutureValue. Read-only. + * @return MultiTenantOrganizationMemberState|null + */ + public function getDesiredState(): ?MultiTenantOrganizationMemberState { + $val = $this->getBackingStore()->get('desiredState'); + if (is_null($val) || $val instanceof MultiTenantOrganizationMemberState) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'desiredState'"); + } + + /** + * Gets the details property value. Details that explain the processing status if any. Read-only. + * @return string|null + */ + public function getDetails(): ?string { + $val = $this->getBackingStore()->get('details'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'details'"); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return [ + 'desiredRole' => fn(ParseNode $n) => $o->setDesiredRole($n->getEnumValue(MultiTenantOrganizationMemberRole::class)), + 'desiredState' => fn(ParseNode $n) => $o->setDesiredState($n->getEnumValue(MultiTenantOrganizationMemberState::class)), + 'details' => fn(ParseNode $n) => $o->setDetails($n->getStringValue()), + '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()), + 'status' => fn(ParseNode $n) => $o->setStatus($n->getEnumValue(MultiTenantOrganizationMemberProcessingStatus::class)), + ]; + } + + /** + * Gets the @odata.type property value. The OdataType property + * @return string|null + */ + public function getOdataType(): ?string { + $val = $this->getBackingStore()->get('odataType'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'odataType'"); + } + + /** + * Gets the status property value. Processing state of the asynchronous job. The possible values are: notStarted, running, succeeded, failed, unknownFutureValue. Read-only. + * @return MultiTenantOrganizationMemberProcessingStatus|null + */ + public function getStatus(): ?MultiTenantOrganizationMemberProcessingStatus { + $val = $this->getBackingStore()->get('status'); + if (is_null($val) || $val instanceof MultiTenantOrganizationMemberProcessingStatus) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'status'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + $writer->writeEnumValue('desiredRole', $this->getDesiredRole()); + $writer->writeEnumValue('desiredState', $this->getDesiredState()); + $writer->writeStringValue('details', $this->getDetails()); + $writer->writeStringValue('@odata.type', $this->getOdataType()); + $writer->writeEnumValue('status', $this->getStatus()); + $writer->writeAdditionalData($this->getAdditionalData()); + } + + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void { + $this->getBackingStore()->set('additionalData', $value); + } + + /** + * Sets the BackingStore property value. Stores model information. + * @param BackingStore $value Value to set for the BackingStore property. + */ + public function setBackingStore(BackingStore $value): void { + $this->backingStore = $value; + } + + /** + * Sets the desiredRole property value. Role of the tenant in the multitenant organization. The possible values are: owner, member, unknownFutureValue. + * @param MultiTenantOrganizationMemberRole|null $value Value to set for the desiredRole property. + */ + public function setDesiredRole(?MultiTenantOrganizationMemberRole $value): void { + $this->getBackingStore()->set('desiredRole', $value); + } + + /** + * Sets the desiredState property value. State of the tenant in the multitenant organization currently being processed. The possible values are: pending, active, removed, unknownFutureValue. Read-only. + * @param MultiTenantOrganizationMemberState|null $value Value to set for the desiredState property. + */ + public function setDesiredState(?MultiTenantOrganizationMemberState $value): void { + $this->getBackingStore()->set('desiredState', $value); + } + + /** + * Sets the details property value. Details that explain the processing status if any. Read-only. + * @param string|null $value Value to set for the details property. + */ + public function setDetails(?string $value): void { + $this->getBackingStore()->set('details', $value); + } + + /** + * Sets the @odata.type property value. The OdataType property + * @param string|null $value Value to set for the @odata.type property. + */ + public function setOdataType(?string $value): void { + $this->getBackingStore()->set('odataType', $value); + } + + /** + * Sets the status property value. Processing state of the asynchronous job. The possible values are: notStarted, running, succeeded, failed, unknownFutureValue. Read-only. + * @param MultiTenantOrganizationMemberProcessingStatus|null $value Value to set for the status property. + */ + public function setStatus(?MultiTenantOrganizationMemberProcessingStatus $value): void { + $this->getBackingStore()->set('status', $value); + } + +} diff --git a/src/Generated/Models/MultiTenantOrganizationPartnerConfigurationTemplate.php b/src/Generated/Models/MultiTenantOrganizationPartnerConfigurationTemplate.php new file mode 100644 index 00000000000..2d19072d969 --- /dev/null +++ b/src/Generated/Models/MultiTenantOrganizationPartnerConfigurationTemplate.php @@ -0,0 +1,199 @@ +getBackingStore()->get('automaticUserConsentSettings'); + if (is_null($val) || $val instanceof InboundOutboundPolicyConfiguration) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'automaticUserConsentSettings'"); + } + + /** + * Gets the b2bCollaborationInbound property value. Defines your partner-specific configuration for users from other organizations accessing your resources via Microsoft Entra B2B collaboration. + * @return CrossTenantAccessPolicyB2BSetting|null + */ + public function getB2bCollaborationInbound(): ?CrossTenantAccessPolicyB2BSetting { + $val = $this->getBackingStore()->get('b2bCollaborationInbound'); + if (is_null($val) || $val instanceof CrossTenantAccessPolicyB2BSetting) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'b2bCollaborationInbound'"); + } + + /** + * Gets the b2bCollaborationOutbound property value. Defines your partner-specific configuration for users in your organization going outbound to access resources in another organization via Microsoft Entra B2B collaboration. + * @return CrossTenantAccessPolicyB2BSetting|null + */ + public function getB2bCollaborationOutbound(): ?CrossTenantAccessPolicyB2BSetting { + $val = $this->getBackingStore()->get('b2bCollaborationOutbound'); + if (is_null($val) || $val instanceof CrossTenantAccessPolicyB2BSetting) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'b2bCollaborationOutbound'"); + } + + /** + * Gets the b2bDirectConnectInbound property value. Defines your partner-specific configuration for users from other organizations accessing your resources via Azure B2B direct connect. + * @return CrossTenantAccessPolicyB2BSetting|null + */ + public function getB2bDirectConnectInbound(): ?CrossTenantAccessPolicyB2BSetting { + $val = $this->getBackingStore()->get('b2bDirectConnectInbound'); + if (is_null($val) || $val instanceof CrossTenantAccessPolicyB2BSetting) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'b2bDirectConnectInbound'"); + } + + /** + * Gets the b2bDirectConnectOutbound property value. Defines your partner-specific configuration for users in your organization going outbound to access resources in another organization via Microsoft Entra B2B direct connect. + * @return CrossTenantAccessPolicyB2BSetting|null + */ + public function getB2bDirectConnectOutbound(): ?CrossTenantAccessPolicyB2BSetting { + $val = $this->getBackingStore()->get('b2bDirectConnectOutbound'); + if (is_null($val) || $val instanceof CrossTenantAccessPolicyB2BSetting) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'b2bDirectConnectOutbound'"); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'automaticUserConsentSettings' => fn(ParseNode $n) => $o->setAutomaticUserConsentSettings($n->getObjectValue([InboundOutboundPolicyConfiguration::class, 'createFromDiscriminatorValue'])), + 'b2bCollaborationInbound' => fn(ParseNode $n) => $o->setB2bCollaborationInbound($n->getObjectValue([CrossTenantAccessPolicyB2BSetting::class, 'createFromDiscriminatorValue'])), + 'b2bCollaborationOutbound' => fn(ParseNode $n) => $o->setB2bCollaborationOutbound($n->getObjectValue([CrossTenantAccessPolicyB2BSetting::class, 'createFromDiscriminatorValue'])), + 'b2bDirectConnectInbound' => fn(ParseNode $n) => $o->setB2bDirectConnectInbound($n->getObjectValue([CrossTenantAccessPolicyB2BSetting::class, 'createFromDiscriminatorValue'])), + 'b2bDirectConnectOutbound' => fn(ParseNode $n) => $o->setB2bDirectConnectOutbound($n->getObjectValue([CrossTenantAccessPolicyB2BSetting::class, 'createFromDiscriminatorValue'])), + 'inboundTrust' => fn(ParseNode $n) => $o->setInboundTrust($n->getObjectValue([CrossTenantAccessPolicyInboundTrust::class, 'createFromDiscriminatorValue'])), + 'templateApplicationLevel' => fn(ParseNode $n) => $o->setTemplateApplicationLevel($n->getEnumValue(TemplateApplicationLevel::class)), + ]); + } + + /** + * Gets the inboundTrust property value. Determines the partner-specific configuration for trusting other Conditional Access claims from external Microsoft Entra organizations. + * @return CrossTenantAccessPolicyInboundTrust|null + */ + public function getInboundTrust(): ?CrossTenantAccessPolicyInboundTrust { + $val = $this->getBackingStore()->get('inboundTrust'); + if (is_null($val) || $val instanceof CrossTenantAccessPolicyInboundTrust) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'inboundTrust'"); + } + + /** + * Gets the templateApplicationLevel property value. The templateApplicationLevel property + * @return TemplateApplicationLevel|null + */ + public function getTemplateApplicationLevel(): ?TemplateApplicationLevel { + $val = $this->getBackingStore()->get('templateApplicationLevel'); + if (is_null($val) || $val instanceof TemplateApplicationLevel) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'templateApplicationLevel'"); + } + + /** + * 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->writeObjectValue('automaticUserConsentSettings', $this->getAutomaticUserConsentSettings()); + $writer->writeObjectValue('b2bCollaborationInbound', $this->getB2bCollaborationInbound()); + $writer->writeObjectValue('b2bCollaborationOutbound', $this->getB2bCollaborationOutbound()); + $writer->writeObjectValue('b2bDirectConnectInbound', $this->getB2bDirectConnectInbound()); + $writer->writeObjectValue('b2bDirectConnectOutbound', $this->getB2bDirectConnectOutbound()); + $writer->writeObjectValue('inboundTrust', $this->getInboundTrust()); + $writer->writeEnumValue('templateApplicationLevel', $this->getTemplateApplicationLevel()); + } + + /** + * Sets the automaticUserConsentSettings property value. Determines the partner-specific configuration for automatic user consent settings. Unless configured, the inboundAllowed and outboundAllowed properties are null and inherit from the default settings, which is always false. + * @param InboundOutboundPolicyConfiguration|null $value Value to set for the automaticUserConsentSettings property. + */ + public function setAutomaticUserConsentSettings(?InboundOutboundPolicyConfiguration $value): void { + $this->getBackingStore()->set('automaticUserConsentSettings', $value); + } + + /** + * Sets the b2bCollaborationInbound property value. Defines your partner-specific configuration for users from other organizations accessing your resources via Microsoft Entra B2B collaboration. + * @param CrossTenantAccessPolicyB2BSetting|null $value Value to set for the b2bCollaborationInbound property. + */ + public function setB2bCollaborationInbound(?CrossTenantAccessPolicyB2BSetting $value): void { + $this->getBackingStore()->set('b2bCollaborationInbound', $value); + } + + /** + * Sets the b2bCollaborationOutbound property value. Defines your partner-specific configuration for users in your organization going outbound to access resources in another organization via Microsoft Entra B2B collaboration. + * @param CrossTenantAccessPolicyB2BSetting|null $value Value to set for the b2bCollaborationOutbound property. + */ + public function setB2bCollaborationOutbound(?CrossTenantAccessPolicyB2BSetting $value): void { + $this->getBackingStore()->set('b2bCollaborationOutbound', $value); + } + + /** + * Sets the b2bDirectConnectInbound property value. Defines your partner-specific configuration for users from other organizations accessing your resources via Azure B2B direct connect. + * @param CrossTenantAccessPolicyB2BSetting|null $value Value to set for the b2bDirectConnectInbound property. + */ + public function setB2bDirectConnectInbound(?CrossTenantAccessPolicyB2BSetting $value): void { + $this->getBackingStore()->set('b2bDirectConnectInbound', $value); + } + + /** + * Sets the b2bDirectConnectOutbound property value. Defines your partner-specific configuration for users in your organization going outbound to access resources in another organization via Microsoft Entra B2B direct connect. + * @param CrossTenantAccessPolicyB2BSetting|null $value Value to set for the b2bDirectConnectOutbound property. + */ + public function setB2bDirectConnectOutbound(?CrossTenantAccessPolicyB2BSetting $value): void { + $this->getBackingStore()->set('b2bDirectConnectOutbound', $value); + } + + /** + * Sets the inboundTrust property value. Determines the partner-specific configuration for trusting other Conditional Access claims from external Microsoft Entra organizations. + * @param CrossTenantAccessPolicyInboundTrust|null $value Value to set for the inboundTrust property. + */ + public function setInboundTrust(?CrossTenantAccessPolicyInboundTrust $value): void { + $this->getBackingStore()->set('inboundTrust', $value); + } + + /** + * Sets the templateApplicationLevel property value. The templateApplicationLevel property + * @param TemplateApplicationLevel|null $value Value to set for the templateApplicationLevel property. + */ + public function setTemplateApplicationLevel(?TemplateApplicationLevel $value): void { + $this->getBackingStore()->set('templateApplicationLevel', $value); + } + +} diff --git a/src/Generated/Models/MultiTenantOrganizationState.php b/src/Generated/Models/MultiTenantOrganizationState.php new file mode 100644 index 00000000000..0687969f646 --- /dev/null +++ b/src/Generated/Models/MultiTenantOrganizationState.php @@ -0,0 +1,11 @@ +setOdataType('#microsoft.graph.onTokenIssuanceStartCustomExtension'); + } + + /** + * 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 OnTokenIssuanceStartCustomExtension + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): OnTokenIssuanceStartCustomExtension { + return new OnTokenIssuanceStartCustomExtension(); + } + + /** + * Gets the claimsForTokenConfiguration property value. Collection of claims to be returned by the API called by this custom authentication extension. Used to populate claims mapping experience in Microsoft Entra admin center. Optional. + * @return array|null + */ + public function getClaimsForTokenConfiguration(): ?array { + $val = $this->getBackingStore()->get('claimsForTokenConfiguration'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, OnTokenIssuanceStartReturnClaim::class); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'claimsForTokenConfiguration'"); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'claimsForTokenConfiguration' => fn(ParseNode $n) => $o->setClaimsForTokenConfiguration($n->getCollectionOfObjectValues([OnTokenIssuanceStartReturnClaim::class, 'createFromDiscriminatorValue'])), + ]); + } + + /** + * 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('claimsForTokenConfiguration', $this->getClaimsForTokenConfiguration()); + } + + /** + * Sets the claimsForTokenConfiguration property value. Collection of claims to be returned by the API called by this custom authentication extension. Used to populate claims mapping experience in Microsoft Entra admin center. Optional. + * @param array|null $value Value to set for the claimsForTokenConfiguration property. + */ + public function setClaimsForTokenConfiguration(?array $value): void { + $this->getBackingStore()->set('claimsForTokenConfiguration', $value); + } + +} diff --git a/src/Generated/Models/OnTokenIssuanceStartCustomExtensionHandler.php b/src/Generated/Models/OnTokenIssuanceStartCustomExtensionHandler.php new file mode 100644 index 00000000000..7168ecd37dd --- /dev/null +++ b/src/Generated/Models/OnTokenIssuanceStartCustomExtensionHandler.php @@ -0,0 +1,90 @@ +setOdataType('#microsoft.graph.onTokenIssuanceStartCustomExtensionHandler'); + } + + /** + * 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 OnTokenIssuanceStartCustomExtensionHandler + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): OnTokenIssuanceStartCustomExtensionHandler { + return new OnTokenIssuanceStartCustomExtensionHandler(); + } + + /** + * Gets the configuration property value. The configuration property + * @return CustomExtensionOverwriteConfiguration|null + */ + public function getConfiguration(): ?CustomExtensionOverwriteConfiguration { + $val = $this->getBackingStore()->get('configuration'); + if (is_null($val) || $val instanceof CustomExtensionOverwriteConfiguration) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'configuration'"); + } + + /** + * Gets the customExtension property value. The customExtension property + * @return OnTokenIssuanceStartCustomExtension|null + */ + public function getCustomExtension(): ?OnTokenIssuanceStartCustomExtension { + $val = $this->getBackingStore()->get('customExtension'); + if (is_null($val) || $val instanceof OnTokenIssuanceStartCustomExtension) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'customExtension'"); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'configuration' => fn(ParseNode $n) => $o->setConfiguration($n->getObjectValue([CustomExtensionOverwriteConfiguration::class, 'createFromDiscriminatorValue'])), + 'customExtension' => fn(ParseNode $n) => $o->setCustomExtension($n->getObjectValue([OnTokenIssuanceStartCustomExtension::class, 'createFromDiscriminatorValue'])), + ]); + } + + /** + * 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->writeObjectValue('configuration', $this->getConfiguration()); + $writer->writeObjectValue('customExtension', $this->getCustomExtension()); + } + + /** + * Sets the configuration property value. The configuration property + * @param CustomExtensionOverwriteConfiguration|null $value Value to set for the configuration property. + */ + public function setConfiguration(?CustomExtensionOverwriteConfiguration $value): void { + $this->getBackingStore()->set('configuration', $value); + } + + /** + * Sets the customExtension property value. The customExtension property + * @param OnTokenIssuanceStartCustomExtension|null $value Value to set for the customExtension property. + */ + public function setCustomExtension(?OnTokenIssuanceStartCustomExtension $value): void { + $this->getBackingStore()->set('customExtension', $value); + } + +} diff --git a/src/Generated/Models/OnTokenIssuanceStartHandler.php b/src/Generated/Models/OnTokenIssuanceStartHandler.php new file mode 100644 index 00000000000..682ad455971 --- /dev/null +++ b/src/Generated/Models/OnTokenIssuanceStartHandler.php @@ -0,0 +1,121 @@ +backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); + $this->setAdditionalData([]); + } + + /** + * 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 OnTokenIssuanceStartHandler + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): OnTokenIssuanceStartHandler { + $mappingValueNode = $parseNode->getChildNode("@odata.type"); + if ($mappingValueNode !== null) { + $mappingValue = $mappingValueNode->getStringValue(); + switch ($mappingValue) { + case '#microsoft.graph.onTokenIssuanceStartCustomExtensionHandler': return new OnTokenIssuanceStartCustomExtensionHandler(); + } + } + return new OnTokenIssuanceStartHandler(); + } + + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return array|null + */ + public function getAdditionalData(): ?array { + $val = $this->getBackingStore()->get('additionalData'); + if (is_null($val) || is_array($val)) { + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'additionalData'"); + } + + /** + * Gets the BackingStore property value. Stores model information. + * @return BackingStore + */ + public function getBackingStore(): BackingStore { + return $this->backingStore; + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return [ + '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()), + ]; + } + + /** + * Gets the @odata.type property value. The OdataType property + * @return string|null + */ + public function getOdataType(): ?string { + $val = $this->getBackingStore()->get('odataType'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'odataType'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + $writer->writeStringValue('@odata.type', $this->getOdataType()); + $writer->writeAdditionalData($this->getAdditionalData()); + } + + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void { + $this->getBackingStore()->set('additionalData', $value); + } + + /** + * Sets the BackingStore property value. Stores model information. + * @param BackingStore $value Value to set for the BackingStore property. + */ + public function setBackingStore(BackingStore $value): void { + $this->backingStore = $value; + } + + /** + * Sets the @odata.type property value. The OdataType property + * @param string|null $value Value to set for the @odata.type property. + */ + public function setOdataType(?string $value): void { + $this->getBackingStore()->set('odataType', $value); + } + +} diff --git a/src/Generated/Models/OnTokenIssuanceStartListener.php b/src/Generated/Models/OnTokenIssuanceStartListener.php new file mode 100644 index 00000000000..733a15589dd --- /dev/null +++ b/src/Generated/Models/OnTokenIssuanceStartListener.php @@ -0,0 +1,68 @@ +setOdataType('#microsoft.graph.onTokenIssuanceStartListener'); + } + + /** + * 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 OnTokenIssuanceStartListener + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): OnTokenIssuanceStartListener { + return new OnTokenIssuanceStartListener(); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'handler' => fn(ParseNode $n) => $o->setHandler($n->getObjectValue([OnTokenIssuanceStartHandler::class, 'createFromDiscriminatorValue'])), + ]); + } + + /** + * Gets the handler property value. The handler to invoke when conditions are met for this onTokenIssuanceStartListener. + * @return OnTokenIssuanceStartHandler|null + */ + public function getHandler(): ?OnTokenIssuanceStartHandler { + $val = $this->getBackingStore()->get('handler'); + if (is_null($val) || $val instanceof OnTokenIssuanceStartHandler) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'handler'"); + } + + /** + * 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->writeObjectValue('handler', $this->getHandler()); + } + + /** + * Sets the handler property value. The handler to invoke when conditions are met for this onTokenIssuanceStartListener. + * @param OnTokenIssuanceStartHandler|null $value Value to set for the handler property. + */ + public function setHandler(?OnTokenIssuanceStartHandler $value): void { + $this->getBackingStore()->set('handler', $value); + } + +} diff --git a/src/Generated/Models/OnTokenIssuanceStartReturnClaim.php b/src/Generated/Models/OnTokenIssuanceStartReturnClaim.php new file mode 100644 index 00000000000..65a03ed5368 --- /dev/null +++ b/src/Generated/Models/OnTokenIssuanceStartReturnClaim.php @@ -0,0 +1,136 @@ +backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); + $this->setAdditionalData([]); + } + + /** + * 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 OnTokenIssuanceStartReturnClaim + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): OnTokenIssuanceStartReturnClaim { + return new OnTokenIssuanceStartReturnClaim(); + } + + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return array|null + */ + public function getAdditionalData(): ?array { + $val = $this->getBackingStore()->get('additionalData'); + if (is_null($val) || is_array($val)) { + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'additionalData'"); + } + + /** + * Gets the BackingStore property value. Stores model information. + * @return BackingStore + */ + public function getBackingStore(): BackingStore { + return $this->backingStore; + } + + /** + * Gets the claimIdInApiResponse property value. The identifier of the claim returned by an API that is to be add to a token being issued. + * @return string|null + */ + public function getClaimIdInApiResponse(): ?string { + $val = $this->getBackingStore()->get('claimIdInApiResponse'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'claimIdInApiResponse'"); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return [ + 'claimIdInApiResponse' => fn(ParseNode $n) => $o->setClaimIdInApiResponse($n->getStringValue()), + '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()), + ]; + } + + /** + * Gets the @odata.type property value. The OdataType property + * @return string|null + */ + public function getOdataType(): ?string { + $val = $this->getBackingStore()->get('odataType'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'odataType'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + $writer->writeStringValue('claimIdInApiResponse', $this->getClaimIdInApiResponse()); + $writer->writeStringValue('@odata.type', $this->getOdataType()); + $writer->writeAdditionalData($this->getAdditionalData()); + } + + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void { + $this->getBackingStore()->set('additionalData', $value); + } + + /** + * Sets the BackingStore property value. Stores model information. + * @param BackingStore $value Value to set for the BackingStore property. + */ + public function setBackingStore(BackingStore $value): void { + $this->backingStore = $value; + } + + /** + * Sets the claimIdInApiResponse property value. The identifier of the claim returned by an API that is to be add to a token being issued. + * @param string|null $value Value to set for the claimIdInApiResponse property. + */ + public function setClaimIdInApiResponse(?string $value): void { + $this->getBackingStore()->set('claimIdInApiResponse', $value); + } + + /** + * Sets the @odata.type property value. The OdataType property + * @param string|null $value Value to set for the @odata.type property. + */ + public function setOdataType(?string $value): void { + $this->getBackingStore()->set('odataType', $value); + } + +} diff --git a/src/Generated/Models/PolicyTemplate.php b/src/Generated/Models/PolicyTemplate.php new file mode 100644 index 00000000000..5f4a2abce29 --- /dev/null +++ b/src/Generated/Models/PolicyTemplate.php @@ -0,0 +1,89 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'multiTenantOrganizationIdentitySynchronization' => fn(ParseNode $n) => $o->setMultiTenantOrganizationIdentitySynchronization($n->getObjectValue([MultiTenantOrganizationIdentitySyncPolicyTemplate::class, 'createFromDiscriminatorValue'])), + 'multiTenantOrganizationPartnerConfiguration' => fn(ParseNode $n) => $o->setMultiTenantOrganizationPartnerConfiguration($n->getObjectValue([MultiTenantOrganizationPartnerConfigurationTemplate::class, 'createFromDiscriminatorValue'])), + ]); + } + + /** + * Gets the multiTenantOrganizationIdentitySynchronization property value. Defines an optional cross-tenant access policy template with user synchronization settings for a multitenant organization. + * @return MultiTenantOrganizationIdentitySyncPolicyTemplate|null + */ + public function getMultiTenantOrganizationIdentitySynchronization(): ?MultiTenantOrganizationIdentitySyncPolicyTemplate { + $val = $this->getBackingStore()->get('multiTenantOrganizationIdentitySynchronization'); + if (is_null($val) || $val instanceof MultiTenantOrganizationIdentitySyncPolicyTemplate) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'multiTenantOrganizationIdentitySynchronization'"); + } + + /** + * Gets the multiTenantOrganizationPartnerConfiguration property value. Defines an optional cross-tenant access policy template with inbound and outbound partner configuration settings for a multitenant organization. + * @return MultiTenantOrganizationPartnerConfigurationTemplate|null + */ + public function getMultiTenantOrganizationPartnerConfiguration(): ?MultiTenantOrganizationPartnerConfigurationTemplate { + $val = $this->getBackingStore()->get('multiTenantOrganizationPartnerConfiguration'); + if (is_null($val) || $val instanceof MultiTenantOrganizationPartnerConfigurationTemplate) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'multiTenantOrganizationPartnerConfiguration'"); + } + + /** + * 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->writeObjectValue('multiTenantOrganizationIdentitySynchronization', $this->getMultiTenantOrganizationIdentitySynchronization()); + $writer->writeObjectValue('multiTenantOrganizationPartnerConfiguration', $this->getMultiTenantOrganizationPartnerConfiguration()); + } + + /** + * Sets the multiTenantOrganizationIdentitySynchronization property value. Defines an optional cross-tenant access policy template with user synchronization settings for a multitenant organization. + * @param MultiTenantOrganizationIdentitySyncPolicyTemplate|null $value Value to set for the multiTenantOrganizationIdentitySynchronization property. + */ + public function setMultiTenantOrganizationIdentitySynchronization(?MultiTenantOrganizationIdentitySyncPolicyTemplate $value): void { + $this->getBackingStore()->set('multiTenantOrganizationIdentitySynchronization', $value); + } + + /** + * Sets the multiTenantOrganizationPartnerConfiguration property value. Defines an optional cross-tenant access policy template with inbound and outbound partner configuration settings for a multitenant organization. + * @param MultiTenantOrganizationPartnerConfigurationTemplate|null $value Value to set for the multiTenantOrganizationPartnerConfiguration property. + */ + public function setMultiTenantOrganizationPartnerConfiguration(?MultiTenantOrganizationPartnerConfigurationTemplate $value): void { + $this->getBackingStore()->set('multiTenantOrganizationPartnerConfiguration', $value); + } + +} diff --git a/src/Generated/Models/Security/DetectionSource.php b/src/Generated/Models/Security/DetectionSource.php index 4f9f2ddf8e2..10addc16ff0 100644 --- a/src/Generated/Models/Security/DetectionSource.php +++ b/src/Generated/Models/Security/DetectionSource.php @@ -39,5 +39,6 @@ class DetectionSource extends Enum { public const SCHEDULED_ALERTS = 'scheduledAlerts'; public const MICROSOFT_DEFENDER_THREAT_INTELLIGENCE_ANALYTICS = 'microsoftDefenderThreatIntelligenceAnalytics'; public const BUILT_IN_ML = 'builtInMl'; + public const MICROSOFT_INSIDER_RISK_MANAGEMENT = 'microsoftInsiderRiskManagement'; public const MICROSOFT_SENTINEL = 'microsoftSentinel'; } diff --git a/src/Generated/Models/Security/ServiceSource.php b/src/Generated/Models/Security/ServiceSource.php index 6410ed4d7da..c26925c644e 100644 --- a/src/Generated/Models/Security/ServiceSource.php +++ b/src/Generated/Models/Security/ServiceSource.php @@ -17,4 +17,5 @@ class ServiceSource extends Enum { public const UNKNOWN_FUTURE_VALUE = 'unknownFutureValue'; public const MICROSOFT_DEFENDER_FOR_CLOUD = 'microsoftDefenderForCloud'; public const MICROSOFT_SENTINEL = 'microsoftSentinel'; + public const MICROSOFT_INSIDER_RISK_MANAGEMENT = 'microsoftInsiderRiskManagement'; } diff --git a/src/Generated/Models/TemplateApplicationLevel.php b/src/Generated/Models/TemplateApplicationLevel.php new file mode 100644 index 00000000000..54407128965 --- /dev/null +++ b/src/Generated/Models/TemplateApplicationLevel.php @@ -0,0 +1,12 @@ + fn(ParseNode $n) => $o->setDelegatedAdminCustomers($n->getCollectionOfObjectValues([DelegatedAdminCustomer::class, 'createFromDiscriminatorValue'])), 'delegatedAdminRelationships' => fn(ParseNode $n) => $o->setDelegatedAdminRelationships($n->getCollectionOfObjectValues([DelegatedAdminRelationship::class, 'createFromDiscriminatorValue'])), + 'multiTenantOrganization' => fn(ParseNode $n) => $o->setMultiTenantOrganization($n->getObjectValue([MultiTenantOrganization::class, 'createFromDiscriminatorValue'])), '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()), ]; } + /** + * Gets the multiTenantOrganization property value. Defines an organization with more than one instance of Microsoft Entra ID. + * @return MultiTenantOrganization|null + */ + public function getMultiTenantOrganization(): ?MultiTenantOrganization { + $val = $this->getBackingStore()->get('multiTenantOrganization'); + if (is_null($val) || $val instanceof MultiTenantOrganization) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'multiTenantOrganization'"); + } + /** * Gets the @odata.type property value. The OdataType property * @return string|null @@ -116,6 +129,7 @@ public function getOdataType(): ?string { public function serialize(SerializationWriter $writer): void { $writer->writeCollectionOfObjectValues('delegatedAdminCustomers', $this->getDelegatedAdminCustomers()); $writer->writeCollectionOfObjectValues('delegatedAdminRelationships', $this->getDelegatedAdminRelationships()); + $writer->writeObjectValue('multiTenantOrganization', $this->getMultiTenantOrganization()); $writer->writeStringValue('@odata.type', $this->getOdataType()); $writer->writeAdditionalData($this->getAdditionalData()); } @@ -152,6 +166,14 @@ public function setDelegatedAdminRelationships(?array $value): void { $this->getBackingStore()->set('delegatedAdminRelationships', $value); } + /** + * Sets the multiTenantOrganization property value. Defines an organization with more than one instance of Microsoft Entra ID. + * @param MultiTenantOrganization|null $value Value to set for the multiTenantOrganization property. + */ + public function setMultiTenantOrganization(?MultiTenantOrganization $value): void { + $this->getBackingStore()->set('multiTenantOrganization', $value); + } + /** * Sets the @odata.type property value. The OdataType property * @param string|null $value Value to set for the @odata.type property. diff --git a/src/Generated/Models/VerifiedDomain.php b/src/Generated/Models/VerifiedDomain.php index ab0ed3b4b34..41b4954d39c 100644 --- a/src/Generated/Models/VerifiedDomain.php +++ b/src/Generated/Models/VerifiedDomain.php @@ -108,7 +108,7 @@ public function getIsInitial(): ?bool { } /** - * Gets the name property value. The domain name; for example, contoso.com`. + * Gets the name property value. The domain name; for example, contoso.com. * @return string|null */ public function getName(): ?string { @@ -198,7 +198,7 @@ public function setIsInitial(?bool $value): void { } /** - * Sets the name property value. The domain name; for example, contoso.com`. + * Sets the name property value. The domain name; for example, contoso.com. * @param string|null $value Value to set for the name property. */ public function setName(?string $value): void { diff --git a/src/Generated/Organization/Item/OrganizationItemRequestBuilder.php b/src/Generated/Organization/Item/OrganizationItemRequestBuilder.php index 84c7bd835e1..739ed13cbf9 100644 --- a/src/Generated/Organization/Item/OrganizationItemRequestBuilder.php +++ b/src/Generated/Organization/Item/OrganizationItemRequestBuilder.php @@ -117,11 +117,11 @@ public function delete(?OrganizationItemRequestBuilderDeleteRequestConfiguration } /** - * Get the properties and relationships of the currently authenticated organization. Since the organization resource supports extensions, you can also use the GET operation to get custom properties and extension data in an organization instance. + * Read properties and relationships of the organization object. * @param OrganizationItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/organization-get?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-onboarding-organization-get?view=graph-rest-1.0 Find more info here */ public function get(?OrganizationItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -166,7 +166,7 @@ public function toDeleteRequestInformation(?OrganizationItemRequestBuilderDelete } /** - * Get the properties and relationships of the currently authenticated organization. Since the organization resource supports extensions, you can also use the GET operation to get custom properties and extension data in an organization instance. + * Read properties and relationships of the organization object. * @param OrganizationItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Organization/Item/OrganizationItemRequestBuilderGetQueryParameters.php b/src/Generated/Organization/Item/OrganizationItemRequestBuilderGetQueryParameters.php index 4f144e8136a..8c22067b457 100644 --- a/src/Generated/Organization/Item/OrganizationItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Organization/Item/OrganizationItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the properties and relationships of the currently authenticated organization. Since the organization resource supports extensions, you can also use the GET operation to get custom properties and extension data in an organization instance. + * Read properties and relationships of the organization object. */ class OrganizationItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Organization/OrganizationRequestBuilder.php b/src/Generated/Organization/OrganizationRequestBuilder.php index ac128723db2..219b772dec8 100644 --- a/src/Generated/Organization/OrganizationRequestBuilder.php +++ b/src/Generated/Organization/OrganizationRequestBuilder.php @@ -84,11 +84,11 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of organization objects. There's only one organization object in the collection. + * List properties and relationships of the organization objects. * @param OrganizationRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/organization-list?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-onboarding-organization-list?view=graph-rest-1.0 Find more info here */ public function get(?OrganizationRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -114,7 +114,7 @@ public function post(Organization $body, ?OrganizationRequestBuilderPostRequestC } /** - * Retrieve a list of organization objects. There's only one organization object in the collection. + * List properties and relationships of the organization objects. * @param OrganizationRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Organization/OrganizationRequestBuilderGetQueryParameters.php b/src/Generated/Organization/OrganizationRequestBuilderGetQueryParameters.php index 10597c442ed..dbe1dd5d054 100644 --- a/src/Generated/Organization/OrganizationRequestBuilderGetQueryParameters.php +++ b/src/Generated/Organization/OrganizationRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of organization objects. There's only one organization object in the collection. + * List properties and relationships of the organization objects. */ class OrganizationRequestBuilderGetQueryParameters { diff --git a/src/Generated/Policies/CrossTenantAccessPolicy/CrossTenantAccessPolicyRequestBuilder.php b/src/Generated/Policies/CrossTenantAccessPolicy/CrossTenantAccessPolicyRequestBuilder.php index ac37d3fe0c8..69925eb9f0a 100644 --- a/src/Generated/Policies/CrossTenantAccessPolicy/CrossTenantAccessPolicyRequestBuilder.php +++ b/src/Generated/Policies/CrossTenantAccessPolicy/CrossTenantAccessPolicyRequestBuilder.php @@ -8,6 +8,7 @@ use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Graph\Generated\Policies\CrossTenantAccessPolicy\EscapedDefault\DefaultRequestBuilder; use Microsoft\Graph\Generated\Policies\CrossTenantAccessPolicy\Partners\PartnersRequestBuilder; +use Microsoft\Graph\Generated\Policies\CrossTenantAccessPolicy\Templates\TemplatesRequestBuilder; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; use Microsoft\Kiota\Abstractions\HttpMethod; use Microsoft\Kiota\Abstractions\RequestAdapter; @@ -32,6 +33,13 @@ public function partners(): PartnersRequestBuilder { return new PartnersRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * Provides operations to manage the templates property of the microsoft.graph.crossTenantAccessPolicy entity. + */ + public function templates(): TemplatesRequestBuilder { + return new TemplatesRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new CrossTenantAccessPolicyRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. diff --git a/src/Generated/Policies/CrossTenantAccessPolicy/Templates/MultiTenantOrganizationIdentitySynchronization/MultiTenantOrganizationIdentitySynchronizationRequestBuilder.php b/src/Generated/Policies/CrossTenantAccessPolicy/Templates/MultiTenantOrganizationIdentitySynchronization/MultiTenantOrganizationIdentitySynchronizationRequestBuilder.php new file mode 100644 index 00000000000..aad6c724402 --- /dev/null +++ b/src/Generated/Policies/CrossTenantAccessPolicy/Templates/MultiTenantOrganizationIdentitySynchronization/MultiTenantOrganizationIdentitySynchronizationRequestBuilder.php @@ -0,0 +1,144 @@ +|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}/policies/crossTenantAccessPolicy/templates/multiTenantOrganizationIdentitySynchronization{?%24expand,%24select}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property multiTenantOrganizationIdentitySynchronization for policies + * @param MultiTenantOrganizationIdentitySynchronizationRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function delete(?MultiTenantOrganizationIdentitySynchronizationRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } + + /** + * Defines an optional cross-tenant access policy template with user synchronization settings for a multitenant organization. + * @param MultiTenantOrganizationIdentitySynchronizationRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?MultiTenantOrganizationIdentitySynchronizationRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MultiTenantOrganizationIdentitySyncPolicyTemplate::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Update the navigation property multiTenantOrganizationIdentitySynchronization in policies + * @param MultiTenantOrganizationIdentitySyncPolicyTemplate $body The request body + * @param MultiTenantOrganizationIdentitySynchronizationRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function patch(MultiTenantOrganizationIdentitySyncPolicyTemplate $body, ?MultiTenantOrganizationIdentitySynchronizationRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MultiTenantOrganizationIdentitySyncPolicyTemplate::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Delete navigation property multiTenantOrganizationIdentitySynchronization for policies + * @param MultiTenantOrganizationIdentitySynchronizationRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?MultiTenantOrganizationIdentitySynchronizationRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::DELETE; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Defines an optional cross-tenant access policy template with user synchronization settings for a multitenant organization. + * @param MultiTenantOrganizationIdentitySynchronizationRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MultiTenantOrganizationIdentitySynchronizationRequestBuilderGetRequestConfiguration $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; + } + + /** + * Update the navigation property multiTenantOrganizationIdentitySynchronization in policies + * @param MultiTenantOrganizationIdentitySyncPolicyTemplate $body The request body + * @param MultiTenantOrganizationIdentitySynchronizationRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(MultiTenantOrganizationIdentitySyncPolicyTemplate $body, ?MultiTenantOrganizationIdentitySynchronizationRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + 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 MultiTenantOrganizationIdentitySynchronizationRequestBuilder + */ + public function withUrl(string $rawUrl): MultiTenantOrganizationIdentitySynchronizationRequestBuilder { + return new MultiTenantOrganizationIdentitySynchronizationRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Policies/CrossTenantAccessPolicy/Templates/MultiTenantOrganizationIdentitySynchronization/MultiTenantOrganizationIdentitySynchronizationRequestBuilderDeleteRequestConfiguration.php b/src/Generated/Policies/CrossTenantAccessPolicy/Templates/MultiTenantOrganizationIdentitySynchronization/MultiTenantOrganizationIdentitySynchronizationRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..1ac14a637b1 --- /dev/null +++ b/src/Generated/Policies/CrossTenantAccessPolicy/Templates/MultiTenantOrganizationIdentitySynchronization/MultiTenantOrganizationIdentitySynchronizationRequestBuilderDeleteRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Policies/CrossTenantAccessPolicy/Templates/MultiTenantOrganizationIdentitySynchronization/MultiTenantOrganizationIdentitySynchronizationRequestBuilderGetQueryParameters.php b/src/Generated/Policies/CrossTenantAccessPolicy/Templates/MultiTenantOrganizationIdentitySynchronization/MultiTenantOrganizationIdentitySynchronizationRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..5e7adc4e1dc --- /dev/null +++ b/src/Generated/Policies/CrossTenantAccessPolicy/Templates/MultiTenantOrganizationIdentitySynchronization/MultiTenantOrganizationIdentitySynchronizationRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * Instantiates a new MultiTenantOrganizationIdentitySynchronizationRequestBuilderGetQueryParameters and sets the default values. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + */ + public function __construct(?array $expand = null, ?array $select = null) { + $this->expand = $expand; + $this->select = $select; + } + +} diff --git a/src/Generated/Policies/CrossTenantAccessPolicy/Templates/MultiTenantOrganizationIdentitySynchronization/MultiTenantOrganizationIdentitySynchronizationRequestBuilderGetRequestConfiguration.php b/src/Generated/Policies/CrossTenantAccessPolicy/Templates/MultiTenantOrganizationIdentitySynchronization/MultiTenantOrganizationIdentitySynchronizationRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..f647ca3aa93 --- /dev/null +++ b/src/Generated/Policies/CrossTenantAccessPolicy/Templates/MultiTenantOrganizationIdentitySynchronization/MultiTenantOrganizationIdentitySynchronizationRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MultiTenantOrganizationIdentitySynchronizationRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MultiTenantOrganizationIdentitySynchronizationRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new MultiTenantOrganizationIdentitySynchronizationRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return MultiTenantOrganizationIdentitySynchronizationRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): MultiTenantOrganizationIdentitySynchronizationRequestBuilderGetQueryParameters { + return new MultiTenantOrganizationIdentitySynchronizationRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/Policies/CrossTenantAccessPolicy/Templates/MultiTenantOrganizationIdentitySynchronization/MultiTenantOrganizationIdentitySynchronizationRequestBuilderPatchRequestConfiguration.php b/src/Generated/Policies/CrossTenantAccessPolicy/Templates/MultiTenantOrganizationIdentitySynchronization/MultiTenantOrganizationIdentitySynchronizationRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..4b07f63f715 --- /dev/null +++ b/src/Generated/Policies/CrossTenantAccessPolicy/Templates/MultiTenantOrganizationIdentitySynchronization/MultiTenantOrganizationIdentitySynchronizationRequestBuilderPatchRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Policies/CrossTenantAccessPolicy/Templates/MultiTenantOrganizationPartnerConfiguration/MultiTenantOrganizationPartnerConfigurationRequestBuilder.php b/src/Generated/Policies/CrossTenantAccessPolicy/Templates/MultiTenantOrganizationPartnerConfiguration/MultiTenantOrganizationPartnerConfigurationRequestBuilder.php new file mode 100644 index 00000000000..2537c61d1eb --- /dev/null +++ b/src/Generated/Policies/CrossTenantAccessPolicy/Templates/MultiTenantOrganizationPartnerConfiguration/MultiTenantOrganizationPartnerConfigurationRequestBuilder.php @@ -0,0 +1,144 @@ +|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}/policies/crossTenantAccessPolicy/templates/multiTenantOrganizationPartnerConfiguration{?%24expand,%24select}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property multiTenantOrganizationPartnerConfiguration for policies + * @param MultiTenantOrganizationPartnerConfigurationRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function delete(?MultiTenantOrganizationPartnerConfigurationRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } + + /** + * Defines an optional cross-tenant access policy template with inbound and outbound partner configuration settings for a multitenant organization. + * @param MultiTenantOrganizationPartnerConfigurationRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?MultiTenantOrganizationPartnerConfigurationRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MultiTenantOrganizationPartnerConfigurationTemplate::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Update the navigation property multiTenantOrganizationPartnerConfiguration in policies + * @param MultiTenantOrganizationPartnerConfigurationTemplate $body The request body + * @param MultiTenantOrganizationPartnerConfigurationRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function patch(MultiTenantOrganizationPartnerConfigurationTemplate $body, ?MultiTenantOrganizationPartnerConfigurationRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MultiTenantOrganizationPartnerConfigurationTemplate::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Delete navigation property multiTenantOrganizationPartnerConfiguration for policies + * @param MultiTenantOrganizationPartnerConfigurationRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?MultiTenantOrganizationPartnerConfigurationRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::DELETE; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Defines an optional cross-tenant access policy template with inbound and outbound partner configuration settings for a multitenant organization. + * @param MultiTenantOrganizationPartnerConfigurationRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MultiTenantOrganizationPartnerConfigurationRequestBuilderGetRequestConfiguration $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; + } + + /** + * Update the navigation property multiTenantOrganizationPartnerConfiguration in policies + * @param MultiTenantOrganizationPartnerConfigurationTemplate $body The request body + * @param MultiTenantOrganizationPartnerConfigurationRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(MultiTenantOrganizationPartnerConfigurationTemplate $body, ?MultiTenantOrganizationPartnerConfigurationRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + 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 MultiTenantOrganizationPartnerConfigurationRequestBuilder + */ + public function withUrl(string $rawUrl): MultiTenantOrganizationPartnerConfigurationRequestBuilder { + return new MultiTenantOrganizationPartnerConfigurationRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Policies/CrossTenantAccessPolicy/Templates/MultiTenantOrganizationPartnerConfiguration/MultiTenantOrganizationPartnerConfigurationRequestBuilderDeleteRequestConfiguration.php b/src/Generated/Policies/CrossTenantAccessPolicy/Templates/MultiTenantOrganizationPartnerConfiguration/MultiTenantOrganizationPartnerConfigurationRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..f3d51ac6f10 --- /dev/null +++ b/src/Generated/Policies/CrossTenantAccessPolicy/Templates/MultiTenantOrganizationPartnerConfiguration/MultiTenantOrganizationPartnerConfigurationRequestBuilderDeleteRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Policies/CrossTenantAccessPolicy/Templates/MultiTenantOrganizationPartnerConfiguration/MultiTenantOrganizationPartnerConfigurationRequestBuilderGetQueryParameters.php b/src/Generated/Policies/CrossTenantAccessPolicy/Templates/MultiTenantOrganizationPartnerConfiguration/MultiTenantOrganizationPartnerConfigurationRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..9db0d14fe1c --- /dev/null +++ b/src/Generated/Policies/CrossTenantAccessPolicy/Templates/MultiTenantOrganizationPartnerConfiguration/MultiTenantOrganizationPartnerConfigurationRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * Instantiates a new MultiTenantOrganizationPartnerConfigurationRequestBuilderGetQueryParameters and sets the default values. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + */ + public function __construct(?array $expand = null, ?array $select = null) { + $this->expand = $expand; + $this->select = $select; + } + +} diff --git a/src/Generated/Policies/CrossTenantAccessPolicy/Templates/MultiTenantOrganizationPartnerConfiguration/MultiTenantOrganizationPartnerConfigurationRequestBuilderGetRequestConfiguration.php b/src/Generated/Policies/CrossTenantAccessPolicy/Templates/MultiTenantOrganizationPartnerConfiguration/MultiTenantOrganizationPartnerConfigurationRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..21cb5102889 --- /dev/null +++ b/src/Generated/Policies/CrossTenantAccessPolicy/Templates/MultiTenantOrganizationPartnerConfiguration/MultiTenantOrganizationPartnerConfigurationRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MultiTenantOrganizationPartnerConfigurationRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MultiTenantOrganizationPartnerConfigurationRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new MultiTenantOrganizationPartnerConfigurationRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return MultiTenantOrganizationPartnerConfigurationRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): MultiTenantOrganizationPartnerConfigurationRequestBuilderGetQueryParameters { + return new MultiTenantOrganizationPartnerConfigurationRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/Policies/CrossTenantAccessPolicy/Templates/MultiTenantOrganizationPartnerConfiguration/MultiTenantOrganizationPartnerConfigurationRequestBuilderPatchRequestConfiguration.php b/src/Generated/Policies/CrossTenantAccessPolicy/Templates/MultiTenantOrganizationPartnerConfiguration/MultiTenantOrganizationPartnerConfigurationRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..2a4cba768b3 --- /dev/null +++ b/src/Generated/Policies/CrossTenantAccessPolicy/Templates/MultiTenantOrganizationPartnerConfiguration/MultiTenantOrganizationPartnerConfigurationRequestBuilderPatchRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Policies/CrossTenantAccessPolicy/Templates/TemplatesRequestBuilder.php b/src/Generated/Policies/CrossTenantAccessPolicy/Templates/TemplatesRequestBuilder.php new file mode 100644 index 00000000000..976ea7f7853 --- /dev/null +++ b/src/Generated/Policies/CrossTenantAccessPolicy/Templates/TemplatesRequestBuilder.php @@ -0,0 +1,160 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the multiTenantOrganizationPartnerConfiguration property of the microsoft.graph.policyTemplate entity. + */ + public function multiTenantOrganizationPartnerConfiguration(): MultiTenantOrganizationPartnerConfigurationRequestBuilder { + return new MultiTenantOrganizationPartnerConfigurationRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new TemplatesRequestBuilder and sets the default values. + * @param array|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}/policies/crossTenantAccessPolicy/templates{?%24expand,%24select}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property templates for policies + * @param TemplatesRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function delete(?TemplatesRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } + + /** + * Represents the base policy in the directory for multitenant organization settings. + * @param TemplatesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?TemplatesRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [PolicyTemplate::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Update the navigation property templates in policies + * @param PolicyTemplate $body The request body + * @param TemplatesRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function patch(PolicyTemplate $body, ?TemplatesRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [PolicyTemplate::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Delete navigation property templates for policies + * @param TemplatesRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?TemplatesRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::DELETE; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Represents the base policy in the directory for multitenant organization settings. + * @param TemplatesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?TemplatesRequestBuilderGetRequestConfiguration $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; + } + + /** + * Update the navigation property templates in policies + * @param PolicyTemplate $body The request body + * @param TemplatesRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(PolicyTemplate $body, ?TemplatesRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + 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 TemplatesRequestBuilder + */ + public function withUrl(string $rawUrl): TemplatesRequestBuilder { + return new TemplatesRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Policies/CrossTenantAccessPolicy/Templates/TemplatesRequestBuilderDeleteRequestConfiguration.php b/src/Generated/Policies/CrossTenantAccessPolicy/Templates/TemplatesRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..59b5e6d98f3 --- /dev/null +++ b/src/Generated/Policies/CrossTenantAccessPolicy/Templates/TemplatesRequestBuilderDeleteRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Policies/CrossTenantAccessPolicy/Templates/TemplatesRequestBuilderGetQueryParameters.php b/src/Generated/Policies/CrossTenantAccessPolicy/Templates/TemplatesRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..4b8d6a254eb --- /dev/null +++ b/src/Generated/Policies/CrossTenantAccessPolicy/Templates/TemplatesRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * Instantiates a new TemplatesRequestBuilderGetQueryParameters and sets the default values. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + */ + public function __construct(?array $expand = null, ?array $select = null) { + $this->expand = $expand; + $this->select = $select; + } + +} diff --git a/src/Generated/Policies/CrossTenantAccessPolicy/Templates/TemplatesRequestBuilderGetRequestConfiguration.php b/src/Generated/Policies/CrossTenantAccessPolicy/Templates/TemplatesRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..1599c645106 --- /dev/null +++ b/src/Generated/Policies/CrossTenantAccessPolicy/Templates/TemplatesRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param TemplatesRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?TemplatesRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new TemplatesRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return TemplatesRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): TemplatesRequestBuilderGetQueryParameters { + return new TemplatesRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/Policies/CrossTenantAccessPolicy/Templates/TemplatesRequestBuilderPatchRequestConfiguration.php b/src/Generated/Policies/CrossTenantAccessPolicy/Templates/TemplatesRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..7eaa4961968 --- /dev/null +++ b/src/Generated/Policies/CrossTenantAccessPolicy/Templates/TemplatesRequestBuilderPatchRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/TenantRelationships/MultiTenantOrganization/JoinRequest/JoinRequestRequestBuilder.php b/src/Generated/TenantRelationships/MultiTenantOrganization/JoinRequest/JoinRequestRequestBuilder.php new file mode 100644 index 00000000000..cc6fb82d9c6 --- /dev/null +++ b/src/Generated/TenantRelationships/MultiTenantOrganization/JoinRequest/JoinRequestRequestBuilder.php @@ -0,0 +1,112 @@ +|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}/tenantRelationships/multiTenantOrganization/joinRequest{?%24expand,%24select}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Defines the status of a tenant joining a multitenant organization. + * @param JoinRequestRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?JoinRequestRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MultiTenantOrganizationJoinRequestRecord::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Update the navigation property joinRequest in tenantRelationships + * @param MultiTenantOrganizationJoinRequestRecord $body The request body + * @param JoinRequestRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function patch(MultiTenantOrganizationJoinRequestRecord $body, ?JoinRequestRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MultiTenantOrganizationJoinRequestRecord::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Defines the status of a tenant joining a multitenant organization. + * @param JoinRequestRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?JoinRequestRequestBuilderGetRequestConfiguration $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; + } + + /** + * Update the navigation property joinRequest in tenantRelationships + * @param MultiTenantOrganizationJoinRequestRecord $body The request body + * @param JoinRequestRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(MultiTenantOrganizationJoinRequestRecord $body, ?JoinRequestRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + 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 JoinRequestRequestBuilder + */ + public function withUrl(string $rawUrl): JoinRequestRequestBuilder { + return new JoinRequestRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/TenantRelationships/MultiTenantOrganization/JoinRequest/JoinRequestRequestBuilderGetQueryParameters.php b/src/Generated/TenantRelationships/MultiTenantOrganization/JoinRequest/JoinRequestRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..b1a9abc0c5b --- /dev/null +++ b/src/Generated/TenantRelationships/MultiTenantOrganization/JoinRequest/JoinRequestRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * Instantiates a new JoinRequestRequestBuilderGetQueryParameters and sets the default values. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + */ + public function __construct(?array $expand = null, ?array $select = null) { + $this->expand = $expand; + $this->select = $select; + } + +} diff --git a/src/Generated/TenantRelationships/MultiTenantOrganization/JoinRequest/JoinRequestRequestBuilderGetRequestConfiguration.php b/src/Generated/TenantRelationships/MultiTenantOrganization/JoinRequest/JoinRequestRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..ab6df50bf9f --- /dev/null +++ b/src/Generated/TenantRelationships/MultiTenantOrganization/JoinRequest/JoinRequestRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param JoinRequestRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?JoinRequestRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new JoinRequestRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return JoinRequestRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): JoinRequestRequestBuilderGetQueryParameters { + return new JoinRequestRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/TenantRelationships/MultiTenantOrganization/JoinRequest/JoinRequestRequestBuilderPatchRequestConfiguration.php b/src/Generated/TenantRelationships/MultiTenantOrganization/JoinRequest/JoinRequestRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..f08ae35ebbb --- /dev/null +++ b/src/Generated/TenantRelationships/MultiTenantOrganization/JoinRequest/JoinRequestRequestBuilderPatchRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/TenantRelationships/MultiTenantOrganization/MultiTenantOrganizationRequestBuilder.php b/src/Generated/TenantRelationships/MultiTenantOrganization/MultiTenantOrganizationRequestBuilder.php new file mode 100644 index 00000000000..55b1378280f --- /dev/null +++ b/src/Generated/TenantRelationships/MultiTenantOrganization/MultiTenantOrganizationRequestBuilder.php @@ -0,0 +1,128 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the tenants property of the microsoft.graph.multiTenantOrganization entity. + */ + public function tenants(): TenantsRequestBuilder { + return new TenantsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new MultiTenantOrganizationRequestBuilder and sets the default values. + * @param array|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}/tenantRelationships/multiTenantOrganization{?%24expand,%24select}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Defines an organization with more than one instance of Microsoft Entra ID. + * @param MultiTenantOrganizationRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?MultiTenantOrganizationRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MultiTenantOrganization::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Update the navigation property multiTenantOrganization in tenantRelationships + * @param MultiTenantOrganization $body The request body + * @param MultiTenantOrganizationRequestBuilderPutRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function put(MultiTenantOrganization $body, ?MultiTenantOrganizationRequestBuilderPutRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPutRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MultiTenantOrganization::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Defines an organization with more than one instance of Microsoft Entra ID. + * @param MultiTenantOrganizationRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MultiTenantOrganizationRequestBuilderGetRequestConfiguration $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; + } + + /** + * Update the navigation property multiTenantOrganization in tenantRelationships + * @param MultiTenantOrganization $body The request body + * @param MultiTenantOrganizationRequestBuilderPutRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPutRequestInformation(MultiTenantOrganization $body, ?MultiTenantOrganizationRequestBuilderPutRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PUT; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + 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 MultiTenantOrganizationRequestBuilder + */ + public function withUrl(string $rawUrl): MultiTenantOrganizationRequestBuilder { + return new MultiTenantOrganizationRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/TenantRelationships/MultiTenantOrganization/MultiTenantOrganizationRequestBuilderGetQueryParameters.php b/src/Generated/TenantRelationships/MultiTenantOrganization/MultiTenantOrganizationRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..0cc0093d924 --- /dev/null +++ b/src/Generated/TenantRelationships/MultiTenantOrganization/MultiTenantOrganizationRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * Instantiates a new MultiTenantOrganizationRequestBuilderGetQueryParameters and sets the default values. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + */ + public function __construct(?array $expand = null, ?array $select = null) { + $this->expand = $expand; + $this->select = $select; + } + +} diff --git a/src/Generated/TenantRelationships/MultiTenantOrganization/MultiTenantOrganizationRequestBuilderGetRequestConfiguration.php b/src/Generated/TenantRelationships/MultiTenantOrganization/MultiTenantOrganizationRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..8d09c900f90 --- /dev/null +++ b/src/Generated/TenantRelationships/MultiTenantOrganization/MultiTenantOrganizationRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MultiTenantOrganizationRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MultiTenantOrganizationRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new MultiTenantOrganizationRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return MultiTenantOrganizationRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): MultiTenantOrganizationRequestBuilderGetQueryParameters { + return new MultiTenantOrganizationRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/TenantRelationships/MultiTenantOrganization/MultiTenantOrganizationRequestBuilderPutRequestConfiguration.php b/src/Generated/TenantRelationships/MultiTenantOrganization/MultiTenantOrganizationRequestBuilderPutRequestConfiguration.php new file mode 100644 index 00000000000..5aa54f0fa25 --- /dev/null +++ b/src/Generated/TenantRelationships/MultiTenantOrganization/MultiTenantOrganizationRequestBuilderPutRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/TenantRelationships/MultiTenantOrganization/Tenants/Count/CountRequestBuilder.php b/src/Generated/TenantRelationships/MultiTenantOrganization/Tenants/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..998db463a77 --- /dev/null +++ b/src/Generated/TenantRelationships/MultiTenantOrganization/Tenants/Count/CountRequestBuilder.php @@ -0,0 +1,78 @@ +|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}/tenantRelationships/multiTenantOrganization/tenants/$count{?%24filter,%24search}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get the number of the resource + * @param CountRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + /** @var Promise $result */ + $result = $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + return $result; + } + + /** + * Get the number of the resource + * @param CountRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?CountRequestBuilderGetRequestConfiguration $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', "text/plain;q=0.9"); + 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 CountRequestBuilder + */ + public function withUrl(string $rawUrl): CountRequestBuilder { + return new CountRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/TenantRelationships/MultiTenantOrganization/Tenants/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/TenantRelationships/MultiTenantOrganization/Tenants/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..699cafcf546 --- /dev/null +++ b/src/Generated/TenantRelationships/MultiTenantOrganization/Tenants/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/TenantRelationships/MultiTenantOrganization/Tenants/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/TenantRelationships/MultiTenantOrganization/Tenants/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..6befe00e857 --- /dev/null +++ b/src/Generated/TenantRelationships/MultiTenantOrganization/Tenants/Count/CountRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param CountRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?CountRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new CountRequestBuilderGetQueryParameters. + * @param string|null $filter Filter items by property values + * @param string|null $search Search items by search phrases + * @return CountRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?string $filter = null, ?string $search = null): CountRequestBuilderGetQueryParameters { + return new CountRequestBuilderGetQueryParameters($filter, $search); + } + +} diff --git a/src/Generated/TenantRelationships/MultiTenantOrganization/Tenants/Item/MultiTenantOrganizationMemberItemRequestBuilder.php b/src/Generated/TenantRelationships/MultiTenantOrganization/Tenants/Item/MultiTenantOrganizationMemberItemRequestBuilder.php new file mode 100644 index 00000000000..dc00687a3e2 --- /dev/null +++ b/src/Generated/TenantRelationships/MultiTenantOrganization/Tenants/Item/MultiTenantOrganizationMemberItemRequestBuilder.php @@ -0,0 +1,144 @@ +|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}/tenantRelationships/multiTenantOrganization/tenants/{multiTenantOrganizationMember%2Did}{?%24expand,%24select}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property tenants for tenantRelationships + * @param MultiTenantOrganizationMemberItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function delete(?MultiTenantOrganizationMemberItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } + + /** + * Defines tenants added to a multitenant organization. + * @param MultiTenantOrganizationMemberItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?MultiTenantOrganizationMemberItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MultiTenantOrganizationMember::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Update the navigation property tenants in tenantRelationships + * @param MultiTenantOrganizationMember $body The request body + * @param MultiTenantOrganizationMemberItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function patch(MultiTenantOrganizationMember $body, ?MultiTenantOrganizationMemberItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MultiTenantOrganizationMember::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Delete navigation property tenants for tenantRelationships + * @param MultiTenantOrganizationMemberItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?MultiTenantOrganizationMemberItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::DELETE; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Defines tenants added to a multitenant organization. + * @param MultiTenantOrganizationMemberItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MultiTenantOrganizationMemberItemRequestBuilderGetRequestConfiguration $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; + } + + /** + * Update the navigation property tenants in tenantRelationships + * @param MultiTenantOrganizationMember $body The request body + * @param MultiTenantOrganizationMemberItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(MultiTenantOrganizationMember $body, ?MultiTenantOrganizationMemberItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + 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 MultiTenantOrganizationMemberItemRequestBuilder + */ + public function withUrl(string $rawUrl): MultiTenantOrganizationMemberItemRequestBuilder { + return new MultiTenantOrganizationMemberItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/TenantRelationships/MultiTenantOrganization/Tenants/Item/MultiTenantOrganizationMemberItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/TenantRelationships/MultiTenantOrganization/Tenants/Item/MultiTenantOrganizationMemberItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..e968d2e3c66 --- /dev/null +++ b/src/Generated/TenantRelationships/MultiTenantOrganization/Tenants/Item/MultiTenantOrganizationMemberItemRequestBuilderDeleteRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/TenantRelationships/MultiTenantOrganization/Tenants/Item/MultiTenantOrganizationMemberItemRequestBuilderGetQueryParameters.php b/src/Generated/TenantRelationships/MultiTenantOrganization/Tenants/Item/MultiTenantOrganizationMemberItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..3d35b67ac12 --- /dev/null +++ b/src/Generated/TenantRelationships/MultiTenantOrganization/Tenants/Item/MultiTenantOrganizationMemberItemRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * Instantiates a new MultiTenantOrganizationMemberItemRequestBuilderGetQueryParameters and sets the default values. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + */ + public function __construct(?array $expand = null, ?array $select = null) { + $this->expand = $expand; + $this->select = $select; + } + +} diff --git a/src/Generated/TenantRelationships/MultiTenantOrganization/Tenants/Item/MultiTenantOrganizationMemberItemRequestBuilderGetRequestConfiguration.php b/src/Generated/TenantRelationships/MultiTenantOrganization/Tenants/Item/MultiTenantOrganizationMemberItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..6da2363d615 --- /dev/null +++ b/src/Generated/TenantRelationships/MultiTenantOrganization/Tenants/Item/MultiTenantOrganizationMemberItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MultiTenantOrganizationMemberItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MultiTenantOrganizationMemberItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new MultiTenantOrganizationMemberItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return MultiTenantOrganizationMemberItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): MultiTenantOrganizationMemberItemRequestBuilderGetQueryParameters { + return new MultiTenantOrganizationMemberItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/TenantRelationships/MultiTenantOrganization/Tenants/Item/MultiTenantOrganizationMemberItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/TenantRelationships/MultiTenantOrganization/Tenants/Item/MultiTenantOrganizationMemberItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..1750f6c8082 --- /dev/null +++ b/src/Generated/TenantRelationships/MultiTenantOrganization/Tenants/Item/MultiTenantOrganizationMemberItemRequestBuilderPatchRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/TenantRelationships/MultiTenantOrganization/Tenants/TenantsRequestBuilder.php b/src/Generated/TenantRelationships/MultiTenantOrganization/Tenants/TenantsRequestBuilder.php new file mode 100644 index 00000000000..867e54b3bac --- /dev/null +++ b/src/Generated/TenantRelationships/MultiTenantOrganization/Tenants/TenantsRequestBuilder.php @@ -0,0 +1,133 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the tenants property of the microsoft.graph.multiTenantOrganization entity. + * @param string $multiTenantOrganizationMemberId The unique identifier of multiTenantOrganizationMember + * @return MultiTenantOrganizationMemberItemRequestBuilder + */ + public function byMultiTenantOrganizationMemberId(string $multiTenantOrganizationMemberId): MultiTenantOrganizationMemberItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['multiTenantOrganizationMember%2Did'] = $multiTenantOrganizationMemberId; + return new MultiTenantOrganizationMemberItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new TenantsRequestBuilder and sets the default values. + * @param array|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}/tenantRelationships/multiTenantOrganization/tenants{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Defines tenants added to a multitenant organization. + * @param TenantsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?TenantsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MultiTenantOrganizationMemberCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Create new navigation property to tenants for tenantRelationships + * @param MultiTenantOrganizationMember $body The request body + * @param TenantsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function post(MultiTenantOrganizationMember $body, ?TenantsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MultiTenantOrganizationMember::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Defines tenants added to a multitenant organization. + * @param TenantsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?TenantsRequestBuilderGetRequestConfiguration $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; + } + + /** + * Create new navigation property to tenants for tenantRelationships + * @param MultiTenantOrganizationMember $body The request body + * @param TenantsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(MultiTenantOrganizationMember $body, ?TenantsRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + 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 TenantsRequestBuilder + */ + public function withUrl(string $rawUrl): TenantsRequestBuilder { + return new TenantsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/TenantRelationships/MultiTenantOrganization/Tenants/TenantsRequestBuilderGetQueryParameters.php b/src/Generated/TenantRelationships/MultiTenantOrganization/Tenants/TenantsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..5a6d81786e6 --- /dev/null +++ b/src/Generated/TenantRelationships/MultiTenantOrganization/Tenants/TenantsRequestBuilderGetQueryParameters.php @@ -0,0 +1,82 @@ +|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|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|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 TenantsRequestBuilderGetQueryParameters and sets the default values. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|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; + } + +} diff --git a/src/Generated/TenantRelationships/MultiTenantOrganization/Tenants/TenantsRequestBuilderGetRequestConfiguration.php b/src/Generated/TenantRelationships/MultiTenantOrganization/Tenants/TenantsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..1ee8a3abdbe --- /dev/null +++ b/src/Generated/TenantRelationships/MultiTenantOrganization/Tenants/TenantsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param TenantsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?TenantsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new TenantsRequestBuilderGetQueryParameters. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|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 + * @return TenantsRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?bool $count = null, ?array $expand = null, ?string $filter = null, ?array $orderby = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null): TenantsRequestBuilderGetQueryParameters { + return new TenantsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/TenantRelationships/MultiTenantOrganization/Tenants/TenantsRequestBuilderPostRequestConfiguration.php b/src/Generated/TenantRelationships/MultiTenantOrganization/Tenants/TenantsRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..d1c792daf49 --- /dev/null +++ b/src/Generated/TenantRelationships/MultiTenantOrganization/Tenants/TenantsRequestBuilderPostRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/TenantRelationships/TenantRelationshipsRequestBuilder.php b/src/Generated/TenantRelationships/TenantRelationshipsRequestBuilder.php index a5241892e70..03f5f2a8115 100644 --- a/src/Generated/TenantRelationships/TenantRelationshipsRequestBuilder.php +++ b/src/Generated/TenantRelationships/TenantRelationshipsRequestBuilder.php @@ -10,6 +10,7 @@ use Microsoft\Graph\Generated\TenantRelationships\DelegatedAdminRelationships\DelegatedAdminRelationshipsRequestBuilder; use Microsoft\Graph\Generated\TenantRelationships\FindTenantInformationByDomainNameWithDomainName\FindTenantInformationByDomainNameWithDomainNameRequestBuilder; use Microsoft\Graph\Generated\TenantRelationships\FindTenantInformationByTenantIdWithTenantId\FindTenantInformationByTenantIdWithTenantIdRequestBuilder; +use Microsoft\Graph\Generated\TenantRelationships\MultiTenantOrganization\MultiTenantOrganizationRequestBuilder; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; use Microsoft\Kiota\Abstractions\HttpMethod; use Microsoft\Kiota\Abstractions\RequestAdapter; @@ -34,6 +35,13 @@ public function delegatedAdminRelationships(): DelegatedAdminRelationshipsReques return new DelegatedAdminRelationshipsRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * Provides operations to manage the multiTenantOrganization property of the microsoft.graph.tenantRelationship entity. + */ + public function multiTenantOrganization(): MultiTenantOrganizationRequestBuilder { + return new MultiTenantOrganizationRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new TenantRelationshipsRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. diff --git a/src/Generated/Users/Item/UserItemRequestBuilder.php b/src/Generated/Users/Item/UserItemRequestBuilder.php index 1fbb2374097..ce5746561cb 100644 --- a/src/Generated/Users/Item/UserItemRequestBuilder.php +++ b/src/Generated/Users/Item/UserItemRequestBuilder.php @@ -621,7 +621,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap * @param UserItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/intune-mam-user-delete?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-onboarding-user-delete?view=graph-rest-1.0 Find more info here */ public function delete(?UserItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); @@ -642,11 +642,11 @@ public function exportDeviceAndAppManagementDataWithSkipWithTop(int $skip, int $ } /** - * Retrieve the properties and relationships of user object. This operation returns by default only a subset of the more commonly used properties for each user. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation for the user and specify the properties in a $select OData query option. Because the user resource supports extensions, you can also use the GET operation to get custom properties and extension data in a user instance. Customers through Microsoft Entra ID for customers can also use this API operation to retrieve their details. + * Read properties and relationships of the user object. * @param UserItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/user-get?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-onboarding-user-get?view=graph-rest-1.0 Find more info here */ public function get(?UserItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -701,7 +701,7 @@ public function toDeleteRequestInformation(?UserItemRequestBuilderDeleteRequestC } /** - * Retrieve the properties and relationships of user object. This operation returns by default only a subset of the more commonly used properties for each user. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation for the user and specify the properties in a $select OData query option. Because the user resource supports extensions, you can also use the GET operation to get custom properties and extension data in a user instance. Customers through Microsoft Entra ID for customers can also use this API operation to retrieve their details. + * Read properties and relationships of the user object. * @param UserItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Users/Item/UserItemRequestBuilderGetQueryParameters.php b/src/Generated/Users/Item/UserItemRequestBuilderGetQueryParameters.php index 02898a7be9e..4ffb975bcb1 100644 --- a/src/Generated/Users/Item/UserItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Users/Item/UserItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of user object. This operation returns by default only a subset of the more commonly used properties for each user. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation for the user and specify the properties in a $select OData query option. Because the user resource supports extensions, you can also use the GET operation to get custom properties and extension data in a user instance. Customers through Microsoft Entra ID for customers can also use this API operation to retrieve their details. + * Read properties and relationships of the user object. */ class UserItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Users/UsersRequestBuilder.php b/src/Generated/Users/UsersRequestBuilder.php index a5d30dddb13..563bba6427b 100644 --- a/src/Generated/Users/UsersRequestBuilder.php +++ b/src/Generated/Users/UsersRequestBuilder.php @@ -88,7 +88,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap * @param UsersRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/intune-onboarding-user-list?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-mam-user-list?view=graph-rest-1.0 Find more info here */ public function get(?UsersRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -104,7 +104,7 @@ public function get(?UsersRequestBuilderGetRequestConfiguration $requestConfigur * @param UsersRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/intune-onboarding-user-create?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-mam-user-create?view=graph-rest-1.0 Find more info here */ public function post(User $body, ?UsersRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); diff --git a/src/Generated/kiota-lock.json b/src/Generated/kiota-lock.json index 7ad8e08ea0d..5edbafd867c 100644 --- a/src/Generated/kiota-lock.json +++ b/src/Generated/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "1FA5A73C80B5B535C74165934EA57BBEB80E01CB91CFC4F4F6B7B21D613B71AD4B9942DDE4150AD865F37B2475B998C472AC4C243BEFBF39F50240D410AC2250", + "descriptionHash": "801A3D86D0C29399A3F7783193B0E8E23B6655E770F29AC921BEF74DBE2E1AEC745EFCA886EAE8672A562EDB72EF4F4D98214A68C8FF2751573677EB5F23C668", "descriptionLocation": "../../msgraph-metadata/clean_v10_openapi/openapi.yaml", "lockFileVersion": "1.0.0", "kiotaVersion": "1.14.0", diff --git a/src/GraphConstants.php b/src/GraphConstants.php index 4148544718a..dee275d399c 100644 --- a/src/GraphConstants.php +++ b/src/GraphConstants.php @@ -19,5 +19,5 @@ final class GraphConstants { const API_VERSION = "v1.0"; - const SDK_VERSION = "2.6.0"; + const SDK_VERSION = "2.7.0"; }