diff --git a/README.md b/README.md index f35d97fa431..c9c6670551d 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ You can install the Beta PHP SDK with Composer by editing your `composer.json` f { "minimum-stability": "RC", "require": { - "microsoft/microsoft-graph-beta": "^2.0.0-RC16", + "microsoft/microsoft-graph-beta": "^2.0.0-RC18", } } ``` @@ -17,7 +17,7 @@ OR ``` { "require": { - "microsoft/microsoft-graph-beta": "^2.0.0-RC16", + "microsoft/microsoft-graph-beta": "^2.0.0-RC18", "microsoft/microsoft-graph-core": "@RC" } } diff --git a/src/Generated/Admin/Windows/Updates/ResourceConnections/Item/ResourceConnectionItemRequestBuilder.php b/src/Generated/Admin/Windows/Updates/ResourceConnections/Item/ResourceConnectionItemRequestBuilder.php index af576ea2ec3..721f2e8156d 100644 --- a/src/Generated/Admin/Windows/Updates/ResourceConnections/Item/ResourceConnectionItemRequestBuilder.php +++ b/src/Generated/Admin/Windows/Updates/ResourceConnections/Item/ResourceConnectionItemRequestBuilder.php @@ -51,10 +51,10 @@ public function delete(?ResourceConnectionItemRequestBuilderDeleteRequestConfigu } /** - * Read the properties and relationships of an operationalInsightsConnection object. + * Read the properties and relationships of a resourceConnection object. * @param ResourceConnectionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://docs.microsoft.com/graph/api/windowsupdates-operationalinsightsconnection-get?view=graph-rest-1.0 Find more info here + * @link https://docs.microsoft.com/graph/api/windowsupdates-resourceconnection-get?view=graph-rest-1.0 Find more info here */ public function get(?ResourceConnectionItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -106,7 +106,7 @@ public function toDeleteRequestInformation(?ResourceConnectionItemRequestBuilder } /** - * Read the properties and relationships of an operationalInsightsConnection object. + * Read the properties and relationships of a resourceConnection object. * @param ResourceConnectionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Admin/Windows/Updates/ResourceConnections/Item/ResourceConnectionItemRequestBuilderGetQueryParameters.php b/src/Generated/Admin/Windows/Updates/ResourceConnections/Item/ResourceConnectionItemRequestBuilderGetQueryParameters.php index b66c01b89f0..8b1c41acdc1 100644 --- a/src/Generated/Admin/Windows/Updates/ResourceConnections/Item/ResourceConnectionItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Admin/Windows/Updates/ResourceConnections/Item/ResourceConnectionItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties and relationships of an operationalInsightsConnection object. + * Read the properties and relationships of a resourceConnection object. */ class ResourceConnectionItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Admin/Windows/Updates/UpdatableAssets/Item/UpdatableAssetItemRequestBuilder.php b/src/Generated/Admin/Windows/Updates/UpdatableAssets/Item/UpdatableAssetItemRequestBuilder.php index d6c808b1065..01cf1e81f54 100644 --- a/src/Generated/Admin/Windows/Updates/UpdatableAssets/Item/UpdatableAssetItemRequestBuilder.php +++ b/src/Generated/Admin/Windows/Updates/UpdatableAssets/Item/UpdatableAssetItemRequestBuilder.php @@ -64,10 +64,10 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete an updatableAssetGroup object. When an updatableAssetGroup object, its member updatableAsset objects are not deleted. + * Delete an updatableAsset object. * @param UpdatableAssetItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://docs.microsoft.com/graph/api/windowsupdates-updatableassetgroup-delete?view=graph-rest-1.0 Find more info here + * @link https://docs.microsoft.com/graph/api/windowsupdates-updatableasset-delete?view=graph-rest-1.0 Find more info here */ public function delete(?UpdatableAssetItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); @@ -121,7 +121,7 @@ public function patch(UpdatableAsset $body, ?UpdatableAssetItemRequestBuilderPat } /** - * Delete an updatableAssetGroup object. When an updatableAssetGroup object, its member updatableAsset objects are not deleted. + * Delete an updatableAsset object. * @param UpdatableAssetItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Admin/Windows/Updates/UpdatePolicies/Item/ComplianceChanges/Item/ComplianceChangeItemRequestBuilder.php b/src/Generated/Admin/Windows/Updates/UpdatePolicies/Item/ComplianceChanges/Item/ComplianceChangeItemRequestBuilder.php index 807bc66d70f..3a34f025e68 100644 --- a/src/Generated/Admin/Windows/Updates/UpdatePolicies/Item/ComplianceChanges/Item/ComplianceChangeItemRequestBuilder.php +++ b/src/Generated/Admin/Windows/Updates/UpdatePolicies/Item/ComplianceChanges/Item/ComplianceChangeItemRequestBuilder.php @@ -40,10 +40,10 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete a contentApproval object. + * Delete a complianceChange object. * @param ComplianceChangeItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://docs.microsoft.com/graph/api/windowsupdates-contentapproval-delete?view=graph-rest-1.0 Find more info here + * @link https://docs.microsoft.com/graph/api/windowsupdates-compliancechange-delete?view=graph-rest-1.0 Find more info here */ public function delete(?ComplianceChangeItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); @@ -59,10 +59,10 @@ public function delete(?ComplianceChangeItemRequestBuilderDeleteRequestConfigura } /** - * Read the properties and relationships of a contentApproval object. + * Read the properties and relationships of a complianceChange object. * @param ComplianceChangeItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://docs.microsoft.com/graph/api/windowsupdates-contentapproval-get?view=graph-rest-1.0 Find more info here + * @link https://docs.microsoft.com/graph/api/windowsupdates-compliancechange-get?view=graph-rest-1.0 Find more info here */ public function get(?ComplianceChangeItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -78,11 +78,11 @@ public function get(?ComplianceChangeItemRequestBuilderGetRequestConfiguration $ } /** - * Update the properties of a contentApproval object. + * Update the properties of a complianceChange object. * @param ComplianceChange $body The request body * @param ComplianceChangeItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://docs.microsoft.com/graph/api/windowsupdates-contentapproval-update?view=graph-rest-1.0 Find more info here + * @link https://docs.microsoft.com/graph/api/windowsupdates-compliancechange-update?view=graph-rest-1.0 Find more info here */ public function patch(ComplianceChange $body, ?ComplianceChangeItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); @@ -98,7 +98,7 @@ public function patch(ComplianceChange $body, ?ComplianceChangeItemRequestBuilde } /** - * Delete a contentApproval object. + * Delete a complianceChange object. * @param ComplianceChangeItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -115,7 +115,7 @@ public function toDeleteRequestInformation(?ComplianceChangeItemRequestBuilderDe } /** - * Read the properties and relationships of a contentApproval object. + * Read the properties and relationships of a complianceChange object. * @param ComplianceChangeItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -136,7 +136,7 @@ public function toGetRequestInformation(?ComplianceChangeItemRequestBuilderGetRe } /** - * Update the properties of a contentApproval object. + * Update the properties of a complianceChange object. * @param ComplianceChange $body The request body * @param ComplianceChangeItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Admin/Windows/Updates/UpdatePolicies/Item/ComplianceChanges/Item/ComplianceChangeItemRequestBuilderGetQueryParameters.php b/src/Generated/Admin/Windows/Updates/UpdatePolicies/Item/ComplianceChanges/Item/ComplianceChangeItemRequestBuilderGetQueryParameters.php index 5b30a33bd5f..6397a2b5e15 100644 --- a/src/Generated/Admin/Windows/Updates/UpdatePolicies/Item/ComplianceChanges/Item/ComplianceChangeItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Admin/Windows/Updates/UpdatePolicies/Item/ComplianceChanges/Item/ComplianceChangeItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties and relationships of a contentApproval object. + * Read the properties and relationships of a complianceChange object. */ class ComplianceChangeItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/App/Calls/Item/Participants/Invite/InviteRequestBuilder.php b/src/Generated/App/Calls/Item/Participants/Invite/InviteRequestBuilder.php index f9e7321afae..7858077fb7b 100644 --- a/src/Generated/App/Calls/Item/Participants/Invite/InviteRequestBuilder.php +++ b/src/Generated/App/Calls/Item/Participants/Invite/InviteRequestBuilder.php @@ -32,11 +32,11 @@ 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 - * @link https://docs.microsoft.com/graph/api/participant-invite?view=graph-rest-1.0 Find more info here + * @link https://docs.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); @@ -52,7 +52,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/App/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.php b/src/Generated/App/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.php index d06f635e745..37c658615ab 100644 --- a/src/Generated/App/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.php +++ b/src/Generated/App/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.php @@ -48,10 +48,10 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Disable and delete the meetingRegistration of an onlineMeeting on behalf of the organizer. + * Disable and delete the externalMeetingRegistration of an onlineMeeting. * @param RegistrationRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://docs.microsoft.com/graph/api/meetingregistration-delete?view=graph-rest-1.0 Find more info here + * @link https://docs.microsoft.com/graph/api/externalmeetingregistration-delete?view=graph-rest-1.0 Find more info here */ public function delete(?RegistrationRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); @@ -106,7 +106,7 @@ public function patch(MeetingRegistration $body, ?RegistrationRequestBuilderPatc } /** - * Disable and delete the meetingRegistration of an onlineMeeting on behalf of the organizer. + * Disable and delete the externalMeetingRegistration of an onlineMeeting. * @param RegistrationRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/BaseGraphClient.php b/src/Generated/BaseGraphClient.php index 2af2c346c1c..e32fb1f749d 100644 --- a/src/Generated/BaseGraphClient.php +++ b/src/Generated/BaseGraphClient.php @@ -70,6 +70,7 @@ use Microsoft\Graph\Beta\Generated\MessageTraces\MessageTracesRequestBuilder; use Microsoft\Graph\Beta\Generated\MobilityManagementPolicies\MobilityManagementPoliciesRequestBuilder; use Microsoft\Graph\Beta\Generated\Monitoring\MonitoringRequestBuilder; +use Microsoft\Graph\Beta\Generated\NetworkAccess\NetworkAccessRequestBuilder; use Microsoft\Graph\Beta\Generated\Oauth2PermissionGrants\Oauth2PermissionGrantsRequestBuilder; use Microsoft\Graph\Beta\Generated\OnPremisesPublishingProfiles\OnPremisesPublishingProfilesRequestBuilder; use Microsoft\Graph\Beta\Generated\Organization\OrganizationRequestBuilder; @@ -604,6 +605,13 @@ public function monitoring(): MonitoringRequestBuilder { return new MonitoringRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * Provides operations to manage the networkAccessRoot singleton. + */ + public function networkAccess(): NetworkAccessRequestBuilder { + return new NetworkAccessRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Provides operations to manage the collection of oAuth2PermissionGrant entities. */ diff --git a/src/Generated/Chats/Item/Messages/MessagesRequestBuilder.php b/src/Generated/Chats/Item/Messages/MessagesRequestBuilder.php index 80670791792..9ec0a30cbce 100644 --- a/src/Generated/Chats/Item/Messages/MessagesRequestBuilder.php +++ b/src/Generated/Chats/Item/Messages/MessagesRequestBuilder.php @@ -80,11 +80,11 @@ public function get(?MessagesRequestBuilderGetRequestConfiguration $requestConfi } /** - * Send a new chatMessage in the specified chat. This API cannot create a new chat; you must use the list chats method to retrieve the ID of an existing chat before creating a chat message. + * Send a new chatMessage in the specified channel or a chat. * @param ChatMessage $body The request body * @param MessagesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://docs.microsoft.com/graph/api/chat-post-messages?view=graph-rest-1.0 Find more info here + * @link https://docs.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0 Find more info here */ public function post(ChatMessage $body, ?MessagesRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -121,7 +121,7 @@ public function toGetRequestInformation(?MessagesRequestBuilderGetRequestConfigu } /** - * Send a new chatMessage in the specified chat. This API cannot create a new chat; you must use the list chats method to retrieve the ID of an existing chat before creating a chat message. + * Send a new chatMessage in the specified channel or a chat. * @param ChatMessage $body The request body * @param MessagesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Communications/Calls/Item/Participants/Invite/InviteRequestBuilder.php b/src/Generated/Communications/Calls/Item/Participants/Invite/InviteRequestBuilder.php index 4ea7c1607c3..ea830bf3add 100644 --- a/src/Generated/Communications/Calls/Item/Participants/Invite/InviteRequestBuilder.php +++ b/src/Generated/Communications/Calls/Item/Participants/Invite/InviteRequestBuilder.php @@ -32,11 +32,11 @@ 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 - * @link https://docs.microsoft.com/graph/api/participant-invite?view=graph-rest-1.0 Find more info here + * @link https://docs.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); @@ -52,7 +52,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/Communications/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.php b/src/Generated/Communications/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.php index 50bc235687a..d74d6474be6 100644 --- a/src/Generated/Communications/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.php +++ b/src/Generated/Communications/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.php @@ -48,10 +48,10 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Disable and delete the meetingRegistration of an onlineMeeting on behalf of the organizer. + * Disable and delete the externalMeetingRegistration of an onlineMeeting. * @param RegistrationRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://docs.microsoft.com/graph/api/meetingregistration-delete?view=graph-rest-1.0 Find more info here + * @link https://docs.microsoft.com/graph/api/externalmeetingregistration-delete?view=graph-rest-1.0 Find more info here */ public function delete(?RegistrationRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); @@ -106,7 +106,7 @@ public function patch(MeetingRegistration $body, ?RegistrationRequestBuilderPatc } /** - * Disable and delete the meetingRegistration of an onlineMeeting on behalf of the organizer. + * Disable and delete the externalMeetingRegistration of an onlineMeeting. * @param RegistrationRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/ApplyConfig/ApplyConfigPostRequestBody.php b/src/Generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/ApplyConfig/ApplyConfigPostRequestBody.php index f8d47fafc61..0a64dde7471 100644 --- a/src/Generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/ApplyConfig/ApplyConfigPostRequestBody.php +++ b/src/Generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/ApplyConfig/ApplyConfigPostRequestBody.php @@ -2,6 +2,7 @@ namespace Microsoft\Graph\Beta\Generated\DeviceManagement\VirtualEndpoint\ProvisioningPolicies\ApplyConfig; +use Microsoft\Graph\Beta\Generated\Models\CloudPcPolicySettingType; use Microsoft\Kiota\Abstractions\Serialization\AdditionalDataHolder; use Microsoft\Kiota\Abstractions\Serialization\Parsable; use Microsoft\Kiota\Abstractions\Serialization\ParseNode; @@ -66,15 +67,25 @@ public function getFieldDeserializers(): array { $o = $this; return [ 'cloudPcIds' => fn(ParseNode $n) => $o->setCloudPcIds($n->getCollectionOfPrimitiveValues()), + 'policySettings' => fn(ParseNode $n) => $o->setPolicySettings($n->getEnumValue(CloudPcPolicySettingType::class)), ]; } + /** + * Gets the policySettings property value. The policySettings property + * @return CloudPcPolicySettingType|null + */ + public function getPolicySettings(): ?CloudPcPolicySettingType { + return $this->getBackingStore()->get('policySettings'); + } + /** * Serializes information the current object * @param SerializationWriter $writer Serialization writer to use to serialize this model */ public function serialize(SerializationWriter $writer): void { $writer->writeCollectionOfPrimitiveValues('cloudPcIds', $this->getCloudPcIds()); + $writer->writeEnumValue('policySettings', $this->getPolicySettings()); $writer->writeAdditionalData($this->getAdditionalData()); } @@ -102,4 +113,12 @@ public function setCloudPcIds(?array $value): void { $this->getBackingStore()->set('cloudPcIds', $value); } + /** + * Sets the policySettings property value. The policySettings property + * @param CloudPcPolicySettingType|null $value Value to set for the policySettings property. + */ + public function setPolicySettings(?CloudPcPolicySettingType $value): void { + $this->getBackingStore()->set('policySettings', $value); + } + } diff --git a/src/Generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Apply/ApplyPostRequestBody.php b/src/Generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Apply/ApplyPostRequestBody.php new file mode 100644 index 00000000000..041686888b4 --- /dev/null +++ b/src/Generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Apply/ApplyPostRequestBody.php @@ -0,0 +1,106 @@ +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 ApplyPostRequestBody + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): ApplyPostRequestBody { + return new ApplyPostRequestBody(); + } + + /** + * 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 { + return $this->getBackingStore()->get('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 [ + 'policySettings' => fn(ParseNode $n) => $o->setPolicySettings($n->getEnumValue(CloudPcPolicySettingType::class)), + ]; + } + + /** + * Gets the policySettings property value. The policySettings property + * @return CloudPcPolicySettingType|null + */ + public function getPolicySettings(): ?CloudPcPolicySettingType { + return $this->getBackingStore()->get('policySettings'); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + $writer->writeEnumValue('policySettings', $this->getPolicySettings()); + $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 policySettings property value. The policySettings property + * @param CloudPcPolicySettingType|null $value Value to set for the policySettings property. + */ + public function setPolicySettings(?CloudPcPolicySettingType $value): void { + $this->getBackingStore()->set('policySettings', $value); + } + +} diff --git a/src/Generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Apply/ApplyRequestBuilder.php b/src/Generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Apply/ApplyRequestBuilder.php index a7ff9558afa..fa859de9293 100644 --- a/src/Generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Apply/ApplyRequestBuilder.php +++ b/src/Generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Apply/ApplyRequestBuilder.php @@ -32,11 +32,12 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap /** * Invoke action apply + * @param ApplyPostRequestBody $body The request body * @param ApplyRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ - public function post(?ApplyRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { - $requestInfo = $this->toPostRequestInformation($requestConfiguration); + public function post(ApplyPostRequestBody $body, ?ApplyRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); try { $errorMappings = [ '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], @@ -50,10 +51,11 @@ public function post(?ApplyRequestBuilderPostRequestConfiguration $requestConfig /** * Invoke action apply + * @param ApplyPostRequestBody $body The request body * @param ApplyRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ - public function toPostRequestInformation(?ApplyRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + public function toPostRequestInformation(ApplyPostRequestBody $body, ?ApplyRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { $requestInfo = new RequestInformation(); $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; @@ -62,6 +64,7 @@ public function toPostRequestInformation(?ApplyRequestBuilderPostRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/VirtualEndpoint/Reports/ExportJobs/ExportJobsRequestBuilder.php b/src/Generated/DeviceManagement/VirtualEndpoint/Reports/ExportJobs/ExportJobsRequestBuilder.php index 7097eb26943..f972cbf7e5a 100644 --- a/src/Generated/DeviceManagement/VirtualEndpoint/Reports/ExportJobs/ExportJobsRequestBuilder.php +++ b/src/Generated/DeviceManagement/VirtualEndpoint/Reports/ExportJobs/ExportJobsRequestBuilder.php @@ -71,7 +71,7 @@ public function get(?ExportJobsRequestBuilderGetRequestConfiguration $requestCon } /** - * Create a new cloudPcExportJob resource to initiate downloading the entire or specified portion of a report. Use the GET cloudPcExportJob operation to verify the **exportJobStatus** property of the **cloudPcExportJob** resource. When the property becomes `completed`, the report has finished downloading in the location specified by the **exportUrl** property. + * Create a new cloudPcExportJob resource to initiate downloading the entire or specified portion of a report. Use the GET cloudPcExportJob operation to verify the **exportJobStatus** property of the **cloudPcExportJob** resource. When the property result is `completed`, the report has finished downloading to the location specified by the **exportUrl** property. * @param CloudPcExportJob $body The request body * @param ExportJobsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -112,7 +112,7 @@ public function toGetRequestInformation(?ExportJobsRequestBuilderGetRequestConfi } /** - * Create a new cloudPcExportJob resource to initiate downloading the entire or specified portion of a report. Use the GET cloudPcExportJob operation to verify the **exportJobStatus** property of the **cloudPcExportJob** resource. When the property becomes `completed`, the report has finished downloading in the location specified by the **exportUrl** property. + * Create a new cloudPcExportJob resource to initiate downloading the entire or specified portion of a report. Use the GET cloudPcExportJob operation to verify the **exportJobStatus** property of the **cloudPcExportJob** resource. When the property result is `completed`, the report has finished downloading to the location specified by the **exportUrl** property. * @param CloudPcExportJob $body The request body * @param ExportJobsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Directory/DirectoryRequestBuilder.php b/src/Generated/Directory/DirectoryRequestBuilder.php index 41cfc13f83b..bb5c4a60360 100644 --- a/src/Generated/Directory/DirectoryRequestBuilder.php +++ b/src/Generated/Directory/DirectoryRequestBuilder.php @@ -18,6 +18,7 @@ use Microsoft\Graph\Beta\Generated\Directory\OutboundSharedUserProfiles\OutboundSharedUserProfilesRequestBuilder; use Microsoft\Graph\Beta\Generated\Directory\Recommendations\RecommendationsRequestBuilder; use Microsoft\Graph\Beta\Generated\Directory\SharedEmailDomains\SharedEmailDomainsRequestBuilder; +use Microsoft\Graph\Beta\Generated\Directory\Subscriptions\SubscriptionsRequestBuilder; use Microsoft\Graph\Beta\Generated\Models\Directory; use Microsoft\Graph\Beta\Generated\Models\ODataErrors\ODataError; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; @@ -121,6 +122,13 @@ public function sharedEmailDomains(): SharedEmailDomainsRequestBuilder { return new SharedEmailDomainsRequestBuilder($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. diff --git a/src/Generated/Directory/Subscriptions/Count/CountRequestBuilder.php b/src/Generated/Directory/Subscriptions/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..5a60b551da8 --- /dev/null +++ b/src/Generated/Directory/Subscriptions/Count/CountRequestBuilder.php @@ -0,0 +1,72 @@ +|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{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + +} diff --git a/src/Generated/Directory/Subscriptions/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/Directory/Subscriptions/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..2f8375ddf24 --- /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..a052efa2e8c --- /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..a7823b81cfa --- /dev/null +++ b/src/Generated/Directory/Subscriptions/Item/CompanySubscriptionItemRequestBuilder.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. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/directory/subscriptions/{companySubscription%2Did}{?%24select,%24expand}'); + 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 + */ + public function delete(?CompanySubscriptionItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get subscriptions from directory + * @param CompanySubscriptionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?CompanySubscriptionItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [CompanySubscription::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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 + */ + public function patch(CompanySubscription $body, ?CompanySubscriptionItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [CompanySubscription::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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); + } + 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; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + +} diff --git a/src/Generated/Directory/Subscriptions/Item/CompanySubscriptionItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/Directory/Subscriptions/Item/CompanySubscriptionItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..e6abb7d1a3f --- /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..7caa04f646f --- /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..3d65e02f11a --- /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..01c65e2750d --- /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..074d1283e33 --- /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 Unique identifier of the item + * @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{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + 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 + */ + public function get(?SubscriptionsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [CompanySubscriptionCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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 + */ + public function post(CompanySubscription $body, ?SubscriptionsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [CompanySubscription::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + +} diff --git a/src/Generated/Directory/Subscriptions/SubscriptionsRequestBuilderGetQueryParameters.php b/src/Generated/Directory/Subscriptions/SubscriptionsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..14910b1e7fe --- /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..90441d7deb3 --- /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..4de0b44a349 --- /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/Drives/Item/Items/Item/DriveItemItemRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/DriveItemItemRequestBuilder.php index 3d0d4d2d908..5071bd6b85a 100644 --- a/src/Generated/Drives/Item/Items/Item/DriveItemItemRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/DriveItemItemRequestBuilder.php @@ -308,11 +308,11 @@ public function getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInter } /** - * Update the metadata for a DriveItem by ID or path. You can also use update to move an item to another parent by updating the item's **parentReference** property. + * To move a DriveItem to a new parent item, your app requests to update the **parentReference** of the DriveItem to move. This is a special case of the Update method.Your app can combine moving an item to a new container and updating other properties of the item into a single request. Items cannot be moved between Drives using this request. * @param DriveItem $body The request body * @param DriveItemItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://docs.microsoft.com/graph/api/driveitem-update?view=graph-rest-1.0 Find more info here + * @link https://docs.microsoft.com/graph/api/driveitem-move?view=graph-rest-1.0 Find more info here */ public function patch(DriveItem $body, ?DriveItemItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); @@ -375,7 +375,7 @@ public function toGetRequestInformation(?DriveItemItemRequestBuilderGetRequestCo } /** - * Update the metadata for a DriveItem by ID or path. You can also use update to move an item to another parent by updating the item's **parentReference** property. + * To move a DriveItem to a new parent item, your app requests to update the **parentReference** of the DriveItem to move. This is a special case of the Update method.Your app can combine moving an item to a new container and updating other properties of the item into a single request. Items cannot be moved between Drives using this request. * @param DriveItem $body The request body * @param DriveItemItemRequestBuilderPatchRequestConfiguration|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/Names/Item/Range/RangeRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Names/Item/Range/RangeRequestBuilder.php index c50d616467e..86b51fd5955 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Names/Item/Range/RangeRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Names/Item/Range/RangeRequestBuilder.php @@ -32,10 +32,10 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. + * Retrieve the properties and relationships of range object. * @param RangeRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://docs.microsoft.com/graph/api/nameditem-range?view=graph-rest-1.0 Find more info here + * @link https://docs.microsoft.com/graph/api/range-get?view=graph-rest-1.0 Find more info here */ public function get(?RangeRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -51,7 +51,7 @@ public function get(?RangeRequestBuilderGetRequestConfiguration $requestConfigur } /** - * Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. + * Retrieve the properties and relationships of range object. * @param RangeRequestBuilderGetRequestConfiguration|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/Item/Columns/ColumnsRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/ColumnsRequestBuilder.php index aeb66241f05..8e52ea513fc 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/ColumnsRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/ColumnsRequestBuilder.php @@ -65,7 +65,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap * Retrieve a list of tablecolumn objects. * @param ColumnsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://docs.microsoft.com/graph/api/table-list-columns?view=graph-rest-1.0 Find more info here + * @link https://docs.microsoft.com/graph/api/tablecolumn-list?view=graph-rest-1.0 Find more info here */ public function get(?ColumnsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/RowsRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/RowsRequestBuilder.php index 58878edaf64..93d9b5c3765 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/RowsRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/RowsRequestBuilder.php @@ -65,7 +65,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap * Retrieve a list of tablerow objects. * @param RowsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://docs.microsoft.com/graph/api/table-list-rows?view=graph-rest-1.0 Find more info here + * @link https://docs.microsoft.com/graph/api/tablerow-list?view=graph-rest-1.0 Find more info here */ public function get(?RowsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ChartsRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ChartsRequestBuilder.php index 17190779bec..f38ea37bb24 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ChartsRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ChartsRequestBuilder.php @@ -66,7 +66,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap * Retrieve a list of chart objects. * @param ChartsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://docs.microsoft.com/graph/api/chart-list?view=graph-rest-1.0 Find more info here + * @link https://docs.microsoft.com/graph/api/worksheet-list-charts?view=graph-rest-1.0 Find more info here */ public function get(?ChartsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/Range/RangeRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/Range/RangeRequestBuilder.php index f301b68cc4e..62d40b2a7ff 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/Range/RangeRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/Range/RangeRequestBuilder.php @@ -32,10 +32,10 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. + * Retrieve the properties and relationships of range object. * @param RangeRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://docs.microsoft.com/graph/api/nameditem-range?view=graph-rest-1.0 Find more info here + * @link https://docs.microsoft.com/graph/api/range-get?view=graph-rest-1.0 Find more info here */ public function get(?RangeRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -51,7 +51,7 @@ public function get(?RangeRequestBuilderGetRequestConfiguration $requestConfigur } /** - * Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. + * Retrieve the properties and relationships of range object. * @param RangeRequestBuilderGetRequestConfiguration|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/Item/Columns/ColumnsRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/ColumnsRequestBuilder.php index cbada4776e3..f2de776ca65 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/ColumnsRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/ColumnsRequestBuilder.php @@ -65,7 +65,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap * Retrieve a list of tablecolumn objects. * @param ColumnsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://docs.microsoft.com/graph/api/table-list-columns?view=graph-rest-1.0 Find more info here + * @link https://docs.microsoft.com/graph/api/tablecolumn-list?view=graph-rest-1.0 Find more info here */ public function get(?ColumnsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/RowsRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/RowsRequestBuilder.php index 6f124200706..5ab9f8ec97f 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/RowsRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/RowsRequestBuilder.php @@ -65,7 +65,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap * Retrieve a list of tablerow objects. * @param RowsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://docs.microsoft.com/graph/api/table-list-rows?view=graph-rest-1.0 Find more info here + * @link https://docs.microsoft.com/graph/api/tablerow-list?view=graph-rest-1.0 Find more info here */ public function get(?RowsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/WorksheetsRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/WorksheetsRequestBuilder.php index a1c7f5db4c6..8d1fa6c661d 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/WorksheetsRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/WorksheetsRequestBuilder.php @@ -64,7 +64,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap * Retrieve a list of worksheet objects. * @param WorksheetsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://docs.microsoft.com/graph/api/workbook-list-worksheets?view=graph-rest-1.0 Find more info here + * @link https://docs.microsoft.com/graph/api/worksheet-list?view=graph-rest-1.0 Find more info here */ public function get(?WorksheetsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); diff --git a/src/Generated/Education/Users/Item/EducationUserItemRequestBuilder.php b/src/Generated/Education/Users/Item/EducationUserItemRequestBuilder.php index 181fb8f7b62..c0f91a99851 100644 --- a/src/Generated/Education/Users/Item/EducationUserItemRequestBuilder.php +++ b/src/Generated/Education/Users/Item/EducationUserItemRequestBuilder.php @@ -118,11 +118,11 @@ public function get(?EducationUserItemRequestBuilderGetRequestConfiguration $req } /** - * Update the relatedContact collection of an educationUser object. + * Update the properties of an **educationuser** object. * @param EducationUser $body The request body * @param EducationUserItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://docs.microsoft.com/graph/api/relatedcontact-update?view=graph-rest-1.0 Find more info here + * @link https://docs.microsoft.com/graph/api/educationuser-update?view=graph-rest-1.0 Find more info here */ public function patch(EducationUser $body, ?EducationUserItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); @@ -176,7 +176,7 @@ public function toGetRequestInformation(?EducationUserItemRequestBuilderGetReque } /** - * Update the relatedContact collection of an educationUser object. + * Update the properties of an **educationuser** object. * @param EducationUser $body The request body * @param EducationUserItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/External/IndustryData/DataConnectors/DataConnectorsRequestBuilder.php b/src/Generated/External/IndustryData/DataConnectors/DataConnectorsRequestBuilder.php index 295c892a1d7..4211e90e7e5 100644 --- a/src/Generated/External/IndustryData/DataConnectors/DataConnectorsRequestBuilder.php +++ b/src/Generated/External/IndustryData/DataConnectors/DataConnectorsRequestBuilder.php @@ -53,10 +53,10 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the industryDataConnector resources from the **dataConnector** navigation property. + * Get a list of the azureDataLakeConnector objects and their properties. * @param DataConnectorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://docs.microsoft.com/graph/api/industrydata-industrydataconnector-list?view=graph-rest-1.0 Find more info here + * @link https://docs.microsoft.com/graph/api/industrydata-azuredatalakeconnector-list?view=graph-rest-1.0 Find more info here */ public function get(?DataConnectorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -72,11 +72,11 @@ public function get(?DataConnectorsRequestBuilderGetRequestConfiguration $reques } /** - * Create a new industryDataConnector object. + * Create a new azureDataLakeConnector object. * @param IndustryDataConnector $body The request body * @param DataConnectorsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://docs.microsoft.com/graph/api/industrydata-industrydataconnector-post?view=graph-rest-1.0 Find more info here + * @link https://docs.microsoft.com/graph/api/industrydata-azuredatalakeconnector-post?view=graph-rest-1.0 Find more info here */ public function post(IndustryDataConnector $body, ?DataConnectorsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -92,7 +92,7 @@ public function post(IndustryDataConnector $body, ?DataConnectorsRequestBuilderP } /** - * Get the industryDataConnector resources from the **dataConnector** navigation property. + * Get a list of the azureDataLakeConnector objects and their properties. * @param DataConnectorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?DataConnectorsRequestBuilderGetRequestC } /** - * Create a new industryDataConnector object. + * Create a new azureDataLakeConnector object. * @param IndustryDataConnector $body The request body * @param DataConnectorsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/External/IndustryData/DataConnectors/DataConnectorsRequestBuilderGetQueryParameters.php b/src/Generated/External/IndustryData/DataConnectors/DataConnectorsRequestBuilderGetQueryParameters.php index 24517b54d18..6bda701f355 100644 --- a/src/Generated/External/IndustryData/DataConnectors/DataConnectorsRequestBuilderGetQueryParameters.php +++ b/src/Generated/External/IndustryData/DataConnectors/DataConnectorsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the industryDataConnector resources from the **dataConnector** navigation property. + * Get a list of the azureDataLakeConnector objects and their properties. */ class DataConnectorsRequestBuilderGetQueryParameters { diff --git a/src/Generated/External/IndustryData/DataConnectors/Item/IndustryDataConnectorItemRequestBuilder.php b/src/Generated/External/IndustryData/DataConnectors/Item/IndustryDataConnectorItemRequestBuilder.php index fe1fa1d1f8b..285ef5a9d30 100644 --- a/src/Generated/External/IndustryData/DataConnectors/Item/IndustryDataConnectorItemRequestBuilder.php +++ b/src/Generated/External/IndustryData/DataConnectors/Item/IndustryDataConnectorItemRequestBuilder.php @@ -67,10 +67,10 @@ public function delete(?IndustryDataConnectorItemRequestBuilderDeleteRequestConf } /** - * Read the properties and relationships of an azureDataLakeConnector object. + * Read the properties and relationships of an industryDataConnector object. * @param IndustryDataConnectorItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://docs.microsoft.com/graph/api/industrydata-azuredatalakeconnector-get?view=graph-rest-1.0 Find more info here + * @link https://docs.microsoft.com/graph/api/industrydata-industrydataconnector-get?view=graph-rest-1.0 Find more info here */ public function get(?IndustryDataConnectorItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -123,7 +123,7 @@ public function toDeleteRequestInformation(?IndustryDataConnectorItemRequestBuil } /** - * Read the properties and relationships of an azureDataLakeConnector object. + * Read the properties and relationships of an industryDataConnector object. * @param IndustryDataConnectorItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/External/IndustryData/DataConnectors/Item/IndustryDataConnectorItemRequestBuilderGetQueryParameters.php b/src/Generated/External/IndustryData/DataConnectors/Item/IndustryDataConnectorItemRequestBuilderGetQueryParameters.php index 589c7df9f35..3891cc7f62b 100644 --- a/src/Generated/External/IndustryData/DataConnectors/Item/IndustryDataConnectorItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/External/IndustryData/DataConnectors/Item/IndustryDataConnectorItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties and relationships of an azureDataLakeConnector object. + * Read the properties and relationships of an industryDataConnector object. */ class IndustryDataConnectorItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/External/IndustryData/InboundFlows/Item/InboundFlowItemRequestBuilder.php b/src/Generated/External/IndustryData/InboundFlows/Item/InboundFlowItemRequestBuilder.php index 12fa4fdfa6a..f59595af934 100644 --- a/src/Generated/External/IndustryData/InboundFlows/Item/InboundFlowItemRequestBuilder.php +++ b/src/Generated/External/IndustryData/InboundFlows/Item/InboundFlowItemRequestBuilder.php @@ -48,10 +48,10 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete an inboundFlow object. + * Delete an inboundFileFlow object. * @param InboundFlowItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://docs.microsoft.com/graph/api/industrydata-inboundflow-delete?view=graph-rest-1.0 Find more info here + * @link https://docs.microsoft.com/graph/api/industrydata-inboundfileflow-delete?view=graph-rest-1.0 Find more info here */ public function delete(?InboundFlowItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); @@ -86,11 +86,11 @@ public function get(?InboundFlowItemRequestBuilderGetRequestConfiguration $reque } /** - * Update the properties of an inboundFlow object. + * Update the properties of an inboundFileFlow object. * @param InboundFlow $body The request body * @param InboundFlowItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://docs.microsoft.com/graph/api/industrydata-inboundflow-update?view=graph-rest-1.0 Find more info here + * @link https://docs.microsoft.com/graph/api/industrydata-inboundfileflow-update?view=graph-rest-1.0 Find more info here */ public function patch(InboundFlow $body, ?InboundFlowItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); @@ -106,7 +106,7 @@ public function patch(InboundFlow $body, ?InboundFlowItemRequestBuilderPatchRequ } /** - * Delete an inboundFlow object. + * Delete an inboundFileFlow object. * @param InboundFlowItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -144,7 +144,7 @@ public function toGetRequestInformation(?InboundFlowItemRequestBuilderGetRequest } /** - * Update the properties of an inboundFlow object. + * Update the properties of an inboundFileFlow object. * @param InboundFlow $body The request body * @param InboundFlowItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Conversations/ConversationsRequestBuilder.php b/src/Generated/Groups/Item/Conversations/ConversationsRequestBuilder.php index 63b162d3811..e7a8a253ac3 100644 --- a/src/Generated/Groups/Item/Conversations/ConversationsRequestBuilder.php +++ b/src/Generated/Groups/Item/Conversations/ConversationsRequestBuilder.php @@ -72,11 +72,11 @@ public function get(?ConversationsRequestBuilderGetRequestConfiguration $request } /** - * Create a new conversation by including a thread and a post. Use reply thread or reply post to further post to that conversation. + * 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. See known limitations of open extensions for more information. The table in the Permissions section lists the resources that support open extensions. * @param Conversation $body The request body * @param ConversationsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://docs.microsoft.com/graph/api/group-post-conversations?view=graph-rest-1.0 Find more info here + * @link https://docs.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 Find more info here */ public function post(Conversation $body, ?ConversationsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -113,7 +113,7 @@ public function toGetRequestInformation(?ConversationsRequestBuilderGetRequestCo } /** - * Create a new conversation by including a thread and a post. Use reply thread or reply post to further post to that conversation. + * 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. See known limitations of open extensions for more information. The table in the Permissions section lists the resources that support open extensions. * @param Conversation $body The request body * @param ConversationsRequestBuilderPostRequestConfiguration|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/ConversationItemRequestBuilder.php b/src/Generated/Groups/Item/Conversations/Item/ConversationItemRequestBuilder.php index 71f6c947704..740be50da99 100644 --- a/src/Generated/Groups/Item/Conversations/Item/ConversationItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Conversations/Item/ConversationItemRequestBuilder.php @@ -40,10 +40,10 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete a conversation object. + * Delete conversation. * @param ConversationItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://docs.microsoft.com/graph/api/group-delete-conversation?view=graph-rest-1.0 Find more info here + * @link https://docs.microsoft.com/graph/api/conversation-delete?view=graph-rest-1.0 Find more info here */ public function delete(?ConversationItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); @@ -78,7 +78,7 @@ public function get(?ConversationItemRequestBuilderGetRequestConfiguration $requ } /** - * Delete a conversation object. + * Delete conversation. * @param ConversationItemRequestBuilderDeleteRequestConfiguration|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 2ad0dd53b48..51e18a532b9 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 @@ -31,11 +31,11 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Reply to a thread in a group conversation and add a new post to it. You can specify the parent conversation in the request, or, you can specify just the thread without the parent conversation. + * Add an attachment when creating a group post. This operation limits the size of the attachment you can add to under 3 MB. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. * @param ReplyPostRequestBody $body The request body * @param ReplyRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://docs.microsoft.com/graph/api/conversationthread-reply?view=graph-rest-1.0 Find more info here + * @link https://docs.microsoft.com/graph/api/post-post-attachments?view=graph-rest-1.0 Find more info here */ public function post(ReplyPostRequestBody $body, ?ReplyRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -51,7 +51,7 @@ public function post(ReplyPostRequestBody $body, ?ReplyRequestBuilderPostRequest } /** - * Reply to a thread in a group conversation and add a new post to it. You can specify the parent conversation in the request, or, you can specify just the thread without the parent conversation. + * Add an attachment when creating a group post. This operation limits the size of the attachment you can add to under 3 MB. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. * @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/Sites/Item/Lists/Item/ListItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/ListItemRequestBuilder.php index b6cad74ccb4..b144839bcfb 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/ListItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/ListItemRequestBuilder.php @@ -122,10 +122,10 @@ public function delete(?ListItemRequestBuilderDeleteRequestConfiguration $reques } /** - * Return the metadata for a [list][]. + * Get the list of richLongRunningOperations associated with a list. * @param ListItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://docs.microsoft.com/graph/api/list-get?view=graph-rest-1.0 Find more info here + * @link https://docs.microsoft.com/graph/api/list-list-operations?view=graph-rest-1.0 Find more info here */ public function get(?ListItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -177,7 +177,7 @@ public function toDeleteRequestInformation(?ListItemRequestBuilderDeleteRequestC } /** - * Return the metadata for a [list][]. + * Get the list of richLongRunningOperations associated with a list. * @param ListItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/ListItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/ListItemRequestBuilderGetQueryParameters.php index 3428f7ccf9f..f019d6d349b 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/ListItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/ListItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Return the metadata for a [list][]. + * Get the list of richLongRunningOperations associated with a list. */ class ListItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Team/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.php b/src/Generated/Groups/Item/Team/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.php index b23d0719c87..12bf37ea8cf 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.php @@ -70,11 +70,11 @@ public function get(?ConversationMemberItemRequestBuilderGetRequestConfiguration } /** - * Update the role of a conversationMember in a team.or channel. + * Update the role of a conversationMember in a channel. This operation is allowed only for channels with a **membershipType** value of `private` or `shared`. * @param ConversationMember $body The request body * @param ConversationMemberItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://docs.microsoft.com/graph/api/conversationmember-update?view=graph-rest-1.0 Find more info here + * @link https://docs.microsoft.com/graph/api/channel-update-members?view=graph-rest-1.0 Find more info here */ public function patch(ConversationMember $body, ?ConversationMemberItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); @@ -128,7 +128,7 @@ public function toGetRequestInformation(?ConversationMemberItemRequestBuilderGet } /** - * Update the role of a conversationMember in a team.or channel. + * Update the role of a conversationMember in a channel. This operation is allowed only for channels with a **membershipType** value of `private` or `shared`. * @param ConversationMember $body The request body * @param ConversationMemberItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Team/Channels/Item/Messages/MessagesRequestBuilder.php b/src/Generated/Groups/Item/Team/Channels/Item/Messages/MessagesRequestBuilder.php index 47002bcc6db..8f5f4e4f31c 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/Messages/MessagesRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/Messages/MessagesRequestBuilder.php @@ -80,11 +80,11 @@ public function get(?MessagesRequestBuilderGetRequestConfiguration $requestConfi } /** - * Send a new chatMessage in the specified channel or a chat. + * Send a new chatMessage in the specified channel. * @param ChatMessage $body The request body * @param MessagesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://docs.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0 Find more info here + * @link https://docs.microsoft.com/graph/api/channel-post-messages?view=graph-rest-1.0 Find more info here */ public function post(ChatMessage $body, ?MessagesRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -121,7 +121,7 @@ public function toGetRequestInformation(?MessagesRequestBuilderGetRequestConfigu } /** - * Send a new chatMessage in the specified channel or a chat. + * Send a new chatMessage in the specified channel. * @param ChatMessage $body The request body * @param MessagesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.php b/src/Generated/Groups/Item/Team/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.php index 772b7de9354..2a2c3cc4e81 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.php @@ -70,11 +70,11 @@ public function get(?ConversationMemberItemRequestBuilderGetRequestConfiguration } /** - * Update the role of a conversationMember in a team.or channel. + * Update the role of a conversationMember in a channel. This operation is allowed only for channels with a **membershipType** value of `private` or `shared`. * @param ConversationMember $body The request body * @param ConversationMemberItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://docs.microsoft.com/graph/api/conversationmember-update?view=graph-rest-1.0 Find more info here + * @link https://docs.microsoft.com/graph/api/channel-update-members?view=graph-rest-1.0 Find more info here */ public function patch(ConversationMember $body, ?ConversationMemberItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); @@ -128,7 +128,7 @@ public function toGetRequestInformation(?ConversationMemberItemRequestBuilderGet } /** - * Update the role of a conversationMember in a team.or channel. + * Update the role of a conversationMember in a channel. This operation is allowed only for channels with a **membershipType** value of `private` or `shared`. * @param ConversationMember $body The request body * @param ConversationMemberItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/MessagesRequestBuilder.php b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/MessagesRequestBuilder.php index 2344828ab8b..84df917fea5 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/MessagesRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/MessagesRequestBuilder.php @@ -80,11 +80,11 @@ public function get(?MessagesRequestBuilderGetRequestConfiguration $requestConfi } /** - * Send a new chatMessage in the specified channel or a chat. + * Send a new chatMessage in the specified channel. * @param ChatMessage $body The request body * @param MessagesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://docs.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0 Find more info here + * @link https://docs.microsoft.com/graph/api/channel-post-messages?view=graph-rest-1.0 Find more info here */ public function post(ChatMessage $body, ?MessagesRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -121,7 +121,7 @@ public function toGetRequestInformation(?MessagesRequestBuilderGetRequestConfigu } /** - * Send a new chatMessage in the specified channel or a chat. + * Send a new chatMessage in the specified channel. * @param ChatMessage $body The request body * @param MessagesRequestBuilderPostRequestConfiguration|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 5270a426b01..cf7e288eb94 100644 --- a/src/Generated/Groups/Item/Threads/Item/Reply/ReplyRequestBuilder.php +++ b/src/Generated/Groups/Item/Threads/Item/Reply/ReplyRequestBuilder.php @@ -31,11 +31,11 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Reply to a thread in a group conversation and add a new post to it. You can specify the parent conversation in the request, or, you can specify just the thread without the parent conversation. + * Add an attachment when creating a group post. This operation limits the size of the attachment you can add to under 3 MB. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. * @param ReplyPostRequestBody $body The request body * @param ReplyRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://docs.microsoft.com/graph/api/conversationthread-reply?view=graph-rest-1.0 Find more info here + * @link https://docs.microsoft.com/graph/api/post-post-attachments?view=graph-rest-1.0 Find more info here */ public function post(ReplyPostRequestBody $body, ?ReplyRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -51,7 +51,7 @@ public function post(ReplyPostRequestBody $body, ?ReplyRequestBuilderPostRequest } /** - * Reply to a thread in a group conversation and add a new post to it. You can specify the parent conversation in the request, or, you can specify just the thread without the parent conversation. + * Add an attachment when creating a group post. This operation limits the size of the attachment you can add to under 3 MB. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. * @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/Identity/ConditionalAccess/NamedLocations/Item/NamedLocationItemRequestBuilder.php b/src/Generated/Identity/ConditionalAccess/NamedLocations/Item/NamedLocationItemRequestBuilder.php index e99c5d846c0..ea7efa00c71 100644 --- a/src/Generated/Identity/ConditionalAccess/NamedLocations/Item/NamedLocationItemRequestBuilder.php +++ b/src/Generated/Identity/ConditionalAccess/NamedLocations/Item/NamedLocationItemRequestBuilder.php @@ -32,10 +32,10 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete an ipNamedLocation object. + * Delete a namedLocation object. * @param NamedLocationItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://docs.microsoft.com/graph/api/ipnamedlocation-delete?view=graph-rest-1.0 Find more info here + * @link https://docs.microsoft.com/graph/api/namedlocation-delete?view=graph-rest-1.0 Find more info here */ public function delete(?NamedLocationItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); @@ -51,10 +51,10 @@ public function delete(?NamedLocationItemRequestBuilderDeleteRequestConfiguratio } /** - * Retrieve the properties and relationships of a namedLocation object. + * Retrieve the properties and relationships of a countryNamedLocation object. * @param NamedLocationItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://docs.microsoft.com/graph/api/namedlocation-get?view=graph-rest-1.0 Find more info here + * @link https://docs.microsoft.com/graph/api/countrynamedlocation-get?view=graph-rest-1.0 Find more info here */ public function get(?NamedLocationItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -70,11 +70,11 @@ public function get(?NamedLocationItemRequestBuilderGetRequestConfiguration $req } /** - * Update the properties of an ipNamedLocation object. + * Update the properties of a countryNamedLocation object. * @param NamedLocation $body The request body * @param NamedLocationItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://docs.microsoft.com/graph/api/ipnamedlocation-update?view=graph-rest-1.0 Find more info here + * @link https://docs.microsoft.com/graph/api/countrynamedlocation-update?view=graph-rest-1.0 Find more info here */ public function patch(NamedLocation $body, ?NamedLocationItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); @@ -90,7 +90,7 @@ public function patch(NamedLocation $body, ?NamedLocationItemRequestBuilderPatch } /** - * Delete an ipNamedLocation object. + * Delete a namedLocation object. * @param NamedLocationItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -107,7 +107,7 @@ public function toDeleteRequestInformation(?NamedLocationItemRequestBuilderDelet } /** - * Retrieve the properties and relationships of a namedLocation object. + * Retrieve the properties and relationships of a countryNamedLocation object. * @param NamedLocationItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -128,7 +128,7 @@ public function toGetRequestInformation(?NamedLocationItemRequestBuilderGetReque } /** - * Update the properties of an ipNamedLocation object. + * Update the properties of a countryNamedLocation object. * @param NamedLocation $body The request body * @param NamedLocationItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Identity/ConditionalAccess/NamedLocations/Item/NamedLocationItemRequestBuilderGetQueryParameters.php b/src/Generated/Identity/ConditionalAccess/NamedLocations/Item/NamedLocationItemRequestBuilderGetQueryParameters.php index 8bb1a85b13e..d9b87389ffa 100644 --- a/src/Generated/Identity/ConditionalAccess/NamedLocations/Item/NamedLocationItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Identity/ConditionalAccess/NamedLocations/Item/NamedLocationItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of a namedLocation object. + * Retrieve the properties and relationships of a countryNamedLocation object. */ class NamedLocationItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackageCatalogs/Item/CustomAccessPackageWorkflowExtensions/Item/CustomAccessPackageWorkflowExtensionItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackageCatalogs/Item/CustomAccessPackageWorkflowExtensions/Item/CustomAccessPackageWorkflowExtensionItemRequestBuilder.php index 3a3de3bc1d5..09a95d7af75 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackageCatalogs/Item/CustomAccessPackageWorkflowExtensions/Item/CustomAccessPackageWorkflowExtensionItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackageCatalogs/Item/CustomAccessPackageWorkflowExtensions/Item/CustomAccessPackageWorkflowExtensionItemRequestBuilder.php @@ -32,10 +32,10 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete an accessPackageAssignmentWorkflowExtension object. The custom workflow extension must first be removed from any associated policies before it can be deleted. Follow these steps to remove the custom workflow extension from any associated policies:1. First retrieve the accessPackageCatalogId by calling the Get accessPackageAssignmentPolicies operation and appending `?$expand=accessPackage($expand=accessPackageCatalog)` to the query. For example, `https://graph.microsoft.com/beta/identityGovernance/entitlementManagement/accessPackageAssignmentPolicies?$expand=accessPackage($expand=accessPackageCatalog)`.2. Use the access package catalog ID and retrieve the ID of the **accessPackageCustomWorkflowExtension** object that you want to delete by running the List accessPackageCustomWorkflowExtensions operation.3. Call the Update accessPackageAssignmentPolicy operation to remove the custom workflow extension object from the policy. For an example, see Example 3: Remove the customExtensionStageSettings from a policy. + * Delete a customAccessPackageWorkflowExtension object. The custom workflow extension must first be removed from any associated policies before it can be deleted. Follow these steps to remove the custom workflow extension from any associated policies:1. First retrieve the accessPackageCatalogId by calling the Get accessPackageAssignmentPolicies operation and appending `?$expand=accessPackage($expand=accessPackageCatalog)` to the query. For example, `https://graph.microsoft.com/beta/identityGovernance/entitlementManagement/accessPackageAssignmentPolicies?$expand=accessPackage($expand=accessPackageCatalog)`.2. Use the access package catalog ID and retrieve the ID of the **customAccessPackageWorkflowExtension** object that you want to delete by running the LIST customAccessPackageWorkflowExtensions operation.3. Call the Update accessPackageAssignmentPolicy operation to remove the custom workflow extension object from the policy. For an example, see Example 2: Remove the customExtensionHandlers and verifiableCredentialSettings from a policy. * @param CustomAccessPackageWorkflowExtensionItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://docs.microsoft.com/graph/api/accesspackageassignmentworkflowextension-delete?view=graph-rest-1.0 Find more info here + * @link https://docs.microsoft.com/graph/api/customaccesspackageworkflowextension-delete?view=graph-rest-1.0 Find more info here */ public function delete(?CustomAccessPackageWorkflowExtensionItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); @@ -90,7 +90,7 @@ public function patch(CustomAccessPackageWorkflowExtension $body, ?CustomAccessP } /** - * Delete an accessPackageAssignmentWorkflowExtension object. The custom workflow extension must first be removed from any associated policies before it can be deleted. Follow these steps to remove the custom workflow extension from any associated policies:1. First retrieve the accessPackageCatalogId by calling the Get accessPackageAssignmentPolicies operation and appending `?$expand=accessPackage($expand=accessPackageCatalog)` to the query. For example, `https://graph.microsoft.com/beta/identityGovernance/entitlementManagement/accessPackageAssignmentPolicies?$expand=accessPackage($expand=accessPackageCatalog)`.2. Use the access package catalog ID and retrieve the ID of the **accessPackageCustomWorkflowExtension** object that you want to delete by running the List accessPackageCustomWorkflowExtensions operation.3. Call the Update accessPackageAssignmentPolicy operation to remove the custom workflow extension object from the policy. For an example, see Example 3: Remove the customExtensionStageSettings from a policy. + * Delete a customAccessPackageWorkflowExtension object. The custom workflow extension must first be removed from any associated policies before it can be deleted. Follow these steps to remove the custom workflow extension from any associated policies:1. First retrieve the accessPackageCatalogId by calling the Get accessPackageAssignmentPolicies operation and appending `?$expand=accessPackage($expand=accessPackageCatalog)` to the query. For example, `https://graph.microsoft.com/beta/identityGovernance/entitlementManagement/accessPackageAssignmentPolicies?$expand=accessPackage($expand=accessPackageCatalog)`.2. Use the access package catalog ID and retrieve the ID of the **customAccessPackageWorkflowExtension** object that you want to delete by running the LIST customAccessPackageWorkflowExtensions operation.3. Call the Update accessPackageAssignmentPolicy operation to remove the custom workflow extension object from the policy. For an example, see Example 2: Remove the customExtensionHandlers and verifiableCredentialSettings from a policy. * @param CustomAccessPackageWorkflowExtensionItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackageItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackageItemRequestBuilder.php index 35f40cee95b..5046ee0fd2a 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackageItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackageItemRequestBuilder.php @@ -115,10 +115,10 @@ public function delete(?AccessPackageItemRequestBuilderDeleteRequestConfiguratio } /** - * Retrieve the properties and relationships of an accessPackage object. + * Retrieve an access package with a list of accessPackageResourceRoleScope objects. These objects represent the resource roles that an access package assigns to each subject. Each object links to an accessPackageResourceRole and an accessPackageResourceScope. * @param AccessPackageItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://docs.microsoft.com/graph/api/accesspackage-get?view=graph-rest-1.0 Find more info here + * @link https://docs.microsoft.com/graph/api/accesspackage-list-accesspackageresourcerolescopes?view=graph-rest-1.0 Find more info here */ public function get(?AccessPackageItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -171,7 +171,7 @@ public function toDeleteRequestInformation(?AccessPackageItemRequestBuilderDelet } /** - * Retrieve the properties and relationships of an accessPackage object. + * Retrieve an access package with a list of accessPackageResourceRoleScope objects. These objects represent the resource roles that an access package assigns to each subject. Each object links to an accessPackageResourceRole and an accessPackageResourceScope. * @param AccessPackageItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackageItemRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackageItemRequestBuilderGetQueryParameters.php index b2fe7f6b346..b1ff43ca6d4 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackageItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackageItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of an accessPackage object. + * Retrieve an access package with a list of accessPackageResourceRoleScope objects. These objects represent the resource roles that an access package assigns to each subject. Each object links to an accessPackageResourceRole and an accessPackageResourceScope. */ class AccessPackageItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/AgreementItemRequestBuilder.php b/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/AgreementItemRequestBuilder.php index 910c7b06ca9..38379c1affd 100644 --- a/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/AgreementItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/AgreementItemRequestBuilder.php @@ -75,10 +75,10 @@ public function delete(?AgreementItemRequestBuilderDeleteRequestConfiguration $r } /** - * Retrieve the properties and relationships of an agreement object. + * Retrieve all localized files related to an agreement. * @param AgreementItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://docs.microsoft.com/graph/api/agreement-get?view=graph-rest-1.0 Find more info here + * @link https://docs.microsoft.com/graph/api/agreement-list-files?view=graph-rest-1.0 Find more info here */ public function get(?AgreementItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -131,7 +131,7 @@ public function toDeleteRequestInformation(?AgreementItemRequestBuilderDeleteReq } /** - * Retrieve the properties and relationships of an agreement object. + * Retrieve all localized files related to an agreement. * @param AgreementItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/AgreementItemRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/AgreementItemRequestBuilderGetQueryParameters.php index e1d6d93093c..ddbeea8fc1b 100644 --- a/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/AgreementItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/AgreementItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of an agreement object. + * Retrieve all localized files related to an agreement. */ class AgreementItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityProtection/RiskyUsers/RiskyUsersRequestBuilder.php b/src/Generated/IdentityProtection/RiskyUsers/RiskyUsersRequestBuilder.php index c3e07090883..6fa04fcb2a6 100644 --- a/src/Generated/IdentityProtection/RiskyUsers/RiskyUsersRequestBuilder.php +++ b/src/Generated/IdentityProtection/RiskyUsers/RiskyUsersRequestBuilder.php @@ -69,10 +69,10 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve the properties and relationships of a **riskyUser** object. + * Retrieve the properties and relationships of a collection of **riskyUser** objects. * @param RiskyUsersRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://docs.microsoft.com/graph/api/riskyusers-get?view=graph-rest-1.0 Find more info here + * @link https://docs.microsoft.com/graph/api/riskyusers-list?view=graph-rest-1.0 Find more info here */ public function get(?RiskyUsersRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -107,7 +107,7 @@ public function post(RiskyUser $body, ?RiskyUsersRequestBuilderPostRequestConfig } /** - * Retrieve the properties and relationships of a **riskyUser** object. + * Retrieve the properties and relationships of a collection of **riskyUser** objects. * @param RiskyUsersRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityProtection/RiskyUsers/RiskyUsersRequestBuilderGetQueryParameters.php b/src/Generated/IdentityProtection/RiskyUsers/RiskyUsersRequestBuilderGetQueryParameters.php index ede1cc4fe46..caef1611e59 100644 --- a/src/Generated/IdentityProtection/RiskyUsers/RiskyUsersRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityProtection/RiskyUsers/RiskyUsersRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of a **riskyUser** object. + * Retrieve the properties and relationships of a collection of **riskyUser** objects. */ class RiskyUsersRequestBuilderGetQueryParameters { diff --git a/src/Generated/Models/Acl.php b/src/Generated/Models/Acl.php index e699951e507..7928f92a085 100644 --- a/src/Generated/Models/Acl.php +++ b/src/Generated/Models/Acl.php @@ -18,7 +18,7 @@ class Acl implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new acl and sets the default values. + * Instantiates a new Acl and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/AddIn.php b/src/Generated/Models/AddIn.php index b5cce56cb76..48f3ad411f4 100644 --- a/src/Generated/Models/AddIn.php +++ b/src/Generated/Models/AddIn.php @@ -18,7 +18,7 @@ class AddIn implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new addIn and sets the default values. + * Instantiates a new AddIn and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/AgedAccountsPayable.php b/src/Generated/Models/AgedAccountsPayable.php index 90e5c698250..8495156064a 100644 --- a/src/Generated/Models/AgedAccountsPayable.php +++ b/src/Generated/Models/AgedAccountsPayable.php @@ -19,7 +19,7 @@ class AgedAccountsPayable implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new agedAccountsPayable and sets the default values. + * Instantiates a new AgedAccountsPayable and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/AgedAccountsReceivable.php b/src/Generated/Models/AgedAccountsReceivable.php index 4246ebee2a1..c2cd5be6534 100644 --- a/src/Generated/Models/AgedAccountsReceivable.php +++ b/src/Generated/Models/AgedAccountsReceivable.php @@ -19,7 +19,7 @@ class AgedAccountsReceivable implements AdditionalDataHolder, BackedModel, Parsa private BackingStore $backingStore; /** - * Instantiates a new agedAccountsReceivable and sets the default values. + * Instantiates a new AgedAccountsReceivable and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/AggregationOption.php b/src/Generated/Models/AggregationOption.php index eb8e9920981..84e91d90f7e 100644 --- a/src/Generated/Models/AggregationOption.php +++ b/src/Generated/Models/AggregationOption.php @@ -18,7 +18,7 @@ class AggregationOption implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new aggregationOption and sets the default values. + * Instantiates a new AggregationOption and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/Alert.php b/src/Generated/Models/Alert.php index 75285f388d2..649d764ed23 100644 --- a/src/Generated/Models/Alert.php +++ b/src/Generated/Models/Alert.php @@ -10,7 +10,7 @@ class Alert extends Entity implements Parsable { /** - * Instantiates a new alert and sets the default values. + * Instantiates a new Alert and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/AlertTrigger.php b/src/Generated/Models/AlertTrigger.php index 5dd8527f025..225b3cd7fec 100644 --- a/src/Generated/Models/AlertTrigger.php +++ b/src/Generated/Models/AlertTrigger.php @@ -18,7 +18,7 @@ class AlertTrigger implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new alertTrigger and sets the default values. + * Instantiates a new AlertTrigger and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/AlteredQueryToken.php b/src/Generated/Models/AlteredQueryToken.php index db937b3589d..27ef308fc9a 100644 --- a/src/Generated/Models/AlteredQueryToken.php +++ b/src/Generated/Models/AlteredQueryToken.php @@ -18,7 +18,7 @@ class AlteredQueryToken implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new alteredQueryToken and sets the default values. + * Instantiates a new AlteredQueryToken and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/AlternativeSecurityId.php b/src/Generated/Models/AlternativeSecurityId.php index 148b000a94d..759f0040c44 100644 --- a/src/Generated/Models/AlternativeSecurityId.php +++ b/src/Generated/Models/AlternativeSecurityId.php @@ -19,7 +19,7 @@ class AlternativeSecurityId implements AdditionalDataHolder, BackedModel, Parsab private BackingStore $backingStore; /** - * Instantiates a new alternativeSecurityId and sets the default values. + * Instantiates a new AlternativeSecurityId and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/AndroidDeviceOwnerEnrollmentProfile.php b/src/Generated/Models/AndroidDeviceOwnerEnrollmentProfile.php index 5ad2a24f87b..0070680b3da 100644 --- a/src/Generated/Models/AndroidDeviceOwnerEnrollmentProfile.php +++ b/src/Generated/Models/AndroidDeviceOwnerEnrollmentProfile.php @@ -7,13 +7,10 @@ use Microsoft\Kiota\Abstractions\Serialization\ParseNode; use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter; -/** - * Enrollment Profile used to enroll Android Enterprise devices using Google's Cloud Management. -*/ class AndroidDeviceOwnerEnrollmentProfile extends Entity implements Parsable { /** - * Instantiates a new androidDeviceOwnerEnrollmentProfile and sets the default values. + * Instantiates a new AndroidDeviceOwnerEnrollmentProfile and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/AndroidDeviceOwnerKioskModeHomeScreenItem.php b/src/Generated/Models/AndroidDeviceOwnerKioskModeHomeScreenItem.php index 196cc31a595..1ef1c8e03aa 100644 --- a/src/Generated/Models/AndroidDeviceOwnerKioskModeHomeScreenItem.php +++ b/src/Generated/Models/AndroidDeviceOwnerKioskModeHomeScreenItem.php @@ -21,7 +21,7 @@ class AndroidDeviceOwnerKioskModeHomeScreenItem implements AdditionalDataHolder, private BackingStore $backingStore; /** - * Instantiates a new androidDeviceOwnerKioskModeHomeScreenItem and sets the default values. + * Instantiates a new AndroidDeviceOwnerKioskModeHomeScreenItem and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/AndroidForWorkAppConfigurationSchema.php b/src/Generated/Models/AndroidForWorkAppConfigurationSchema.php index 21d070864ee..12ba52c617a 100644 --- a/src/Generated/Models/AndroidForWorkAppConfigurationSchema.php +++ b/src/Generated/Models/AndroidForWorkAppConfigurationSchema.php @@ -7,13 +7,10 @@ use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter; use Psr\Http\Message\StreamInterface; -/** - * Schema describing an Android for Work application's custom configurations. -*/ class AndroidForWorkAppConfigurationSchema extends Entity implements Parsable { /** - * Instantiates a new androidForWorkAppConfigurationSchema and sets the default values. + * Instantiates a new AndroidForWorkAppConfigurationSchema and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/AndroidForWorkEnrollmentProfile.php b/src/Generated/Models/AndroidForWorkEnrollmentProfile.php index 377bd006d9c..4314241f757 100644 --- a/src/Generated/Models/AndroidForWorkEnrollmentProfile.php +++ b/src/Generated/Models/AndroidForWorkEnrollmentProfile.php @@ -7,13 +7,10 @@ use Microsoft\Kiota\Abstractions\Serialization\ParseNode; use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter; -/** - * Enrollment Profile used to enroll COSU devices using Google's Cloud Management. -*/ class AndroidForWorkEnrollmentProfile extends Entity implements Parsable { /** - * Instantiates a new androidForWorkEnrollmentProfile and sets the default values. + * Instantiates a new AndroidForWorkEnrollmentProfile and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/AndroidForWorkSettings.php b/src/Generated/Models/AndroidForWorkSettings.php index 5557b6c1924..c85ec3c88c5 100644 --- a/src/Generated/Models/AndroidForWorkSettings.php +++ b/src/Generated/Models/AndroidForWorkSettings.php @@ -10,7 +10,7 @@ class AndroidForWorkSettings extends Entity implements Parsable { /** - * Instantiates a new androidForWorkSettings and sets the default values. + * Instantiates a new AndroidForWorkSettings and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/AndroidManagedStoreAppConfigurationSchema.php b/src/Generated/Models/AndroidManagedStoreAppConfigurationSchema.php index 6bb9b841600..bf8a59aff41 100644 --- a/src/Generated/Models/AndroidManagedStoreAppConfigurationSchema.php +++ b/src/Generated/Models/AndroidManagedStoreAppConfigurationSchema.php @@ -7,13 +7,10 @@ use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter; use Psr\Http\Message\StreamInterface; -/** - * Schema describing an Android application's custom configurations. -*/ class AndroidManagedStoreAppConfigurationSchema extends Entity implements Parsable { /** - * Instantiates a new androidManagedStoreAppConfigurationSchema and sets the default values. + * Instantiates a new AndroidManagedStoreAppConfigurationSchema and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/AppConsentApprovalRoute.php b/src/Generated/Models/AppConsentApprovalRoute.php index ff725428604..7b396183b1c 100644 --- a/src/Generated/Models/AppConsentApprovalRoute.php +++ b/src/Generated/Models/AppConsentApprovalRoute.php @@ -25,7 +25,7 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): AppCo } /** - * Gets the appConsentRequests property value. A collection of userConsentRequest objects for a specific application. + * Gets the appConsentRequests property value. A collection of appConsentRequest objects representing apps for which admin consent has been requested by one or more users. * @return array|null */ public function getAppConsentRequests(): ?array { @@ -53,7 +53,7 @@ public function serialize(SerializationWriter $writer): void { } /** - * Sets the appConsentRequests property value. A collection of userConsentRequest objects for a specific application. + * Sets the appConsentRequests property value. A collection of appConsentRequest objects representing apps for which admin consent has been requested by one or more users. * @param array|null $value Value to set for the appConsentRequests property. */ public function setAppConsentRequests(?array $value): void { diff --git a/src/Generated/Models/AppCredentialSignInActivity.php b/src/Generated/Models/AppCredentialSignInActivity.php new file mode 100644 index 00000000000..e365d0c5de9 --- /dev/null +++ b/src/Generated/Models/AppCredentialSignInActivity.php @@ -0,0 +1,244 @@ +getBackingStore()->get('appId'); + } + + /** + * Gets the appObjectId property value. The ID of the credential application instance. + * @return string|null + */ + public function getAppObjectId(): ?string { + return $this->getBackingStore()->get('appObjectId'); + } + + /** + * Gets the createdDateTime property value. The date and time when the credential was created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * @return DateTime|null + */ + public function getCreatedDateTime(): ?DateTime { + return $this->getBackingStore()->get('createdDateTime'); + } + + /** + * Gets the credentialOrigin property value. The credentialOrigin property + * @return ApplicationKeyOrigin|null + */ + public function getCredentialOrigin(): ?ApplicationKeyOrigin { + return $this->getBackingStore()->get('credentialOrigin'); + } + + /** + * Gets the expirationDateTime property value. The date and time when the credential is set to expire. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * @return DateTime|null + */ + public function getExpirationDateTime(): ?DateTime { + return $this->getBackingStore()->get('expirationDateTime'); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'appId' => fn(ParseNode $n) => $o->setAppId($n->getStringValue()), + 'appObjectId' => fn(ParseNode $n) => $o->setAppObjectId($n->getStringValue()), + 'createdDateTime' => fn(ParseNode $n) => $o->setCreatedDateTime($n->getDateTimeValue()), + 'credentialOrigin' => fn(ParseNode $n) => $o->setCredentialOrigin($n->getEnumValue(ApplicationKeyOrigin::class)), + 'expirationDateTime' => fn(ParseNode $n) => $o->setExpirationDateTime($n->getDateTimeValue()), + 'keyId' => fn(ParseNode $n) => $o->setKeyId($n->getStringValue()), + 'keyType' => fn(ParseNode $n) => $o->setKeyType($n->getEnumValue(ApplicationKeyType::class)), + 'keyUsage' => fn(ParseNode $n) => $o->setKeyUsage($n->getEnumValue(ApplicationKeyUsage::class)), + 'resourceId' => fn(ParseNode $n) => $o->setResourceId($n->getStringValue()), + 'servicePrincipalObjectId' => fn(ParseNode $n) => $o->setServicePrincipalObjectId($n->getStringValue()), + 'signInActivity' => fn(ParseNode $n) => $o->setSignInActivity($n->getObjectValue([SignInActivity::class, 'createFromDiscriminatorValue'])), + ]); + } + + /** + * Gets the keyId property value. The key ID of the credential. + * @return string|null + */ + public function getKeyId(): ?string { + return $this->getBackingStore()->get('keyId'); + } + + /** + * Gets the keyType property value. Specifies the key type. The possible values are: clientSecret, certificate, unknownFutureValue. + * @return ApplicationKeyType|null + */ + public function getKeyType(): ?ApplicationKeyType { + return $this->getBackingStore()->get('keyType'); + } + + /** + * Gets the keyUsage property value. Specifies what the key was used for. The possible values are: sign, verify, unknownFutureValue. + * @return ApplicationKeyUsage|null + */ + public function getKeyUsage(): ?ApplicationKeyUsage { + return $this->getBackingStore()->get('keyUsage'); + } + + /** + * Gets the resourceId property value. The ID of the accessed resource. + * @return string|null + */ + public function getResourceId(): ?string { + return $this->getBackingStore()->get('resourceId'); + } + + /** + * Gets the servicePrincipalObjectId property value. The ID of the service principal. + * @return string|null + */ + public function getServicePrincipalObjectId(): ?string { + return $this->getBackingStore()->get('servicePrincipalObjectId'); + } + + /** + * Gets the signInActivity property value. The signInActivity property + * @return SignInActivity|null + */ + public function getSignInActivity(): ?SignInActivity { + return $this->getBackingStore()->get('signInActivity'); + } + + /** + * 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('appId', $this->getAppId()); + $writer->writeStringValue('appObjectId', $this->getAppObjectId()); + $writer->writeDateTimeValue('createdDateTime', $this->getCreatedDateTime()); + $writer->writeEnumValue('credentialOrigin', $this->getCredentialOrigin()); + $writer->writeDateTimeValue('expirationDateTime', $this->getExpirationDateTime()); + $writer->writeStringValue('keyId', $this->getKeyId()); + $writer->writeEnumValue('keyType', $this->getKeyType()); + $writer->writeEnumValue('keyUsage', $this->getKeyUsage()); + $writer->writeStringValue('resourceId', $this->getResourceId()); + $writer->writeStringValue('servicePrincipalObjectId', $this->getServicePrincipalObjectId()); + $writer->writeObjectValue('signInActivity', $this->getSignInActivity()); + } + + /** + * Sets the appId property value. The globally unique appId (also called client ID on the Azure portal) of the credential application. + * @param string|null $value Value to set for the appId property. + */ + public function setAppId(?string $value): void { + $this->getBackingStore()->set('appId', $value); + } + + /** + * Sets the appObjectId property value. The ID of the credential application instance. + * @param string|null $value Value to set for the appObjectId property. + */ + public function setAppObjectId(?string $value): void { + $this->getBackingStore()->set('appObjectId', $value); + } + + /** + * Sets the createdDateTime property value. The date and time when the credential was created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * @param DateTime|null $value Value to set for the createdDateTime property. + */ + public function setCreatedDateTime(?DateTime $value): void { + $this->getBackingStore()->set('createdDateTime', $value); + } + + /** + * Sets the credentialOrigin property value. The credentialOrigin property + * @param ApplicationKeyOrigin|null $value Value to set for the credentialOrigin property. + */ + public function setCredentialOrigin(?ApplicationKeyOrigin $value): void { + $this->getBackingStore()->set('credentialOrigin', $value); + } + + /** + * Sets the expirationDateTime property value. The date and time when the credential is set to expire. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * @param DateTime|null $value Value to set for the expirationDateTime property. + */ + public function setExpirationDateTime(?DateTime $value): void { + $this->getBackingStore()->set('expirationDateTime', $value); + } + + /** + * Sets the keyId property value. The key ID of the credential. + * @param string|null $value Value to set for the keyId property. + */ + public function setKeyId(?string $value): void { + $this->getBackingStore()->set('keyId', $value); + } + + /** + * Sets the keyType property value. Specifies the key type. The possible values are: clientSecret, certificate, unknownFutureValue. + * @param ApplicationKeyType|null $value Value to set for the keyType property. + */ + public function setKeyType(?ApplicationKeyType $value): void { + $this->getBackingStore()->set('keyType', $value); + } + + /** + * Sets the keyUsage property value. Specifies what the key was used for. The possible values are: sign, verify, unknownFutureValue. + * @param ApplicationKeyUsage|null $value Value to set for the keyUsage property. + */ + public function setKeyUsage(?ApplicationKeyUsage $value): void { + $this->getBackingStore()->set('keyUsage', $value); + } + + /** + * Sets the resourceId property value. The ID of the accessed resource. + * @param string|null $value Value to set for the resourceId property. + */ + public function setResourceId(?string $value): void { + $this->getBackingStore()->set('resourceId', $value); + } + + /** + * Sets the servicePrincipalObjectId property value. The ID of the service principal. + * @param string|null $value Value to set for the servicePrincipalObjectId property. + */ + public function setServicePrincipalObjectId(?string $value): void { + $this->getBackingStore()->set('servicePrincipalObjectId', $value); + } + + /** + * Sets the signInActivity property value. The signInActivity property + * @param SignInActivity|null $value Value to set for the signInActivity property. + */ + public function setSignInActivity(?SignInActivity $value): void { + $this->getBackingStore()->set('signInActivity', $value); + } + +} diff --git a/src/Generated/Models/AppCredentialSignInActivityCollectionResponse.php b/src/Generated/Models/AppCredentialSignInActivityCollectionResponse.php new file mode 100644 index 00000000000..92200584642 --- /dev/null +++ b/src/Generated/Models/AppCredentialSignInActivityCollectionResponse.php @@ -0,0 +1,63 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([AppCredentialSignInActivity::class, 'createFromDiscriminatorValue'])), + ]); + } + + /** + * Gets the value property value. The value property + * @return array|null + */ + public function getValue(): ?array { + return $this->getBackingStore()->get('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/AppIdentity.php b/src/Generated/Models/AppIdentity.php index 449e0878ceb..f2c74835c21 100644 --- a/src/Generated/Models/AppIdentity.php +++ b/src/Generated/Models/AppIdentity.php @@ -18,7 +18,7 @@ class AppIdentity implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new appIdentity and sets the default values. + * Instantiates a new AppIdentity and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/AppRole.php b/src/Generated/Models/AppRole.php index 4837ccbb38a..fb29abe4224 100644 --- a/src/Generated/Models/AppRole.php +++ b/src/Generated/Models/AppRole.php @@ -18,7 +18,7 @@ class AppRole implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new appRole and sets the default values. + * Instantiates a new AppRole and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/AppleUserInitiatedEnrollmentProfile.php b/src/Generated/Models/AppleUserInitiatedEnrollmentProfile.php index e38f8b4f727..cb03fbc2f70 100644 --- a/src/Generated/Models/AppleUserInitiatedEnrollmentProfile.php +++ b/src/Generated/Models/AppleUserInitiatedEnrollmentProfile.php @@ -7,13 +7,10 @@ use Microsoft\Kiota\Abstractions\Serialization\ParseNode; use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter; -/** - * The enrollmentProfile resource represents a collection of configurations which must be provided pre-enrollment to enable enrolling certain devices whose identities have been pre-staged. Pre-staged device identities are assigned to this type of profile to apply the profile's configurations at enrollment of the corresponding device. -*/ class AppleUserInitiatedEnrollmentProfile extends Entity implements Parsable { /** - * Instantiates a new appleUserInitiatedEnrollmentProfile and sets the default values. + * Instantiates a new AppleUserInitiatedEnrollmentProfile and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/Application.php b/src/Generated/Models/Application.php index 1a755b07cd9..661ee04b78f 100644 --- a/src/Generated/Models/Application.php +++ b/src/Generated/Models/Application.php @@ -60,7 +60,7 @@ public function getAppRoles(): ?array { } /** - * Gets the authenticationBehaviors property value. The authenticationBehaviors property + * Gets the authenticationBehaviors property value. The collection of authentication behaviors set for the application. Authentication behaviors are unset by default and must be explicitly enabled (or disabled). Returned only on $select. * @return AuthenticationBehaviors|null */ public function getAuthenticationBehaviors(): ?AuthenticationBehaviors { @@ -548,7 +548,7 @@ public function setAppRoles(?array $value): void { } /** - * Sets the authenticationBehaviors property value. The authenticationBehaviors property + * Sets the authenticationBehaviors property value. The collection of authentication behaviors set for the application. Authentication behaviors are unset by default and must be explicitly enabled (or disabled). Returned only on $select. * @param AuthenticationBehaviors|null $value Value to set for the authenticationBehaviors property. */ public function setAuthenticationBehaviors(?AuthenticationBehaviors $value): void { diff --git a/src/Generated/Models/ApplicationKeyOrigin.php b/src/Generated/Models/ApplicationKeyOrigin.php new file mode 100644 index 00000000000..c864147db89 --- /dev/null +++ b/src/Generated/Models/ApplicationKeyOrigin.php @@ -0,0 +1,11 @@ +backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/AssignedPlan.php b/src/Generated/Models/AssignedPlan.php index 9848db98432..3bb9ca7e207 100644 --- a/src/Generated/Models/AssignedPlan.php +++ b/src/Generated/Models/AssignedPlan.php @@ -19,7 +19,7 @@ class AssignedPlan implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new assignedPlan and sets the default values. + * Instantiates a new AssignedPlan and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/AssignmentFilterEvaluationSummary.php b/src/Generated/Models/AssignmentFilterEvaluationSummary.php index afc2c573d0d..71edc991ab4 100644 --- a/src/Generated/Models/AssignmentFilterEvaluationSummary.php +++ b/src/Generated/Models/AssignmentFilterEvaluationSummary.php @@ -22,7 +22,7 @@ class AssignmentFilterEvaluationSummary implements AdditionalDataHolder, BackedM private BackingStore $backingStore; /** - * Instantiates a new assignmentFilterEvaluationSummary and sets the default values. + * Instantiates a new AssignmentFilterEvaluationSummary and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/AssignmentFilterTypeAndEvaluationResult.php b/src/Generated/Models/AssignmentFilterTypeAndEvaluationResult.php index 1ea675405f8..7a70137416c 100644 --- a/src/Generated/Models/AssignmentFilterTypeAndEvaluationResult.php +++ b/src/Generated/Models/AssignmentFilterTypeAndEvaluationResult.php @@ -21,7 +21,7 @@ class AssignmentFilterTypeAndEvaluationResult implements AdditionalDataHolder, B private BackingStore $backingStore; /** - * Instantiates a new assignmentFilterTypeAndEvaluationResult and sets the default values. + * Instantiates a new AssignmentFilterTypeAndEvaluationResult and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/AssociatedTeamInfo.php b/src/Generated/Models/AssociatedTeamInfo.php index 09f5ada8e87..fff102226d4 100644 --- a/src/Generated/Models/AssociatedTeamInfo.php +++ b/src/Generated/Models/AssociatedTeamInfo.php @@ -9,7 +9,7 @@ class AssociatedTeamInfo extends TeamInfo implements Parsable { /** - * Instantiates a new associatedTeamInfo and sets the default values. + * Instantiates a new AssociatedTeamInfo and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/AttachmentInfo.php b/src/Generated/Models/AttachmentInfo.php index 9ca1031b316..48e38edbbf4 100644 --- a/src/Generated/Models/AttachmentInfo.php +++ b/src/Generated/Models/AttachmentInfo.php @@ -18,7 +18,7 @@ class AttachmentInfo implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new attachmentInfo and sets the default values. + * Instantiates a new AttachmentInfo and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/AttachmentItem.php b/src/Generated/Models/AttachmentItem.php index b4db0bcb0cc..abc1adc3586 100644 --- a/src/Generated/Models/AttachmentItem.php +++ b/src/Generated/Models/AttachmentItem.php @@ -18,7 +18,7 @@ class AttachmentItem implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new attachmentItem and sets the default values. + * Instantiates a new AttachmentItem and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/AttackSimulationRoot.php b/src/Generated/Models/AttackSimulationRoot.php index 34eddabb81f..1d8ac62d377 100644 --- a/src/Generated/Models/AttackSimulationRoot.php +++ b/src/Generated/Models/AttackSimulationRoot.php @@ -9,7 +9,7 @@ class AttackSimulationRoot extends Entity implements Parsable { /** - * Instantiates a new attackSimulationRoot and sets the default values. + * Instantiates a new AttackSimulationRoot and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/AuditActivityInitiator.php b/src/Generated/Models/AuditActivityInitiator.php index f170b885543..adc0d420b25 100644 --- a/src/Generated/Models/AuditActivityInitiator.php +++ b/src/Generated/Models/AuditActivityInitiator.php @@ -18,7 +18,7 @@ class AuditActivityInitiator implements AdditionalDataHolder, BackedModel, Parsa private BackingStore $backingStore; /** - * Instantiates a new auditActivityInitiator and sets the default values. + * Instantiates a new AuditActivityInitiator and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/AuthenticationBehaviors.php b/src/Generated/Models/AuthenticationBehaviors.php index cb55c9e5353..ec62a19d726 100644 --- a/src/Generated/Models/AuthenticationBehaviors.php +++ b/src/Generated/Models/AuthenticationBehaviors.php @@ -72,7 +72,7 @@ public function getOdataType(): ?string { } /** - * Gets the removeUnverifiedEmailClaim property value. The removeUnverifiedEmailClaim property + * Gets the removeUnverifiedEmailClaim property value. Removes the email claim from tokens sent to an application when the email address's domain cannot be verified. * @return bool|null */ public function getRemoveUnverifiedEmailClaim(): ?bool { @@ -123,7 +123,7 @@ public function setOdataType(?string $value): void { } /** - * Sets the removeUnverifiedEmailClaim property value. The removeUnverifiedEmailClaim property + * Sets the removeUnverifiedEmailClaim property value. Removes the email claim from tokens sent to an application when the email address's domain cannot be verified. * @param bool|null $value Value to set for the removeUnverifiedEmailClaim property. */ public function setRemoveUnverifiedEmailClaim(?bool $value): void { diff --git a/src/Generated/Models/AuthenticationCombinationConfiguration.php b/src/Generated/Models/AuthenticationCombinationConfiguration.php index 3e421f9e307..e618edd2c61 100644 --- a/src/Generated/Models/AuthenticationCombinationConfiguration.php +++ b/src/Generated/Models/AuthenticationCombinationConfiguration.php @@ -9,7 +9,7 @@ class AuthenticationCombinationConfiguration extends Entity implements Parsable { /** - * Instantiates a new AuthenticationCombinationConfiguration and sets the default values. + * Instantiates a new authenticationCombinationConfiguration and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/AuthenticationConditionApplication.php b/src/Generated/Models/AuthenticationConditionApplication.php index 3c6605f5ece..b7dbcdb39d6 100644 --- a/src/Generated/Models/AuthenticationConditionApplication.php +++ b/src/Generated/Models/AuthenticationConditionApplication.php @@ -18,7 +18,7 @@ class AuthenticationConditionApplication implements AdditionalDataHolder, Backed private BackingStore $backingStore; /** - * Instantiates a new authenticationConditionApplication and sets the default values. + * Instantiates a new AuthenticationConditionApplication and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/AuthenticationEventListener.php b/src/Generated/Models/AuthenticationEventListener.php index b080877db0e..6ea1959d87f 100644 --- a/src/Generated/Models/AuthenticationEventListener.php +++ b/src/Generated/Models/AuthenticationEventListener.php @@ -9,7 +9,7 @@ class AuthenticationEventListener extends Entity implements Parsable { /** - * Instantiates a new AuthenticationEventListener and sets the default values. + * Instantiates a new authenticationEventListener and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/AuthenticationMethodsPolicy.php b/src/Generated/Models/AuthenticationMethodsPolicy.php index 78243b9df25..37d5723aa23 100644 --- a/src/Generated/Models/AuthenticationMethodsPolicy.php +++ b/src/Generated/Models/AuthenticationMethodsPolicy.php @@ -64,6 +64,7 @@ public function getFieldDeserializers(): array { 'policyVersion' => fn(ParseNode $n) => $o->setPolicyVersion($n->getStringValue()), 'reconfirmationInDays' => fn(ParseNode $n) => $o->setReconfirmationInDays($n->getIntegerValue()), 'registrationEnforcement' => fn(ParseNode $n) => $o->setRegistrationEnforcement($n->getObjectValue([RegistrationEnforcement::class, 'createFromDiscriminatorValue'])), + 'reportSuspiciousActivitySettings' => fn(ParseNode $n) => $o->setReportSuspiciousActivitySettings($n->getObjectValue([ReportSuspiciousActivitySettings::class, 'createFromDiscriminatorValue'])), 'systemCredentialPreferences' => fn(ParseNode $n) => $o->setSystemCredentialPreferences($n->getObjectValue([SystemCredentialPreferences::class, 'createFromDiscriminatorValue'])), ]); } @@ -108,6 +109,14 @@ public function getRegistrationEnforcement(): ?RegistrationEnforcement { return $this->getBackingStore()->get('registrationEnforcement'); } + /** + * Gets the reportSuspiciousActivitySettings property value. Enable users to report unexpected voice call or phone app notification multi-factor authentication prompts as suspicious. + * @return ReportSuspiciousActivitySettings|null + */ + public function getReportSuspiciousActivitySettings(): ?ReportSuspiciousActivitySettings { + return $this->getBackingStore()->get('reportSuspiciousActivitySettings'); + } + /** * Gets the systemCredentialPreferences property value. Prompt users with their most-preferred credential for multifactor authentication. * @return SystemCredentialPreferences|null @@ -130,6 +139,7 @@ public function serialize(SerializationWriter $writer): void { $writer->writeStringValue('policyVersion', $this->getPolicyVersion()); $writer->writeIntegerValue('reconfirmationInDays', $this->getReconfirmationInDays()); $writer->writeObjectValue('registrationEnforcement', $this->getRegistrationEnforcement()); + $writer->writeObjectValue('reportSuspiciousActivitySettings', $this->getReportSuspiciousActivitySettings()); $writer->writeObjectValue('systemCredentialPreferences', $this->getSystemCredentialPreferences()); } @@ -197,6 +207,14 @@ public function setRegistrationEnforcement(?RegistrationEnforcement $value): voi $this->getBackingStore()->set('registrationEnforcement', $value); } + /** + * Sets the reportSuspiciousActivitySettings property value. Enable users to report unexpected voice call or phone app notification multi-factor authentication prompts as suspicious. + * @param ReportSuspiciousActivitySettings|null $value Value to set for the reportSuspiciousActivitySettings property. + */ + public function setReportSuspiciousActivitySettings(?ReportSuspiciousActivitySettings $value): void { + $this->getBackingStore()->set('reportSuspiciousActivitySettings', $value); + } + /** * Sets the systemCredentialPreferences property value. Prompt users with their most-preferred credential for multifactor authentication. * @param SystemCredentialPreferences|null $value Value to set for the systemCredentialPreferences property. diff --git a/src/Generated/Models/AuthenticationMethodsRegistrationCampaignIncludeTarget.php b/src/Generated/Models/AuthenticationMethodsRegistrationCampaignIncludeTarget.php index d907cfbbb56..b94b259a348 100644 --- a/src/Generated/Models/AuthenticationMethodsRegistrationCampaignIncludeTarget.php +++ b/src/Generated/Models/AuthenticationMethodsRegistrationCampaignIncludeTarget.php @@ -18,7 +18,7 @@ class AuthenticationMethodsRegistrationCampaignIncludeTarget implements Addition private BackingStore $backingStore; /** - * Instantiates a new authenticationMethodsRegistrationCampaignIncludeTarget and sets the default values. + * Instantiates a new AuthenticationMethodsRegistrationCampaignIncludeTarget and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/AvailabilityItem.php b/src/Generated/Models/AvailabilityItem.php index df94d3cc7e0..e9655f9913f 100644 --- a/src/Generated/Models/AvailabilityItem.php +++ b/src/Generated/Models/AvailabilityItem.php @@ -18,7 +18,7 @@ class AvailabilityItem implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new availabilityItem and sets the default values. + * Instantiates a new AvailabilityItem and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/BookingCustomerInformationBase.php b/src/Generated/Models/BookingCustomerInformationBase.php index 28a2af4cb96..1c70c7d6ce6 100644 --- a/src/Generated/Models/BookingCustomerInformationBase.php +++ b/src/Generated/Models/BookingCustomerInformationBase.php @@ -18,7 +18,7 @@ class BookingCustomerInformationBase implements AdditionalDataHolder, BackedMode private BackingStore $backingStore; /** - * Instantiates a new bookingCustomerInformationBase and sets the default values. + * Instantiates a new BookingCustomerInformationBase and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/BookingWorkHours.php b/src/Generated/Models/BookingWorkHours.php index 62de2a24971..1913452c815 100644 --- a/src/Generated/Models/BookingWorkHours.php +++ b/src/Generated/Models/BookingWorkHours.php @@ -21,7 +21,7 @@ class BookingWorkHours implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new bookingWorkHours and sets the default values. + * Instantiates a new BookingWorkHours and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/BrowserSharedCookieHistory.php b/src/Generated/Models/BrowserSharedCookieHistory.php index fc41022d7d4..5d1f1aec47a 100644 --- a/src/Generated/Models/BrowserSharedCookieHistory.php +++ b/src/Generated/Models/BrowserSharedCookieHistory.php @@ -19,7 +19,7 @@ class BrowserSharedCookieHistory implements AdditionalDataHolder, BackedModel, P private BackingStore $backingStore; /** - * Instantiates a new browserSharedCookieHistory and sets the default values. + * Instantiates a new BrowserSharedCookieHistory and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/BrowserSiteHistory.php b/src/Generated/Models/BrowserSiteHistory.php index 9c179544895..3f4b632180c 100644 --- a/src/Generated/Models/BrowserSiteHistory.php +++ b/src/Generated/Models/BrowserSiteHistory.php @@ -22,7 +22,7 @@ class BrowserSiteHistory implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new browserSiteHistory and sets the default values. + * Instantiates a new BrowserSiteHistory and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/BucketAggregationDefinition.php b/src/Generated/Models/BucketAggregationDefinition.php index 6bf03197d2c..b5e655a9ee8 100644 --- a/src/Generated/Models/BucketAggregationDefinition.php +++ b/src/Generated/Models/BucketAggregationDefinition.php @@ -18,7 +18,7 @@ class BucketAggregationDefinition implements AdditionalDataHolder, BackedModel, private BackingStore $backingStore; /** - * Instantiates a new bucketAggregationDefinition and sets the default values. + * Instantiates a new BucketAggregationDefinition and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/BucketAggregationRange.php b/src/Generated/Models/BucketAggregationRange.php index c5a141eb608..0870e353d5f 100644 --- a/src/Generated/Models/BucketAggregationRange.php +++ b/src/Generated/Models/BucketAggregationRange.php @@ -18,7 +18,7 @@ class BucketAggregationRange implements AdditionalDataHolder, BackedModel, Parsa private BackingStore $backingStore; /** - * Instantiates a new bucketAggregationRange and sets the default values. + * Instantiates a new BucketAggregationRange and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/CallRecords/TraceRouteHop.php b/src/Generated/Models/CallRecords/TraceRouteHop.php index a78da501570..2c74380b8f2 100644 --- a/src/Generated/Models/CallRecords/TraceRouteHop.php +++ b/src/Generated/Models/CallRecords/TraceRouteHop.php @@ -19,7 +19,7 @@ class TraceRouteHop implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new traceRouteHop and sets the default values. + * Instantiates a new TraceRouteHop and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/CartToClassAssociation.php b/src/Generated/Models/CartToClassAssociation.php index 0d61209900b..c9a165670ca 100644 --- a/src/Generated/Models/CartToClassAssociation.php +++ b/src/Generated/Models/CartToClassAssociation.php @@ -7,13 +7,10 @@ use Microsoft\Kiota\Abstractions\Serialization\ParseNode; use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter; -/** - * CartToClassAssociation for associating device carts with classrooms. -*/ class CartToClassAssociation extends Entity implements Parsable { /** - * Instantiates a new cartToClassAssociation and sets the default values. + * Instantiates a new CartToClassAssociation and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/CertificateAuthority.php b/src/Generated/Models/CertificateAuthority.php index 4574428f43d..9238e14b575 100644 --- a/src/Generated/Models/CertificateAuthority.php +++ b/src/Generated/Models/CertificateAuthority.php @@ -19,7 +19,7 @@ class CertificateAuthority implements AdditionalDataHolder, BackedModel, Parsabl private BackingStore $backingStore; /** - * Instantiates a new certificateAuthority and sets the default values. + * Instantiates a new CertificateAuthority and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/Channel.php b/src/Generated/Models/Channel.php index adaa301b007..4876c05502c 100644 --- a/src/Generated/Models/Channel.php +++ b/src/Generated/Models/Channel.php @@ -139,7 +139,7 @@ public function getSharedWithTeams(): ?array { } /** - * Gets the summary property value. The summary property + * Gets the summary property value. Contains summary information about the channel, including number of guests, members, owners, and an indicator for members from other tenants. The summary property will only be returned if it is specified in the $select clause of the Get channel method. * @return ChannelSummary|null */ public function getSummary(): ?ChannelSummary { @@ -282,7 +282,7 @@ public function setSharedWithTeams(?array $value): void { } /** - * Sets the summary property value. The summary property + * Sets the summary property value. Contains summary information about the channel, including number of guests, members, owners, and an indicator for members from other tenants. The summary property will only be returned if it is specified in the $select clause of the Get channel method. * @param ChannelSummary|null $value Value to set for the summary property. */ public function setSummary(?ChannelSummary $value): void { diff --git a/src/Generated/Models/ChannelSummary.php b/src/Generated/Models/ChannelSummary.php index a9c37a8101e..11ba4c3de5b 100644 --- a/src/Generated/Models/ChannelSummary.php +++ b/src/Generated/Models/ChannelSummary.php @@ -66,7 +66,7 @@ public function getFieldDeserializers(): array { } /** - * Gets the guestsCount property value. The guestsCount property + * Gets the guestsCount property value. Count of guests in a channel. * @return int|null */ public function getGuestsCount(): ?int { @@ -74,7 +74,7 @@ public function getGuestsCount(): ?int { } /** - * Gets the hasMembersFromOtherTenants property value. The hasMembersFromOtherTenants property + * Gets the hasMembersFromOtherTenants property value. Indicates whether external members are included on the channel. * @return bool|null */ public function getHasMembersFromOtherTenants(): ?bool { @@ -82,7 +82,7 @@ public function getHasMembersFromOtherTenants(): ?bool { } /** - * Gets the membersCount property value. The membersCount property + * Gets the membersCount property value. Count of members in a channel. * @return int|null */ public function getMembersCount(): ?int { @@ -98,7 +98,7 @@ public function getOdataType(): ?string { } /** - * Gets the ownersCount property value. The ownersCount property + * Gets the ownersCount property value. Count of owners in a channel. * @return int|null */ public function getOwnersCount(): ?int { @@ -135,7 +135,7 @@ public function setBackingStore(BackingStore $value): void { } /** - * Sets the guestsCount property value. The guestsCount property + * Sets the guestsCount property value. Count of guests in a channel. * @param int|null $value Value to set for the guestsCount property. */ public function setGuestsCount(?int $value): void { @@ -143,7 +143,7 @@ public function setGuestsCount(?int $value): void { } /** - * Sets the hasMembersFromOtherTenants property value. The hasMembersFromOtherTenants property + * Sets the hasMembersFromOtherTenants property value. Indicates whether external members are included on the channel. * @param bool|null $value Value to set for the hasMembersFromOtherTenants property. */ public function setHasMembersFromOtherTenants(?bool $value): void { @@ -151,7 +151,7 @@ public function setHasMembersFromOtherTenants(?bool $value): void { } /** - * Sets the membersCount property value. The membersCount property + * Sets the membersCount property value. Count of members in a channel. * @param int|null $value Value to set for the membersCount property. */ public function setMembersCount(?int $value): void { @@ -167,7 +167,7 @@ public function setOdataType(?string $value): void { } /** - * Sets the ownersCount property value. The ownersCount property + * Sets the ownersCount property value. Count of owners in a channel. * @param int|null $value Value to set for the ownersCount property. */ public function setOwnersCount(?int $value): void { diff --git a/src/Generated/Models/ChromeOSOnboardingSettings.php b/src/Generated/Models/ChromeOSOnboardingSettings.php index db236559eee..2142928ba87 100644 --- a/src/Generated/Models/ChromeOSOnboardingSettings.php +++ b/src/Generated/Models/ChromeOSOnboardingSettings.php @@ -7,13 +7,10 @@ use Microsoft\Kiota\Abstractions\Serialization\ParseNode; use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter; -/** - * Entity that represents a Chromebook tenant settings -*/ class ChromeOSOnboardingSettings extends Entity implements Parsable { /** - * Instantiates a new chromeOSOnboardingSettings and sets the default values. + * Instantiates a new ChromeOSOnboardingSettings and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/ClassificationResult.php b/src/Generated/Models/ClassificationResult.php index 0c794590047..7f9a98c79d6 100644 --- a/src/Generated/Models/ClassificationResult.php +++ b/src/Generated/Models/ClassificationResult.php @@ -18,7 +18,7 @@ class ClassificationResult implements AdditionalDataHolder, BackedModel, Parsabl private BackingStore $backingStore; /** - * Instantiates a new classificationResult and sets the default values. + * Instantiates a new ClassificationResult and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/CloudPcAuditActor.php b/src/Generated/Models/CloudPcAuditActor.php index 1b83326c1bb..48d5b0dc59b 100644 --- a/src/Generated/Models/CloudPcAuditActor.php +++ b/src/Generated/Models/CloudPcAuditActor.php @@ -18,7 +18,7 @@ class CloudPcAuditActor implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new cloudPcAuditActor and sets the default values. + * Instantiates a new CloudPcAuditActor and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/CloudPcAuditProperty.php b/src/Generated/Models/CloudPcAuditProperty.php index 9bf9eea84ba..e7f70715ad4 100644 --- a/src/Generated/Models/CloudPcAuditProperty.php +++ b/src/Generated/Models/CloudPcAuditProperty.php @@ -18,7 +18,7 @@ class CloudPcAuditProperty implements AdditionalDataHolder, BackedModel, Parsabl private BackingStore $backingStore; /** - * Instantiates a new cloudPcAuditProperty and sets the default values. + * Instantiates a new CloudPcAuditProperty and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/CloudPcAuditResource.php b/src/Generated/Models/CloudPcAuditResource.php index d3f3a188504..3758f1b6a98 100644 --- a/src/Generated/Models/CloudPcAuditResource.php +++ b/src/Generated/Models/CloudPcAuditResource.php @@ -18,7 +18,7 @@ class CloudPcAuditResource implements AdditionalDataHolder, BackedModel, Parsabl private BackingStore $backingStore; /** - * Instantiates a new cloudPcAuditResource and sets the default values. + * Instantiates a new CloudPcAuditResource and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/CloudPcExportJob.php b/src/Generated/Models/CloudPcExportJob.php index a33e6a7b10e..7dc88c5cc75 100644 --- a/src/Generated/Models/CloudPcExportJob.php +++ b/src/Generated/Models/CloudPcExportJob.php @@ -84,7 +84,7 @@ public function getFormat(): ?string { } /** - * Gets the reportName property value. The report name. The possible values are: remoteConnectionHistoricalReports, dailyAggregatedRemoteConnectionReports, totalAggregatedRemoteConnectionReports, sharedUseLicenseUsageReport, sharedUseLicenseUsageRealTimeReport, or unknownFutureValue. + * Gets the reportName property value. The report name. The possible values are: remoteConnectionHistoricalReports, dailyAggregatedRemoteConnectionReports, totalAggregatedRemoteConnectionReports, sharedUseLicenseUsageReport, sharedUseLicenseUsageRealTimeReport noLicenseAvailableConnectivityFailureReport, or unknownFutureValue. * @return CloudPcReportName|null */ public function getReportName(): ?CloudPcReportName { @@ -164,7 +164,7 @@ public function setFormat(?string $value): void { } /** - * Sets the reportName property value. The report name. The possible values are: remoteConnectionHistoricalReports, dailyAggregatedRemoteConnectionReports, totalAggregatedRemoteConnectionReports, sharedUseLicenseUsageReport, sharedUseLicenseUsageRealTimeReport, or unknownFutureValue. + * Sets the reportName property value. The report name. The possible values are: remoteConnectionHistoricalReports, dailyAggregatedRemoteConnectionReports, totalAggregatedRemoteConnectionReports, sharedUseLicenseUsageReport, sharedUseLicenseUsageRealTimeReport noLicenseAvailableConnectivityFailureReport, or unknownFutureValue. * @param CloudPcReportName|null $value Value to set for the reportName property. */ public function setReportName(?CloudPcReportName $value): void { diff --git a/src/Generated/Models/CloudPcPolicySettingType.php b/src/Generated/Models/CloudPcPolicySettingType.php new file mode 100644 index 00000000000..84614da0cf0 --- /dev/null +++ b/src/Generated/Models/CloudPcPolicySettingType.php @@ -0,0 +1,11 @@ +backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/Company.php b/src/Generated/Models/Company.php index 53efac33818..fad69dfeea9 100644 --- a/src/Generated/Models/Company.php +++ b/src/Generated/Models/Company.php @@ -18,7 +18,7 @@ class Company implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new company and sets the default values. + * Instantiates a new Company and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/CompanyInformation.php b/src/Generated/Models/CompanyInformation.php index c985d74e3f0..48733724276 100644 --- a/src/Generated/Models/CompanyInformation.php +++ b/src/Generated/Models/CompanyInformation.php @@ -21,7 +21,7 @@ class CompanyInformation implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new companyInformation and sets the default values. + * Instantiates a new CompanyInformation and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/CompanySubscription.php b/src/Generated/Models/CompanySubscription.php new file mode 100644 index 00000000000..1887bc644f8 --- /dev/null +++ b/src/Generated/Models/CompanySubscription.php @@ -0,0 +1,208 @@ +getBackingStore()->get('createdDateTime'); + } + + /** + * 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()), + 'isTrial' => fn(ParseNode $n) => $o->setIsTrial($n->getBooleanValue()), + 'nextLifecycleDateTime' => fn(ParseNode $n) => $o->setNextLifecycleDateTime($n->getDateTimeValue()), + 'ocpSubscriptionId' => fn(ParseNode $n) => $o->setOcpSubscriptionId($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 { + return $this->getBackingStore()->get('isTrial'); + } + + /** + * Gets the nextLifecycleDateTime property value. The nextLifecycleDateTime property + * @return DateTime|null + */ + public function getNextLifecycleDateTime(): ?DateTime { + return $this->getBackingStore()->get('nextLifecycleDateTime'); + } + + /** + * Gets the ocpSubscriptionId property value. The ocpSubscriptionId property + * @return string|null + */ + public function getOcpSubscriptionId(): ?string { + return $this->getBackingStore()->get('ocpSubscriptionId'); + } + + /** + * Gets the serviceStatus property value. The serviceStatus property + * @return array|null + */ + public function getServiceStatus(): ?array { + return $this->getBackingStore()->get('serviceStatus'); + } + + /** + * Gets the skuId property value. The skuId property + * @return string|null + */ + public function getSkuId(): ?string { + return $this->getBackingStore()->get('skuId'); + } + + /** + * Gets the skuPartNumber property value. The skuPartNumber property + * @return string|null + */ + public function getSkuPartNumber(): ?string { + return $this->getBackingStore()->get('skuPartNumber'); + } + + /** + * Gets the status property value. The status property + * @return string|null + */ + public function getStatus(): ?string { + return $this->getBackingStore()->get('status'); + } + + /** + * Gets the totalLicenses property value. The totalLicenses property + * @return int|null + */ + public function getTotalLicenses(): ?int { + return $this->getBackingStore()->get('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->writeDateTimeValue('createdDateTime', $this->getCreatedDateTime()); + $writer->writeBooleanValue('isTrial', $this->getIsTrial()); + $writer->writeDateTimeValue('nextLifecycleDateTime', $this->getNextLifecycleDateTime()); + $writer->writeStringValue('ocpSubscriptionId', $this->getOcpSubscriptionId()); + $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 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 ocpSubscriptionId property value. The ocpSubscriptionId property + * @param string|null $value Value to set for the ocpSubscriptionId property. + */ + public function setOcpSubscriptionId(?string $value): void { + $this->getBackingStore()->set('ocpSubscriptionId', $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..5221aa5ffe9 --- /dev/null +++ b/src/Generated/Models/CompanySubscriptionCollectionResponse.php @@ -0,0 +1,63 @@ + + */ + 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 { + return $this->getBackingStore()->get('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/ComplianceManagementPartner.php b/src/Generated/Models/ComplianceManagementPartner.php index d55df0ed51d..b5a06ce9336 100644 --- a/src/Generated/Models/ComplianceManagementPartner.php +++ b/src/Generated/Models/ComplianceManagementPartner.php @@ -7,13 +7,10 @@ use Microsoft\Kiota\Abstractions\Serialization\ParseNode; use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter; -/** - * Compliance management partner for all platforms -*/ class ComplianceManagementPartner extends Entity implements Parsable { /** - * Instantiates a new complianceManagementPartner and sets the default values. + * Instantiates a new ComplianceManagementPartner and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/ConditionalAccessConditionSet.php b/src/Generated/Models/ConditionalAccessConditionSet.php index a6e5ba3efb0..3153c512eb1 100644 --- a/src/Generated/Models/ConditionalAccessConditionSet.php +++ b/src/Generated/Models/ConditionalAccessConditionSet.php @@ -18,7 +18,7 @@ class ConditionalAccessConditionSet implements AdditionalDataHolder, BackedModel private BackingStore $backingStore; /** - * Instantiates a new conditionalAccessConditionSet and sets the default values. + * Instantiates a new ConditionalAccessConditionSet and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/ConditionalAccessPolicyDetail.php b/src/Generated/Models/ConditionalAccessPolicyDetail.php index 85cac9b409d..f036013a49f 100644 --- a/src/Generated/Models/ConditionalAccessPolicyDetail.php +++ b/src/Generated/Models/ConditionalAccessPolicyDetail.php @@ -18,7 +18,7 @@ class ConditionalAccessPolicyDetail implements AdditionalDataHolder, BackedModel private BackingStore $backingStore; /** - * Instantiates a new conditionalAccessPolicyDetail and sets the default values. + * Instantiates a new ConditionalAccessPolicyDetail and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/ConfigurationManagerAction.php b/src/Generated/Models/ConfigurationManagerAction.php index d819adc9ba6..5720dd7a33f 100644 --- a/src/Generated/Models/ConfigurationManagerAction.php +++ b/src/Generated/Models/ConfigurationManagerAction.php @@ -21,7 +21,7 @@ class ConfigurationManagerAction implements AdditionalDataHolder, BackedModel, P private BackingStore $backingStore; /** - * Instantiates a new configurationManagerAction and sets the default values. + * Instantiates a new ConfigurationManagerAction and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/ContentClassification.php b/src/Generated/Models/ContentClassification.php index 1cde19d9e8b..d085963881d 100644 --- a/src/Generated/Models/ContentClassification.php +++ b/src/Generated/Models/ContentClassification.php @@ -18,7 +18,7 @@ class ContentClassification implements AdditionalDataHolder, BackedModel, Parsab private BackingStore $backingStore; /** - * Instantiates a new contentClassification and sets the default values. + * Instantiates a new ContentClassification and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/ContentCustomization.php b/src/Generated/Models/ContentCustomization.php index 972dfed70df..052e29a2089 100644 --- a/src/Generated/Models/ContentCustomization.php +++ b/src/Generated/Models/ContentCustomization.php @@ -43,7 +43,7 @@ public function getAdditionalData(): ?array { } /** - * Gets the attributeCollection property value. The attributeCollection property + * Gets the attributeCollection property value. Represents the content options of External Identities to be customized throughout the authentication flow for a tenant. * @return array|null */ public function getAttributeCollection(): ?array { @@ -51,7 +51,7 @@ public function getAttributeCollection(): ?array { } /** - * Gets the attributeCollectionRelativeUrl property value. The attributeCollectionRelativeUrl property + * Gets the attributeCollectionRelativeUrl property value. A relative URL for the content options of External Identities to be customized throughout the authentication flow for a tenant. * @return string|null */ public function getAttributeCollectionRelativeUrl(): ?string { @@ -107,7 +107,7 @@ public function setAdditionalData(?array $value): void { } /** - * Sets the attributeCollection property value. The attributeCollection property + * Sets the attributeCollection property value. Represents the content options of External Identities to be customized throughout the authentication flow for a tenant. * @param array|null $value Value to set for the attributeCollection property. */ public function setAttributeCollection(?array $value): void { @@ -115,7 +115,7 @@ public function setAttributeCollection(?array $value): void { } /** - * Sets the attributeCollectionRelativeUrl property value. The attributeCollectionRelativeUrl property + * Sets the attributeCollectionRelativeUrl property value. A relative URL for the content options of External Identities to be customized throughout the authentication flow for a tenant. * @param string|null $value Value to set for the attributeCollectionRelativeUrl property. */ public function setAttributeCollectionRelativeUrl(?string $value): void { diff --git a/src/Generated/Models/ContentInfo.php b/src/Generated/Models/ContentInfo.php index 7b96eb8bf00..91dc81bdcfb 100644 --- a/src/Generated/Models/ContentInfo.php +++ b/src/Generated/Models/ContentInfo.php @@ -18,7 +18,7 @@ class ContentInfo implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new contentInfo and sets the default values. + * Instantiates a new ContentInfo and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/ConvertIdResult.php b/src/Generated/Models/ConvertIdResult.php index ff0f4b61738..13f3ff301b6 100644 --- a/src/Generated/Models/ConvertIdResult.php +++ b/src/Generated/Models/ConvertIdResult.php @@ -18,7 +18,7 @@ class ConvertIdResult implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new convertIdResult and sets the default values. + * Instantiates a new ConvertIdResult and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/CountryRegion.php b/src/Generated/Models/CountryRegion.php index 4d402493fd1..88852dcd092 100644 --- a/src/Generated/Models/CountryRegion.php +++ b/src/Generated/Models/CountryRegion.php @@ -19,7 +19,7 @@ class CountryRegion implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new countryRegion and sets the default values. + * Instantiates a new CountryRegion and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/Credential.php b/src/Generated/Models/Credential.php index 587b53f0e26..1406e84228a 100644 --- a/src/Generated/Models/Credential.php +++ b/src/Generated/Models/Credential.php @@ -18,7 +18,7 @@ class Credential implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new credential and sets the default values. + * Instantiates a new Credential and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/CrossTenantAccessPolicyConfigurationPartner.php b/src/Generated/Models/CrossTenantAccessPolicyConfigurationPartner.php index 8cd57a31242..9d78789d9fa 100644 --- a/src/Generated/Models/CrossTenantAccessPolicyConfigurationPartner.php +++ b/src/Generated/Models/CrossTenantAccessPolicyConfigurationPartner.php @@ -18,7 +18,7 @@ class CrossTenantAccessPolicyConfigurationPartner implements AdditionalDataHolde private BackingStore $backingStore; /** - * Instantiates a new crossTenantAccessPolicyConfigurationPartner and sets the default values. + * Instantiates a new CrossTenantAccessPolicyConfigurationPartner and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/CustomerPayment.php b/src/Generated/Models/CustomerPayment.php index 10606cc86c3..0a658d04f8f 100644 --- a/src/Generated/Models/CustomerPayment.php +++ b/src/Generated/Models/CustomerPayment.php @@ -20,7 +20,7 @@ class CustomerPayment implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new customerPayment and sets the default values. + * Instantiates a new CustomerPayment and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/CustomerPaymentJournal.php b/src/Generated/Models/CustomerPaymentJournal.php index fcd7eba0fc5..de2e11d5064 100644 --- a/src/Generated/Models/CustomerPaymentJournal.php +++ b/src/Generated/Models/CustomerPaymentJournal.php @@ -19,7 +19,7 @@ class CustomerPaymentJournal implements AdditionalDataHolder, BackedModel, Parsa private BackingStore $backingStore; /** - * Instantiates a new customerPaymentJournal and sets the default values. + * Instantiates a new CustomerPaymentJournal and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/DefaultUserRolePermissions.php b/src/Generated/Models/DefaultUserRolePermissions.php index 65da49701c1..a7db7c05c99 100644 --- a/src/Generated/Models/DefaultUserRolePermissions.php +++ b/src/Generated/Models/DefaultUserRolePermissions.php @@ -18,7 +18,7 @@ class DefaultUserRolePermissions implements AdditionalDataHolder, BackedModel, P private BackingStore $backingStore; /** - * Instantiates a new defaultUserRolePermissions and sets the default values. + * Instantiates a new DefaultUserRolePermissions and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/DelegatedAdminAccessContainer.php b/src/Generated/Models/DelegatedAdminAccessContainer.php index 1c667a9dac3..4bbbfe64e9e 100644 --- a/src/Generated/Models/DelegatedAdminAccessContainer.php +++ b/src/Generated/Models/DelegatedAdminAccessContainer.php @@ -18,7 +18,7 @@ class DelegatedAdminAccessContainer implements AdditionalDataHolder, BackedModel private BackingStore $backingStore; /** - * Instantiates a new delegatedAdminAccessContainer and sets the default values. + * Instantiates a new DelegatedAdminAccessContainer and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/DelegatedAdminAccessDetails.php b/src/Generated/Models/DelegatedAdminAccessDetails.php index 8e71e476821..acdb3dd2fa5 100644 --- a/src/Generated/Models/DelegatedAdminAccessDetails.php +++ b/src/Generated/Models/DelegatedAdminAccessDetails.php @@ -18,7 +18,7 @@ class DelegatedAdminAccessDetails implements AdditionalDataHolder, BackedModel, private BackingStore $backingStore; /** - * Instantiates a new delegatedAdminAccessDetails and sets the default values. + * Instantiates a new DelegatedAdminAccessDetails and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/DepOnboardingSetting.php b/src/Generated/Models/DepOnboardingSetting.php index 1e6b4469894..5ffd690fbaf 100644 --- a/src/Generated/Models/DepOnboardingSetting.php +++ b/src/Generated/Models/DepOnboardingSetting.php @@ -7,13 +7,10 @@ use Microsoft\Kiota\Abstractions\Serialization\ParseNode; use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter; -/** - * The depOnboardingSetting represents an instance of the Apple DEP service being onboarded to Intune. The onboarded service instance manages an Apple Token used to synchronize data between Apple and Intune. -*/ class DepOnboardingSetting extends Entity implements Parsable { /** - * Instantiates a new depOnboardingSetting and sets the default values. + * Instantiates a new DepOnboardingSetting and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/DeviceAndAppManagementAssignmentFilter.php b/src/Generated/Models/DeviceAndAppManagementAssignmentFilter.php index a87b8c29aca..410d2df3428 100644 --- a/src/Generated/Models/DeviceAndAppManagementAssignmentFilter.php +++ b/src/Generated/Models/DeviceAndAppManagementAssignmentFilter.php @@ -7,13 +7,10 @@ use Microsoft\Kiota\Abstractions\Serialization\ParseNode; use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter; -/** - * A class containing the properties used for Assignment Filter. -*/ class DeviceAndAppManagementAssignmentFilter extends Entity implements Parsable { /** - * Instantiates a new deviceAndAppManagementAssignmentFilter and sets the default values. + * Instantiates a new DeviceAndAppManagementAssignmentFilter and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/DeviceAppManagementTask.php b/src/Generated/Models/DeviceAppManagementTask.php index 4b303545cc8..ad19b504a82 100644 --- a/src/Generated/Models/DeviceAppManagementTask.php +++ b/src/Generated/Models/DeviceAppManagementTask.php @@ -7,10 +7,13 @@ use Microsoft\Kiota\Abstractions\Serialization\ParseNode; use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter; +/** + * A device app management task. +*/ class DeviceAppManagementTask extends Entity implements Parsable { /** - * Instantiates a new DeviceAppManagementTask and sets the default values. + * Instantiates a new deviceAppManagementTask and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/DeviceComplianceScript.php b/src/Generated/Models/DeviceComplianceScript.php index 47a13044314..fc826e56b7d 100644 --- a/src/Generated/Models/DeviceComplianceScript.php +++ b/src/Generated/Models/DeviceComplianceScript.php @@ -8,13 +8,10 @@ use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter; use Psr\Http\Message\StreamInterface; -/** - * Intune will provide customer the ability to run their Powershell Compliance scripts (detection) on the enrolled windows 10 Azure Active Directory joined devices. -*/ class DeviceComplianceScript extends Entity implements Parsable { /** - * Instantiates a new deviceComplianceScript and sets the default values. + * Instantiates a new DeviceComplianceScript and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/DeviceComplianceScriptError.php b/src/Generated/Models/DeviceComplianceScriptError.php index aba7e9f81d0..3e48886859c 100644 --- a/src/Generated/Models/DeviceComplianceScriptError.php +++ b/src/Generated/Models/DeviceComplianceScriptError.php @@ -18,7 +18,7 @@ class DeviceComplianceScriptError implements AdditionalDataHolder, BackedModel, private BackingStore $backingStore; /** - * Instantiates a new deviceComplianceScriptError and sets the default values. + * Instantiates a new DeviceComplianceScriptError and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/DeviceComplianceScriptRule.php b/src/Generated/Models/DeviceComplianceScriptRule.php index f4ea6b9fea4..024793df8af 100644 --- a/src/Generated/Models/DeviceComplianceScriptRule.php +++ b/src/Generated/Models/DeviceComplianceScriptRule.php @@ -18,7 +18,7 @@ class DeviceComplianceScriptRule implements AdditionalDataHolder, BackedModel, P private BackingStore $backingStore; /** - * Instantiates a new deviceComplianceScriptRule and sets the default values. + * Instantiates a new DeviceComplianceScriptRule and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/DeviceConfigurationConflictSummary.php b/src/Generated/Models/DeviceConfigurationConflictSummary.php index f4d813caae8..49aa155cd42 100644 --- a/src/Generated/Models/DeviceConfigurationConflictSummary.php +++ b/src/Generated/Models/DeviceConfigurationConflictSummary.php @@ -6,13 +6,10 @@ use Microsoft\Kiota\Abstractions\Serialization\ParseNode; use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter; -/** - * Conflict summary for a set of device configuration policies. -*/ class DeviceConfigurationConflictSummary extends Entity implements Parsable { /** - * Instantiates a new deviceConfigurationConflictSummary and sets the default values. + * Instantiates a new DeviceConfigurationConflictSummary and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/DeviceConfigurationDeviceStateSummary.php b/src/Generated/Models/DeviceConfigurationDeviceStateSummary.php index c36f00d2df5..bee83405215 100644 --- a/src/Generated/Models/DeviceConfigurationDeviceStateSummary.php +++ b/src/Generated/Models/DeviceConfigurationDeviceStateSummary.php @@ -9,7 +9,7 @@ class DeviceConfigurationDeviceStateSummary extends Entity implements Parsable { /** - * Instantiates a new deviceConfigurationDeviceStateSummary and sets the default values. + * Instantiates a new DeviceConfigurationDeviceStateSummary and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/DeviceHealthScript.php b/src/Generated/Models/DeviceHealthScript.php index d71d4e27de9..a9a8fb57c7b 100644 --- a/src/Generated/Models/DeviceHealthScript.php +++ b/src/Generated/Models/DeviceHealthScript.php @@ -8,13 +8,10 @@ use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter; use Psr\Http\Message\StreamInterface; -/** - * Intune will provide customer the ability to run their Powershell Health scripts (remediation + detection) on the enrolled windows 10 Azure Active Directory joined devices. -*/ class DeviceHealthScript extends Entity implements Parsable { /** - * Instantiates a new deviceHealthScript and sets the default values. + * Instantiates a new DeviceHealthScript and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/DeviceHealthScriptPolicyState.php b/src/Generated/Models/DeviceHealthScriptPolicyState.php index c2bc8f5a373..0f7e104008b 100644 --- a/src/Generated/Models/DeviceHealthScriptPolicyState.php +++ b/src/Generated/Models/DeviceHealthScriptPolicyState.php @@ -22,7 +22,7 @@ class DeviceHealthScriptPolicyState implements AdditionalDataHolder, BackedModel private BackingStore $backingStore; /** - * Instantiates a new deviceHealthScriptPolicyState and sets the default values. + * Instantiates a new DeviceHealthScriptPolicyState and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/DeviceHealthScriptRemediationHistoryData.php b/src/Generated/Models/DeviceHealthScriptRemediationHistoryData.php index 47620fe9a9f..34ab2c52069 100644 --- a/src/Generated/Models/DeviceHealthScriptRemediationHistoryData.php +++ b/src/Generated/Models/DeviceHealthScriptRemediationHistoryData.php @@ -22,7 +22,7 @@ class DeviceHealthScriptRemediationHistoryData implements AdditionalDataHolder, private BackingStore $backingStore; /** - * Instantiates a new deviceHealthScriptRemediationHistoryData and sets the default values. + * Instantiates a new DeviceHealthScriptRemediationHistoryData and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/DeviceKey.php b/src/Generated/Models/DeviceKey.php index 62dd26f2c31..b8d52fecbd5 100644 --- a/src/Generated/Models/DeviceKey.php +++ b/src/Generated/Models/DeviceKey.php @@ -19,7 +19,7 @@ class DeviceKey implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new deviceKey and sets the default values. + * Instantiates a new DeviceKey and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/DeviceManagementAutopilotEvent.php b/src/Generated/Models/DeviceManagementAutopilotEvent.php index d0ebf76c4c2..ae0fac4f813 100644 --- a/src/Generated/Models/DeviceManagementAutopilotEvent.php +++ b/src/Generated/Models/DeviceManagementAutopilotEvent.php @@ -8,13 +8,10 @@ use Microsoft\Kiota\Abstractions\Serialization\ParseNode; use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter; -/** - * Represents an Autopilot flow event. -*/ class DeviceManagementAutopilotEvent extends Entity implements Parsable { /** - * Instantiates a new deviceManagementAutopilotEvent and sets the default values. + * Instantiates a new DeviceManagementAutopilotEvent and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/DeviceManagementConfigurationChoiceSettingValueTemplate.php b/src/Generated/Models/DeviceManagementConfigurationChoiceSettingValueTemplate.php index 28869299f93..7cbb475d312 100644 --- a/src/Generated/Models/DeviceManagementConfigurationChoiceSettingValueTemplate.php +++ b/src/Generated/Models/DeviceManagementConfigurationChoiceSettingValueTemplate.php @@ -21,7 +21,7 @@ class DeviceManagementConfigurationChoiceSettingValueTemplate implements Additio private BackingStore $backingStore; /** - * Instantiates a new deviceManagementConfigurationChoiceSettingValueTemplate and sets the default values. + * Instantiates a new DeviceManagementConfigurationChoiceSettingValueTemplate and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/DeviceManagementConfigurationGroupSettingValueTemplate.php b/src/Generated/Models/DeviceManagementConfigurationGroupSettingValueTemplate.php index e54e3f871da..245195abbe6 100644 --- a/src/Generated/Models/DeviceManagementConfigurationGroupSettingValueTemplate.php +++ b/src/Generated/Models/DeviceManagementConfigurationGroupSettingValueTemplate.php @@ -21,7 +21,7 @@ class DeviceManagementConfigurationGroupSettingValueTemplate implements Addition private BackingStore $backingStore; /** - * Instantiates a new deviceManagementConfigurationGroupSettingValueTemplate and sets the default values. + * Instantiates a new DeviceManagementConfigurationGroupSettingValueTemplate and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/DeviceManagementConfigurationOptionDefinitionTemplate.php b/src/Generated/Models/DeviceManagementConfigurationOptionDefinitionTemplate.php index e9471be5a44..1d7101a169c 100644 --- a/src/Generated/Models/DeviceManagementConfigurationOptionDefinitionTemplate.php +++ b/src/Generated/Models/DeviceManagementConfigurationOptionDefinitionTemplate.php @@ -21,7 +21,7 @@ class DeviceManagementConfigurationOptionDefinitionTemplate implements Additiona private BackingStore $backingStore; /** - * Instantiates a new deviceManagementConfigurationOptionDefinitionTemplate and sets the default values. + * Instantiates a new DeviceManagementConfigurationOptionDefinitionTemplate and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/DeviceManagementConfigurationSettingGroupCollectionDefinition.php b/src/Generated/Models/DeviceManagementConfigurationSettingGroupCollectionDefinition.php index 4eaf8d75819..d456076a294 100644 --- a/src/Generated/Models/DeviceManagementConfigurationSettingGroupCollectionDefinition.php +++ b/src/Generated/Models/DeviceManagementConfigurationSettingGroupCollectionDefinition.php @@ -37,7 +37,7 @@ public function getFieldDeserializers(): array { } /** - * Gets the maximumCount property value. Maximum number of setting group count in the collection + * Gets the maximumCount property value. Maximum number of setting group count in the collection. Valid values 1 to 100 * @return int|null */ public function getMaximumCount(): ?int { @@ -45,7 +45,7 @@ public function getMaximumCount(): ?int { } /** - * Gets the minimumCount property value. Minimum number of setting group count in the collection + * Gets the minimumCount property value. Minimum number of setting group count in the collection. Valid values 1 to 100 * @return int|null */ public function getMinimumCount(): ?int { @@ -63,7 +63,7 @@ public function serialize(SerializationWriter $writer): void { } /** - * Sets the maximumCount property value. Maximum number of setting group count in the collection + * Sets the maximumCount property value. Maximum number of setting group count in the collection. Valid values 1 to 100 * @param int|null $value Value to set for the maximumCount property. */ public function setMaximumCount(?int $value): void { @@ -71,7 +71,7 @@ public function setMaximumCount(?int $value): void { } /** - * Sets the minimumCount property value. Minimum number of setting group count in the collection + * Sets the minimumCount property value. Minimum number of setting group count in the collection. Valid values 1 to 100 * @param int|null $value Value to set for the minimumCount property. */ public function setMinimumCount(?int $value): void { diff --git a/src/Generated/Models/DeviceManagementConfigurationSettingGroupDefinition.php b/src/Generated/Models/DeviceManagementConfigurationSettingGroupDefinition.php index 588f2b3e2f5..50f6f9cb47c 100644 --- a/src/Generated/Models/DeviceManagementConfigurationSettingGroupDefinition.php +++ b/src/Generated/Models/DeviceManagementConfigurationSettingGroupDefinition.php @@ -32,7 +32,7 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Devic } /** - * Gets the childIds property value. Dependent child settings to this group of settings + * Gets the childIds property value. Dependent child settings to this group of settings. * @return array|null */ public function getChildIds(): ?array { @@ -80,7 +80,7 @@ public function serialize(SerializationWriter $writer): void { } /** - * Sets the childIds property value. Dependent child settings to this group of settings + * Sets the childIds property value. Dependent child settings to this group of settings. * @param array|null $value Value to set for the childIds property. */ public function setChildIds(?array $value): void { diff --git a/src/Generated/Models/DeviceManagementConfigurationSettingInstance.php b/src/Generated/Models/DeviceManagementConfigurationSettingInstance.php index f55213a2576..6df7bbed9c4 100644 --- a/src/Generated/Models/DeviceManagementConfigurationSettingInstance.php +++ b/src/Generated/Models/DeviceManagementConfigurationSettingInstance.php @@ -21,7 +21,7 @@ class DeviceManagementConfigurationSettingInstance implements AdditionalDataHold private BackingStore $backingStore; /** - * Instantiates a new deviceManagementConfigurationSettingInstance and sets the default values. + * Instantiates a new DeviceManagementConfigurationSettingInstance and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/DeviceManagementConfigurationSettingInstanceTemplate.php b/src/Generated/Models/DeviceManagementConfigurationSettingInstanceTemplate.php index e0c04de8da1..496d9b2029e 100644 --- a/src/Generated/Models/DeviceManagementConfigurationSettingInstanceTemplate.php +++ b/src/Generated/Models/DeviceManagementConfigurationSettingInstanceTemplate.php @@ -21,7 +21,7 @@ class DeviceManagementConfigurationSettingInstanceTemplate implements Additional private BackingStore $backingStore; /** - * Instantiates a new deviceManagementConfigurationSettingInstanceTemplate and sets the default values. + * Instantiates a new DeviceManagementConfigurationSettingInstanceTemplate and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/DeviceManagementConfigurationSimpleSettingCollectionDefinition.php b/src/Generated/Models/DeviceManagementConfigurationSimpleSettingCollectionDefinition.php index 3a60f633d3a..73c5b5bb74f 100644 --- a/src/Generated/Models/DeviceManagementConfigurationSimpleSettingCollectionDefinition.php +++ b/src/Generated/Models/DeviceManagementConfigurationSimpleSettingCollectionDefinition.php @@ -37,7 +37,7 @@ public function getFieldDeserializers(): array { } /** - * Gets the maximumCount property value. Maximum number of simple settings in the collection + * Gets the maximumCount property value. Maximum number of simple settings in the collection. Valid values 1 to 100 * @return int|null */ public function getMaximumCount(): ?int { @@ -45,7 +45,7 @@ public function getMaximumCount(): ?int { } /** - * Gets the minimumCount property value. Minimum number of simple settings in the collection + * Gets the minimumCount property value. Minimum number of simple settings in the collection. Valid values 1 to 100 * @return int|null */ public function getMinimumCount(): ?int { @@ -63,7 +63,7 @@ public function serialize(SerializationWriter $writer): void { } /** - * Sets the maximumCount property value. Maximum number of simple settings in the collection + * Sets the maximumCount property value. Maximum number of simple settings in the collection. Valid values 1 to 100 * @param int|null $value Value to set for the maximumCount property. */ public function setMaximumCount(?int $value): void { @@ -71,7 +71,7 @@ public function setMaximumCount(?int $value): void { } /** - * Sets the minimumCount property value. Minimum number of simple settings in the collection + * Sets the minimumCount property value. Minimum number of simple settings in the collection. Valid values 1 to 100 * @param int|null $value Value to set for the minimumCount property. */ public function setMinimumCount(?int $value): void { diff --git a/src/Generated/Models/DeviceManagementConfigurationSimpleSettingValueTemplate.php b/src/Generated/Models/DeviceManagementConfigurationSimpleSettingValueTemplate.php index baa5ae4ec78..5da5d5802c8 100644 --- a/src/Generated/Models/DeviceManagementConfigurationSimpleSettingValueTemplate.php +++ b/src/Generated/Models/DeviceManagementConfigurationSimpleSettingValueTemplate.php @@ -21,7 +21,7 @@ class DeviceManagementConfigurationSimpleSettingValueTemplate implements Additio private BackingStore $backingStore; /** - * Instantiates a new deviceManagementConfigurationSimpleSettingValueTemplate and sets the default values. + * Instantiates a new DeviceManagementConfigurationSimpleSettingValueTemplate and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/DeviceManagementDomainJoinConnector.php b/src/Generated/Models/DeviceManagementDomainJoinConnector.php index c1c27b80e74..7607991a341 100644 --- a/src/Generated/Models/DeviceManagementDomainJoinConnector.php +++ b/src/Generated/Models/DeviceManagementDomainJoinConnector.php @@ -7,13 +7,10 @@ use Microsoft\Kiota\Abstractions\Serialization\ParseNode; use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter; -/** - * A Domain Join Connector is a connector that is responsible to allocate (and delete) machine account blobs -*/ class DeviceManagementDomainJoinConnector extends Entity implements Parsable { /** - * Instantiates a new deviceManagementDomainJoinConnector and sets the default values. + * Instantiates a new DeviceManagementDomainJoinConnector and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/DeviceManagementEnumValue.php b/src/Generated/Models/DeviceManagementEnumValue.php index 6afcc4f5e33..f95bfb388e7 100644 --- a/src/Generated/Models/DeviceManagementEnumValue.php +++ b/src/Generated/Models/DeviceManagementEnumValue.php @@ -21,7 +21,7 @@ class DeviceManagementEnumValue implements AdditionalDataHolder, BackedModel, Pa private BackingStore $backingStore; /** - * Instantiates a new deviceManagementEnumValue and sets the default values. + * Instantiates a new DeviceManagementEnumValue and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/DeviceManagementExchangeConnector.php b/src/Generated/Models/DeviceManagementExchangeConnector.php index aea7f5b7bd3..e434442bfd9 100644 --- a/src/Generated/Models/DeviceManagementExchangeConnector.php +++ b/src/Generated/Models/DeviceManagementExchangeConnector.php @@ -7,13 +7,10 @@ use Microsoft\Kiota\Abstractions\Serialization\ParseNode; use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter; -/** - * Entity which represents a connection to an Exchange environment. -*/ class DeviceManagementExchangeConnector extends Entity implements Parsable { /** - * Instantiates a new deviceManagementExchangeConnector and sets the default values. + * Instantiates a new DeviceManagementExchangeConnector and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/DeviceManagementExchangeOnPremisesPolicy.php b/src/Generated/Models/DeviceManagementExchangeOnPremisesPolicy.php index aac66540c05..ddce0e0c9df 100644 --- a/src/Generated/Models/DeviceManagementExchangeOnPremisesPolicy.php +++ b/src/Generated/Models/DeviceManagementExchangeOnPremisesPolicy.php @@ -7,13 +7,10 @@ use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter; use Psr\Http\Message\StreamInterface; -/** - * Singleton entity which represents the Exchange OnPremises policy configured for a tenant. -*/ class DeviceManagementExchangeOnPremisesPolicy extends Entity implements Parsable { /** - * Instantiates a new deviceManagementExchangeOnPremisesPolicy and sets the default values. + * Instantiates a new DeviceManagementExchangeOnPremisesPolicy and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/DeviceManagementIntentSettingCategory.php b/src/Generated/Models/DeviceManagementIntentSettingCategory.php index 7f7d1648171..11334be702f 100644 --- a/src/Generated/Models/DeviceManagementIntentSettingCategory.php +++ b/src/Generated/Models/DeviceManagementIntentSettingCategory.php @@ -6,10 +6,13 @@ use Microsoft\Kiota\Abstractions\Serialization\ParseNode; use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter; +/** + * Entity representing an intent setting category +*/ class DeviceManagementIntentSettingCategory extends DeviceManagementSettingCategory implements Parsable { /** - * Instantiates a new DeviceManagementIntentSettingCategory and sets the default values. + * Instantiates a new deviceManagementIntentSettingCategory and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/DeviceManagementPartner.php b/src/Generated/Models/DeviceManagementPartner.php index ea8d0efb811..e8899435205 100644 --- a/src/Generated/Models/DeviceManagementPartner.php +++ b/src/Generated/Models/DeviceManagementPartner.php @@ -7,13 +7,10 @@ use Microsoft\Kiota\Abstractions\Serialization\ParseNode; use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter; -/** - * Entity which represents a connection to device management partner. -*/ class DeviceManagementPartner extends Entity implements Parsable { /** - * Instantiates a new deviceManagementPartner and sets the default values. + * Instantiates a new DeviceManagementPartner and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/DeviceManagementReports.php b/src/Generated/Models/DeviceManagementReports.php index 5ae7962d21d..c6b5eebb2d3 100644 --- a/src/Generated/Models/DeviceManagementReports.php +++ b/src/Generated/Models/DeviceManagementReports.php @@ -9,7 +9,7 @@ class DeviceManagementReports extends Entity implements Parsable { /** - * Instantiates a new deviceManagementReports and sets the default values. + * Instantiates a new DeviceManagementReports and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/DeviceManagementResourceAccessProfileBase.php b/src/Generated/Models/DeviceManagementResourceAccessProfileBase.php index aca417e617f..bf271889e3e 100644 --- a/src/Generated/Models/DeviceManagementResourceAccessProfileBase.php +++ b/src/Generated/Models/DeviceManagementResourceAccessProfileBase.php @@ -7,13 +7,10 @@ use Microsoft\Kiota\Abstractions\Serialization\ParseNode; use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter; -/** - * Base Profile Type for Resource Access -*/ class DeviceManagementResourceAccessProfileBase extends Entity implements Parsable { /** - * Instantiates a new deviceManagementResourceAccessProfileBase and sets the default values. + * Instantiates a new DeviceManagementResourceAccessProfileBase and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/DeviceManagementReusablePolicySetting.php b/src/Generated/Models/DeviceManagementReusablePolicySetting.php index 3e8613fd5f1..f9b58bde1eb 100644 --- a/src/Generated/Models/DeviceManagementReusablePolicySetting.php +++ b/src/Generated/Models/DeviceManagementReusablePolicySetting.php @@ -7,13 +7,10 @@ use Microsoft\Kiota\Abstractions\Serialization\ParseNode; use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter; -/** - * Graph model for a reusable setting -*/ class DeviceManagementReusablePolicySetting extends Entity implements Parsable { /** - * Instantiates a new deviceManagementReusablePolicySetting and sets the default values. + * Instantiates a new DeviceManagementReusablePolicySetting and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/DeviceManagementScript.php b/src/Generated/Models/DeviceManagementScript.php index feddcd31794..f5ca922603c 100644 --- a/src/Generated/Models/DeviceManagementScript.php +++ b/src/Generated/Models/DeviceManagementScript.php @@ -8,13 +8,10 @@ use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter; use Psr\Http\Message\StreamInterface; -/** - * Intune will provide customer the ability to run their Powershell scripts on the enrolled windows 10 Azure Active Directory joined devices. The script can be run once or periodically. -*/ class DeviceManagementScript extends Entity implements Parsable { /** - * Instantiates a new deviceManagementScript and sets the default values. + * Instantiates a new DeviceManagementScript and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/DeviceManagementSettingCategory.php b/src/Generated/Models/DeviceManagementSettingCategory.php index a8378905b05..535eea6150d 100644 --- a/src/Generated/Models/DeviceManagementSettingCategory.php +++ b/src/Generated/Models/DeviceManagementSettingCategory.php @@ -6,13 +6,10 @@ use Microsoft\Kiota\Abstractions\Serialization\ParseNode; use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter; -/** - * Entity representing a setting category -*/ class DeviceManagementSettingCategory extends Entity implements Parsable { /** - * Instantiates a new deviceManagementSettingCategory and sets the default values. + * Instantiates a new DeviceManagementSettingCategory and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/DeviceManagementTemplate.php b/src/Generated/Models/DeviceManagementTemplate.php index 62b84ba36fd..4194e911b25 100644 --- a/src/Generated/Models/DeviceManagementTemplate.php +++ b/src/Generated/Models/DeviceManagementTemplate.php @@ -7,13 +7,10 @@ use Microsoft\Kiota\Abstractions\Serialization\ParseNode; use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter; -/** - * Entity that represents a defined collection of device settings -*/ class DeviceManagementTemplate extends Entity implements Parsable { /** - * Instantiates a new deviceManagementTemplate and sets the default values. + * Instantiates a new DeviceManagementTemplate and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/DeviceManagementTemplateInsightsDefinition.php b/src/Generated/Models/DeviceManagementTemplateInsightsDefinition.php index cfd1e6beb93..cd433968f4e 100644 --- a/src/Generated/Models/DeviceManagementTemplateInsightsDefinition.php +++ b/src/Generated/Models/DeviceManagementTemplateInsightsDefinition.php @@ -6,13 +6,10 @@ use Microsoft\Kiota\Abstractions\Serialization\ParseNode; use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter; -/** - * template insights definition -*/ class DeviceManagementTemplateInsightsDefinition extends Entity implements Parsable { /** - * Instantiates a new deviceManagementTemplateInsightsDefinition and sets the default values. + * Instantiates a new DeviceManagementTemplateInsightsDefinition and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/DeviceShellScript.php b/src/Generated/Models/DeviceShellScript.php index 3a50b542eb9..4d2a8cfcef2 100644 --- a/src/Generated/Models/DeviceShellScript.php +++ b/src/Generated/Models/DeviceShellScript.php @@ -9,13 +9,10 @@ use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter; use Psr\Http\Message\StreamInterface; -/** - * Intune will provide customer the ability to run their Shell scripts on the enrolled Mac OS devices. The script can be run once or periodically. -*/ class DeviceShellScript extends Entity implements Parsable { /** - * Instantiates a new deviceShellScript and sets the default values. + * Instantiates a new DeviceShellScript and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/Dimension.php b/src/Generated/Models/Dimension.php index edc5987b020..374901104b9 100644 --- a/src/Generated/Models/Dimension.php +++ b/src/Generated/Models/Dimension.php @@ -19,7 +19,7 @@ class Dimension implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new dimension and sets the default values. + * Instantiates a new Dimension and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/DimensionValue.php b/src/Generated/Models/DimensionValue.php index b4741758d79..d77c8920dc7 100644 --- a/src/Generated/Models/DimensionValue.php +++ b/src/Generated/Models/DimensionValue.php @@ -19,7 +19,7 @@ class DimensionValue implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new dimensionValue and sets the default values. + * Instantiates a new DimensionValue and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/Directory.php b/src/Generated/Models/Directory.php index 2888bd2965d..da1e2803cd8 100644 --- a/src/Generated/Models/Directory.php +++ b/src/Generated/Models/Directory.php @@ -100,6 +100,7 @@ public function getFieldDeserializers(): array { 'outboundSharedUserProfiles' => fn(ParseNode $n) => $o->setOutboundSharedUserProfiles($n->getCollectionOfObjectValues([OutboundSharedUserProfile::class, 'createFromDiscriminatorValue'])), 'recommendations' => fn(ParseNode $n) => $o->setRecommendations($n->getCollectionOfObjectValues([Recommendation::class, 'createFromDiscriminatorValue'])), 'sharedEmailDomains' => fn(ParseNode $n) => $o->setSharedEmailDomains($n->getCollectionOfObjectValues([SharedEmailDomain::class, 'createFromDiscriminatorValue'])), + 'subscriptions' => fn(ParseNode $n) => $o->setSubscriptions($n->getCollectionOfObjectValues([CompanySubscription::class, 'createFromDiscriminatorValue'])), ]); } @@ -151,6 +152,14 @@ public function getSharedEmailDomains(): ?array { return $this->getBackingStore()->get('sharedEmailDomains'); } + /** + * Gets the subscriptions property value. The subscriptions property + * @return array|null + */ + public function getSubscriptions(): ?array { + return $this->getBackingStore()->get('subscriptions'); + } + /** * Serializes information the current object * @param SerializationWriter $writer Serialization writer to use to serialize this model @@ -170,6 +179,7 @@ public function serialize(SerializationWriter $writer): void { $writer->writeCollectionOfObjectValues('outboundSharedUserProfiles', $this->getOutboundSharedUserProfiles()); $writer->writeCollectionOfObjectValues('recommendations', $this->getRecommendations()); $writer->writeCollectionOfObjectValues('sharedEmailDomains', $this->getSharedEmailDomains()); + $writer->writeCollectionOfObjectValues('subscriptions', $this->getSubscriptions()); } /** @@ -276,4 +286,12 @@ public function setSharedEmailDomains(?array $value): void { $this->getBackingStore()->set('sharedEmailDomains', $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/DiscoveredSensitiveType.php b/src/Generated/Models/DiscoveredSensitiveType.php index 610a47b7f1c..7f41e3088e9 100644 --- a/src/Generated/Models/DiscoveredSensitiveType.php +++ b/src/Generated/Models/DiscoveredSensitiveType.php @@ -18,7 +18,7 @@ class DiscoveredSensitiveType implements AdditionalDataHolder, BackedModel, Pars private BackingStore $backingStore; /** - * Instantiates a new discoveredSensitiveType and sets the default values. + * Instantiates a new DiscoveredSensitiveType and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/DomainDnsRecord.php b/src/Generated/Models/DomainDnsRecord.php index 96f918410e5..361192afec5 100644 --- a/src/Generated/Models/DomainDnsRecord.php +++ b/src/Generated/Models/DomainDnsRecord.php @@ -9,7 +9,7 @@ class DomainDnsRecord extends Entity implements Parsable { /** - * Instantiates a new DomainDnsRecord and sets the default values. + * Instantiates a new domainDnsRecord and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/Ediscovery/CaseSettings.php b/src/Generated/Models/Ediscovery/CaseSettings.php index 16a5febbdf9..0ed8d4bd6ba 100644 --- a/src/Generated/Models/Ediscovery/CaseSettings.php +++ b/src/Generated/Models/Ediscovery/CaseSettings.php @@ -10,7 +10,7 @@ class CaseSettings extends Entity implements Parsable { /** - * Instantiates a new CaseSettings and sets the default values. + * Instantiates a new caseSettings and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/Ediscovery/LegalHold.php b/src/Generated/Models/Ediscovery/LegalHold.php index 8a16315d2ae..e5a2f594fe2 100644 --- a/src/Generated/Models/Ediscovery/LegalHold.php +++ b/src/Generated/Models/Ediscovery/LegalHold.php @@ -12,7 +12,7 @@ class LegalHold extends Entity implements Parsable { /** - * Instantiates a new legalHold and sets the default values. + * Instantiates a new LegalHold and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/Ediscovery/Tag.php b/src/Generated/Models/Ediscovery/Tag.php index 96b6bbb4c8c..a3cddde91eb 100644 --- a/src/Generated/Models/Ediscovery/Tag.php +++ b/src/Generated/Models/Ediscovery/Tag.php @@ -12,7 +12,7 @@ class Tag extends Entity implements Parsable { /** - * Instantiates a new Tag and sets the default values. + * Instantiates a new tag and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/EducationIdentityDomain.php b/src/Generated/Models/EducationIdentityDomain.php index 1046999b433..93ed793a733 100644 --- a/src/Generated/Models/EducationIdentityDomain.php +++ b/src/Generated/Models/EducationIdentityDomain.php @@ -18,7 +18,7 @@ class EducationIdentityDomain implements AdditionalDataHolder, BackedModel, Pars private BackingStore $backingStore; /** - * Instantiates a new educationIdentityDomain and sets the default values. + * Instantiates a new EducationIdentityDomain and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/EducationIdentityMatchingOptions.php b/src/Generated/Models/EducationIdentityMatchingOptions.php index 0babb2636a4..1482124dd63 100644 --- a/src/Generated/Models/EducationIdentityMatchingOptions.php +++ b/src/Generated/Models/EducationIdentityMatchingOptions.php @@ -18,7 +18,7 @@ class EducationIdentityMatchingOptions implements AdditionalDataHolder, BackedMo private BackingStore $backingStore; /** - * Instantiates a new educationIdentityMatchingOptions and sets the default values. + * Instantiates a new EducationIdentityMatchingOptions and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/EducationIdentitySynchronizationConfiguration.php b/src/Generated/Models/EducationIdentitySynchronizationConfiguration.php index 36fa47b66a3..a9ef338125a 100644 --- a/src/Generated/Models/EducationIdentitySynchronizationConfiguration.php +++ b/src/Generated/Models/EducationIdentitySynchronizationConfiguration.php @@ -18,7 +18,7 @@ class EducationIdentitySynchronizationConfiguration implements AdditionalDataHol private BackingStore $backingStore; /** - * Instantiates a new educationIdentitySynchronizationConfiguration and sets the default values. + * Instantiates a new EducationIdentitySynchronizationConfiguration and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/EducationSynchronizationConnectionSettings.php b/src/Generated/Models/EducationSynchronizationConnectionSettings.php index 9fc2f631d9a..72a84146120 100644 --- a/src/Generated/Models/EducationSynchronizationConnectionSettings.php +++ b/src/Generated/Models/EducationSynchronizationConnectionSettings.php @@ -18,7 +18,7 @@ class EducationSynchronizationConnectionSettings implements AdditionalDataHolder private BackingStore $backingStore; /** - * Instantiates a new educationSynchronizationConnectionSettings and sets the default values. + * Instantiates a new EducationSynchronizationConnectionSettings and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/EducationSynchronizationDataProvider.php b/src/Generated/Models/EducationSynchronizationDataProvider.php index 4d6bafd9339..e47cb643d26 100644 --- a/src/Generated/Models/EducationSynchronizationDataProvider.php +++ b/src/Generated/Models/EducationSynchronizationDataProvider.php @@ -18,7 +18,7 @@ class EducationSynchronizationDataProvider implements AdditionalDataHolder, Back private BackingStore $backingStore; /** - * Instantiates a new educationSynchronizationDataProvider and sets the default values. + * Instantiates a new EducationSynchronizationDataProvider and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/EducationUser.php b/src/Generated/Models/EducationUser.php index 26f9a531854..06398b47585 100644 --- a/src/Generated/Models/EducationUser.php +++ b/src/Generated/Models/EducationUser.php @@ -10,7 +10,7 @@ class EducationUser extends Entity implements Parsable { /** - * Instantiates a new EducationUser and sets the default values. + * Instantiates a new educationUser and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/EducationalActivityDetail.php b/src/Generated/Models/EducationalActivityDetail.php index 765e12ec4ca..6bf23049599 100644 --- a/src/Generated/Models/EducationalActivityDetail.php +++ b/src/Generated/Models/EducationalActivityDetail.php @@ -18,7 +18,7 @@ class EducationalActivityDetail implements AdditionalDataHolder, BackedModel, Pa private BackingStore $backingStore; /** - * Instantiates a new educationalActivityDetail and sets the default values. + * Instantiates a new EducationalActivityDetail and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/EmailSettings.php b/src/Generated/Models/EmailSettings.php index 702bd88d21b..bf198d1ed20 100644 --- a/src/Generated/Models/EmailSettings.php +++ b/src/Generated/Models/EmailSettings.php @@ -18,7 +18,7 @@ class EmailSettings implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new emailSettings and sets the default values. + * Instantiates a new EmailSettings and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/EmbeddedSIMActivationCode.php b/src/Generated/Models/EmbeddedSIMActivationCode.php index 66ce81e64fa..d9c4e29cd10 100644 --- a/src/Generated/Models/EmbeddedSIMActivationCode.php +++ b/src/Generated/Models/EmbeddedSIMActivationCode.php @@ -21,7 +21,7 @@ class EmbeddedSIMActivationCode implements AdditionalDataHolder, BackedModel, Pa private BackingStore $backingStore; /** - * Instantiates a new embeddedSIMActivationCode and sets the default values. + * Instantiates a new EmbeddedSIMActivationCode and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/Employee.php b/src/Generated/Models/Employee.php index fa2fb65ce7d..48a0f902bd8 100644 --- a/src/Generated/Models/Employee.php +++ b/src/Generated/Models/Employee.php @@ -20,7 +20,7 @@ class Employee implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new employee and sets the default values. + * Instantiates a new Employee and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/Entity.php b/src/Generated/Models/Entity.php index 86ecdb3ccb5..5ab7932d722 100644 --- a/src/Generated/Models/Entity.php +++ b/src/Generated/Models/Entity.php @@ -98,7 +98,29 @@ use Microsoft\Graph\Beta\Generated\Models\ManagedTenants\TenantTag; use Microsoft\Graph\Beta\Generated\Models\ManagedTenants\WindowsDeviceMalwareState; use Microsoft\Graph\Beta\Generated\Models\ManagedTenants\WindowsProtectionState; +use Microsoft\Graph\Beta\Generated\Models\Networkaccess\BranchSite; +use Microsoft\Graph\Beta\Generated\Models\Networkaccess\ConditionalAccessPolicy; +use Microsoft\Graph\Beta\Generated\Models\Networkaccess\ConditionalAccessSettings; +use Microsoft\Graph\Beta\Generated\Models\Networkaccess\Connectivity; +use Microsoft\Graph\Beta\Generated\Models\Networkaccess\CrossTenantAccessSettings; +use Microsoft\Graph\Beta\Generated\Models\Networkaccess\DeviceLink; +use Microsoft\Graph\Beta\Generated\Models\Networkaccess\EnrichedAuditLogs; +use Microsoft\Graph\Beta\Generated\Models\Networkaccess\ForwardingOptions; +use Microsoft\Graph\Beta\Generated\Models\Networkaccess\ForwardingPolicy; +use Microsoft\Graph\Beta\Generated\Models\Networkaccess\ForwardingPolicyLink; +use Microsoft\Graph\Beta\Generated\Models\Networkaccess\ForwardingProfile; +use Microsoft\Graph\Beta\Generated\Models\Networkaccess\ForwardingRule; +use Microsoft\Graph\Beta\Generated\Models\Networkaccess\Logs; +use Microsoft\Graph\Beta\Generated\Models\Networkaccess\M365ForwardingRule; use Microsoft\Graph\Beta\Generated\Models\Networkaccess\NetworkAccessRoot; +use Microsoft\Graph\Beta\Generated\Models\Networkaccess\Policy; +use Microsoft\Graph\Beta\Generated\Models\Networkaccess\PolicyLink; +use Microsoft\Graph\Beta\Generated\Models\Networkaccess\PolicyRule; +use Microsoft\Graph\Beta\Generated\Models\Networkaccess\PrivateAccessForwardingRule; +use Microsoft\Graph\Beta\Generated\Models\Networkaccess\Profile; +use Microsoft\Graph\Beta\Generated\Models\Networkaccess\Reports; +use Microsoft\Graph\Beta\Generated\Models\Networkaccess\Settings; +use Microsoft\Graph\Beta\Generated\Models\Networkaccess\TenantStatus; use Microsoft\Graph\Beta\Generated\Models\Search\Acronym; use Microsoft\Graph\Beta\Generated\Models\Search\Bookmark; use Microsoft\Graph\Beta\Generated\Models\Search\Qna; @@ -348,6 +370,7 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Entit case '#microsoft.graph.aospDeviceOwnerWiFiConfiguration': return new AospDeviceOwnerWiFiConfiguration(); case '#microsoft.graph.appConsentApprovalRoute': return new AppConsentApprovalRoute(); case '#microsoft.graph.appConsentRequest': return new AppConsentRequest(); + case '#microsoft.graph.appCredentialSignInActivity': return new AppCredentialSignInActivity(); case '#microsoft.graph.appleDeviceFeaturesConfigurationBase': return new AppleDeviceFeaturesConfigurationBase(); case '#microsoft.graph.appleEnrollmentProfileAssignment': return new AppleEnrollmentProfileAssignment(); case '#microsoft.graph.appleExpeditedCheckinConfigurationBase': return new AppleExpeditedCheckinConfigurationBase(); @@ -487,6 +510,7 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Entit case '#microsoft.graph.comanagementEligibleDevice': return new ComanagementEligibleDevice(); case '#microsoft.graph.command': return new Command(); 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(); @@ -1120,7 +1144,29 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Entit case '#microsoft.graph.muteParticipantsOperation': return new MuteParticipantsOperation(); case '#microsoft.graph.namedLocation': return new NamedLocation(); case '#microsoft.graph.ndesConnector': return new NdesConnector(); + case '#microsoft.graph.networkaccess.branchSite': return new BranchSite(); + case '#microsoft.graph.networkaccess.conditionalAccessPolicy': return new ConditionalAccessPolicy(); + case '#microsoft.graph.networkaccess.conditionalAccessSettings': return new ConditionalAccessSettings(); + case '#microsoft.graph.networkaccess.connectivity': return new Connectivity(); + case '#microsoft.graph.networkaccess.crossTenantAccessSettings': return new CrossTenantAccessSettings(); + case '#microsoft.graph.networkaccess.deviceLink': return new DeviceLink(); + case '#microsoft.graph.networkaccess.enrichedAuditLogs': return new EnrichedAuditLogs(); + case '#microsoft.graph.networkaccess.forwardingOptions': return new ForwardingOptions(); + case '#microsoft.graph.networkaccess.forwardingPolicy': return new ForwardingPolicy(); + case '#microsoft.graph.networkaccess.forwardingPolicyLink': return new ForwardingPolicyLink(); + case '#microsoft.graph.networkaccess.forwardingProfile': return new ForwardingProfile(); + case '#microsoft.graph.networkaccess.forwardingRule': return new ForwardingRule(); + case '#microsoft.graph.networkaccess.logs': return new Logs(); + case '#microsoft.graph.networkaccess.m365ForwardingRule': return new M365ForwardingRule(); case '#microsoft.graph.networkaccess.networkAccessRoot': return new NetworkAccessRoot(); + case '#microsoft.graph.networkaccess.policy': return new Policy(); + case '#microsoft.graph.networkaccess.policyLink': return new PolicyLink(); + case '#microsoft.graph.networkaccess.policyRule': return new PolicyRule(); + case '#microsoft.graph.networkaccess.privateAccessForwardingRule': return new PrivateAccessForwardingRule(); + case '#microsoft.graph.networkaccess.profile': return new Profile(); + case '#microsoft.graph.networkaccess.reports': return new Reports(); + case '#microsoft.graph.networkaccess.settings': return new Settings(); + case '#microsoft.graph.networkaccess.tenantStatus': return new TenantStatus(); case '#microsoft.graph.noMfaOnRoleActivationAlertConfiguration': return new NoMfaOnRoleActivationAlertConfiguration(); case '#microsoft.graph.noMfaOnRoleActivationAlertIncident': return new NoMfaOnRoleActivationAlertIncident(); case '#microsoft.graph.note': return new Note(); @@ -1424,6 +1470,7 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Entit case '#microsoft.graph.servicePrincipalCreationConditionSet': return new ServicePrincipalCreationConditionSet(); case '#microsoft.graph.servicePrincipalCreationPolicy': return new ServicePrincipalCreationPolicy(); case '#microsoft.graph.servicePrincipalRiskDetection': return new ServicePrincipalRiskDetection(); + case '#microsoft.graph.servicePrincipalSignInActivity': return new ServicePrincipalSignInActivity(); case '#microsoft.graph.serviceUpdateMessage': return new ServiceUpdateMessage(); case '#microsoft.graph.settingStateDeviceSummary': return new SettingStateDeviceSummary(); case '#microsoft.graph.sharedDriveItem': return new SharedDriveItem(); diff --git a/src/Generated/Models/ExpressionEvaluationDetails.php b/src/Generated/Models/ExpressionEvaluationDetails.php index 86bfef85403..df5fbe079f7 100644 --- a/src/Generated/Models/ExpressionEvaluationDetails.php +++ b/src/Generated/Models/ExpressionEvaluationDetails.php @@ -18,7 +18,7 @@ class ExpressionEvaluationDetails implements AdditionalDataHolder, BackedModel, private BackingStore $backingStore; /** - * Instantiates a new expressionEvaluationDetails and sets the default values. + * Instantiates a new ExpressionEvaluationDetails and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/ExtendedKeyUsage.php b/src/Generated/Models/ExtendedKeyUsage.php index c01db729495..ba71f589044 100644 --- a/src/Generated/Models/ExtendedKeyUsage.php +++ b/src/Generated/Models/ExtendedKeyUsage.php @@ -21,7 +21,7 @@ class ExtendedKeyUsage implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new extendedKeyUsage and sets the default values. + * Instantiates a new ExtendedKeyUsage and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/ExtensionSchemaProperty.php b/src/Generated/Models/ExtensionSchemaProperty.php index 033a9843cf0..a2698fc53d9 100644 --- a/src/Generated/Models/ExtensionSchemaProperty.php +++ b/src/Generated/Models/ExtensionSchemaProperty.php @@ -18,7 +18,7 @@ class ExtensionSchemaProperty implements AdditionalDataHolder, BackedModel, Pars private BackingStore $backingStore; /** - * Instantiates a new extensionSchemaProperty and sets the default values. + * Instantiates a new ExtensionSchemaProperty and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/ExternalConnectors/ExternalConnection.php b/src/Generated/Models/ExternalConnectors/ExternalConnection.php index e56ebb1fa17..83b723edb7c 100644 --- a/src/Generated/Models/ExternalConnectors/ExternalConnection.php +++ b/src/Generated/Models/ExternalConnectors/ExternalConnection.php @@ -10,7 +10,7 @@ class ExternalConnection extends Entity implements Parsable { /** - * Instantiates a new ExternalConnection and sets the default values. + * Instantiates a new externalConnection and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/GeneralLedgerEntry.php b/src/Generated/Models/GeneralLedgerEntry.php index a7aaad04ad9..1c0917d57cc 100644 --- a/src/Generated/Models/GeneralLedgerEntry.php +++ b/src/Generated/Models/GeneralLedgerEntry.php @@ -20,7 +20,7 @@ class GeneralLedgerEntry implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new generalLedgerEntry and sets the default values. + * Instantiates a new GeneralLedgerEntry and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/GroupPolicyCategory.php b/src/Generated/Models/GroupPolicyCategory.php index 41c9f93edce..250259ee308 100644 --- a/src/Generated/Models/GroupPolicyCategory.php +++ b/src/Generated/Models/GroupPolicyCategory.php @@ -7,9 +7,6 @@ use Microsoft\Kiota\Abstractions\Serialization\ParseNode; use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter; -/** - * The category entity stores the category of a group policy definition -*/ class GroupPolicyCategory extends Entity implements Parsable { /** diff --git a/src/Generated/Models/GroupPolicyConfiguration.php b/src/Generated/Models/GroupPolicyConfiguration.php index 2ce1dae3c10..8de5e5542f6 100644 --- a/src/Generated/Models/GroupPolicyConfiguration.php +++ b/src/Generated/Models/GroupPolicyConfiguration.php @@ -7,13 +7,10 @@ use Microsoft\Kiota\Abstractions\Serialization\ParseNode; use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter; -/** - * The group policy configuration entity contains the configured values for one or more group policy definitions. -*/ class GroupPolicyConfiguration extends Entity implements Parsable { /** - * Instantiates a new groupPolicyConfiguration and sets the default values. + * Instantiates a new GroupPolicyConfiguration and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/GroupPolicyDefinition.php b/src/Generated/Models/GroupPolicyDefinition.php index 5726b85d37f..bb678261490 100644 --- a/src/Generated/Models/GroupPolicyDefinition.php +++ b/src/Generated/Models/GroupPolicyDefinition.php @@ -7,9 +7,6 @@ use Microsoft\Kiota\Abstractions\Serialization\ParseNode; use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter; -/** - * The entity describes all of the information about a single group policy. -*/ class GroupPolicyDefinition extends Entity implements Parsable { /** diff --git a/src/Generated/Models/GroupPolicyMigrationReport.php b/src/Generated/Models/GroupPolicyMigrationReport.php index cd7cb79aa89..de27489466e 100644 --- a/src/Generated/Models/GroupPolicyMigrationReport.php +++ b/src/Generated/Models/GroupPolicyMigrationReport.php @@ -7,13 +7,10 @@ use Microsoft\Kiota\Abstractions\Serialization\ParseNode; use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter; -/** - * The Group Policy migration report. -*/ class GroupPolicyMigrationReport extends Entity implements Parsable { /** - * Instantiates a new groupPolicyMigrationReport and sets the default values. + * Instantiates a new GroupPolicyMigrationReport and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/GroupPolicyObjectFile.php b/src/Generated/Models/GroupPolicyObjectFile.php index 74c0dc1a83b..3b8875be01e 100644 --- a/src/Generated/Models/GroupPolicyObjectFile.php +++ b/src/Generated/Models/GroupPolicyObjectFile.php @@ -7,13 +7,10 @@ use Microsoft\Kiota\Abstractions\Serialization\ParseNode; use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter; -/** - * The Group Policy Object file uploaded by admin. -*/ class GroupPolicyObjectFile extends Entity implements Parsable { /** - * Instantiates a new groupPolicyObjectFile and sets the default values. + * Instantiates a new GroupPolicyObjectFile and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/Identity.php b/src/Generated/Models/Identity.php index 15a35cd2204..5cb0be62ab8 100644 --- a/src/Generated/Models/Identity.php +++ b/src/Generated/Models/Identity.php @@ -80,7 +80,7 @@ public function getBackingStore(): BackingStore { } /** - * Gets the displayName property value. The display name of the identity. This property is read-only. + * Gets the displayName property value. The display name of the identity. Note that this might not always be available or up to date. For example, if a user changes their display name, the API might show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. * @return string|null */ public function getDisplayName(): ?string { @@ -101,7 +101,7 @@ public function getFieldDeserializers(): array { } /** - * Gets the id property value. The identifier of the identity. This property is read-only. + * Gets the id property value. Unique identifier for the identity. * @return string|null */ public function getId(): ?string { @@ -144,7 +144,7 @@ public function setBackingStore(BackingStore $value): void { } /** - * Sets the displayName property value. The display name of the identity. This property is read-only. + * Sets the displayName property value. The display name of the identity. Note that this might not always be available or up to date. For example, if a user changes their display name, the API might show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. * @param string|null $value Value to set for the displayName property. */ public function setDisplayName(?string $value): void { @@ -152,7 +152,7 @@ public function setDisplayName(?string $value): void { } /** - * Sets the id property value. The identifier of the identity. This property is read-only. + * Sets the id property value. Unique identifier for the identity. * @param string|null $value Value to set for the id property. */ public function setId(?string $value): void { diff --git a/src/Generated/Models/IdentityApiConnector.php b/src/Generated/Models/IdentityApiConnector.php index 7ea86f59d77..14293cac07a 100644 --- a/src/Generated/Models/IdentityApiConnector.php +++ b/src/Generated/Models/IdentityApiConnector.php @@ -9,7 +9,7 @@ class IdentityApiConnector extends Entity implements Parsable { /** - * Instantiates a new IdentityApiConnector and sets the default values. + * Instantiates a new identityApiConnector and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/IdentityGovernance/LifecycleManagementSettings.php b/src/Generated/Models/IdentityGovernance/LifecycleManagementSettings.php index 18257968bd3..270373ad379 100644 --- a/src/Generated/Models/IdentityGovernance/LifecycleManagementSettings.php +++ b/src/Generated/Models/IdentityGovernance/LifecycleManagementSettings.php @@ -11,7 +11,7 @@ class LifecycleManagementSettings extends Entity implements Parsable { /** - * Instantiates a new LifecycleManagementSettings and sets the default values. + * Instantiates a new lifecycleManagementSettings and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/IdentityGovernance/Parameter.php b/src/Generated/Models/IdentityGovernance/Parameter.php index 7599ed5f787..7cda8523885 100644 --- a/src/Generated/Models/IdentityGovernance/Parameter.php +++ b/src/Generated/Models/IdentityGovernance/Parameter.php @@ -18,7 +18,7 @@ class Parameter implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new parameter and sets the default values. + * Instantiates a new Parameter and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/IdentityGovernance/Run.php b/src/Generated/Models/IdentityGovernance/Run.php index 63ee0f34ef9..af256a7b5be 100644 --- a/src/Generated/Models/IdentityGovernance/Run.php +++ b/src/Generated/Models/IdentityGovernance/Run.php @@ -11,7 +11,7 @@ class Run extends Entity implements Parsable { /** - * Instantiates a new Run and sets the default values. + * Instantiates a new run and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/IdentityGovernance/Task.php b/src/Generated/Models/IdentityGovernance/Task.php index 266fb02ad20..488ad8c1fb3 100644 --- a/src/Generated/Models/IdentityGovernance/Task.php +++ b/src/Generated/Models/IdentityGovernance/Task.php @@ -11,7 +11,7 @@ class Task extends Entity implements Parsable { /** - * Instantiates a new Task and sets the default values. + * Instantiates a new task and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/IdentityGovernance/TaskDefinition.php b/src/Generated/Models/IdentityGovernance/TaskDefinition.php index 9c75703c9b9..c0a7404865b 100644 --- a/src/Generated/Models/IdentityGovernance/TaskDefinition.php +++ b/src/Generated/Models/IdentityGovernance/TaskDefinition.php @@ -10,7 +10,7 @@ class TaskDefinition extends Entity implements Parsable { /** - * Instantiates a new TaskDefinition and sets the default values. + * Instantiates a new taskDefinition and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/IdentityGovernance/Workflow.php b/src/Generated/Models/IdentityGovernance/Workflow.php index 33958ebf035..ab418901bc5 100644 --- a/src/Generated/Models/IdentityGovernance/Workflow.php +++ b/src/Generated/Models/IdentityGovernance/Workflow.php @@ -10,7 +10,7 @@ class Workflow extends WorkflowBase implements Parsable { /** - * Instantiates a new Workflow and sets the default values. + * Instantiates a new workflow and sets the default values. */ public function __construct() { parent::__construct(); @@ -53,6 +53,7 @@ public function getFieldDeserializers(): array { 'executionScope' => fn(ParseNode $n) => $o->setExecutionScope($n->getCollectionOfObjectValues([UserProcessingResult::class, 'createFromDiscriminatorValue'])), 'id' => fn(ParseNode $n) => $o->setId($n->getStringValue()), 'nextScheduleRunDateTime' => fn(ParseNode $n) => $o->setNextScheduleRunDateTime($n->getDateTimeValue()), + '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()), 'runs' => fn(ParseNode $n) => $o->setRuns($n->getCollectionOfObjectValues([Run::class, 'createFromDiscriminatorValue'])), 'taskReports' => fn(ParseNode $n) => $o->setTaskReports($n->getCollectionOfObjectValues([TaskReport::class, 'createFromDiscriminatorValue'])), 'userProcessingResults' => fn(ParseNode $n) => $o->setUserProcessingResults($n->getCollectionOfObjectValues([UserProcessingResult::class, 'createFromDiscriminatorValue'])), @@ -77,6 +78,14 @@ public function getNextScheduleRunDateTime(): ?DateTime { return $this->getBackingStore()->get('nextScheduleRunDateTime'); } + /** + * Gets the @odata.type property value. The OdataType property + * @return string|null + */ + public function getOdataType(): ?string { + return $this->getBackingStore()->get('odataType'); + } + /** * Gets the runs property value. Workflow runs. * @return array|null @@ -127,6 +136,7 @@ public function serialize(SerializationWriter $writer): void { $writer->writeCollectionOfObjectValues('executionScope', $this->getExecutionScope()); $writer->writeStringValue('id', $this->getId()); $writer->writeDateTimeValue('nextScheduleRunDateTime', $this->getNextScheduleRunDateTime()); + $writer->writeStringValue('@odata.type', $this->getOdataType()); $writer->writeCollectionOfObjectValues('runs', $this->getRuns()); $writer->writeCollectionOfObjectValues('taskReports', $this->getTaskReports()); $writer->writeCollectionOfObjectValues('userProcessingResults', $this->getUserProcessingResults()); @@ -166,6 +176,14 @@ public function setNextScheduleRunDateTime(?DateTime $value): void { $this->getBackingStore()->set('nextScheduleRunDateTime', $value); } + /** + * Sets the @odata.type property value. The OdataType property + * @param string|null $value Value to set for the OdataType property. + */ + public function setOdataType(?string $value): void { + $this->getBackingStore()->set('odataType', $value); + } + /** * Sets the runs property value. Workflow runs. * @param array|null $value Value to set for the runs property. diff --git a/src/Generated/Models/IdentityGovernance/WorkflowTemplate.php b/src/Generated/Models/IdentityGovernance/WorkflowTemplate.php index 872cfdd6895..a28994447b7 100644 --- a/src/Generated/Models/IdentityGovernance/WorkflowTemplate.php +++ b/src/Generated/Models/IdentityGovernance/WorkflowTemplate.php @@ -10,7 +10,7 @@ class WorkflowTemplate extends Entity implements Parsable { /** - * Instantiates a new WorkflowTemplate and sets the default values. + * Instantiates a new workflowTemplate and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/IdentityGovernance/WorkflowVersion.php b/src/Generated/Models/IdentityGovernance/WorkflowVersion.php index beb0abb0ba9..763d2027b82 100644 --- a/src/Generated/Models/IdentityGovernance/WorkflowVersion.php +++ b/src/Generated/Models/IdentityGovernance/WorkflowVersion.php @@ -32,10 +32,19 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Workf public function getFieldDeserializers(): array { $o = $this; return array_merge(parent::getFieldDeserializers(), [ + '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()), 'versionNumber' => fn(ParseNode $n) => $o->setVersionNumber($n->getIntegerValue()), ]); } + /** + * Gets the @odata.type property value. The OdataType property + * @return string|null + */ + public function getOdataType(): ?string { + return $this->getBackingStore()->get('odataType'); + } + /** * Gets the versionNumber property value. The version of the workflow.Supports $filter(lt, le, gt, ge, eq, ne) and $orderby. * @return int|null @@ -50,9 +59,18 @@ public function getVersionNumber(): ?int { */ public function serialize(SerializationWriter $writer): void { parent::serialize($writer); + $writer->writeStringValue('@odata.type', $this->getOdataType()); $writer->writeIntegerValue('versionNumber', $this->getVersionNumber()); } + /** + * Sets the @odata.type property value. The OdataType property + * @param string|null $value Value to set for the OdataType property. + */ + public function setOdataType(?string $value): void { + $this->getBackingStore()->set('odataType', $value); + } + /** * Sets the versionNumber property value. The version of the workflow.Supports $filter(lt, le, gt, ge, eq, ne) and $orderby. * @param int|null $value Value to set for the versionNumber property. diff --git a/src/Generated/Models/IdentitySet.php b/src/Generated/Models/IdentitySet.php index 7217a4be784..6f316486b15 100644 --- a/src/Generated/Models/IdentitySet.php +++ b/src/Generated/Models/IdentitySet.php @@ -18,7 +18,7 @@ class IdentitySet implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new identitySet and sets the default values. + * Instantiates a new IdentitySet and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); @@ -54,7 +54,7 @@ public function getAdditionalData(): ?array { } /** - * Gets the application property value. Optional. The application associated with this action. + * Gets the application property value. The Identity of the Application. This property is read-only. * @return Identity|null */ public function getApplication(): ?Identity { @@ -70,7 +70,7 @@ public function getBackingStore(): BackingStore { } /** - * Gets the device property value. Optional. The device associated with this action. + * Gets the device property value. The Identity of the Device. This property is read-only. * @return Identity|null */ public function getDevice(): ?Identity { @@ -100,7 +100,7 @@ public function getOdataType(): ?string { } /** - * Gets the user property value. Optional. The user associated with this action. + * Gets the user property value. The Identity of the User. This property is read-only. * @return Identity|null */ public function getUser(): ?Identity { @@ -128,7 +128,7 @@ public function setAdditionalData(?array $value): void { } /** - * Sets the application property value. Optional. The application associated with this action. + * Sets the application property value. The Identity of the Application. This property is read-only. * @param Identity|null $value Value to set for the application property. */ public function setApplication(?Identity $value): void { @@ -144,7 +144,7 @@ public function setBackingStore(BackingStore $value): void { } /** - * Sets the device property value. Optional. The device associated with this action. + * Sets the device property value. The Identity of the Device. This property is read-only. * @param Identity|null $value Value to set for the device property. */ public function setDevice(?Identity $value): void { @@ -160,7 +160,7 @@ public function setOdataType(?string $value): void { } /** - * Sets the user property value. Optional. The user associated with this action. + * Sets the user property value. The Identity of the User. This property is read-only. * @param Identity|null $value Value to set for the user property. */ public function setUser(?Identity $value): void { diff --git a/src/Generated/Models/IdentityUserFlowAttribute.php b/src/Generated/Models/IdentityUserFlowAttribute.php index 40218c43e60..84fe403c275 100644 --- a/src/Generated/Models/IdentityUserFlowAttribute.php +++ b/src/Generated/Models/IdentityUserFlowAttribute.php @@ -9,7 +9,7 @@ class IdentityUserFlowAttribute extends Entity implements Parsable { /** - * Instantiates a new IdentityUserFlowAttribute and sets the default values. + * Instantiates a new identityUserFlowAttribute and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/ImportedDeviceIdentity.php b/src/Generated/Models/ImportedDeviceIdentity.php index 6e3540ef534..1b2a4dd0d34 100644 --- a/src/Generated/Models/ImportedDeviceIdentity.php +++ b/src/Generated/Models/ImportedDeviceIdentity.php @@ -7,13 +7,10 @@ use Microsoft\Kiota\Abstractions\Serialization\ParseNode; use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter; -/** - * The importedDeviceIdentity resource represents a unique hardware identity of a device that has been pre-staged for pre-enrollment configuration. -*/ class ImportedDeviceIdentity extends Entity implements Parsable { /** - * Instantiates a new importedDeviceIdentity and sets the default values. + * Instantiates a new ImportedDeviceIdentity and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/ImportedWindowsAutopilotDeviceIdentity.php b/src/Generated/Models/ImportedWindowsAutopilotDeviceIdentity.php index 3b24584d846..c99d8c5034d 100644 --- a/src/Generated/Models/ImportedWindowsAutopilotDeviceIdentity.php +++ b/src/Generated/Models/ImportedWindowsAutopilotDeviceIdentity.php @@ -7,13 +7,10 @@ use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter; use Psr\Http\Message\StreamInterface; -/** - * Imported windows autopilot devices. -*/ class ImportedWindowsAutopilotDeviceIdentity extends Entity implements Parsable { /** - * Instantiates a new importedWindowsAutopilotDeviceIdentity and sets the default values. + * Instantiates a new ImportedWindowsAutopilotDeviceIdentity and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/InboundSharedUserProfile.php b/src/Generated/Models/InboundSharedUserProfile.php index a544648fc33..14436ee9271 100644 --- a/src/Generated/Models/InboundSharedUserProfile.php +++ b/src/Generated/Models/InboundSharedUserProfile.php @@ -18,7 +18,7 @@ class InboundSharedUserProfile implements AdditionalDataHolder, BackedModel, Par private BackingStore $backingStore; /** - * Instantiates a new inboundSharedUserProfile and sets the default values. + * Instantiates a new InboundSharedUserProfile and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/IncludeTarget.php b/src/Generated/Models/IncludeTarget.php index 2b16fb7519d..502ebcd24be 100644 --- a/src/Generated/Models/IncludeTarget.php +++ b/src/Generated/Models/IncludeTarget.php @@ -18,7 +18,7 @@ class IncludeTarget implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new includeTarget and sets the default values. + * Instantiates a new IncludeTarget and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/IndustryData/IndustryDataActivityStatistics.php b/src/Generated/Models/IndustryData/IndustryDataActivityStatistics.php index 45e2c2a57db..dea5d5a05fe 100644 --- a/src/Generated/Models/IndustryData/IndustryDataActivityStatistics.php +++ b/src/Generated/Models/IndustryData/IndustryDataActivityStatistics.php @@ -18,7 +18,7 @@ class IndustryDataActivityStatistics implements AdditionalDataHolder, BackedMode private BackingStore $backingStore; /** - * Instantiates a new industryDataActivityStatistics and sets the default values. + * Instantiates a new IndustryDataActivityStatistics and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/InformationProtectionAction.php b/src/Generated/Models/InformationProtectionAction.php index 2defc459e49..4b94a64661b 100644 --- a/src/Generated/Models/InformationProtectionAction.php +++ b/src/Generated/Models/InformationProtectionAction.php @@ -18,7 +18,7 @@ class InformationProtectionAction implements AdditionalDataHolder, BackedModel, private BackingStore $backingStore; /** - * Instantiates a new informationProtectionAction and sets the default values. + * Instantiates a new InformationProtectionAction and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/InstitutionData.php b/src/Generated/Models/InstitutionData.php index a034cbb19ba..f01a1e638cb 100644 --- a/src/Generated/Models/InstitutionData.php +++ b/src/Generated/Models/InstitutionData.php @@ -18,7 +18,7 @@ class InstitutionData implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new institutionData and sets the default values. + * Instantiates a new InstitutionData and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/InvitationParticipantInfo.php b/src/Generated/Models/InvitationParticipantInfo.php index d53c14af12a..77c95b47ab2 100644 --- a/src/Generated/Models/InvitationParticipantInfo.php +++ b/src/Generated/Models/InvitationParticipantInfo.php @@ -18,7 +18,7 @@ class InvitationParticipantInfo implements AdditionalDataHolder, BackedModel, Pa private BackingStore $backingStore; /** - * Instantiates a new invitationParticipantInfo and sets the default values. + * Instantiates a new InvitationParticipantInfo and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/IosDeviceType.php b/src/Generated/Models/IosDeviceType.php index 75a6130770d..a3a3ff0af6f 100644 --- a/src/Generated/Models/IosDeviceType.php +++ b/src/Generated/Models/IosDeviceType.php @@ -21,7 +21,7 @@ class IosDeviceType implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new iosDeviceType and sets the default values. + * Instantiates a new IosDeviceType and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/IosHomeScreenFolderPage.php b/src/Generated/Models/IosHomeScreenFolderPage.php index 2864c7343b8..ada2a641006 100644 --- a/src/Generated/Models/IosHomeScreenFolderPage.php +++ b/src/Generated/Models/IosHomeScreenFolderPage.php @@ -21,7 +21,7 @@ class IosHomeScreenFolderPage implements AdditionalDataHolder, BackedModel, Pars private BackingStore $backingStore; /** - * Instantiates a new iosHomeScreenFolderPage and sets the default values. + * Instantiates a new IosHomeScreenFolderPage and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/Journal.php b/src/Generated/Models/Journal.php index 7f421bee7f1..9073ef1e585 100644 --- a/src/Generated/Models/Journal.php +++ b/src/Generated/Models/Journal.php @@ -19,7 +19,7 @@ class Journal implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new journal and sets the default values. + * Instantiates a new Journal and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/JournalLine.php b/src/Generated/Models/JournalLine.php index 9bed5c4abae..7282d4bf144 100644 --- a/src/Generated/Models/JournalLine.php +++ b/src/Generated/Models/JournalLine.php @@ -20,7 +20,7 @@ class JournalLine implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new journalLine and sets the default values. + * Instantiates a new JournalLine and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/KeyCredential.php b/src/Generated/Models/KeyCredential.php index 667f1b439da..bd30c1f7bab 100644 --- a/src/Generated/Models/KeyCredential.php +++ b/src/Generated/Models/KeyCredential.php @@ -20,7 +20,7 @@ class KeyCredential implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new keyCredential and sets the default values. + * Instantiates a new KeyCredential and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/KeyValue.php b/src/Generated/Models/KeyValue.php index 4f91c652036..754e6e61951 100644 --- a/src/Generated/Models/KeyValue.php +++ b/src/Generated/Models/KeyValue.php @@ -18,7 +18,7 @@ class KeyValue implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new keyValue and sets the default values. + * Instantiates a new KeyValue and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); @@ -64,7 +64,7 @@ public function getFieldDeserializers(): array { } /** - * Gets the key property value. Contains the name of the field that a value is associated with. When a sign in or domain hint is included in the sign-in request, corresponding fields are included as key-value pairs. Possible keys: Login hint present, Domain hint present. + * Gets the key property value. Key. * @return string|null */ public function getKey(): ?string { @@ -80,7 +80,7 @@ public function getOdataType(): ?string { } /** - * Gets the value property value. Contains the corresponding value for the specified key. The value is true if a sign in hint was included in the sign-in request; otherwise false. The value is true if a domain hint was included in the sign-in request; otherwise false. + * Gets the value property value. Value. * @return string|null */ public function getValue(): ?string { @@ -115,7 +115,7 @@ public function setBackingStore(BackingStore $value): void { } /** - * Sets the key property value. Contains the name of the field that a value is associated with. When a sign in or domain hint is included in the sign-in request, corresponding fields are included as key-value pairs. Possible keys: Login hint present, Domain hint present. + * Sets the key property value. Key. * @param string|null $value Value to set for the key property. */ public function setKey(?string $value): void { @@ -131,7 +131,7 @@ public function setOdataType(?string $value): void { } /** - * Sets the value property value. Contains the corresponding value for the specified key. The value is true if a sign in hint was included in the sign-in request; otherwise false. The value is true if a domain hint was included in the sign-in request; otherwise false. + * Sets the value property value. Value. * @param string|null $value Value to set for the value property. */ public function setValue(?string $value): void { diff --git a/src/Generated/Models/LabelingOptions.php b/src/Generated/Models/LabelingOptions.php index f92349e18b8..887aad69a37 100644 --- a/src/Generated/Models/LabelingOptions.php +++ b/src/Generated/Models/LabelingOptions.php @@ -18,7 +18,7 @@ class LabelingOptions implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new labelingOptions and sets the default values. + * Instantiates a new LabelingOptions and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/LearningProvider.php b/src/Generated/Models/LearningProvider.php index 937b84fe772..c1c6289214f 100644 --- a/src/Generated/Models/LearningProvider.php +++ b/src/Generated/Models/LearningProvider.php @@ -9,7 +9,7 @@ class LearningProvider extends Entity implements Parsable { /** - * Instantiates a new learningProvider and sets the default values. + * Instantiates a new LearningProvider and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/LocaleInfo.php b/src/Generated/Models/LocaleInfo.php index f3ce9d942b2..88c0d90744b 100644 --- a/src/Generated/Models/LocaleInfo.php +++ b/src/Generated/Models/LocaleInfo.php @@ -18,7 +18,7 @@ class LocaleInfo implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new localeInfo and sets the default values. + * Instantiates a new LocaleInfo and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/MacOSIncludedApp.php b/src/Generated/Models/MacOSIncludedApp.php index d925a527bce..6fce650b420 100644 --- a/src/Generated/Models/MacOSIncludedApp.php +++ b/src/Generated/Models/MacOSIncludedApp.php @@ -21,7 +21,7 @@ class MacOSIncludedApp implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new macOSIncludedApp and sets the default values. + * Instantiates a new MacOSIncludedApp and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/MailTips.php b/src/Generated/Models/MailTips.php index 6f1ac1122b9..42b004934e3 100644 --- a/src/Generated/Models/MailTips.php +++ b/src/Generated/Models/MailTips.php @@ -18,7 +18,7 @@ class MailTips implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new mailTips and sets the default values. + * Instantiates a new MailTips and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/ManagedAppStatus.php b/src/Generated/Models/ManagedAppStatus.php index 7a2bb244190..26cd2360427 100644 --- a/src/Generated/Models/ManagedAppStatus.php +++ b/src/Generated/Models/ManagedAppStatus.php @@ -6,10 +6,13 @@ use Microsoft\Kiota\Abstractions\Serialization\ParseNode; use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter; +/** + * Represents app protection and configuration status for the organization. +*/ class ManagedAppStatus extends Entity implements Parsable { /** - * Instantiates a new ManagedAppStatus and sets the default values. + * Instantiates a new managedAppStatus and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/ManagedDeviceOverview.php b/src/Generated/Models/ManagedDeviceOverview.php index d836396c486..ba615f2200f 100644 --- a/src/Generated/Models/ManagedDeviceOverview.php +++ b/src/Generated/Models/ManagedDeviceOverview.php @@ -10,7 +10,7 @@ class ManagedDeviceOverview extends Entity implements Parsable { /** - * Instantiates a new managedDeviceOverview and sets the default values. + * Instantiates a new ManagedDeviceOverview and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/ManagedDeviceReportedApp.php b/src/Generated/Models/ManagedDeviceReportedApp.php index 9c4e6528b42..30f30946493 100644 --- a/src/Generated/Models/ManagedDeviceReportedApp.php +++ b/src/Generated/Models/ManagedDeviceReportedApp.php @@ -21,7 +21,7 @@ class ManagedDeviceReportedApp implements AdditionalDataHolder, BackedModel, Par private BackingStore $backingStore; /** - * Instantiates a new managedDeviceReportedApp and sets the default values. + * Instantiates a new ManagedDeviceReportedApp and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/ManagedEBook.php b/src/Generated/Models/ManagedEBook.php index df4f4b479ae..b44827b0aec 100644 --- a/src/Generated/Models/ManagedEBook.php +++ b/src/Generated/Models/ManagedEBook.php @@ -7,10 +7,13 @@ use Microsoft\Kiota\Abstractions\Serialization\ParseNode; use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter; +/** + * An abstract class containing the base properties for Managed eBook. +*/ class ManagedEBook extends Entity implements Parsable { /** - * Instantiates a new ManagedEBook and sets the default values. + * Instantiates a new managedEBook and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/ManagedTenants/ManagementIntentInfo.php b/src/Generated/Models/ManagedTenants/ManagementIntentInfo.php index 560abc75e4f..cacfff29f92 100644 --- a/src/Generated/Models/ManagedTenants/ManagementIntentInfo.php +++ b/src/Generated/Models/ManagedTenants/ManagementIntentInfo.php @@ -18,7 +18,7 @@ class ManagementIntentInfo implements AdditionalDataHolder, BackedModel, Parsabl private BackingStore $backingStore; /** - * Instantiates a new managementIntentInfo and sets the default values. + * Instantiates a new ManagementIntentInfo and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/ManagedTenants/MyRole.php b/src/Generated/Models/ManagedTenants/MyRole.php index a184a24d679..1d4bfb42d02 100644 --- a/src/Generated/Models/ManagedTenants/MyRole.php +++ b/src/Generated/Models/ManagedTenants/MyRole.php @@ -18,7 +18,7 @@ class MyRole implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new myRole and sets the default values. + * Instantiates a new MyRole and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/ManagedTenants/RoleAssignment.php b/src/Generated/Models/ManagedTenants/RoleAssignment.php index e5e39abbd80..5d70a44fb75 100644 --- a/src/Generated/Models/ManagedTenants/RoleAssignment.php +++ b/src/Generated/Models/ManagedTenants/RoleAssignment.php @@ -18,7 +18,7 @@ class RoleAssignment implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new roleAssignment and sets the default values. + * Instantiates a new RoleAssignment and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/ManagedTenants/WorkloadAction.php b/src/Generated/Models/ManagedTenants/WorkloadAction.php index 92c6a93a426..bf0328751d7 100644 --- a/src/Generated/Models/ManagedTenants/WorkloadAction.php +++ b/src/Generated/Models/ManagedTenants/WorkloadAction.php @@ -18,7 +18,7 @@ class WorkloadAction implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new workloadAction and sets the default values. + * Instantiates a new WorkloadAction and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/ManagedTenants/WorkloadStatus.php b/src/Generated/Models/ManagedTenants/WorkloadStatus.php index f859e550391..a14ef491d44 100644 --- a/src/Generated/Models/ManagedTenants/WorkloadStatus.php +++ b/src/Generated/Models/ManagedTenants/WorkloadStatus.php @@ -19,7 +19,7 @@ class WorkloadStatus implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new workloadStatus and sets the default values. + * Instantiates a new WorkloadStatus and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/MeetingTimeSuggestion.php b/src/Generated/Models/MeetingTimeSuggestion.php index ad79ea5a1bc..7342364fb8f 100644 --- a/src/Generated/Models/MeetingTimeSuggestion.php +++ b/src/Generated/Models/MeetingTimeSuggestion.php @@ -18,7 +18,7 @@ class MeetingTimeSuggestion implements AdditionalDataHolder, BackedModel, Parsab private BackingStore $backingStore; /** - * Instantiates a new meetingTimeSuggestion and sets the default values. + * Instantiates a new MeetingTimeSuggestion and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/MicrosoftTunnelConfiguration.php b/src/Generated/Models/MicrosoftTunnelConfiguration.php index 94b55519899..04c0ff765c0 100644 --- a/src/Generated/Models/MicrosoftTunnelConfiguration.php +++ b/src/Generated/Models/MicrosoftTunnelConfiguration.php @@ -7,13 +7,10 @@ use Microsoft\Kiota\Abstractions\Serialization\ParseNode; use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter; -/** - * Entity that represents a collection of Microsoft Tunnel settings -*/ class MicrosoftTunnelConfiguration extends Entity implements Parsable { /** - * Instantiates a new microsoftTunnelConfiguration and sets the default values. + * Instantiates a new MicrosoftTunnelConfiguration and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/MicrosoftTunnelHealthThreshold.php b/src/Generated/Models/MicrosoftTunnelHealthThreshold.php index d49b5a0aadf..a74cc0c3a72 100644 --- a/src/Generated/Models/MicrosoftTunnelHealthThreshold.php +++ b/src/Generated/Models/MicrosoftTunnelHealthThreshold.php @@ -6,13 +6,10 @@ use Microsoft\Kiota\Abstractions\Serialization\ParseNode; use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter; -/** - * Entity that represents the health thresholds of a health metric -*/ class MicrosoftTunnelHealthThreshold extends Entity implements Parsable { /** - * Instantiates a new microsoftTunnelHealthThreshold and sets the default values. + * Instantiates a new MicrosoftTunnelHealthThreshold and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/MicrosoftTunnelServerLogCollectionResponse.php b/src/Generated/Models/MicrosoftTunnelServerLogCollectionResponse.php index 4f6efa75ff7..07eafd9e1d4 100644 --- a/src/Generated/Models/MicrosoftTunnelServerLogCollectionResponse.php +++ b/src/Generated/Models/MicrosoftTunnelServerLogCollectionResponse.php @@ -7,13 +7,10 @@ use Microsoft\Kiota\Abstractions\Serialization\ParseNode; use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter; -/** - * Entity that stores the server log collection status. -*/ class MicrosoftTunnelServerLogCollectionResponse extends Entity implements Parsable { /** - * Instantiates a new microsoftTunnelServerLogCollectionResponse and sets the default values. + * Instantiates a new MicrosoftTunnelServerLogCollectionResponse and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/MicrosoftTunnelSite.php b/src/Generated/Models/MicrosoftTunnelSite.php index 09858d5a15c..5908efd2699 100644 --- a/src/Generated/Models/MicrosoftTunnelSite.php +++ b/src/Generated/Models/MicrosoftTunnelSite.php @@ -7,13 +7,10 @@ use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter; use Microsoft\Kiota\Abstractions\Types\Time; -/** - * Entity that represents a Microsoft Tunnel site -*/ class MicrosoftTunnelSite extends Entity implements Parsable { /** - * Instantiates a new microsoftTunnelSite and sets the default values. + * Instantiates a new MicrosoftTunnelSite and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/MobileThreatDefenseConnector.php b/src/Generated/Models/MobileThreatDefenseConnector.php index f794758fdb8..753c6d41031 100644 --- a/src/Generated/Models/MobileThreatDefenseConnector.php +++ b/src/Generated/Models/MobileThreatDefenseConnector.php @@ -7,13 +7,10 @@ use Microsoft\Kiota\Abstractions\Serialization\ParseNode; use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter; -/** - * Entity which represents a connection to Mobile Threat Defense partner. -*/ class MobileThreatDefenseConnector extends Entity implements Parsable { /** - * Instantiates a new mobileThreatDefenseConnector and sets the default values. + * Instantiates a new MobileThreatDefenseConnector and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/NetworkConnection.php b/src/Generated/Models/NetworkConnection.php index 73e7122ea09..60f04aa375c 100644 --- a/src/Generated/Models/NetworkConnection.php +++ b/src/Generated/Models/NetworkConnection.php @@ -19,7 +19,7 @@ class NetworkConnection implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new networkConnection and sets the default values. + * Instantiates a new NetworkConnection and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/Networkaccess/AssociatedBranch.php b/src/Generated/Models/Networkaccess/AssociatedBranch.php new file mode 100644 index 00000000000..ee0cd089163 --- /dev/null +++ b/src/Generated/Models/Networkaccess/AssociatedBranch.php @@ -0,0 +1,64 @@ +setOdataType('#microsoft.graph.networkaccess.associatedBranch'); + } + + /** + * 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 AssociatedBranch + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): AssociatedBranch { + return new AssociatedBranch(); + } + + /** + * Gets the branchId property value. The branchId property + * @return string|null + */ + public function getBranchId(): ?string { + return $this->getBackingStore()->get('branchId'); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'branchId' => fn(ParseNode $n) => $o->setBranchId($n->getStringValue()), + ]); + } + + /** + * 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('branchId', $this->getBranchId()); + } + + /** + * Sets the branchId property value. The branchId property + * @param string|null $value Value to set for the branchId property. + */ + public function setBranchId(?string $value): void { + $this->getBackingStore()->set('branchId', $value); + } + +} diff --git a/src/Generated/Models/Networkaccess/Association.php b/src/Generated/Models/Networkaccess/Association.php new file mode 100644 index 00000000000..8c1ffe7cd5f --- /dev/null +++ b/src/Generated/Models/Networkaccess/Association.php @@ -0,0 +1,112 @@ +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 Association + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): Association { + $mappingValueNode = $parseNode->getChildNode("@odata.type"); + if ($mappingValueNode !== null) { + $mappingValue = $mappingValueNode->getStringValue(); + switch ($mappingValue) { + case '#microsoft.graph.networkaccess.associatedBranch': return new AssociatedBranch(); + } + } + return new Association(); + } + + /** + * 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 { + return $this->getBackingStore()->get('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 { + return $this->getBackingStore()->get('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 OdataType property. + */ + public function setOdataType(?string $value): void { + $this->getBackingStore()->set('odataType', $value); + } + +} diff --git a/src/Generated/Models/Networkaccess/BandwidthCapacityInMbps.php b/src/Generated/Models/Networkaccess/BandwidthCapacityInMbps.php new file mode 100644 index 00000000000..cbbf076ce7b --- /dev/null +++ b/src/Generated/Models/Networkaccess/BandwidthCapacityInMbps.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 BgpConfiguration + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): BgpConfiguration { + return new BgpConfiguration(); + } + + /** + * 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 { + return $this->getBackingStore()->get('additionalData'); + } + + /** + * Gets the asn property value. The asn property + * @return int|null + */ + public function getAsn(): ?int { + return $this->getBackingStore()->get('asn'); + } + + /** + * 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 [ + 'asn' => fn(ParseNode $n) => $o->setAsn($n->getIntegerValue()), + 'ipAddress' => fn(ParseNode $n) => $o->setIpAddress($n->getStringValue()), + 'localIpAddress' => fn(ParseNode $n) => $o->setLocalIpAddress($n->getStringValue()), + '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()), + 'peerIpAddress' => fn(ParseNode $n) => $o->setPeerIpAddress($n->getStringValue()), + ]; + } + + /** + * Gets the ipAddress property value. The ipAddress property + * @return string|null + */ + public function getIpAddress(): ?string { + return $this->getBackingStore()->get('ipAddress'); + } + + /** + * Gets the localIpAddress property value. The localIpAddress property + * @return string|null + */ + public function getLocalIpAddress(): ?string { + return $this->getBackingStore()->get('localIpAddress'); + } + + /** + * Gets the @odata.type property value. The OdataType property + * @return string|null + */ + public function getOdataType(): ?string { + return $this->getBackingStore()->get('odataType'); + } + + /** + * Gets the peerIpAddress property value. The peerIpAddress property + * @return string|null + */ + public function getPeerIpAddress(): ?string { + return $this->getBackingStore()->get('peerIpAddress'); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + $writer->writeIntegerValue('asn', $this->getAsn()); + $writer->writeStringValue('ipAddress', $this->getIpAddress()); + $writer->writeStringValue('localIpAddress', $this->getLocalIpAddress()); + $writer->writeStringValue('@odata.type', $this->getOdataType()); + $writer->writeStringValue('peerIpAddress', $this->getPeerIpAddress()); + $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 asn property value. The asn property + * @param int|null $value Value to set for the asn property. + */ + public function setAsn(?int $value): void { + $this->getBackingStore()->set('asn', $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 ipAddress property value. The ipAddress property + * @param string|null $value Value to set for the ipAddress property. + */ + public function setIpAddress(?string $value): void { + $this->getBackingStore()->set('ipAddress', $value); + } + + /** + * Sets the localIpAddress property value. The localIpAddress property + * @param string|null $value Value to set for the localIpAddress property. + */ + public function setLocalIpAddress(?string $value): void { + $this->getBackingStore()->set('localIpAddress', $value); + } + + /** + * Sets the @odata.type property value. The OdataType property + * @param string|null $value Value to set for the OdataType property. + */ + public function setOdataType(?string $value): void { + $this->getBackingStore()->set('odataType', $value); + } + + /** + * Sets the peerIpAddress property value. The peerIpAddress property + * @param string|null $value Value to set for the peerIpAddress property. + */ + public function setPeerIpAddress(?string $value): void { + $this->getBackingStore()->set('peerIpAddress', $value); + } + +} diff --git a/src/Generated/Models/Networkaccess/BranchSite.php b/src/Generated/Models/Networkaccess/BranchSite.php new file mode 100644 index 00000000000..ab521e031b2 --- /dev/null +++ b/src/Generated/Models/Networkaccess/BranchSite.php @@ -0,0 +1,209 @@ +getBackingStore()->get('bandwidthCapacity'); + } + + /** + * Gets the connectivityState property value. The connectivityState property + * @return ConnectivityState|null + */ + public function getConnectivityState(): ?ConnectivityState { + return $this->getBackingStore()->get('connectivityState'); + } + + /** + * Gets the country property value. The country property + * @return string|null + */ + public function getCountry(): ?string { + return $this->getBackingStore()->get('country'); + } + + /** + * Gets the deviceLinks property value. The deviceLinks property + * @return array|null + */ + public function getDeviceLinks(): ?array { + return $this->getBackingStore()->get('deviceLinks'); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'bandwidthCapacity' => fn(ParseNode $n) => $o->setBandwidthCapacity($n->getIntegerValue()), + 'connectivityState' => fn(ParseNode $n) => $o->setConnectivityState($n->getEnumValue(ConnectivityState::class)), + 'country' => fn(ParseNode $n) => $o->setCountry($n->getStringValue()), + 'deviceLinks' => fn(ParseNode $n) => $o->setDeviceLinks($n->getCollectionOfObjectValues([DeviceLink::class, 'createFromDiscriminatorValue'])), + 'forwardingProfiles' => fn(ParseNode $n) => $o->setForwardingProfiles($n->getCollectionOfObjectValues([ForwardingProfile::class, 'createFromDiscriminatorValue'])), + 'lastModifiedDateTime' => fn(ParseNode $n) => $o->setLastModifiedDateTime($n->getDateTimeValue()), + 'name' => fn(ParseNode $n) => $o->setName($n->getStringValue()), + 'region' => fn(ParseNode $n) => $o->setRegion($n->getEnumValue(Region::class)), + 'version' => fn(ParseNode $n) => $o->setVersion($n->getStringValue()), + ]); + } + + /** + * Gets the forwardingProfiles property value. The forwardingProfiles property + * @return array|null + */ + public function getForwardingProfiles(): ?array { + return $this->getBackingStore()->get('forwardingProfiles'); + } + + /** + * Gets the lastModifiedDateTime property value. The lastModifiedDateTime property + * @return DateTime|null + */ + public function getLastModifiedDateTime(): ?DateTime { + return $this->getBackingStore()->get('lastModifiedDateTime'); + } + + /** + * Gets the name property value. The name property + * @return string|null + */ + public function getName(): ?string { + return $this->getBackingStore()->get('name'); + } + + /** + * Gets the region property value. The region property + * @return Region|null + */ + public function getRegion(): ?Region { + return $this->getBackingStore()->get('region'); + } + + /** + * Gets the version property value. The version property + * @return string|null + */ + public function getVersion(): ?string { + return $this->getBackingStore()->get('version'); + } + + /** + * 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->writeIntegerValue('bandwidthCapacity', $this->getBandwidthCapacity()); + $writer->writeEnumValue('connectivityState', $this->getConnectivityState()); + $writer->writeStringValue('country', $this->getCountry()); + $writer->writeCollectionOfObjectValues('deviceLinks', $this->getDeviceLinks()); + $writer->writeCollectionOfObjectValues('forwardingProfiles', $this->getForwardingProfiles()); + $writer->writeDateTimeValue('lastModifiedDateTime', $this->getLastModifiedDateTime()); + $writer->writeStringValue('name', $this->getName()); + $writer->writeEnumValue('region', $this->getRegion()); + $writer->writeStringValue('version', $this->getVersion()); + } + + /** + * Sets the bandwidthCapacity property value. The bandwidthCapacity property + * @param int|null $value Value to set for the bandwidthCapacity property. + */ + public function setBandwidthCapacity(?int $value): void { + $this->getBackingStore()->set('bandwidthCapacity', $value); + } + + /** + * Sets the connectivityState property value. The connectivityState property + * @param ConnectivityState|null $value Value to set for the connectivityState property. + */ + public function setConnectivityState(?ConnectivityState $value): void { + $this->getBackingStore()->set('connectivityState', $value); + } + + /** + * Sets the country property value. The country property + * @param string|null $value Value to set for the country property. + */ + public function setCountry(?string $value): void { + $this->getBackingStore()->set('country', $value); + } + + /** + * Sets the deviceLinks property value. The deviceLinks property + * @param array|null $value Value to set for the deviceLinks property. + */ + public function setDeviceLinks(?array $value): void { + $this->getBackingStore()->set('deviceLinks', $value); + } + + /** + * Sets the forwardingProfiles property value. The forwardingProfiles property + * @param array|null $value Value to set for the forwardingProfiles property. + */ + public function setForwardingProfiles(?array $value): void { + $this->getBackingStore()->set('forwardingProfiles', $value); + } + + /** + * Sets the lastModifiedDateTime property value. The lastModifiedDateTime property + * @param DateTime|null $value Value to set for the lastModifiedDateTime property. + */ + public function setLastModifiedDateTime(?DateTime $value): void { + $this->getBackingStore()->set('lastModifiedDateTime', $value); + } + + /** + * Sets the name property value. The name property + * @param string|null $value Value to set for the name property. + */ + public function setName(?string $value): void { + $this->getBackingStore()->set('name', $value); + } + + /** + * Sets the region property value. The region property + * @param Region|null $value Value to set for the region property. + */ + public function setRegion(?Region $value): void { + $this->getBackingStore()->set('region', $value); + } + + /** + * Sets the version property value. The version property + * @param string|null $value Value to set for the version property. + */ + public function setVersion(?string $value): void { + $this->getBackingStore()->set('version', $value); + } + +} diff --git a/src/Generated/Models/Networkaccess/BranchSiteCollectionResponse.php b/src/Generated/Models/Networkaccess/BranchSiteCollectionResponse.php new file mode 100644 index 00000000000..1a57312c3de --- /dev/null +++ b/src/Generated/Models/Networkaccess/BranchSiteCollectionResponse.php @@ -0,0 +1,64 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([BranchSite::class, 'createFromDiscriminatorValue'])), + ]); + } + + /** + * Gets the value property value. The value property + * @return array|null + */ + public function getValue(): ?array { + return $this->getBackingStore()->get('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/Networkaccess/ConditionalAccessPolicy.php b/src/Generated/Models/Networkaccess/ConditionalAccessPolicy.php new file mode 100644 index 00000000000..93ae5312883 --- /dev/null +++ b/src/Generated/Models/Networkaccess/ConditionalAccessPolicy.php @@ -0,0 +1,119 @@ +getBackingStore()->get('createdDateTime'); + } + + /** + * Gets the description property value. The description property + * @return string|null + */ + public function getDescription(): ?string { + return $this->getBackingStore()->get('description'); + } + + /** + * Gets the displayName property value. The displayName property + * @return string|null + */ + public function getDisplayName(): ?string { + return $this->getBackingStore()->get('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()), + 'modifiedDateTime' => fn(ParseNode $n) => $o->setModifiedDateTime($n->getDateTimeValue()), + ]); + } + + /** + * Gets the modifiedDateTime property value. The modifiedDateTime property + * @return DateTime|null + */ + public function getModifiedDateTime(): ?DateTime { + return $this->getBackingStore()->get('modifiedDateTime'); + } + + /** + * 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->writeDateTimeValue('modifiedDateTime', $this->getModifiedDateTime()); + } + + /** + * 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 description property value. The description property + * @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. The displayName property + * @param string|null $value Value to set for the displayName property. + */ + public function setDisplayName(?string $value): void { + $this->getBackingStore()->set('displayName', $value); + } + + /** + * Sets the modifiedDateTime property value. The modifiedDateTime property + * @param DateTime|null $value Value to set for the modifiedDateTime property. + */ + public function setModifiedDateTime(?DateTime $value): void { + $this->getBackingStore()->set('modifiedDateTime', $value); + } + +} diff --git a/src/Generated/Models/Networkaccess/ConditionalAccessSettings.php b/src/Generated/Models/Networkaccess/ConditionalAccessSettings.php new file mode 100644 index 00000000000..b3ff2e71abe --- /dev/null +++ b/src/Generated/Models/Networkaccess/ConditionalAccessSettings.php @@ -0,0 +1,64 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'signalingStatus' => fn(ParseNode $n) => $o->setSignalingStatus($n->getEnumValue(Status::class)), + ]); + } + + /** + * Gets the signalingStatus property value. The signalingStatus property + * @return Status|null + */ + public function getSignalingStatus(): ?Status { + return $this->getBackingStore()->get('signalingStatus'); + } + + /** + * 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('signalingStatus', $this->getSignalingStatus()); + } + + /** + * Sets the signalingStatus property value. The signalingStatus property + * @param Status|null $value Value to set for the signalingStatus property. + */ + public function setSignalingStatus(?Status $value): void { + $this->getBackingStore()->set('signalingStatus', $value); + } + +} diff --git a/src/Generated/Models/Networkaccess/Connectivity.php b/src/Generated/Models/Networkaccess/Connectivity.php new file mode 100644 index 00000000000..63851be639f --- /dev/null +++ b/src/Generated/Models/Networkaccess/Connectivity.php @@ -0,0 +1,64 @@ +|null + */ + public function getBranches(): ?array { + return $this->getBackingStore()->get('branches'); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'branches' => fn(ParseNode $n) => $o->setBranches($n->getCollectionOfObjectValues([BranchSite::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('branches', $this->getBranches()); + } + + /** + * Sets the branches property value. The branches property + * @param array|null $value Value to set for the branches property. + */ + public function setBranches(?array $value): void { + $this->getBackingStore()->set('branches', $value); + } + +} diff --git a/src/Generated/Models/Networkaccess/ConnectivityState.php b/src/Generated/Models/Networkaccess/ConnectivityState.php new file mode 100644 index 00000000000..0565acc761f --- /dev/null +++ b/src/Generated/Models/Networkaccess/ConnectivityState.php @@ -0,0 +1,13 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'networkPacketTaggingStatus' => fn(ParseNode $n) => $o->setNetworkPacketTaggingStatus($n->getEnumValue(Status::class)), + ]); + } + + /** + * Gets the networkPacketTaggingStatus property value. The networkPacketTaggingStatus property + * @return Status|null + */ + public function getNetworkPacketTaggingStatus(): ?Status { + return $this->getBackingStore()->get('networkPacketTaggingStatus'); + } + + /** + * 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('networkPacketTaggingStatus', $this->getNetworkPacketTaggingStatus()); + } + + /** + * Sets the networkPacketTaggingStatus property value. The networkPacketTaggingStatus property + * @param Status|null $value Value to set for the networkPacketTaggingStatus property. + */ + public function setNetworkPacketTaggingStatus(?Status $value): void { + $this->getBackingStore()->set('networkPacketTaggingStatus', $value); + } + +} diff --git a/src/Generated/Models/Networkaccess/CrossTenantSummary.php b/src/Generated/Models/Networkaccess/CrossTenantSummary.php new file mode 100644 index 00000000000..bb86945d27a --- /dev/null +++ b/src/Generated/Models/Networkaccess/CrossTenantSummary.php @@ -0,0 +1,195 @@ +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 CrossTenantSummary + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): CrossTenantSummary { + return new CrossTenantSummary(); + } + + /** + * 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 { + return $this->getBackingStore()->get('additionalData'); + } + + /** + * Gets the authTransactionCount property value. The authTransactionCount property + * @return int|null + */ + public function getAuthTransactionCount(): ?int { + return $this->getBackingStore()->get('authTransactionCount'); + } + + /** + * Gets the backingStore property value. Stores model information. + * @return BackingStore + */ + public function getBackingStore(): BackingStore { + return $this->backingStore; + } + + /** + * Gets the deviceCount property value. The deviceCount property + * @return int|null + */ + public function getDeviceCount(): ?int { + return $this->getBackingStore()->get('deviceCount'); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return [ + 'authTransactionCount' => fn(ParseNode $n) => $o->setAuthTransactionCount($n->getIntegerValue()), + 'deviceCount' => fn(ParseNode $n) => $o->setDeviceCount($n->getIntegerValue()), + 'newTenantCount' => fn(ParseNode $n) => $o->setNewTenantCount($n->getIntegerValue()), + '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()), + 'tenantCount' => fn(ParseNode $n) => $o->setTenantCount($n->getIntegerValue()), + 'userCount' => fn(ParseNode $n) => $o->setUserCount($n->getIntegerValue()), + ]; + } + + /** + * Gets the newTenantCount property value. The newTenantCount property + * @return int|null + */ + public function getNewTenantCount(): ?int { + return $this->getBackingStore()->get('newTenantCount'); + } + + /** + * Gets the @odata.type property value. The OdataType property + * @return string|null + */ + public function getOdataType(): ?string { + return $this->getBackingStore()->get('odataType'); + } + + /** + * Gets the tenantCount property value. The tenantCount property + * @return int|null + */ + public function getTenantCount(): ?int { + return $this->getBackingStore()->get('tenantCount'); + } + + /** + * Gets the userCount property value. The userCount property + * @return int|null + */ + public function getUserCount(): ?int { + return $this->getBackingStore()->get('userCount'); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + $writer->writeIntegerValue('authTransactionCount', $this->getAuthTransactionCount()); + $writer->writeIntegerValue('deviceCount', $this->getDeviceCount()); + $writer->writeIntegerValue('newTenantCount', $this->getNewTenantCount()); + $writer->writeStringValue('@odata.type', $this->getOdataType()); + $writer->writeIntegerValue('tenantCount', $this->getTenantCount()); + $writer->writeIntegerValue('userCount', $this->getUserCount()); + $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 authTransactionCount property value. The authTransactionCount property + * @param int|null $value Value to set for the authTransactionCount property. + */ + public function setAuthTransactionCount(?int $value): void { + $this->getBackingStore()->set('authTransactionCount', $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 deviceCount property value. The deviceCount property + * @param int|null $value Value to set for the deviceCount property. + */ + public function setDeviceCount(?int $value): void { + $this->getBackingStore()->set('deviceCount', $value); + } + + /** + * Sets the newTenantCount property value. The newTenantCount property + * @param int|null $value Value to set for the newTenantCount property. + */ + public function setNewTenantCount(?int $value): void { + $this->getBackingStore()->set('newTenantCount', $value); + } + + /** + * Sets the @odata.type property value. The OdataType property + * @param string|null $value Value to set for the OdataType property. + */ + public function setOdataType(?string $value): void { + $this->getBackingStore()->set('odataType', $value); + } + + /** + * Sets the tenantCount property value. The tenantCount property + * @param int|null $value Value to set for the tenantCount property. + */ + public function setTenantCount(?int $value): void { + $this->getBackingStore()->set('tenantCount', $value); + } + + /** + * Sets the userCount property value. The userCount property + * @param int|null $value Value to set for the userCount property. + */ + public function setUserCount(?int $value): void { + $this->getBackingStore()->set('userCount', $value); + } + +} diff --git a/src/Generated/Models/Networkaccess/DestinationSummary.php b/src/Generated/Models/Networkaccess/DestinationSummary.php new file mode 100644 index 00000000000..de5d3d131ec --- /dev/null +++ b/src/Generated/Models/Networkaccess/DestinationSummary.php @@ -0,0 +1,141 @@ +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 DestinationSummary + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): DestinationSummary { + return new DestinationSummary(); + } + + /** + * 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 { + return $this->getBackingStore()->get('additionalData'); + } + + /** + * Gets the backingStore property value. Stores model information. + * @return BackingStore + */ + public function getBackingStore(): BackingStore { + return $this->backingStore; + } + + /** + * Gets the count property value. The count property + * @return int|null + */ + public function getCount(): ?int { + return $this->getBackingStore()->get('count'); + } + + /** + * Gets the destination property value. The destination property + * @return string|null + */ + public function getDestination(): ?string { + return $this->getBackingStore()->get('destination'); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return [ + 'count' => fn(ParseNode $n) => $o->setCount($n->getIntegerValue()), + 'destination' => fn(ParseNode $n) => $o->setDestination($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 { + return $this->getBackingStore()->get('odataType'); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + $writer->writeIntegerValue('count', $this->getCount()); + $writer->writeStringValue('destination', $this->getDestination()); + $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 count property value. The count property + * @param int|null $value Value to set for the count property. + */ + public function setCount(?int $value): void { + $this->getBackingStore()->set('count', $value); + } + + /** + * Sets the destination property value. The destination property + * @param string|null $value Value to set for the destination property. + */ + public function setDestination(?string $value): void { + $this->getBackingStore()->set('destination', $value); + } + + /** + * Sets the @odata.type property value. The OdataType property + * @param string|null $value Value to set for the OdataType property. + */ + public function setOdataType(?string $value): void { + $this->getBackingStore()->set('odataType', $value); + } + +} diff --git a/src/Generated/Models/Networkaccess/DeviceCategory.php b/src/Generated/Models/Networkaccess/DeviceCategory.php new file mode 100644 index 00000000000..0a657f85cf9 --- /dev/null +++ b/src/Generated/Models/Networkaccess/DeviceCategory.php @@ -0,0 +1,11 @@ +getBackingStore()->get('bandwidthCapacityInMbps'); + } + + /** + * Gets the bgpConfiguration property value. The bgpConfiguration property + * @return BgpConfiguration|null + */ + public function getBgpConfiguration(): ?BgpConfiguration { + return $this->getBackingStore()->get('bgpConfiguration'); + } + + /** + * Gets the deviceVendor property value. The deviceVendor property + * @return DeviceVendor|null + */ + public function getDeviceVendor(): ?DeviceVendor { + return $this->getBackingStore()->get('deviceVendor'); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'bandwidthCapacityInMbps' => fn(ParseNode $n) => $o->setBandwidthCapacityInMbps($n->getEnumValue(BandwidthCapacityInMbps::class)), + 'bgpConfiguration' => fn(ParseNode $n) => $o->setBgpConfiguration($n->getObjectValue([BgpConfiguration::class, 'createFromDiscriminatorValue'])), + 'deviceVendor' => fn(ParseNode $n) => $o->setDeviceVendor($n->getEnumValue(DeviceVendor::class)), + 'ipAddress' => fn(ParseNode $n) => $o->setIpAddress($n->getStringValue()), + 'lastModifiedDateTime' => fn(ParseNode $n) => $o->setLastModifiedDateTime($n->getDateTimeValue()), + 'name' => fn(ParseNode $n) => $o->setName($n->getStringValue()), + 'redundancyConfiguration' => fn(ParseNode $n) => $o->setRedundancyConfiguration($n->getObjectValue([RedundancyConfiguration::class, 'createFromDiscriminatorValue'])), + 'tunnelConfiguration' => fn(ParseNode $n) => $o->setTunnelConfiguration($n->getObjectValue([TunnelConfiguration::class, 'createFromDiscriminatorValue'])), + ]); + } + + /** + * Gets the ipAddress property value. The ipAddress property + * @return string|null + */ + public function getIpAddress(): ?string { + return $this->getBackingStore()->get('ipAddress'); + } + + /** + * Gets the lastModifiedDateTime property value. The lastModifiedDateTime property + * @return DateTime|null + */ + public function getLastModifiedDateTime(): ?DateTime { + return $this->getBackingStore()->get('lastModifiedDateTime'); + } + + /** + * Gets the name property value. The name property + * @return string|null + */ + public function getName(): ?string { + return $this->getBackingStore()->get('name'); + } + + /** + * Gets the redundancyConfiguration property value. The redundancyConfiguration property + * @return RedundancyConfiguration|null + */ + public function getRedundancyConfiguration(): ?RedundancyConfiguration { + return $this->getBackingStore()->get('redundancyConfiguration'); + } + + /** + * Gets the tunnelConfiguration property value. The tunnelConfiguration property + * @return TunnelConfiguration|null + */ + public function getTunnelConfiguration(): ?TunnelConfiguration { + return $this->getBackingStore()->get('tunnelConfiguration'); + } + + /** + * 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('bandwidthCapacityInMbps', $this->getBandwidthCapacityInMbps()); + $writer->writeObjectValue('bgpConfiguration', $this->getBgpConfiguration()); + $writer->writeEnumValue('deviceVendor', $this->getDeviceVendor()); + $writer->writeStringValue('ipAddress', $this->getIpAddress()); + $writer->writeDateTimeValue('lastModifiedDateTime', $this->getLastModifiedDateTime()); + $writer->writeStringValue('name', $this->getName()); + $writer->writeObjectValue('redundancyConfiguration', $this->getRedundancyConfiguration()); + $writer->writeObjectValue('tunnelConfiguration', $this->getTunnelConfiguration()); + } + + /** + * Sets the bandwidthCapacityInMbps property value. The bandwidthCapacityInMbps property + * @param BandwidthCapacityInMbps|null $value Value to set for the bandwidthCapacityInMbps property. + */ + public function setBandwidthCapacityInMbps(?BandwidthCapacityInMbps $value): void { + $this->getBackingStore()->set('bandwidthCapacityInMbps', $value); + } + + /** + * Sets the bgpConfiguration property value. The bgpConfiguration property + * @param BgpConfiguration|null $value Value to set for the bgpConfiguration property. + */ + public function setBgpConfiguration(?BgpConfiguration $value): void { + $this->getBackingStore()->set('bgpConfiguration', $value); + } + + /** + * Sets the deviceVendor property value. The deviceVendor property + * @param DeviceVendor|null $value Value to set for the deviceVendor property. + */ + public function setDeviceVendor(?DeviceVendor $value): void { + $this->getBackingStore()->set('deviceVendor', $value); + } + + /** + * Sets the ipAddress property value. The ipAddress property + * @param string|null $value Value to set for the ipAddress property. + */ + public function setIpAddress(?string $value): void { + $this->getBackingStore()->set('ipAddress', $value); + } + + /** + * Sets the lastModifiedDateTime property value. The lastModifiedDateTime property + * @param DateTime|null $value Value to set for the lastModifiedDateTime property. + */ + public function setLastModifiedDateTime(?DateTime $value): void { + $this->getBackingStore()->set('lastModifiedDateTime', $value); + } + + /** + * Sets the name property value. The name property + * @param string|null $value Value to set for the name property. + */ + public function setName(?string $value): void { + $this->getBackingStore()->set('name', $value); + } + + /** + * Sets the redundancyConfiguration property value. The redundancyConfiguration property + * @param RedundancyConfiguration|null $value Value to set for the redundancyConfiguration property. + */ + public function setRedundancyConfiguration(?RedundancyConfiguration $value): void { + $this->getBackingStore()->set('redundancyConfiguration', $value); + } + + /** + * Sets the tunnelConfiguration property value. The tunnelConfiguration property + * @param TunnelConfiguration|null $value Value to set for the tunnelConfiguration property. + */ + public function setTunnelConfiguration(?TunnelConfiguration $value): void { + $this->getBackingStore()->set('tunnelConfiguration', $value); + } + +} diff --git a/src/Generated/Models/Networkaccess/DeviceLinkCollectionResponse.php b/src/Generated/Models/Networkaccess/DeviceLinkCollectionResponse.php new file mode 100644 index 00000000000..2eb2f5385ce --- /dev/null +++ b/src/Generated/Models/Networkaccess/DeviceLinkCollectionResponse.php @@ -0,0 +1,64 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([DeviceLink::class, 'createFromDiscriminatorValue'])), + ]); + } + + /** + * Gets the value property value. The value property + * @return array|null + */ + public function getValue(): ?array { + return $this->getBackingStore()->get('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/Networkaccess/DeviceUsageSummary.php b/src/Generated/Models/Networkaccess/DeviceUsageSummary.php new file mode 100644 index 00000000000..3ab6146d02c --- /dev/null +++ b/src/Generated/Models/Networkaccess/DeviceUsageSummary.php @@ -0,0 +1,159 @@ +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 DeviceUsageSummary + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): DeviceUsageSummary { + return new DeviceUsageSummary(); + } + + /** + * Gets the activeDeviceCount property value. The activeDeviceCount property + * @return int|null + */ + public function getActiveDeviceCount(): ?int { + return $this->getBackingStore()->get('activeDeviceCount'); + } + + /** + * 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 { + return $this->getBackingStore()->get('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 [ + 'activeDeviceCount' => fn(ParseNode $n) => $o->setActiveDeviceCount($n->getIntegerValue()), + 'inactiveDeviceCount' => fn(ParseNode $n) => $o->setInactiveDeviceCount($n->getIntegerValue()), + '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()), + 'totalDeviceCount' => fn(ParseNode $n) => $o->setTotalDeviceCount($n->getIntegerValue()), + ]; + } + + /** + * Gets the inactiveDeviceCount property value. The inactiveDeviceCount property + * @return int|null + */ + public function getInactiveDeviceCount(): ?int { + return $this->getBackingStore()->get('inactiveDeviceCount'); + } + + /** + * Gets the @odata.type property value. The OdataType property + * @return string|null + */ + public function getOdataType(): ?string { + return $this->getBackingStore()->get('odataType'); + } + + /** + * Gets the totalDeviceCount property value. The totalDeviceCount property + * @return int|null + */ + public function getTotalDeviceCount(): ?int { + return $this->getBackingStore()->get('totalDeviceCount'); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + $writer->writeIntegerValue('activeDeviceCount', $this->getActiveDeviceCount()); + $writer->writeIntegerValue('inactiveDeviceCount', $this->getInactiveDeviceCount()); + $writer->writeStringValue('@odata.type', $this->getOdataType()); + $writer->writeIntegerValue('totalDeviceCount', $this->getTotalDeviceCount()); + $writer->writeAdditionalData($this->getAdditionalData()); + } + + /** + * Sets the activeDeviceCount property value. The activeDeviceCount property + * @param int|null $value Value to set for the activeDeviceCount property. + */ + public function setActiveDeviceCount(?int $value): void { + $this->getBackingStore()->set('activeDeviceCount', $value); + } + + /** + * 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 inactiveDeviceCount property value. The inactiveDeviceCount property + * @param int|null $value Value to set for the inactiveDeviceCount property. + */ + public function setInactiveDeviceCount(?int $value): void { + $this->getBackingStore()->set('inactiveDeviceCount', $value); + } + + /** + * Sets the @odata.type property value. The OdataType property + * @param string|null $value Value to set for the OdataType property. + */ + public function setOdataType(?string $value): void { + $this->getBackingStore()->set('odataType', $value); + } + + /** + * Sets the totalDeviceCount property value. The totalDeviceCount property + * @param int|null $value Value to set for the totalDeviceCount property. + */ + public function setTotalDeviceCount(?int $value): void { + $this->getBackingStore()->set('totalDeviceCount', $value); + } + +} diff --git a/src/Generated/Models/Networkaccess/DeviceVendor.php b/src/Generated/Models/Networkaccess/DeviceVendor.php new file mode 100644 index 00000000000..be0d7395517 --- /dev/null +++ b/src/Generated/Models/Networkaccess/DeviceVendor.php @@ -0,0 +1,24 @@ +getBackingStore()->get('exchange'); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'exchange' => fn(ParseNode $n) => $o->setExchange($n->getObjectValue([EnrichedAuditLogsSettings::class, 'createFromDiscriminatorValue'])), + 'sharepoint' => fn(ParseNode $n) => $o->setSharepoint($n->getObjectValue([EnrichedAuditLogsSettings::class, 'createFromDiscriminatorValue'])), + 'teams' => fn(ParseNode $n) => $o->setTeams($n->getObjectValue([EnrichedAuditLogsSettings::class, 'createFromDiscriminatorValue'])), + ]); + } + + /** + * Gets the sharepoint property value. The sharepoint property + * @return EnrichedAuditLogsSettings|null + */ + public function getSharepoint(): ?EnrichedAuditLogsSettings { + return $this->getBackingStore()->get('sharepoint'); + } + + /** + * Gets the teams property value. The teams property + * @return EnrichedAuditLogsSettings|null + */ + public function getTeams(): ?EnrichedAuditLogsSettings { + return $this->getBackingStore()->get('teams'); + } + + /** + * 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('exchange', $this->getExchange()); + $writer->writeObjectValue('sharepoint', $this->getSharepoint()); + $writer->writeObjectValue('teams', $this->getTeams()); + } + + /** + * Sets the exchange property value. The exchange property + * @param EnrichedAuditLogsSettings|null $value Value to set for the exchange property. + */ + public function setExchange(?EnrichedAuditLogsSettings $value): void { + $this->getBackingStore()->set('exchange', $value); + } + + /** + * Sets the sharepoint property value. The sharepoint property + * @param EnrichedAuditLogsSettings|null $value Value to set for the sharepoint property. + */ + public function setSharepoint(?EnrichedAuditLogsSettings $value): void { + $this->getBackingStore()->set('sharepoint', $value); + } + + /** + * Sets the teams property value. The teams property + * @param EnrichedAuditLogsSettings|null $value Value to set for the teams property. + */ + public function setTeams(?EnrichedAuditLogsSettings $value): void { + $this->getBackingStore()->set('teams', $value); + } + +} diff --git a/src/Generated/Models/Networkaccess/EnrichedAuditLogsSettings.php b/src/Generated/Models/Networkaccess/EnrichedAuditLogsSettings.php new file mode 100644 index 00000000000..ced52a85abd --- /dev/null +++ b/src/Generated/Models/Networkaccess/EnrichedAuditLogsSettings.php @@ -0,0 +1,123 @@ +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 EnrichedAuditLogsSettings + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): EnrichedAuditLogsSettings { + return new EnrichedAuditLogsSettings(); + } + + /** + * 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 { + return $this->getBackingStore()->get('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()), + 'status' => fn(ParseNode $n) => $o->setStatus($n->getEnumValue(Status::class)), + ]; + } + + /** + * Gets the @odata.type property value. The OdataType property + * @return string|null + */ + public function getOdataType(): ?string { + return $this->getBackingStore()->get('odataType'); + } + + /** + * Gets the status property value. The status property + * @return Status|null + */ + public function getStatus(): ?Status { + return $this->getBackingStore()->get('status'); + } + + /** + * 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->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 @odata.type property value. The OdataType property + * @param string|null $value Value to set for the OdataType property. + */ + public function setOdataType(?string $value): void { + $this->getBackingStore()->set('odataType', $value); + } + + /** + * Sets the status property value. The status property + * @param Status|null $value Value to set for the status property. + */ + public function setStatus(?Status $value): void { + $this->getBackingStore()->set('status', $value); + } + +} diff --git a/src/Generated/Models/Networkaccess/EntitiesSummary.php b/src/Generated/Models/Networkaccess/EntitiesSummary.php new file mode 100644 index 00000000000..b60cd5546fd --- /dev/null +++ b/src/Generated/Models/Networkaccess/EntitiesSummary.php @@ -0,0 +1,177 @@ +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 EntitiesSummary + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): EntitiesSummary { + return new EntitiesSummary(); + } + + /** + * 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 { + return $this->getBackingStore()->get('additionalData'); + } + + /** + * Gets the backingStore property value. Stores model information. + * @return BackingStore + */ + public function getBackingStore(): BackingStore { + return $this->backingStore; + } + + /** + * Gets the deviceCount property value. The deviceCount property + * @return int|null + */ + public function getDeviceCount(): ?int { + return $this->getBackingStore()->get('deviceCount'); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return [ + 'deviceCount' => fn(ParseNode $n) => $o->setDeviceCount($n->getIntegerValue()), + '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()), + 'trafficType' => fn(ParseNode $n) => $o->setTrafficType($n->getEnumValue(TrafficType::class)), + 'userCount' => fn(ParseNode $n) => $o->setUserCount($n->getIntegerValue()), + 'workloadCount' => fn(ParseNode $n) => $o->setWorkloadCount($n->getIntegerValue()), + ]; + } + + /** + * Gets the @odata.type property value. The OdataType property + * @return string|null + */ + public function getOdataType(): ?string { + return $this->getBackingStore()->get('odataType'); + } + + /** + * Gets the trafficType property value. The trafficType property + * @return TrafficType|null + */ + public function getTrafficType(): ?TrafficType { + return $this->getBackingStore()->get('trafficType'); + } + + /** + * Gets the userCount property value. The userCount property + * @return int|null + */ + public function getUserCount(): ?int { + return $this->getBackingStore()->get('userCount'); + } + + /** + * Gets the workloadCount property value. The workloadCount property + * @return int|null + */ + public function getWorkloadCount(): ?int { + return $this->getBackingStore()->get('workloadCount'); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + $writer->writeIntegerValue('deviceCount', $this->getDeviceCount()); + $writer->writeStringValue('@odata.type', $this->getOdataType()); + $writer->writeEnumValue('trafficType', $this->getTrafficType()); + $writer->writeIntegerValue('userCount', $this->getUserCount()); + $writer->writeIntegerValue('workloadCount', $this->getWorkloadCount()); + $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 deviceCount property value. The deviceCount property + * @param int|null $value Value to set for the deviceCount property. + */ + public function setDeviceCount(?int $value): void { + $this->getBackingStore()->set('deviceCount', $value); + } + + /** + * Sets the @odata.type property value. The OdataType property + * @param string|null $value Value to set for the OdataType property. + */ + public function setOdataType(?string $value): void { + $this->getBackingStore()->set('odataType', $value); + } + + /** + * Sets the trafficType property value. The trafficType property + * @param TrafficType|null $value Value to set for the trafficType property. + */ + public function setTrafficType(?TrafficType $value): void { + $this->getBackingStore()->set('trafficType', $value); + } + + /** + * Sets the userCount property value. The userCount property + * @param int|null $value Value to set for the userCount property. + */ + public function setUserCount(?int $value): void { + $this->getBackingStore()->set('userCount', $value); + } + + /** + * Sets the workloadCount property value. The workloadCount property + * @param int|null $value Value to set for the workloadCount property. + */ + public function setWorkloadCount(?int $value): void { + $this->getBackingStore()->set('workloadCount', $value); + } + +} diff --git a/src/Generated/Models/Networkaccess/ForwardingCategory.php b/src/Generated/Models/Networkaccess/ForwardingCategory.php new file mode 100644 index 00000000000..0613c9be254 --- /dev/null +++ b/src/Generated/Models/Networkaccess/ForwardingCategory.php @@ -0,0 +1,12 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'skipDnsLookupState' => fn(ParseNode $n) => $o->setSkipDnsLookupState($n->getEnumValue(Status::class)), + ]); + } + + /** + * Gets the skipDnsLookupState property value. The skipDnsLookupState property + * @return Status|null + */ + public function getSkipDnsLookupState(): ?Status { + return $this->getBackingStore()->get('skipDnsLookupState'); + } + + /** + * 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('skipDnsLookupState', $this->getSkipDnsLookupState()); + } + + /** + * Sets the skipDnsLookupState property value. The skipDnsLookupState property + * @param Status|null $value Value to set for the skipDnsLookupState property. + */ + public function setSkipDnsLookupState(?Status $value): void { + $this->getBackingStore()->set('skipDnsLookupState', $value); + } + +} diff --git a/src/Generated/Models/Networkaccess/ForwardingPolicy.php b/src/Generated/Models/Networkaccess/ForwardingPolicy.php new file mode 100644 index 00000000000..8959a393624 --- /dev/null +++ b/src/Generated/Models/Networkaccess/ForwardingPolicy.php @@ -0,0 +1,64 @@ +setOdataType('#microsoft.graph.networkaccess.forwardingPolicy'); + } + + /** + * 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 ForwardingPolicy + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): ForwardingPolicy { + return new ForwardingPolicy(); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'trafficForwardingType' => fn(ParseNode $n) => $o->setTrafficForwardingType($n->getEnumValue(TrafficForwardingType::class)), + ]); + } + + /** + * Gets the trafficForwardingType property value. The trafficForwardingType property + * @return TrafficForwardingType|null + */ + public function getTrafficForwardingType(): ?TrafficForwardingType { + return $this->getBackingStore()->get('trafficForwardingType'); + } + + /** + * 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('trafficForwardingType', $this->getTrafficForwardingType()); + } + + /** + * Sets the trafficForwardingType property value. The trafficForwardingType property + * @param TrafficForwardingType|null $value Value to set for the trafficForwardingType property. + */ + public function setTrafficForwardingType(?TrafficForwardingType $value): void { + $this->getBackingStore()->set('trafficForwardingType', $value); + } + +} diff --git a/src/Generated/Models/Networkaccess/ForwardingPolicyCollectionResponse.php b/src/Generated/Models/Networkaccess/ForwardingPolicyCollectionResponse.php new file mode 100644 index 00000000000..561d01f4ca7 --- /dev/null +++ b/src/Generated/Models/Networkaccess/ForwardingPolicyCollectionResponse.php @@ -0,0 +1,64 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ForwardingPolicy::class, 'createFromDiscriminatorValue'])), + ]); + } + + /** + * Gets the value property value. The value property + * @return array|null + */ + public function getValue(): ?array { + return $this->getBackingStore()->get('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/Networkaccess/ForwardingPolicyLink.php b/src/Generated/Models/Networkaccess/ForwardingPolicyLink.php new file mode 100644 index 00000000000..78829bd1009 --- /dev/null +++ b/src/Generated/Models/Networkaccess/ForwardingPolicyLink.php @@ -0,0 +1,46 @@ +setOdataType('#microsoft.graph.networkaccess.forwardingPolicyLink'); + } + + /** + * 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 ForwardingPolicyLink + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): ForwardingPolicyLink { + return new ForwardingPolicyLink(); + } + + /** + * 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/Networkaccess/ForwardingProfile.php b/src/Generated/Models/Networkaccess/ForwardingProfile.php new file mode 100644 index 00000000000..dbce568d00d --- /dev/null +++ b/src/Generated/Models/Networkaccess/ForwardingProfile.php @@ -0,0 +1,100 @@ +setOdataType('#microsoft.graph.networkaccess.forwardingProfile'); + } + + /** + * 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 ForwardingProfile + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): ForwardingProfile { + return new ForwardingProfile(); + } + + /** + * Gets the associations property value. The associations property + * @return array|null + */ + public function getAssociations(): ?array { + return $this->getBackingStore()->get('associations'); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'associations' => fn(ParseNode $n) => $o->setAssociations($n->getCollectionOfObjectValues([Association::class, 'createFromDiscriminatorValue'])), + 'priority' => fn(ParseNode $n) => $o->setPriority($n->getIntegerValue()), + 'trafficForwardingType' => fn(ParseNode $n) => $o->setTrafficForwardingType($n->getEnumValue(TrafficForwardingType::class)), + ]); + } + + /** + * Gets the priority property value. The priority property + * @return int|null + */ + public function getPriority(): ?int { + return $this->getBackingStore()->get('priority'); + } + + /** + * Gets the trafficForwardingType property value. The trafficForwardingType property + * @return TrafficForwardingType|null + */ + public function getTrafficForwardingType(): ?TrafficForwardingType { + return $this->getBackingStore()->get('trafficForwardingType'); + } + + /** + * 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('associations', $this->getAssociations()); + $writer->writeIntegerValue('priority', $this->getPriority()); + $writer->writeEnumValue('trafficForwardingType', $this->getTrafficForwardingType()); + } + + /** + * Sets the associations property value. The associations property + * @param array|null $value Value to set for the associations property. + */ + public function setAssociations(?array $value): void { + $this->getBackingStore()->set('associations', $value); + } + + /** + * Sets the priority property value. The priority property + * @param int|null $value Value to set for the priority property. + */ + public function setPriority(?int $value): void { + $this->getBackingStore()->set('priority', $value); + } + + /** + * Sets the trafficForwardingType property value. The trafficForwardingType property + * @param TrafficForwardingType|null $value Value to set for the trafficForwardingType property. + */ + public function setTrafficForwardingType(?TrafficForwardingType $value): void { + $this->getBackingStore()->set('trafficForwardingType', $value); + } + +} diff --git a/src/Generated/Models/Networkaccess/ForwardingProfileCollectionResponse.php b/src/Generated/Models/Networkaccess/ForwardingProfileCollectionResponse.php new file mode 100644 index 00000000000..3f65069abe1 --- /dev/null +++ b/src/Generated/Models/Networkaccess/ForwardingProfileCollectionResponse.php @@ -0,0 +1,64 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ForwardingProfile::class, 'createFromDiscriminatorValue'])), + ]); + } + + /** + * Gets the value property value. The value property + * @return array|null + */ + public function getValue(): ?array { + return $this->getBackingStore()->get('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/Networkaccess/ForwardingRule.php b/src/Generated/Models/Networkaccess/ForwardingRule.php new file mode 100644 index 00000000000..30a07e053b6 --- /dev/null +++ b/src/Generated/Models/Networkaccess/ForwardingRule.php @@ -0,0 +1,108 @@ +setOdataType('#microsoft.graph.networkaccess.forwardingRule'); + } + + /** + * 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 ForwardingRule + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): ForwardingRule { + $mappingValueNode = $parseNode->getChildNode("@odata.type"); + if ($mappingValueNode !== null) { + $mappingValue = $mappingValueNode->getStringValue(); + switch ($mappingValue) { + case '#microsoft.graph.networkaccess.m365ForwardingRule': return new M365ForwardingRule(); + case '#microsoft.graph.networkaccess.privateAccessForwardingRule': return new PrivateAccessForwardingRule(); + } + } + return new ForwardingRule(); + } + + /** + * Gets the action property value. The action property + * @return ForwardingRuleAction|null + */ + public function getAction(): ?ForwardingRuleAction { + return $this->getBackingStore()->get('action'); + } + + /** + * Gets the destinations property value. The destinations property + * @return array|null + */ + public function getDestinations(): ?array { + return $this->getBackingStore()->get('destinations'); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'action' => fn(ParseNode $n) => $o->setAction($n->getEnumValue(ForwardingRuleAction::class)), + 'destinations' => fn(ParseNode $n) => $o->setDestinations($n->getCollectionOfObjectValues([RuleDestination::class, 'createFromDiscriminatorValue'])), + 'ruleType' => fn(ParseNode $n) => $o->setRuleType($n->getEnumValue(NetworkDestinationType::class)), + ]); + } + + /** + * Gets the ruleType property value. The ruleType property + * @return NetworkDestinationType|null + */ + public function getRuleType(): ?NetworkDestinationType { + return $this->getBackingStore()->get('ruleType'); + } + + /** + * 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('action', $this->getAction()); + $writer->writeCollectionOfObjectValues('destinations', $this->getDestinations()); + $writer->writeEnumValue('ruleType', $this->getRuleType()); + } + + /** + * Sets the action property value. The action property + * @param ForwardingRuleAction|null $value Value to set for the action property. + */ + public function setAction(?ForwardingRuleAction $value): void { + $this->getBackingStore()->set('action', $value); + } + + /** + * Sets the destinations property value. The destinations property + * @param array|null $value Value to set for the destinations property. + */ + public function setDestinations(?array $value): void { + $this->getBackingStore()->set('destinations', $value); + } + + /** + * Sets the ruleType property value. The ruleType property + * @param NetworkDestinationType|null $value Value to set for the ruleType property. + */ + public function setRuleType(?NetworkDestinationType $value): void { + $this->getBackingStore()->set('ruleType', $value); + } + +} diff --git a/src/Generated/Models/Networkaccess/ForwardingRuleAction.php b/src/Generated/Models/Networkaccess/ForwardingRuleAction.php new file mode 100644 index 00000000000..a13c878259a --- /dev/null +++ b/src/Generated/Models/Networkaccess/ForwardingRuleAction.php @@ -0,0 +1,11 @@ +setOdataType('#microsoft.graph.networkaccess.fqdn'); + } + + /** + * 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 Fqdn + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): Fqdn { + return new Fqdn(); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getStringValue()), + ]); + } + + /** + * Gets the value property value. The value property + * @return string|null + */ + public function getValue(): ?string { + return $this->getBackingStore()->get('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->writeStringValue('value', $this->getValue()); + } + + /** + * Sets the value property value. The value property + * @param string|null $value Value to set for the value property. + */ + public function setValue(?string $value): void { + $this->getBackingStore()->set('value', $value); + } + +} diff --git a/src/Generated/Models/Networkaccess/Headers.php b/src/Generated/Models/Networkaccess/Headers.php new file mode 100644 index 00000000000..80653e4b8fb --- /dev/null +++ b/src/Generated/Models/Networkaccess/Headers.php @@ -0,0 +1,159 @@ +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 Headers + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): Headers { + return new Headers(); + } + + /** + * 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 { + return $this->getBackingStore()->get('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()), + 'origin' => fn(ParseNode $n) => $o->setOrigin($n->getStringValue()), + 'referrer' => fn(ParseNode $n) => $o->setReferrer($n->getStringValue()), + 'xForwardedFor' => fn(ParseNode $n) => $o->setXForwardedFor($n->getStringValue()), + ]; + } + + /** + * Gets the @odata.type property value. The OdataType property + * @return string|null + */ + public function getOdataType(): ?string { + return $this->getBackingStore()->get('odataType'); + } + + /** + * Gets the origin property value. The origin property + * @return string|null + */ + public function getOrigin(): ?string { + return $this->getBackingStore()->get('origin'); + } + + /** + * Gets the referrer property value. The referrer property + * @return string|null + */ + public function getReferrer(): ?string { + return $this->getBackingStore()->get('referrer'); + } + + /** + * Gets the xForwardedFor property value. The xForwardedFor property + * @return string|null + */ + public function getXForwardedFor(): ?string { + return $this->getBackingStore()->get('xForwardedFor'); + } + + /** + * 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->writeStringValue('origin', $this->getOrigin()); + $writer->writeStringValue('referrer', $this->getReferrer()); + $writer->writeStringValue('xForwardedFor', $this->getXForwardedFor()); + $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 OdataType property. + */ + public function setOdataType(?string $value): void { + $this->getBackingStore()->set('odataType', $value); + } + + /** + * Sets the origin property value. The origin property + * @param string|null $value Value to set for the origin property. + */ + public function setOrigin(?string $value): void { + $this->getBackingStore()->set('origin', $value); + } + + /** + * Sets the referrer property value. The referrer property + * @param string|null $value Value to set for the referrer property. + */ + public function setReferrer(?string $value): void { + $this->getBackingStore()->set('referrer', $value); + } + + /** + * Sets the xForwardedFor property value. The xForwardedFor property + * @param string|null $value Value to set for the xForwardedFor property. + */ + public function setXForwardedFor(?string $value): void { + $this->getBackingStore()->set('xForwardedFor', $value); + } + +} diff --git a/src/Generated/Models/Networkaccess/IkeEncryption.php b/src/Generated/Models/Networkaccess/IkeEncryption.php new file mode 100644 index 00000000000..90d78d918c5 --- /dev/null +++ b/src/Generated/Models/Networkaccess/IkeEncryption.php @@ -0,0 +1,14 @@ +setOdataType('#microsoft.graph.networkaccess.ipAddress'); + } + + /** + * 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 IpAddress + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): IpAddress { + return new IpAddress(); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getStringValue()), + ]); + } + + /** + * Gets the value property value. The value property + * @return string|null + */ + public function getValue(): ?string { + return $this->getBackingStore()->get('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->writeStringValue('value', $this->getValue()); + } + + /** + * Sets the value property value. The value property + * @param string|null $value Value to set for the value property. + */ + public function setValue(?string $value): void { + $this->getBackingStore()->set('value', $value); + } + +} diff --git a/src/Generated/Models/Networkaccess/IpRange.php b/src/Generated/Models/Networkaccess/IpRange.php new file mode 100644 index 00000000000..1c7b756b382 --- /dev/null +++ b/src/Generated/Models/Networkaccess/IpRange.php @@ -0,0 +1,82 @@ +setOdataType('#microsoft.graph.networkaccess.ipRange'); + } + + /** + * 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 IpRange + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): IpRange { + return new IpRange(); + } + + /** + * Gets the beginAddress property value. The beginAddress property + * @return string|null + */ + public function getBeginAddress(): ?string { + return $this->getBackingStore()->get('beginAddress'); + } + + /** + * Gets the endAddress property value. The endAddress property + * @return string|null + */ + public function getEndAddress(): ?string { + return $this->getBackingStore()->get('endAddress'); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'beginAddress' => fn(ParseNode $n) => $o->setBeginAddress($n->getStringValue()), + 'endAddress' => fn(ParseNode $n) => $o->setEndAddress($n->getStringValue()), + ]); + } + + /** + * 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('beginAddress', $this->getBeginAddress()); + $writer->writeStringValue('endAddress', $this->getEndAddress()); + } + + /** + * Sets the beginAddress property value. The beginAddress property + * @param string|null $value Value to set for the beginAddress property. + */ + public function setBeginAddress(?string $value): void { + $this->getBackingStore()->set('beginAddress', $value); + } + + /** + * Sets the endAddress property value. The endAddress property + * @param string|null $value Value to set for the endAddress property. + */ + public function setEndAddress(?string $value): void { + $this->getBackingStore()->set('endAddress', $value); + } + +} diff --git a/src/Generated/Models/Networkaccess/IpSecEncryption.php b/src/Generated/Models/Networkaccess/IpSecEncryption.php new file mode 100644 index 00000000000..5207a3dbb63 --- /dev/null +++ b/src/Generated/Models/Networkaccess/IpSecEncryption.php @@ -0,0 +1,13 @@ +setOdataType('#microsoft.graph.networkaccess.ipSubnet'); + } + + /** + * 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 IpSubnet + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): IpSubnet { + return new IpSubnet(); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getStringValue()), + ]); + } + + /** + * Gets the value property value. The value property + * @return string|null + */ + public function getValue(): ?string { + return $this->getBackingStore()->get('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->writeStringValue('value', $this->getValue()); + } + + /** + * Sets the value property value. The value property + * @param string|null $value Value to set for the value property. + */ + public function setValue(?string $value): void { + $this->getBackingStore()->set('value', $value); + } + +} diff --git a/src/Generated/Models/Networkaccess/Logs.php b/src/Generated/Models/Networkaccess/Logs.php new file mode 100644 index 00000000000..7418d03c4dc --- /dev/null +++ b/src/Generated/Models/Networkaccess/Logs.php @@ -0,0 +1,64 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'traffic' => fn(ParseNode $n) => $o->setTraffic($n->getCollectionOfObjectValues([NetworkAccessTraffic::class, 'createFromDiscriminatorValue'])), + ]); + } + + /** + * Gets the traffic property value. The traffic property + * @return array|null + */ + public function getTraffic(): ?array { + return $this->getBackingStore()->get('traffic'); + } + + /** + * 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('traffic', $this->getTraffic()); + } + + /** + * Sets the traffic property value. The traffic property + * @param array|null $value Value to set for the traffic property. + */ + public function setTraffic(?array $value): void { + $this->getBackingStore()->set('traffic', $value); + } + +} diff --git a/src/Generated/Models/Networkaccess/M365ForwardingRule.php b/src/Generated/Models/Networkaccess/M365ForwardingRule.php new file mode 100644 index 00000000000..f1254aa7dc7 --- /dev/null +++ b/src/Generated/Models/Networkaccess/M365ForwardingRule.php @@ -0,0 +1,100 @@ +setOdataType('#microsoft.graph.networkaccess.m365ForwardingRule'); + } + + /** + * 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 M365ForwardingRule + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): M365ForwardingRule { + return new M365ForwardingRule(); + } + + /** + * Gets the category property value. The category property + * @return ForwardingCategory|null + */ + public function getCategory(): ?ForwardingCategory { + return $this->getBackingStore()->get('category'); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'category' => fn(ParseNode $n) => $o->setCategory($n->getEnumValue(ForwardingCategory::class)), + 'ports' => fn(ParseNode $n) => $o->setPorts($n->getCollectionOfPrimitiveValues()), + 'protocol' => fn(ParseNode $n) => $o->setProtocol($n->getEnumValue(NetworkingProtocol::class)), + ]); + } + + /** + * Gets the ports property value. The ports property + * @return array|null + */ + public function getPorts(): ?array { + return $this->getBackingStore()->get('ports'); + } + + /** + * Gets the protocol property value. The protocol property + * @return NetworkingProtocol|null + */ + public function getProtocol(): ?NetworkingProtocol { + return $this->getBackingStore()->get('protocol'); + } + + /** + * 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('category', $this->getCategory()); + $writer->writeCollectionOfPrimitiveValues('ports', $this->getPorts()); + $writer->writeEnumValue('protocol', $this->getProtocol()); + } + + /** + * Sets the category property value. The category property + * @param ForwardingCategory|null $value Value to set for the category property. + */ + public function setCategory(?ForwardingCategory $value): void { + $this->getBackingStore()->set('category', $value); + } + + /** + * Sets the ports property value. The ports property + * @param array|null $value Value to set for the ports property. + */ + public function setPorts(?array $value): void { + $this->getBackingStore()->set('ports', $value); + } + + /** + * Sets the protocol property value. The protocol property + * @param NetworkingProtocol|null $value Value to set for the protocol property. + */ + public function setProtocol(?NetworkingProtocol $value): void { + $this->getBackingStore()->set('protocol', $value); + } + +} diff --git a/src/Generated/Models/Networkaccess/NetworkAccessRoot.php b/src/Generated/Models/Networkaccess/NetworkAccessRoot.php index 9163e8b3435..b8bfd41a01b 100644 --- a/src/Generated/Models/Networkaccess/NetworkAccessRoot.php +++ b/src/Generated/Models/Networkaccess/NetworkAccessRoot.php @@ -25,6 +25,14 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Netwo return new NetworkAccessRoot(); } + /** + * Gets the connectivity property value. The connectivity property + * @return Connectivity|null + */ + public function getConnectivity(): ?Connectivity { + return $this->getBackingStore()->get('connectivity'); + } + /** * The deserialization information for the current model * @return array @@ -32,15 +40,133 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Netwo public function getFieldDeserializers(): array { $o = $this; return array_merge(parent::getFieldDeserializers(), [ + 'connectivity' => fn(ParseNode $n) => $o->setConnectivity($n->getObjectValue([Connectivity::class, 'createFromDiscriminatorValue'])), + 'forwardingPolicies' => fn(ParseNode $n) => $o->setForwardingPolicies($n->getCollectionOfObjectValues([ForwardingPolicy::class, 'createFromDiscriminatorValue'])), + 'forwardingProfiles' => fn(ParseNode $n) => $o->setForwardingProfiles($n->getCollectionOfObjectValues([ForwardingProfile::class, 'createFromDiscriminatorValue'])), + 'logs' => fn(ParseNode $n) => $o->setLogs($n->getObjectValue([Logs::class, 'createFromDiscriminatorValue'])), + 'reports' => fn(ParseNode $n) => $o->setReports($n->getObjectValue([Reports::class, 'createFromDiscriminatorValue'])), + 'settings' => fn(ParseNode $n) => $o->setSettings($n->getObjectValue([Settings::class, 'createFromDiscriminatorValue'])), + 'tenantStatus' => fn(ParseNode $n) => $o->setTenantStatus($n->getObjectValue([TenantStatus::class, 'createFromDiscriminatorValue'])), ]); } + /** + * Gets the forwardingPolicies property value. The forwardingPolicies property + * @return array|null + */ + public function getForwardingPolicies(): ?array { + return $this->getBackingStore()->get('forwardingPolicies'); + } + + /** + * Gets the forwardingProfiles property value. The forwardingProfiles property + * @return array|null + */ + public function getForwardingProfiles(): ?array { + return $this->getBackingStore()->get('forwardingProfiles'); + } + + /** + * Gets the logs property value. The logs property + * @return Logs|null + */ + public function getLogs(): ?Logs { + return $this->getBackingStore()->get('logs'); + } + + /** + * Gets the reports property value. The reports property + * @return Reports|null + */ + public function getReports(): ?Reports { + return $this->getBackingStore()->get('reports'); + } + + /** + * Gets the settings property value. The settings property + * @return Settings|null + */ + public function getSettings(): ?Settings { + return $this->getBackingStore()->get('settings'); + } + + /** + * Gets the tenantStatus property value. The tenantStatus property + * @return TenantStatus|null + */ + public function getTenantStatus(): ?TenantStatus { + return $this->getBackingStore()->get('tenantStatus'); + } + /** * 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('connectivity', $this->getConnectivity()); + $writer->writeCollectionOfObjectValues('forwardingPolicies', $this->getForwardingPolicies()); + $writer->writeCollectionOfObjectValues('forwardingProfiles', $this->getForwardingProfiles()); + $writer->writeObjectValue('logs', $this->getLogs()); + $writer->writeObjectValue('reports', $this->getReports()); + $writer->writeObjectValue('settings', $this->getSettings()); + $writer->writeObjectValue('tenantStatus', $this->getTenantStatus()); + } + + /** + * Sets the connectivity property value. The connectivity property + * @param Connectivity|null $value Value to set for the connectivity property. + */ + public function setConnectivity(?Connectivity $value): void { + $this->getBackingStore()->set('connectivity', $value); + } + + /** + * Sets the forwardingPolicies property value. The forwardingPolicies property + * @param array|null $value Value to set for the forwardingPolicies property. + */ + public function setForwardingPolicies(?array $value): void { + $this->getBackingStore()->set('forwardingPolicies', $value); + } + + /** + * Sets the forwardingProfiles property value. The forwardingProfiles property + * @param array|null $value Value to set for the forwardingProfiles property. + */ + public function setForwardingProfiles(?array $value): void { + $this->getBackingStore()->set('forwardingProfiles', $value); + } + + /** + * Sets the logs property value. The logs property + * @param Logs|null $value Value to set for the logs property. + */ + public function setLogs(?Logs $value): void { + $this->getBackingStore()->set('logs', $value); + } + + /** + * Sets the reports property value. The reports property + * @param Reports|null $value Value to set for the reports property. + */ + public function setReports(?Reports $value): void { + $this->getBackingStore()->set('reports', $value); + } + + /** + * Sets the settings property value. The settings property + * @param Settings|null $value Value to set for the settings property. + */ + public function setSettings(?Settings $value): void { + $this->getBackingStore()->set('settings', $value); + } + + /** + * Sets the tenantStatus property value. The tenantStatus property + * @param TenantStatus|null $value Value to set for the tenantStatus property. + */ + public function setTenantStatus(?TenantStatus $value): void { + $this->getBackingStore()->set('tenantStatus', $value); } } diff --git a/src/Generated/Models/Networkaccess/NetworkAccessTraffic.php b/src/Generated/Models/Networkaccess/NetworkAccessTraffic.php new file mode 100644 index 00000000000..4cf4b5f19ec --- /dev/null +++ b/src/Generated/Models/Networkaccess/NetworkAccessTraffic.php @@ -0,0 +1,556 @@ +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 NetworkAccessTraffic + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): NetworkAccessTraffic { + return new NetworkAccessTraffic(); + } + + /** + * 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 { + return $this->getBackingStore()->get('additionalData'); + } + + /** + * Gets the agentVersion property value. The agentVersion property + * @return string|null + */ + public function getAgentVersion(): ?string { + return $this->getBackingStore()->get('agentVersion'); + } + + /** + * Gets the backingStore property value. Stores model information. + * @return BackingStore + */ + public function getBackingStore(): BackingStore { + return $this->backingStore; + } + + /** + * Gets the connectionId property value. The connectionId property + * @return string|null + */ + public function getConnectionId(): ?string { + return $this->getBackingStore()->get('connectionId'); + } + + /** + * Gets the createdDateTime property value. The createdDateTime property + * @return DateTime|null + */ + public function getCreatedDateTime(): ?DateTime { + return $this->getBackingStore()->get('createdDateTime'); + } + + /** + * Gets the destinationFQDN property value. The destinationFQDN property + * @return string|null + */ + public function getDestinationFQDN(): ?string { + return $this->getBackingStore()->get('destinationFQDN'); + } + + /** + * Gets the destinationIp property value. The destinationIp property + * @return string|null + */ + public function getDestinationIp(): ?string { + return $this->getBackingStore()->get('destinationIp'); + } + + /** + * Gets the destinationPort property value. The destinationPort property + * @return int|null + */ + public function getDestinationPort(): ?int { + return $this->getBackingStore()->get('destinationPort'); + } + + /** + * Gets the deviceCategory property value. The deviceCategory property + * @return DeviceCategory|null + */ + public function getDeviceCategory(): ?DeviceCategory { + return $this->getBackingStore()->get('deviceCategory'); + } + + /** + * Gets the deviceId property value. The deviceId property + * @return string|null + */ + public function getDeviceId(): ?string { + return $this->getBackingStore()->get('deviceId'); + } + + /** + * Gets the deviceOperatingSystem property value. The deviceOperatingSystem property + * @return string|null + */ + public function getDeviceOperatingSystem(): ?string { + return $this->getBackingStore()->get('deviceOperatingSystem'); + } + + /** + * Gets the deviceOperatingSystemVersion property value. The deviceOperatingSystemVersion property + * @return string|null + */ + public function getDeviceOperatingSystemVersion(): ?string { + return $this->getBackingStore()->get('deviceOperatingSystemVersion'); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return [ + 'agentVersion' => fn(ParseNode $n) => $o->setAgentVersion($n->getStringValue()), + 'connectionId' => fn(ParseNode $n) => $o->setConnectionId($n->getStringValue()), + 'createdDateTime' => fn(ParseNode $n) => $o->setCreatedDateTime($n->getDateTimeValue()), + 'destinationFQDN' => fn(ParseNode $n) => $o->setDestinationFQDN($n->getStringValue()), + 'destinationIp' => fn(ParseNode $n) => $o->setDestinationIp($n->getStringValue()), + 'destinationPort' => fn(ParseNode $n) => $o->setDestinationPort($n->getIntegerValue()), + 'deviceCategory' => fn(ParseNode $n) => $o->setDeviceCategory($n->getEnumValue(DeviceCategory::class)), + 'deviceId' => fn(ParseNode $n) => $o->setDeviceId($n->getStringValue()), + 'deviceOperatingSystem' => fn(ParseNode $n) => $o->setDeviceOperatingSystem($n->getStringValue()), + 'deviceOperatingSystemVersion' => fn(ParseNode $n) => $o->setDeviceOperatingSystemVersion($n->getStringValue()), + 'headers' => fn(ParseNode $n) => $o->setHeaders($n->getObjectValue([Headers::class, 'createFromDiscriminatorValue'])), + 'networkProtocol' => fn(ParseNode $n) => $o->setNetworkProtocol($n->getEnumValue(NetworkingProtocol::class)), + '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()), + 'policyId' => fn(ParseNode $n) => $o->setPolicyId($n->getStringValue()), + 'policyRuleId' => fn(ParseNode $n) => $o->setPolicyRuleId($n->getStringValue()), + 'receivedBytes' => fn(ParseNode $n) => $o->setReceivedBytes($n->getIntegerValue()), + 'sentBytes' => fn(ParseNode $n) => $o->setSentBytes($n->getIntegerValue()), + 'sessionId' => fn(ParseNode $n) => $o->setSessionId($n->getStringValue()), + 'sourceIp' => fn(ParseNode $n) => $o->setSourceIp($n->getStringValue()), + 'sourcePort' => fn(ParseNode $n) => $o->setSourcePort($n->getIntegerValue()), + 'tenantId' => fn(ParseNode $n) => $o->setTenantId($n->getStringValue()), + 'trafficType' => fn(ParseNode $n) => $o->setTrafficType($n->getEnumValue(TrafficType::class)), + 'transactionId' => fn(ParseNode $n) => $o->setTransactionId($n->getStringValue()), + 'transportProtocol' => fn(ParseNode $n) => $o->setTransportProtocol($n->getEnumValue(NetworkingProtocol::class)), + 'userId' => fn(ParseNode $n) => $o->setUserId($n->getStringValue()), + 'userPrincipalName' => fn(ParseNode $n) => $o->setUserPrincipalName($n->getStringValue()), + ]; + } + + /** + * Gets the headers property value. The headers property + * @return Headers|null + */ + public function getHeaders(): ?Headers { + return $this->getBackingStore()->get('headers'); + } + + /** + * Gets the networkProtocol property value. The networkProtocol property + * @return NetworkingProtocol|null + */ + public function getNetworkProtocol(): ?NetworkingProtocol { + return $this->getBackingStore()->get('networkProtocol'); + } + + /** + * Gets the @odata.type property value. The OdataType property + * @return string|null + */ + public function getOdataType(): ?string { + return $this->getBackingStore()->get('odataType'); + } + + /** + * Gets the policyId property value. The policyId property + * @return string|null + */ + public function getPolicyId(): ?string { + return $this->getBackingStore()->get('policyId'); + } + + /** + * Gets the policyRuleId property value. The policyRuleId property + * @return string|null + */ + public function getPolicyRuleId(): ?string { + return $this->getBackingStore()->get('policyRuleId'); + } + + /** + * Gets the receivedBytes property value. The receivedBytes property + * @return int|null + */ + public function getReceivedBytes(): ?int { + return $this->getBackingStore()->get('receivedBytes'); + } + + /** + * Gets the sentBytes property value. The sentBytes property + * @return int|null + */ + public function getSentBytes(): ?int { + return $this->getBackingStore()->get('sentBytes'); + } + + /** + * Gets the sessionId property value. The sessionId property + * @return string|null + */ + public function getSessionId(): ?string { + return $this->getBackingStore()->get('sessionId'); + } + + /** + * Gets the sourceIp property value. The sourceIp property + * @return string|null + */ + public function getSourceIp(): ?string { + return $this->getBackingStore()->get('sourceIp'); + } + + /** + * Gets the sourcePort property value. The sourcePort property + * @return int|null + */ + public function getSourcePort(): ?int { + return $this->getBackingStore()->get('sourcePort'); + } + + /** + * Gets the tenantId property value. The tenantId property + * @return string|null + */ + public function getTenantId(): ?string { + return $this->getBackingStore()->get('tenantId'); + } + + /** + * Gets the trafficType property value. The trafficType property + * @return TrafficType|null + */ + public function getTrafficType(): ?TrafficType { + return $this->getBackingStore()->get('trafficType'); + } + + /** + * Gets the transactionId property value. The transactionId property + * @return string|null + */ + public function getTransactionId(): ?string { + return $this->getBackingStore()->get('transactionId'); + } + + /** + * Gets the transportProtocol property value. The transportProtocol property + * @return NetworkingProtocol|null + */ + public function getTransportProtocol(): ?NetworkingProtocol { + return $this->getBackingStore()->get('transportProtocol'); + } + + /** + * Gets the userId property value. The userId property + * @return string|null + */ + public function getUserId(): ?string { + return $this->getBackingStore()->get('userId'); + } + + /** + * Gets the userPrincipalName property value. The userPrincipalName property + * @return string|null + */ + public function getUserPrincipalName(): ?string { + return $this->getBackingStore()->get('userPrincipalName'); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + $writer->writeStringValue('agentVersion', $this->getAgentVersion()); + $writer->writeStringValue('connectionId', $this->getConnectionId()); + $writer->writeDateTimeValue('createdDateTime', $this->getCreatedDateTime()); + $writer->writeStringValue('destinationFQDN', $this->getDestinationFQDN()); + $writer->writeStringValue('destinationIp', $this->getDestinationIp()); + $writer->writeIntegerValue('destinationPort', $this->getDestinationPort()); + $writer->writeEnumValue('deviceCategory', $this->getDeviceCategory()); + $writer->writeStringValue('deviceId', $this->getDeviceId()); + $writer->writeStringValue('deviceOperatingSystem', $this->getDeviceOperatingSystem()); + $writer->writeStringValue('deviceOperatingSystemVersion', $this->getDeviceOperatingSystemVersion()); + $writer->writeObjectValue('headers', $this->getHeaders()); + $writer->writeEnumValue('networkProtocol', $this->getNetworkProtocol()); + $writer->writeStringValue('@odata.type', $this->getOdataType()); + $writer->writeStringValue('policyId', $this->getPolicyId()); + $writer->writeStringValue('policyRuleId', $this->getPolicyRuleId()); + $writer->writeIntegerValue('receivedBytes', $this->getReceivedBytes()); + $writer->writeIntegerValue('sentBytes', $this->getSentBytes()); + $writer->writeStringValue('sessionId', $this->getSessionId()); + $writer->writeStringValue('sourceIp', $this->getSourceIp()); + $writer->writeIntegerValue('sourcePort', $this->getSourcePort()); + $writer->writeStringValue('tenantId', $this->getTenantId()); + $writer->writeEnumValue('trafficType', $this->getTrafficType()); + $writer->writeStringValue('transactionId', $this->getTransactionId()); + $writer->writeEnumValue('transportProtocol', $this->getTransportProtocol()); + $writer->writeStringValue('userId', $this->getUserId()); + $writer->writeStringValue('userPrincipalName', $this->getUserPrincipalName()); + $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 agentVersion property value. The agentVersion property + * @param string|null $value Value to set for the agentVersion property. + */ + public function setAgentVersion(?string $value): void { + $this->getBackingStore()->set('agentVersion', $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 connectionId property value. The connectionId property + * @param string|null $value Value to set for the connectionId property. + */ + public function setConnectionId(?string $value): void { + $this->getBackingStore()->set('connectionId', $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 destinationFQDN property value. The destinationFQDN property + * @param string|null $value Value to set for the destinationFQDN property. + */ + public function setDestinationFQDN(?string $value): void { + $this->getBackingStore()->set('destinationFQDN', $value); + } + + /** + * Sets the destinationIp property value. The destinationIp property + * @param string|null $value Value to set for the destinationIp property. + */ + public function setDestinationIp(?string $value): void { + $this->getBackingStore()->set('destinationIp', $value); + } + + /** + * Sets the destinationPort property value. The destinationPort property + * @param int|null $value Value to set for the destinationPort property. + */ + public function setDestinationPort(?int $value): void { + $this->getBackingStore()->set('destinationPort', $value); + } + + /** + * Sets the deviceCategory property value. The deviceCategory property + * @param DeviceCategory|null $value Value to set for the deviceCategory property. + */ + public function setDeviceCategory(?DeviceCategory $value): void { + $this->getBackingStore()->set('deviceCategory', $value); + } + + /** + * Sets the deviceId property value. The deviceId property + * @param string|null $value Value to set for the deviceId property. + */ + public function setDeviceId(?string $value): void { + $this->getBackingStore()->set('deviceId', $value); + } + + /** + * Sets the deviceOperatingSystem property value. The deviceOperatingSystem property + * @param string|null $value Value to set for the deviceOperatingSystem property. + */ + public function setDeviceOperatingSystem(?string $value): void { + $this->getBackingStore()->set('deviceOperatingSystem', $value); + } + + /** + * Sets the deviceOperatingSystemVersion property value. The deviceOperatingSystemVersion property + * @param string|null $value Value to set for the deviceOperatingSystemVersion property. + */ + public function setDeviceOperatingSystemVersion(?string $value): void { + $this->getBackingStore()->set('deviceOperatingSystemVersion', $value); + } + + /** + * Sets the headers property value. The headers property + * @param Headers|null $value Value to set for the headers property. + */ + public function setHeaders(?Headers $value): void { + $this->getBackingStore()->set('headers', $value); + } + + /** + * Sets the networkProtocol property value. The networkProtocol property + * @param NetworkingProtocol|null $value Value to set for the networkProtocol property. + */ + public function setNetworkProtocol(?NetworkingProtocol $value): void { + $this->getBackingStore()->set('networkProtocol', $value); + } + + /** + * Sets the @odata.type property value. The OdataType property + * @param string|null $value Value to set for the OdataType property. + */ + public function setOdataType(?string $value): void { + $this->getBackingStore()->set('odataType', $value); + } + + /** + * Sets the policyId property value. The policyId property + * @param string|null $value Value to set for the policyId property. + */ + public function setPolicyId(?string $value): void { + $this->getBackingStore()->set('policyId', $value); + } + + /** + * Sets the policyRuleId property value. The policyRuleId property + * @param string|null $value Value to set for the policyRuleId property. + */ + public function setPolicyRuleId(?string $value): void { + $this->getBackingStore()->set('policyRuleId', $value); + } + + /** + * Sets the receivedBytes property value. The receivedBytes property + * @param int|null $value Value to set for the receivedBytes property. + */ + public function setReceivedBytes(?int $value): void { + $this->getBackingStore()->set('receivedBytes', $value); + } + + /** + * Sets the sentBytes property value. The sentBytes property + * @param int|null $value Value to set for the sentBytes property. + */ + public function setSentBytes(?int $value): void { + $this->getBackingStore()->set('sentBytes', $value); + } + + /** + * Sets the sessionId property value. The sessionId property + * @param string|null $value Value to set for the sessionId property. + */ + public function setSessionId(?string $value): void { + $this->getBackingStore()->set('sessionId', $value); + } + + /** + * Sets the sourceIp property value. The sourceIp property + * @param string|null $value Value to set for the sourceIp property. + */ + public function setSourceIp(?string $value): void { + $this->getBackingStore()->set('sourceIp', $value); + } + + /** + * Sets the sourcePort property value. The sourcePort property + * @param int|null $value Value to set for the sourcePort property. + */ + public function setSourcePort(?int $value): void { + $this->getBackingStore()->set('sourcePort', $value); + } + + /** + * Sets the tenantId property value. The tenantId property + * @param string|null $value Value to set for the tenantId property. + */ + public function setTenantId(?string $value): void { + $this->getBackingStore()->set('tenantId', $value); + } + + /** + * Sets the trafficType property value. The trafficType property + * @param TrafficType|null $value Value to set for the trafficType property. + */ + public function setTrafficType(?TrafficType $value): void { + $this->getBackingStore()->set('trafficType', $value); + } + + /** + * Sets the transactionId property value. The transactionId property + * @param string|null $value Value to set for the transactionId property. + */ + public function setTransactionId(?string $value): void { + $this->getBackingStore()->set('transactionId', $value); + } + + /** + * Sets the transportProtocol property value. The transportProtocol property + * @param NetworkingProtocol|null $value Value to set for the transportProtocol property. + */ + public function setTransportProtocol(?NetworkingProtocol $value): void { + $this->getBackingStore()->set('transportProtocol', $value); + } + + /** + * Sets the userId property value. The userId property + * @param string|null $value Value to set for the userId property. + */ + public function setUserId(?string $value): void { + $this->getBackingStore()->set('userId', $value); + } + + /** + * Sets the userPrincipalName property value. The userPrincipalName property + * @param string|null $value Value to set for the userPrincipalName property. + */ + public function setUserPrincipalName(?string $value): void { + $this->getBackingStore()->set('userPrincipalName', $value); + } + +} diff --git a/src/Generated/Models/Networkaccess/NetworkAccessTrafficCollectionResponse.php b/src/Generated/Models/Networkaccess/NetworkAccessTrafficCollectionResponse.php new file mode 100644 index 00000000000..f4241754097 --- /dev/null +++ b/src/Generated/Models/Networkaccess/NetworkAccessTrafficCollectionResponse.php @@ -0,0 +1,64 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([NetworkAccessTraffic::class, 'createFromDiscriminatorValue'])), + ]); + } + + /** + * Gets the value property value. The value property + * @return array|null + */ + public function getValue(): ?array { + return $this->getBackingStore()->get('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/Networkaccess/NetworkDestinationType.php b/src/Generated/Models/Networkaccess/NetworkDestinationType.php new file mode 100644 index 00000000000..53325f9d7b9 --- /dev/null +++ b/src/Generated/Models/Networkaccess/NetworkDestinationType.php @@ -0,0 +1,15 @@ +getChildNode("@odata.type"); + if ($mappingValueNode !== null) { + $mappingValue = $mappingValueNode->getStringValue(); + switch ($mappingValue) { + case '#microsoft.graph.networkaccess.forwardingPolicy': return new ForwardingPolicy(); + } + } + return new Policy(); + } + + /** + * Gets the description property value. The description property + * @return string|null + */ + public function getDescription(): ?string { + return $this->getBackingStore()->get('description'); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'description' => fn(ParseNode $n) => $o->setDescription($n->getStringValue()), + 'name' => fn(ParseNode $n) => $o->setName($n->getStringValue()), + 'policyRules' => fn(ParseNode $n) => $o->setPolicyRules($n->getCollectionOfObjectValues([PolicyRule::class, 'createFromDiscriminatorValue'])), + 'version' => fn(ParseNode $n) => $o->setVersion($n->getStringValue()), + ]); + } + + /** + * Gets the name property value. The name property + * @return string|null + */ + public function getName(): ?string { + return $this->getBackingStore()->get('name'); + } + + /** + * Gets the policyRules property value. The policyRules property + * @return array|null + */ + public function getPolicyRules(): ?array { + return $this->getBackingStore()->get('policyRules'); + } + + /** + * Gets the version property value. The version property + * @return string|null + */ + public function getVersion(): ?string { + return $this->getBackingStore()->get('version'); + } + + /** + * 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('description', $this->getDescription()); + $writer->writeStringValue('name', $this->getName()); + $writer->writeCollectionOfObjectValues('policyRules', $this->getPolicyRules()); + $writer->writeStringValue('version', $this->getVersion()); + } + + /** + * Sets the description property value. The description property + * @param string|null $value Value to set for the description property. + */ + public function setDescription(?string $value): void { + $this->getBackingStore()->set('description', $value); + } + + /** + * Sets the name property value. The name property + * @param string|null $value Value to set for the name property. + */ + public function setName(?string $value): void { + $this->getBackingStore()->set('name', $value); + } + + /** + * Sets the policyRules property value. The policyRules property + * @param array|null $value Value to set for the policyRules property. + */ + public function setPolicyRules(?array $value): void { + $this->getBackingStore()->set('policyRules', $value); + } + + /** + * Sets the version property value. The version property + * @param string|null $value Value to set for the version property. + */ + public function setVersion(?string $value): void { + $this->getBackingStore()->set('version', $value); + } + +} diff --git a/src/Generated/Models/Networkaccess/PolicyLink.php b/src/Generated/Models/Networkaccess/PolicyLink.php new file mode 100644 index 00000000000..05471b688d5 --- /dev/null +++ b/src/Generated/Models/Networkaccess/PolicyLink.php @@ -0,0 +1,107 @@ +getChildNode("@odata.type"); + if ($mappingValueNode !== null) { + $mappingValue = $mappingValueNode->getStringValue(); + switch ($mappingValue) { + case '#microsoft.graph.networkaccess.forwardingPolicyLink': return new ForwardingPolicyLink(); + } + } + return new PolicyLink(); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'policy' => fn(ParseNode $n) => $o->setPolicy($n->getObjectValue([Policy::class, 'createFromDiscriminatorValue'])), + 'state' => fn(ParseNode $n) => $o->setState($n->getEnumValue(Status::class)), + 'version' => fn(ParseNode $n) => $o->setVersion($n->getStringValue()), + ]); + } + + /** + * Gets the policy property value. The policy property + * @return Policy|null + */ + public function getPolicy(): ?Policy { + return $this->getBackingStore()->get('policy'); + } + + /** + * Gets the state property value. The state property + * @return Status|null + */ + public function getState(): ?Status { + return $this->getBackingStore()->get('state'); + } + + /** + * Gets the version property value. The version property + * @return string|null + */ + public function getVersion(): ?string { + return $this->getBackingStore()->get('version'); + } + + /** + * 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('policy', $this->getPolicy()); + $writer->writeEnumValue('state', $this->getState()); + $writer->writeStringValue('version', $this->getVersion()); + } + + /** + * Sets the policy property value. The policy property + * @param Policy|null $value Value to set for the policy property. + */ + public function setPolicy(?Policy $value): void { + $this->getBackingStore()->set('policy', $value); + } + + /** + * Sets the state property value. The state property + * @param Status|null $value Value to set for the state property. + */ + public function setState(?Status $value): void { + $this->getBackingStore()->set('state', $value); + } + + /** + * Sets the version property value. The version property + * @param string|null $value Value to set for the version property. + */ + public function setVersion(?string $value): void { + $this->getBackingStore()->set('version', $value); + } + +} diff --git a/src/Generated/Models/Networkaccess/PolicyLinkCollectionResponse.php b/src/Generated/Models/Networkaccess/PolicyLinkCollectionResponse.php new file mode 100644 index 00000000000..d27f1483d4f --- /dev/null +++ b/src/Generated/Models/Networkaccess/PolicyLinkCollectionResponse.php @@ -0,0 +1,64 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([PolicyLink::class, 'createFromDiscriminatorValue'])), + ]); + } + + /** + * Gets the value property value. The value property + * @return array|null + */ + public function getValue(): ?array { + return $this->getBackingStore()->get('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/Networkaccess/PolicyRule.php b/src/Generated/Models/Networkaccess/PolicyRule.php new file mode 100644 index 00000000000..efc293d9e65 --- /dev/null +++ b/src/Generated/Models/Networkaccess/PolicyRule.php @@ -0,0 +1,73 @@ +getChildNode("@odata.type"); + if ($mappingValueNode !== null) { + $mappingValue = $mappingValueNode->getStringValue(); + switch ($mappingValue) { + case '#microsoft.graph.networkaccess.forwardingRule': return new ForwardingRule(); + case '#microsoft.graph.networkaccess.m365ForwardingRule': return new M365ForwardingRule(); + case '#microsoft.graph.networkaccess.privateAccessForwardingRule': return new PrivateAccessForwardingRule(); + } + } + return new PolicyRule(); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'name' => fn(ParseNode $n) => $o->setName($n->getStringValue()), + ]); + } + + /** + * Gets the name property value. The name property + * @return string|null + */ + public function getName(): ?string { + return $this->getBackingStore()->get('name'); + } + + /** + * 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('name', $this->getName()); + } + + /** + * Sets the name property value. The name property + * @param string|null $value Value to set for the name property. + */ + public function setName(?string $value): void { + $this->getBackingStore()->set('name', $value); + } + +} diff --git a/src/Generated/Models/Networkaccess/PolicyRuleCollectionResponse.php b/src/Generated/Models/Networkaccess/PolicyRuleCollectionResponse.php new file mode 100644 index 00000000000..8b15cd76570 --- /dev/null +++ b/src/Generated/Models/Networkaccess/PolicyRuleCollectionResponse.php @@ -0,0 +1,64 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([PolicyRule::class, 'createFromDiscriminatorValue'])), + ]); + } + + /** + * Gets the value property value. The value property + * @return array|null + */ + public function getValue(): ?array { + return $this->getBackingStore()->get('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/Networkaccess/PolicyRuleDelta.php b/src/Generated/Models/Networkaccess/PolicyRuleDelta.php new file mode 100644 index 00000000000..bc2416977b2 --- /dev/null +++ b/src/Generated/Models/Networkaccess/PolicyRuleDelta.php @@ -0,0 +1,141 @@ +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 PolicyRuleDelta + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): PolicyRuleDelta { + return new PolicyRuleDelta(); + } + + /** + * Gets the action property value. The action property + * @return ForwardingRuleAction|null + */ + public function getAction(): ?ForwardingRuleAction { + return $this->getBackingStore()->get('action'); + } + + /** + * 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 { + return $this->getBackingStore()->get('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 [ + 'action' => fn(ParseNode $n) => $o->setAction($n->getEnumValue(ForwardingRuleAction::class)), + '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()), + 'ruleId' => fn(ParseNode $n) => $o->setRuleId($n->getStringValue()), + ]; + } + + /** + * Gets the @odata.type property value. The OdataType property + * @return string|null + */ + public function getOdataType(): ?string { + return $this->getBackingStore()->get('odataType'); + } + + /** + * Gets the ruleId property value. The ruleId property + * @return string|null + */ + public function getRuleId(): ?string { + return $this->getBackingStore()->get('ruleId'); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + $writer->writeEnumValue('action', $this->getAction()); + $writer->writeStringValue('@odata.type', $this->getOdataType()); + $writer->writeStringValue('ruleId', $this->getRuleId()); + $writer->writeAdditionalData($this->getAdditionalData()); + } + + /** + * Sets the action property value. The action property + * @param ForwardingRuleAction|null $value Value to set for the action property. + */ + public function setAction(?ForwardingRuleAction $value): void { + $this->getBackingStore()->set('action', $value); + } + + /** + * 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 OdataType property. + */ + public function setOdataType(?string $value): void { + $this->getBackingStore()->set('odataType', $value); + } + + /** + * Sets the ruleId property value. The ruleId property + * @param string|null $value Value to set for the ruleId property. + */ + public function setRuleId(?string $value): void { + $this->getBackingStore()->set('ruleId', $value); + } + +} diff --git a/src/Generated/Models/Networkaccess/PrivateAccessForwardingRule.php b/src/Generated/Models/Networkaccess/PrivateAccessForwardingRule.php new file mode 100644 index 00000000000..123fec77286 --- /dev/null +++ b/src/Generated/Models/Networkaccess/PrivateAccessForwardingRule.php @@ -0,0 +1,46 @@ +setOdataType('#microsoft.graph.networkaccess.privateAccessForwardingRule'); + } + + /** + * 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 PrivateAccessForwardingRule + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): PrivateAccessForwardingRule { + return new PrivateAccessForwardingRule(); + } + + /** + * 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/Networkaccess/Profile.php b/src/Generated/Models/Networkaccess/Profile.php new file mode 100644 index 00000000000..f0e8c05e8dd --- /dev/null +++ b/src/Generated/Models/Networkaccess/Profile.php @@ -0,0 +1,162 @@ +getChildNode("@odata.type"); + if ($mappingValueNode !== null) { + $mappingValue = $mappingValueNode->getStringValue(); + switch ($mappingValue) { + case '#microsoft.graph.networkaccess.forwardingProfile': return new ForwardingProfile(); + } + } + return new Profile(); + } + + /** + * Gets the description property value. The description property + * @return string|null + */ + public function getDescription(): ?string { + return $this->getBackingStore()->get('description'); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'description' => fn(ParseNode $n) => $o->setDescription($n->getStringValue()), + 'lastModifiedDateTime' => fn(ParseNode $n) => $o->setLastModifiedDateTime($n->getDateTimeValue()), + 'name' => fn(ParseNode $n) => $o->setName($n->getStringValue()), + 'policies' => fn(ParseNode $n) => $o->setPolicies($n->getCollectionOfObjectValues([PolicyLink::class, 'createFromDiscriminatorValue'])), + 'state' => fn(ParseNode $n) => $o->setState($n->getEnumValue(Status::class)), + 'version' => fn(ParseNode $n) => $o->setVersion($n->getStringValue()), + ]); + } + + /** + * Gets the lastModifiedDateTime property value. The lastModifiedDateTime property + * @return DateTime|null + */ + public function getLastModifiedDateTime(): ?DateTime { + return $this->getBackingStore()->get('lastModifiedDateTime'); + } + + /** + * Gets the name property value. The name property + * @return string|null + */ + public function getName(): ?string { + return $this->getBackingStore()->get('name'); + } + + /** + * Gets the policies property value. The policies property + * @return array|null + */ + public function getPolicies(): ?array { + return $this->getBackingStore()->get('policies'); + } + + /** + * Gets the state property value. The state property + * @return Status|null + */ + public function getState(): ?Status { + return $this->getBackingStore()->get('state'); + } + + /** + * Gets the version property value. The version property + * @return string|null + */ + public function getVersion(): ?string { + return $this->getBackingStore()->get('version'); + } + + /** + * 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('description', $this->getDescription()); + $writer->writeDateTimeValue('lastModifiedDateTime', $this->getLastModifiedDateTime()); + $writer->writeStringValue('name', $this->getName()); + $writer->writeCollectionOfObjectValues('policies', $this->getPolicies()); + $writer->writeEnumValue('state', $this->getState()); + $writer->writeStringValue('version', $this->getVersion()); + } + + /** + * Sets the description property value. The description property + * @param string|null $value Value to set for the description property. + */ + public function setDescription(?string $value): void { + $this->getBackingStore()->set('description', $value); + } + + /** + * Sets the lastModifiedDateTime property value. The lastModifiedDateTime property + * @param DateTime|null $value Value to set for the lastModifiedDateTime property. + */ + public function setLastModifiedDateTime(?DateTime $value): void { + $this->getBackingStore()->set('lastModifiedDateTime', $value); + } + + /** + * Sets the name property value. The name property + * @param string|null $value Value to set for the name property. + */ + public function setName(?string $value): void { + $this->getBackingStore()->set('name', $value); + } + + /** + * Sets the policies property value. The policies property + * @param array|null $value Value to set for the policies property. + */ + public function setPolicies(?array $value): void { + $this->getBackingStore()->set('policies', $value); + } + + /** + * Sets the state property value. The state property + * @param Status|null $value Value to set for the state property. + */ + public function setState(?Status $value): void { + $this->getBackingStore()->set('state', $value); + } + + /** + * Sets the version property value. The version property + * @param string|null $value Value to set for the version property. + */ + public function setVersion(?string $value): void { + $this->getBackingStore()->set('version', $value); + } + +} diff --git a/src/Generated/Models/Networkaccess/RedundancyConfiguration.php b/src/Generated/Models/Networkaccess/RedundancyConfiguration.php new file mode 100644 index 00000000000..6db8467dfd0 --- /dev/null +++ b/src/Generated/Models/Networkaccess/RedundancyConfiguration.php @@ -0,0 +1,141 @@ +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 RedundancyConfiguration + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): RedundancyConfiguration { + return new RedundancyConfiguration(); + } + + /** + * 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 { + return $this->getBackingStore()->get('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()), + 'redundancyTier' => fn(ParseNode $n) => $o->setRedundancyTier($n->getEnumValue(RedundancyTier::class)), + 'zoneLocalIpAddress' => fn(ParseNode $n) => $o->setZoneLocalIpAddress($n->getStringValue()), + ]; + } + + /** + * Gets the @odata.type property value. The OdataType property + * @return string|null + */ + public function getOdataType(): ?string { + return $this->getBackingStore()->get('odataType'); + } + + /** + * Gets the redundancyTier property value. The redundancyTier property + * @return RedundancyTier|null + */ + public function getRedundancyTier(): ?RedundancyTier { + return $this->getBackingStore()->get('redundancyTier'); + } + + /** + * Gets the zoneLocalIpAddress property value. The zoneLocalIpAddress property + * @return string|null + */ + public function getZoneLocalIpAddress(): ?string { + return $this->getBackingStore()->get('zoneLocalIpAddress'); + } + + /** + * 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->writeEnumValue('redundancyTier', $this->getRedundancyTier()); + $writer->writeStringValue('zoneLocalIpAddress', $this->getZoneLocalIpAddress()); + $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 OdataType property. + */ + public function setOdataType(?string $value): void { + $this->getBackingStore()->set('odataType', $value); + } + + /** + * Sets the redundancyTier property value. The redundancyTier property + * @param RedundancyTier|null $value Value to set for the redundancyTier property. + */ + public function setRedundancyTier(?RedundancyTier $value): void { + $this->getBackingStore()->set('redundancyTier', $value); + } + + /** + * Sets the zoneLocalIpAddress property value. The zoneLocalIpAddress property + * @param string|null $value Value to set for the zoneLocalIpAddress property. + */ + public function setZoneLocalIpAddress(?string $value): void { + $this->getBackingStore()->set('zoneLocalIpAddress', $value); + } + +} diff --git a/src/Generated/Models/Networkaccess/RedundancyTier.php b/src/Generated/Models/Networkaccess/RedundancyTier.php new file mode 100644 index 00000000000..7cff94e4ed0 --- /dev/null +++ b/src/Generated/Models/Networkaccess/RedundancyTier.php @@ -0,0 +1,11 @@ + + */ + 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/Networkaccess/RuleDestination.php b/src/Generated/Models/Networkaccess/RuleDestination.php new file mode 100644 index 00000000000..3d7d06e0964 --- /dev/null +++ b/src/Generated/Models/Networkaccess/RuleDestination.php @@ -0,0 +1,116 @@ +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 RuleDestination + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): RuleDestination { + $mappingValueNode = $parseNode->getChildNode("@odata.type"); + if ($mappingValueNode !== null) { + $mappingValue = $mappingValueNode->getStringValue(); + switch ($mappingValue) { + case '#microsoft.graph.networkaccess.fqdn': return new Fqdn(); + case '#microsoft.graph.networkaccess.ipAddress': return new IpAddress(); + case '#microsoft.graph.networkaccess.ipRange': return new IpRange(); + case '#microsoft.graph.networkaccess.ipSubnet': return new IpSubnet(); + case '#microsoft.graph.networkaccess.url': return new Url(); + } + } + return new RuleDestination(); + } + + /** + * 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 { + return $this->getBackingStore()->get('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 { + return $this->getBackingStore()->get('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 OdataType property. + */ + public function setOdataType(?string $value): void { + $this->getBackingStore()->set('odataType', $value); + } + +} diff --git a/src/Generated/Models/Networkaccess/Settings.php b/src/Generated/Models/Networkaccess/Settings.php new file mode 100644 index 00000000000..0222bead5ad --- /dev/null +++ b/src/Generated/Models/Networkaccess/Settings.php @@ -0,0 +1,118 @@ +getBackingStore()->get('conditionalAccess'); + } + + /** + * Gets the crossTenantAccess property value. The crossTenantAccess property + * @return CrossTenantAccessSettings|null + */ + public function getCrossTenantAccess(): ?CrossTenantAccessSettings { + return $this->getBackingStore()->get('crossTenantAccess'); + } + + /** + * Gets the enrichedAuditLogs property value. The enrichedAuditLogs property + * @return EnrichedAuditLogs|null + */ + public function getEnrichedAuditLogs(): ?EnrichedAuditLogs { + return $this->getBackingStore()->get('enrichedAuditLogs'); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'conditionalAccess' => fn(ParseNode $n) => $o->setConditionalAccess($n->getObjectValue([ConditionalAccessSettings::class, 'createFromDiscriminatorValue'])), + 'crossTenantAccess' => fn(ParseNode $n) => $o->setCrossTenantAccess($n->getObjectValue([CrossTenantAccessSettings::class, 'createFromDiscriminatorValue'])), + 'enrichedAuditLogs' => fn(ParseNode $n) => $o->setEnrichedAuditLogs($n->getObjectValue([EnrichedAuditLogs::class, 'createFromDiscriminatorValue'])), + 'forwardingOptions' => fn(ParseNode $n) => $o->setForwardingOptions($n->getObjectValue([ForwardingOptions::class, 'createFromDiscriminatorValue'])), + ]); + } + + /** + * Gets the forwardingOptions property value. The forwardingOptions property + * @return ForwardingOptions|null + */ + public function getForwardingOptions(): ?ForwardingOptions { + return $this->getBackingStore()->get('forwardingOptions'); + } + + /** + * 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('conditionalAccess', $this->getConditionalAccess()); + $writer->writeObjectValue('crossTenantAccess', $this->getCrossTenantAccess()); + $writer->writeObjectValue('enrichedAuditLogs', $this->getEnrichedAuditLogs()); + $writer->writeObjectValue('forwardingOptions', $this->getForwardingOptions()); + } + + /** + * Sets the conditionalAccess property value. The conditionalAccess property + * @param ConditionalAccessSettings|null $value Value to set for the conditionalAccess property. + */ + public function setConditionalAccess(?ConditionalAccessSettings $value): void { + $this->getBackingStore()->set('conditionalAccess', $value); + } + + /** + * Sets the crossTenantAccess property value. The crossTenantAccess property + * @param CrossTenantAccessSettings|null $value Value to set for the crossTenantAccess property. + */ + public function setCrossTenantAccess(?CrossTenantAccessSettings $value): void { + $this->getBackingStore()->set('crossTenantAccess', $value); + } + + /** + * Sets the enrichedAuditLogs property value. The enrichedAuditLogs property + * @param EnrichedAuditLogs|null $value Value to set for the enrichedAuditLogs property. + */ + public function setEnrichedAuditLogs(?EnrichedAuditLogs $value): void { + $this->getBackingStore()->set('enrichedAuditLogs', $value); + } + + /** + * Sets the forwardingOptions property value. The forwardingOptions property + * @param ForwardingOptions|null $value Value to set for the forwardingOptions property. + */ + public function setForwardingOptions(?ForwardingOptions $value): void { + $this->getBackingStore()->set('forwardingOptions', $value); + } + +} diff --git a/src/Generated/Models/Networkaccess/Status.php b/src/Generated/Models/Networkaccess/Status.php new file mode 100644 index 00000000000..33e6257e22b --- /dev/null +++ b/src/Generated/Models/Networkaccess/Status.php @@ -0,0 +1,11 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'onboardingErrorMessage' => fn(ParseNode $n) => $o->setOnboardingErrorMessage($n->getStringValue()), + 'onboardingStatus' => fn(ParseNode $n) => $o->setOnboardingStatus($n->getEnumValue(OnboardingStatus::class)), + ]); + } + + /** + * Gets the onboardingErrorMessage property value. The onboardingErrorMessage property + * @return string|null + */ + public function getOnboardingErrorMessage(): ?string { + return $this->getBackingStore()->get('onboardingErrorMessage'); + } + + /** + * Gets the onboardingStatus property value. The onboardingStatus property + * @return OnboardingStatus|null + */ + public function getOnboardingStatus(): ?OnboardingStatus { + return $this->getBackingStore()->get('onboardingStatus'); + } + + /** + * 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('onboardingErrorMessage', $this->getOnboardingErrorMessage()); + $writer->writeEnumValue('onboardingStatus', $this->getOnboardingStatus()); + } + + /** + * Sets the onboardingErrorMessage property value. The onboardingErrorMessage property + * @param string|null $value Value to set for the onboardingErrorMessage property. + */ + public function setOnboardingErrorMessage(?string $value): void { + $this->getBackingStore()->set('onboardingErrorMessage', $value); + } + + /** + * Sets the onboardingStatus property value. The onboardingStatus property + * @param OnboardingStatus|null $value Value to set for the onboardingStatus property. + */ + public function setOnboardingStatus(?OnboardingStatus $value): void { + $this->getBackingStore()->set('onboardingStatus', $value); + } + +} diff --git a/src/Generated/Models/Networkaccess/TrafficForwardingType.php b/src/Generated/Models/Networkaccess/TrafficForwardingType.php new file mode 100644 index 00000000000..05fba8f6abd --- /dev/null +++ b/src/Generated/Models/Networkaccess/TrafficForwardingType.php @@ -0,0 +1,12 @@ +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 TransactionSummary + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): TransactionSummary { + return new TransactionSummary(); + } + + /** + * 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 { + return $this->getBackingStore()->get('additionalData'); + } + + /** + * Gets the backingStore property value. Stores model information. + * @return BackingStore + */ + public function getBackingStore(): BackingStore { + return $this->backingStore; + } + + /** + * Gets the blockedCount property value. The blockedCount property + * @return int|null + */ + public function getBlockedCount(): ?int { + return $this->getBackingStore()->get('blockedCount'); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return [ + 'blockedCount' => fn(ParseNode $n) => $o->setBlockedCount($n->getIntegerValue()), + '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()), + 'totalCount' => fn(ParseNode $n) => $o->setTotalCount($n->getIntegerValue()), + 'trafficType' => fn(ParseNode $n) => $o->setTrafficType($n->getEnumValue(TrafficType::class)), + ]; + } + + /** + * Gets the @odata.type property value. The OdataType property + * @return string|null + */ + public function getOdataType(): ?string { + return $this->getBackingStore()->get('odataType'); + } + + /** + * Gets the totalCount property value. The totalCount property + * @return int|null + */ + public function getTotalCount(): ?int { + return $this->getBackingStore()->get('totalCount'); + } + + /** + * Gets the trafficType property value. The trafficType property + * @return TrafficType|null + */ + public function getTrafficType(): ?TrafficType { + return $this->getBackingStore()->get('trafficType'); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + $writer->writeIntegerValue('blockedCount', $this->getBlockedCount()); + $writer->writeStringValue('@odata.type', $this->getOdataType()); + $writer->writeIntegerValue('totalCount', $this->getTotalCount()); + $writer->writeEnumValue('trafficType', $this->getTrafficType()); + $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 blockedCount property value. The blockedCount property + * @param int|null $value Value to set for the blockedCount property. + */ + public function setBlockedCount(?int $value): void { + $this->getBackingStore()->set('blockedCount', $value); + } + + /** + * Sets the @odata.type property value. The OdataType property + * @param string|null $value Value to set for the OdataType property. + */ + public function setOdataType(?string $value): void { + $this->getBackingStore()->set('odataType', $value); + } + + /** + * Sets the totalCount property value. The totalCount property + * @param int|null $value Value to set for the totalCount property. + */ + public function setTotalCount(?int $value): void { + $this->getBackingStore()->set('totalCount', $value); + } + + /** + * Sets the trafficType property value. The trafficType property + * @param TrafficType|null $value Value to set for the trafficType property. + */ + public function setTrafficType(?TrafficType $value): void { + $this->getBackingStore()->set('trafficType', $value); + } + +} diff --git a/src/Generated/Models/Networkaccess/TunnelConfiguration.php b/src/Generated/Models/Networkaccess/TunnelConfiguration.php new file mode 100644 index 00000000000..7105541c593 --- /dev/null +++ b/src/Generated/Models/Networkaccess/TunnelConfiguration.php @@ -0,0 +1,131 @@ +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 TunnelConfiguration + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): TunnelConfiguration { + $mappingValueNode = $parseNode->getChildNode("@odata.type"); + if ($mappingValueNode !== null) { + $mappingValue = $mappingValueNode->getStringValue(); + switch ($mappingValue) { + case '#microsoft.graph.networkaccess.tunnelConfigurationIKEv2Custom': return new TunnelConfigurationIKEv2Custom(); + case '#microsoft.graph.networkaccess.tunnelConfigurationIKEv2Default': return new TunnelConfigurationIKEv2Default(); + } + } + return new TunnelConfiguration(); + } + + /** + * 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 { + return $this->getBackingStore()->get('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()), + 'preSharedKey' => fn(ParseNode $n) => $o->setPreSharedKey($n->getStringValue()), + ]; + } + + /** + * Gets the @odata.type property value. The OdataType property + * @return string|null + */ + public function getOdataType(): ?string { + return $this->getBackingStore()->get('odataType'); + } + + /** + * Gets the preSharedKey property value. The preSharedKey property + * @return string|null + */ + public function getPreSharedKey(): ?string { + return $this->getBackingStore()->get('preSharedKey'); + } + + /** + * 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->writeStringValue('preSharedKey', $this->getPreSharedKey()); + $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 OdataType property. + */ + public function setOdataType(?string $value): void { + $this->getBackingStore()->set('odataType', $value); + } + + /** + * Sets the preSharedKey property value. The preSharedKey property + * @param string|null $value Value to set for the preSharedKey property. + */ + public function setPreSharedKey(?string $value): void { + $this->getBackingStore()->set('preSharedKey', $value); + } + +} diff --git a/src/Generated/Models/Networkaccess/TunnelConfigurationIKEv2Custom.php b/src/Generated/Models/Networkaccess/TunnelConfigurationIKEv2Custom.php new file mode 100644 index 00000000000..0bc4f21416f --- /dev/null +++ b/src/Generated/Models/Networkaccess/TunnelConfigurationIKEv2Custom.php @@ -0,0 +1,172 @@ +setOdataType('#microsoft.graph.networkaccess.tunnelConfigurationIKEv2Custom'); + } + + /** + * 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 TunnelConfigurationIKEv2Custom + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): TunnelConfigurationIKEv2Custom { + return new TunnelConfigurationIKEv2Custom(); + } + + /** + * Gets the dhGroup property value. The dhGroup property + * @return DhGroup|null + */ + public function getDhGroup(): ?DhGroup { + return $this->getBackingStore()->get('dhGroup'); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'dhGroup' => fn(ParseNode $n) => $o->setDhGroup($n->getEnumValue(DhGroup::class)), + 'ikeEncryption' => fn(ParseNode $n) => $o->setIkeEncryption($n->getEnumValue(IkeEncryption::class)), + 'ikeIntegrity' => fn(ParseNode $n) => $o->setIkeIntegrity($n->getEnumValue(IkeIntegrity::class)), + 'ipSecEncryption' => fn(ParseNode $n) => $o->setIpSecEncryption($n->getEnumValue(IpSecEncryption::class)), + 'ipSecIntegrity' => fn(ParseNode $n) => $o->setIpSecIntegrity($n->getEnumValue(IpSecIntegrity::class)), + 'pfsGroup' => fn(ParseNode $n) => $o->setPfsGroup($n->getEnumValue(PfsGroup::class)), + 'saLifeTimeSeconds' => fn(ParseNode $n) => $o->setSaLifeTimeSeconds($n->getIntegerValue()), + ]); + } + + /** + * Gets the ikeEncryption property value. The ikeEncryption property + * @return IkeEncryption|null + */ + public function getIkeEncryption(): ?IkeEncryption { + return $this->getBackingStore()->get('ikeEncryption'); + } + + /** + * Gets the ikeIntegrity property value. The ikeIntegrity property + * @return IkeIntegrity|null + */ + public function getIkeIntegrity(): ?IkeIntegrity { + return $this->getBackingStore()->get('ikeIntegrity'); + } + + /** + * Gets the ipSecEncryption property value. The ipSecEncryption property + * @return IpSecEncryption|null + */ + public function getIpSecEncryption(): ?IpSecEncryption { + return $this->getBackingStore()->get('ipSecEncryption'); + } + + /** + * Gets the ipSecIntegrity property value. The ipSecIntegrity property + * @return IpSecIntegrity|null + */ + public function getIpSecIntegrity(): ?IpSecIntegrity { + return $this->getBackingStore()->get('ipSecIntegrity'); + } + + /** + * Gets the pfsGroup property value. The pfsGroup property + * @return PfsGroup|null + */ + public function getPfsGroup(): ?PfsGroup { + return $this->getBackingStore()->get('pfsGroup'); + } + + /** + * Gets the saLifeTimeSeconds property value. The saLifeTimeSeconds property + * @return int|null + */ + public function getSaLifeTimeSeconds(): ?int { + return $this->getBackingStore()->get('saLifeTimeSeconds'); + } + + /** + * 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('dhGroup', $this->getDhGroup()); + $writer->writeEnumValue('ikeEncryption', $this->getIkeEncryption()); + $writer->writeEnumValue('ikeIntegrity', $this->getIkeIntegrity()); + $writer->writeEnumValue('ipSecEncryption', $this->getIpSecEncryption()); + $writer->writeEnumValue('ipSecIntegrity', $this->getIpSecIntegrity()); + $writer->writeEnumValue('pfsGroup', $this->getPfsGroup()); + $writer->writeIntegerValue('saLifeTimeSeconds', $this->getSaLifeTimeSeconds()); + } + + /** + * Sets the dhGroup property value. The dhGroup property + * @param DhGroup|null $value Value to set for the dhGroup property. + */ + public function setDhGroup(?DhGroup $value): void { + $this->getBackingStore()->set('dhGroup', $value); + } + + /** + * Sets the ikeEncryption property value. The ikeEncryption property + * @param IkeEncryption|null $value Value to set for the ikeEncryption property. + */ + public function setIkeEncryption(?IkeEncryption $value): void { + $this->getBackingStore()->set('ikeEncryption', $value); + } + + /** + * Sets the ikeIntegrity property value. The ikeIntegrity property + * @param IkeIntegrity|null $value Value to set for the ikeIntegrity property. + */ + public function setIkeIntegrity(?IkeIntegrity $value): void { + $this->getBackingStore()->set('ikeIntegrity', $value); + } + + /** + * Sets the ipSecEncryption property value. The ipSecEncryption property + * @param IpSecEncryption|null $value Value to set for the ipSecEncryption property. + */ + public function setIpSecEncryption(?IpSecEncryption $value): void { + $this->getBackingStore()->set('ipSecEncryption', $value); + } + + /** + * Sets the ipSecIntegrity property value. The ipSecIntegrity property + * @param IpSecIntegrity|null $value Value to set for the ipSecIntegrity property. + */ + public function setIpSecIntegrity(?IpSecIntegrity $value): void { + $this->getBackingStore()->set('ipSecIntegrity', $value); + } + + /** + * Sets the pfsGroup property value. The pfsGroup property + * @param PfsGroup|null $value Value to set for the pfsGroup property. + */ + public function setPfsGroup(?PfsGroup $value): void { + $this->getBackingStore()->set('pfsGroup', $value); + } + + /** + * Sets the saLifeTimeSeconds property value. The saLifeTimeSeconds property + * @param int|null $value Value to set for the saLifeTimeSeconds property. + */ + public function setSaLifeTimeSeconds(?int $value): void { + $this->getBackingStore()->set('saLifeTimeSeconds', $value); + } + +} diff --git a/src/Generated/Models/Networkaccess/TunnelConfigurationIKEv2Default.php b/src/Generated/Models/Networkaccess/TunnelConfigurationIKEv2Default.php new file mode 100644 index 00000000000..2cbb7b7496b --- /dev/null +++ b/src/Generated/Models/Networkaccess/TunnelConfigurationIKEv2Default.php @@ -0,0 +1,46 @@ +setOdataType('#microsoft.graph.networkaccess.tunnelConfigurationIKEv2Default'); + } + + /** + * 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 TunnelConfigurationIKEv2Default + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): TunnelConfigurationIKEv2Default { + return new TunnelConfigurationIKEv2Default(); + } + + /** + * 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/Networkaccess/Url.php b/src/Generated/Models/Networkaccess/Url.php new file mode 100644 index 00000000000..d7499cbdfd5 --- /dev/null +++ b/src/Generated/Models/Networkaccess/Url.php @@ -0,0 +1,64 @@ +setOdataType('#microsoft.graph.networkaccess.url'); + } + + /** + * 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 Url + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): Url { + return new Url(); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getStringValue()), + ]); + } + + /** + * Gets the value property value. The value property + * @return string|null + */ + public function getValue(): ?string { + return $this->getBackingStore()->get('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->writeStringValue('value', $this->getValue()); + } + + /** + * Sets the value property value. The value property + * @param string|null $value Value to set for the value property. + */ + public function setValue(?string $value): void { + $this->getBackingStore()->set('value', $value); + } + +} diff --git a/src/Generated/Models/NotificationMessageTemplate.php b/src/Generated/Models/NotificationMessageTemplate.php index 8d51c92ed0b..127596e774b 100644 --- a/src/Generated/Models/NotificationMessageTemplate.php +++ b/src/Generated/Models/NotificationMessageTemplate.php @@ -7,13 +7,10 @@ use Microsoft\Kiota\Abstractions\Serialization\ParseNode; use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter; -/** - * Notification messages are messages that are sent to end users who are determined to be not-compliant with the compliance policies defined by the administrator. Administrators choose notifications and configure them in the Intune Admin Console using the compliance policy creation page under the “Actions for non-compliance” section. Use the notificationMessageTemplate object to create your own custom notifications for administrators to choose while configuring actions for non-compliance. -*/ class NotificationMessageTemplate extends Entity implements Parsable { /** - * Instantiates a new notificationMessageTemplate and sets the default values. + * Instantiates a new NotificationMessageTemplate and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/ODataErrors/MainError.php b/src/Generated/Models/ODataErrors/MainError.php index bd5244a8f98..6f20880e387 100644 --- a/src/Generated/Models/ODataErrors/MainError.php +++ b/src/Generated/Models/ODataErrors/MainError.php @@ -75,18 +75,18 @@ public function getFieldDeserializers(): array { return [ 'code' => fn(ParseNode $n) => $o->setCode($n->getStringValue()), 'details' => fn(ParseNode $n) => $o->setDetails($n->getCollectionOfObjectValues([ErrorDetails::class, 'createFromDiscriminatorValue'])), - 'innererror' => fn(ParseNode $n) => $o->setInnererror($n->getObjectValue([InnerError::class, 'createFromDiscriminatorValue'])), + 'innerError' => fn(ParseNode $n) => $o->setInnerError($n->getObjectValue([InnerError::class, 'createFromDiscriminatorValue'])), 'message' => fn(ParseNode $n) => $o->setMessage($n->getStringValue()), 'target' => fn(ParseNode $n) => $o->setTarget($n->getStringValue()), ]; } /** - * Gets the innererror property value. The innererror property + * Gets the innerError property value. The innerError property * @return InnerError|null */ - public function getInnererror(): ?InnerError { - return $this->getBackingStore()->get('innererror'); + public function getInnerError(): ?InnerError { + return $this->getBackingStore()->get('innerError'); } /** @@ -112,7 +112,7 @@ public function getTarget(): ?string { public function serialize(SerializationWriter $writer): void { $writer->writeStringValue('code', $this->getCode()); $writer->writeCollectionOfObjectValues('details', $this->getDetails()); - $writer->writeObjectValue('innererror', $this->getInnererror()); + $writer->writeObjectValue('innerError', $this->getInnerError()); $writer->writeStringValue('message', $this->getMessage()); $writer->writeStringValue('target', $this->getTarget()); $writer->writeAdditionalData($this->getAdditionalData()); @@ -151,11 +151,11 @@ public function setDetails(?array $value): void { } /** - * Sets the innererror property value. The innererror property - * @param InnerError|null $value Value to set for the innererror property. + * Sets the innerError property value. The innerError property + * @param InnerError|null $value Value to set for the innerError property. */ - public function setInnererror(?InnerError $value): void { - $this->getBackingStore()->set('innererror', $value); + public function setInnerError(?InnerError $value): void { + $this->getBackingStore()->set('innerError', $value); } /** diff --git a/src/Generated/Models/OnPremisesAgent.php b/src/Generated/Models/OnPremisesAgent.php index 5804d6a4626..80c9b95896b 100644 --- a/src/Generated/Models/OnPremisesAgent.php +++ b/src/Generated/Models/OnPremisesAgent.php @@ -9,7 +9,7 @@ class OnPremisesAgent extends Entity implements Parsable { /** - * Instantiates a new onPremisesAgent and sets the default values. + * Instantiates a new OnPremisesAgent and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/OnPremisesConditionalAccessSettings.php b/src/Generated/Models/OnPremisesConditionalAccessSettings.php index 6cf92e5f12d..0d9e85821df 100644 --- a/src/Generated/Models/OnPremisesConditionalAccessSettings.php +++ b/src/Generated/Models/OnPremisesConditionalAccessSettings.php @@ -9,7 +9,7 @@ class OnPremisesConditionalAccessSettings extends Entity implements Parsable { /** - * Instantiates a new onPremisesConditionalAccessSettings and sets the default values. + * Instantiates a new OnPremisesConditionalAccessSettings and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/OnPremisesDirectorySynchronizationFeature.php b/src/Generated/Models/OnPremisesDirectorySynchronizationFeature.php index f8bb8ff302c..9c49dd105f8 100644 --- a/src/Generated/Models/OnPremisesDirectorySynchronizationFeature.php +++ b/src/Generated/Models/OnPremisesDirectorySynchronizationFeature.php @@ -18,7 +18,7 @@ class OnPremisesDirectorySynchronizationFeature implements AdditionalDataHolder, private BackingStore $backingStore; /** - * Instantiates a new onPremisesDirectorySynchronizationFeature and sets the default values. + * Instantiates a new OnPremisesDirectorySynchronizationFeature and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/Organization.php b/src/Generated/Models/Organization.php index b9cc14dcdf7..f0a9271a5b0 100644 --- a/src/Generated/Models/Organization.php +++ b/src/Generated/Models/Organization.php @@ -153,6 +153,7 @@ public function getFieldDeserializers(): array { 'isMultipleDataLocationsForServicesEnabled' => fn(ParseNode $n) => $o->setIsMultipleDataLocationsForServicesEnabled($n->getBooleanValue()), 'marketingNotificationEmails' => fn(ParseNode $n) => $o->setMarketingNotificationEmails($n->getCollectionOfPrimitiveValues()), 'mobileDeviceManagementAuthority' => fn(ParseNode $n) => $o->setMobileDeviceManagementAuthority($n->getEnumValue(MdmAuthority::class)), + 'onPremisesLastPasswordSyncDateTime' => fn(ParseNode $n) => $o->setOnPremisesLastPasswordSyncDateTime($n->getDateTimeValue()), 'onPremisesLastSyncDateTime' => fn(ParseNode $n) => $o->setOnPremisesLastSyncDateTime($n->getDateTimeValue()), 'onPremisesSyncEnabled' => fn(ParseNode $n) => $o->setOnPremisesSyncEnabled($n->getBooleanValue()), 'partnerInformation' => fn(ParseNode $n) => $o->setPartnerInformation($n->getObjectValue([PartnerInformation::class, 'createFromDiscriminatorValue'])), @@ -195,6 +196,14 @@ public function getMobileDeviceManagementAuthority(): ?MdmAuthority { return $this->getBackingStore()->get('mobileDeviceManagementAuthority'); } + /** + * Gets the onPremisesLastPasswordSyncDateTime property value. The last time a password sync request was received for the tenant. + * @return DateTime|null + */ + public function getOnPremisesLastPasswordSyncDateTime(): ?DateTime { + return $this->getBackingStore()->get('onPremisesLastPasswordSyncDateTime'); + } + /** * Gets the onPremisesLastSyncDateTime property value. The time and date at which the tenant was last synced with the on-premises directory. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. * @return DateTime|null @@ -337,6 +346,7 @@ public function serialize(SerializationWriter $writer): void { $writer->writeBooleanValue('isMultipleDataLocationsForServicesEnabled', $this->getIsMultipleDataLocationsForServicesEnabled()); $writer->writeCollectionOfPrimitiveValues('marketingNotificationEmails', $this->getMarketingNotificationEmails()); $writer->writeEnumValue('mobileDeviceManagementAuthority', $this->getMobileDeviceManagementAuthority()); + $writer->writeDateTimeValue('onPremisesLastPasswordSyncDateTime', $this->getOnPremisesLastPasswordSyncDateTime()); $writer->writeDateTimeValue('onPremisesLastSyncDateTime', $this->getOnPremisesLastSyncDateTime()); $writer->writeBooleanValue('onPremisesSyncEnabled', $this->getOnPremisesSyncEnabled()); $writer->writeObjectValue('partnerInformation', $this->getPartnerInformation()); @@ -482,6 +492,14 @@ public function setMobileDeviceManagementAuthority(?MdmAuthority $value): void { $this->getBackingStore()->set('mobileDeviceManagementAuthority', $value); } + /** + * Sets the onPremisesLastPasswordSyncDateTime property value. The last time a password sync request was received for the tenant. + * @param DateTime|null $value Value to set for the onPremisesLastPasswordSyncDateTime property. + */ + public function setOnPremisesLastPasswordSyncDateTime(?DateTime $value): void { + $this->getBackingStore()->set('onPremisesLastPasswordSyncDateTime', $value); + } + /** * Sets the onPremisesLastSyncDateTime property value. The time and date at which the tenant was last synced with the on-premises directory. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. * @param DateTime|null $value Value to set for the onPremisesLastSyncDateTime property. diff --git a/src/Generated/Models/OrganizationalBrandingProperties.php b/src/Generated/Models/OrganizationalBrandingProperties.php index 763fd9c93c3..b5206a18956 100644 --- a/src/Generated/Models/OrganizationalBrandingProperties.php +++ b/src/Generated/Models/OrganizationalBrandingProperties.php @@ -82,7 +82,7 @@ public function getCdnList(): ?array { } /** - * Gets the contentCustomization property value. The contentCustomization property + * Gets the contentCustomization property value. Represents the various content options to be customized throughout the authentication flow for a tenant. NOTE: Supported by Azure Active Directory for customers tenants only. * @return ContentCustomization|null */ public function getContentCustomization(): ?ContentCustomization { @@ -410,7 +410,7 @@ public function setCdnList(?array $value): void { } /** - * Sets the contentCustomization property value. The contentCustomization property + * Sets the contentCustomization property value. Represents the various content options to be customized throughout the authentication flow for a tenant. NOTE: Supported by Azure Active Directory for customers tenants only. * @param ContentCustomization|null $value Value to set for the contentCustomization property. */ public function setContentCustomization(?ContentCustomization $value): void { diff --git a/src/Generated/Models/OutboundSharedUserProfile.php b/src/Generated/Models/OutboundSharedUserProfile.php index f236284d526..26323021692 100644 --- a/src/Generated/Models/OutboundSharedUserProfile.php +++ b/src/Generated/Models/OutboundSharedUserProfile.php @@ -18,7 +18,7 @@ class OutboundSharedUserProfile implements AdditionalDataHolder, BackedModel, Pa private BackingStore $backingStore; /** - * Instantiates a new outboundSharedUserProfile and sets the default values. + * Instantiates a new OutboundSharedUserProfile and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/PasswordCredential.php b/src/Generated/Models/PasswordCredential.php index 3085dce3d42..02f2ac1a78a 100644 --- a/src/Generated/Models/PasswordCredential.php +++ b/src/Generated/Models/PasswordCredential.php @@ -20,7 +20,7 @@ class PasswordCredential implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new passwordCredential and sets the default values. + * Instantiates a new PasswordCredential and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/PayloadTypes.php b/src/Generated/Models/PayloadTypes.php index a8f4f72b49f..30b47e76819 100644 --- a/src/Generated/Models/PayloadTypes.php +++ b/src/Generated/Models/PayloadTypes.php @@ -18,7 +18,7 @@ class PayloadTypes implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new payloadTypes and sets the default values. + * Instantiates a new PayloadTypes and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/PermissionScope.php b/src/Generated/Models/PermissionScope.php index c851a5939df..b9db73392c4 100644 --- a/src/Generated/Models/PermissionScope.php +++ b/src/Generated/Models/PermissionScope.php @@ -18,7 +18,7 @@ class PermissionScope implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new permissionScope and sets the default values. + * Instantiates a new PermissionScope and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/Picture.php b/src/Generated/Models/Picture.php index 3439fc77972..41fc4ed40c9 100644 --- a/src/Generated/Models/Picture.php +++ b/src/Generated/Models/Picture.php @@ -19,7 +19,7 @@ class Picture implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new picture and sets the default values. + * Instantiates a new Picture and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/PlannerRoster.php b/src/Generated/Models/PlannerRoster.php index bf17596f626..d4a3fe5f83c 100644 --- a/src/Generated/Models/PlannerRoster.php +++ b/src/Generated/Models/PlannerRoster.php @@ -9,7 +9,7 @@ class PlannerRoster extends Entity implements Parsable { /** - * Instantiates a new PlannerRoster and sets the default values. + * Instantiates a new plannerRoster and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/PositionDetail.php b/src/Generated/Models/PositionDetail.php index c59ae5ef646..64056697472 100644 --- a/src/Generated/Models/PositionDetail.php +++ b/src/Generated/Models/PositionDetail.php @@ -19,7 +19,7 @@ class PositionDetail implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new positionDetail and sets the default values. + * Instantiates a new PositionDetail and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/PrintCertificateSigningRequest.php b/src/Generated/Models/PrintCertificateSigningRequest.php index bf913022bc4..3820d0913a7 100644 --- a/src/Generated/Models/PrintCertificateSigningRequest.php +++ b/src/Generated/Models/PrintCertificateSigningRequest.php @@ -18,7 +18,7 @@ class PrintCertificateSigningRequest implements AdditionalDataHolder, BackedMode private BackingStore $backingStore; /** - * Instantiates a new printCertificateSigningRequest and sets the default values. + * Instantiates a new PrintCertificateSigningRequest and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/PrintDocumentUploadProperties.php b/src/Generated/Models/PrintDocumentUploadProperties.php index 56cc7d5463c..92f8893e641 100644 --- a/src/Generated/Models/PrintDocumentUploadProperties.php +++ b/src/Generated/Models/PrintDocumentUploadProperties.php @@ -18,7 +18,7 @@ class PrintDocumentUploadProperties implements AdditionalDataHolder, BackedModel private BackingStore $backingStore; /** - * Instantiates a new printDocumentUploadProperties and sets the default values. + * Instantiates a new PrintDocumentUploadProperties and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/PrintOperation.php b/src/Generated/Models/PrintOperation.php index 34abed5247c..57ab8825add 100644 --- a/src/Generated/Models/PrintOperation.php +++ b/src/Generated/Models/PrintOperation.php @@ -10,7 +10,7 @@ class PrintOperation extends Entity implements Parsable { /** - * Instantiates a new PrintOperation and sets the default values. + * Instantiates a new printOperation and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/PrintOperationStatus.php b/src/Generated/Models/PrintOperationStatus.php index f41d6d47b9b..47f6c4348c2 100644 --- a/src/Generated/Models/PrintOperationStatus.php +++ b/src/Generated/Models/PrintOperationStatus.php @@ -18,7 +18,7 @@ class PrintOperationStatus implements AdditionalDataHolder, BackedModel, Parsabl private BackingStore $backingStore; /** - * Instantiates a new printOperationStatus and sets the default values. + * Instantiates a new PrintOperationStatus and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/PrintTaskStatus.php b/src/Generated/Models/PrintTaskStatus.php index b409801a776..81629f40cce 100644 --- a/src/Generated/Models/PrintTaskStatus.php +++ b/src/Generated/Models/PrintTaskStatus.php @@ -18,7 +18,7 @@ class PrintTaskStatus implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new printTaskStatus and sets the default values. + * Instantiates a new PrintTaskStatus and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/PrinterDocumentConfiguration.php b/src/Generated/Models/PrinterDocumentConfiguration.php index a576183198d..3cf24829758 100644 --- a/src/Generated/Models/PrinterDocumentConfiguration.php +++ b/src/Generated/Models/PrinterDocumentConfiguration.php @@ -18,7 +18,7 @@ class PrinterDocumentConfiguration implements AdditionalDataHolder, BackedModel, private BackingStore $backingStore; /** - * Instantiates a new printerDocumentConfiguration and sets the default values. + * Instantiates a new PrinterDocumentConfiguration and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/PrivilegeManagementElevation.php b/src/Generated/Models/PrivilegeManagementElevation.php index 60c55a18312..e1906298e79 100644 --- a/src/Generated/Models/PrivilegeManagementElevation.php +++ b/src/Generated/Models/PrivilegeManagementElevation.php @@ -7,13 +7,10 @@ use Microsoft\Kiota\Abstractions\Serialization\ParseNode; use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter; -/** - * The endpoint privilege management elevation result entity representing a single elevation action on a client device. -*/ class PrivilegeManagementElevation extends Entity implements Parsable { /** - * Instantiates a new privilegeManagementElevation and sets the default values. + * Instantiates a new PrivilegeManagementElevation and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/PrivilegedSignupStatus.php b/src/Generated/Models/PrivilegedSignupStatus.php index 3e465ff58fe..23ed281613a 100644 --- a/src/Generated/Models/PrivilegedSignupStatus.php +++ b/src/Generated/Models/PrivilegedSignupStatus.php @@ -9,7 +9,7 @@ class PrivilegedSignupStatus extends Entity implements Parsable { /** - * Instantiates a new PrivilegedSignupStatus and sets the default values. + * Instantiates a new privilegedSignupStatus and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/Prompt.php b/src/Generated/Models/Prompt.php index d7dcf4da040..b58a5aa8daa 100644 --- a/src/Generated/Models/Prompt.php +++ b/src/Generated/Models/Prompt.php @@ -18,7 +18,7 @@ class Prompt implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new prompt and sets the default values. + * Instantiates a new Prompt and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/Property.php b/src/Generated/Models/Property.php index b6c4db881b7..623be58c3e5 100644 --- a/src/Generated/Models/Property.php +++ b/src/Generated/Models/Property.php @@ -18,7 +18,7 @@ class Property implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new property and sets the default values. + * Instantiates a new Property and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/ProvisionedPlan.php b/src/Generated/Models/ProvisionedPlan.php index 4c62c32dfaf..9ec1e07b579 100644 --- a/src/Generated/Models/ProvisionedPlan.php +++ b/src/Generated/Models/ProvisionedPlan.php @@ -18,7 +18,7 @@ class ProvisionedPlan implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new provisionedPlan and sets the default values. + * Instantiates a new ProvisionedPlan and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/PurchaseInvoice.php b/src/Generated/Models/PurchaseInvoice.php index 01c39ecc0ce..54cf3b34a39 100644 --- a/src/Generated/Models/PurchaseInvoice.php +++ b/src/Generated/Models/PurchaseInvoice.php @@ -20,7 +20,7 @@ class PurchaseInvoice implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new purchaseInvoice and sets the default values. + * Instantiates a new PurchaseInvoice and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/RbacApplication.php b/src/Generated/Models/RbacApplication.php index e145a1e3340..35cde00aa96 100644 --- a/src/Generated/Models/RbacApplication.php +++ b/src/Generated/Models/RbacApplication.php @@ -9,7 +9,7 @@ class RbacApplication extends Entity implements Parsable { /** - * Instantiates a new RbacApplication and sets the default values. + * Instantiates a new rbacApplication and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/RedirectUriSettings.php b/src/Generated/Models/RedirectUriSettings.php index 8159f74b562..8be096fb0b1 100644 --- a/src/Generated/Models/RedirectUriSettings.php +++ b/src/Generated/Models/RedirectUriSettings.php @@ -18,7 +18,7 @@ class RedirectUriSettings implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new redirectUriSettings and sets the default values. + * Instantiates a new RedirectUriSettings and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/Reminder.php b/src/Generated/Models/Reminder.php index 4e9db0b02e5..76ec037c130 100644 --- a/src/Generated/Models/Reminder.php +++ b/src/Generated/Models/Reminder.php @@ -18,7 +18,7 @@ class Reminder implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new reminder and sets the default values. + * Instantiates a new Reminder and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/RemoteActionAudit.php b/src/Generated/Models/RemoteActionAudit.php index 143c070c184..7dd1c3138cb 100644 --- a/src/Generated/Models/RemoteActionAudit.php +++ b/src/Generated/Models/RemoteActionAudit.php @@ -7,13 +7,10 @@ use Microsoft\Kiota\Abstractions\Serialization\ParseNode; use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter; -/** - * Report of remote actions initiated on the devices belonging to a certain tenant. -*/ class RemoteActionAudit extends Entity implements Parsable { /** - * Instantiates a new remoteActionAudit and sets the default values. + * Instantiates a new RemoteActionAudit and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/RemoteAssistancePartner.php b/src/Generated/Models/RemoteAssistancePartner.php index 7ebfa71b503..7f243d0eedc 100644 --- a/src/Generated/Models/RemoteAssistancePartner.php +++ b/src/Generated/Models/RemoteAssistancePartner.php @@ -7,13 +7,10 @@ use Microsoft\Kiota\Abstractions\Serialization\ParseNode; use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter; -/** - * RemoteAssistPartner resources represent the metadata and status of a given Remote Assistance partner service. -*/ class RemoteAssistancePartner extends Entity implements Parsable { /** - * Instantiates a new remoteAssistancePartner and sets the default values. + * Instantiates a new RemoteAssistancePartner and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/RemoteAssistanceSettings.php b/src/Generated/Models/RemoteAssistanceSettings.php index 5bf8f2619dc..345ba222cbf 100644 --- a/src/Generated/Models/RemoteAssistanceSettings.php +++ b/src/Generated/Models/RemoteAssistanceSettings.php @@ -9,7 +9,7 @@ class RemoteAssistanceSettings extends Entity implements Parsable { /** - * Instantiates a new remoteAssistanceSettings and sets the default values. + * Instantiates a new RemoteAssistanceSettings and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/ReportRoot.php b/src/Generated/Models/ReportRoot.php index 97c5d185a48..378d04ba11a 100644 --- a/src/Generated/Models/ReportRoot.php +++ b/src/Generated/Models/ReportRoot.php @@ -24,6 +24,14 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Repor return new ReportRoot(); } + /** + * Gets the appCredentialSignInActivities property value. Represents a collection of sign-in activities of application credentials. + * @return array|null + */ + public function getAppCredentialSignInActivities(): ?array { + return $this->getBackingStore()->get('appCredentialSignInActivities'); + } + /** * Gets the applicationSignInDetailedSummary property value. Represents a detailed summary of an application sign-in. * @return array|null @@ -95,6 +103,7 @@ public function getDailyPrintUsageSummariesByUser(): ?array { public function getFieldDeserializers(): array { $o = $this; return array_merge(parent::getFieldDeserializers(), [ + 'appCredentialSignInActivities' => fn(ParseNode $n) => $o->setAppCredentialSignInActivities($n->getCollectionOfObjectValues([AppCredentialSignInActivity::class, 'createFromDiscriminatorValue'])), 'applicationSignInDetailedSummary' => fn(ParseNode $n) => $o->setApplicationSignInDetailedSummary($n->getCollectionOfObjectValues([ApplicationSignInDetailedSummary::class, 'createFromDiscriminatorValue'])), 'authenticationMethods' => fn(ParseNode $n) => $o->setAuthenticationMethods($n->getObjectValue([AuthenticationMethodsRoot::class, 'createFromDiscriminatorValue'])), 'credentialUserRegistrationDetails' => fn(ParseNode $n) => $o->setCredentialUserRegistrationDetails($n->getCollectionOfObjectValues([CredentialUserRegistrationDetails::class, 'createFromDiscriminatorValue'])), @@ -108,6 +117,7 @@ public function getFieldDeserializers(): array { 'monthlyPrintUsageSummariesByPrinter' => fn(ParseNode $n) => $o->setMonthlyPrintUsageSummariesByPrinter($n->getCollectionOfObjectValues([PrintUsageByPrinter::class, 'createFromDiscriminatorValue'])), 'monthlyPrintUsageSummariesByUser' => fn(ParseNode $n) => $o->setMonthlyPrintUsageSummariesByUser($n->getCollectionOfObjectValues([PrintUsageByUser::class, 'createFromDiscriminatorValue'])), 'security' => fn(ParseNode $n) => $o->setSecurity($n->getObjectValue([SecurityReportsRoot::class, 'createFromDiscriminatorValue'])), + 'servicePrincipalSignInActivities' => fn(ParseNode $n) => $o->setServicePrincipalSignInActivities($n->getCollectionOfObjectValues([ServicePrincipalSignInActivity::class, 'createFromDiscriminatorValue'])), 'userCredentialUsageDetails' => fn(ParseNode $n) => $o->setUserCredentialUsageDetails($n->getCollectionOfObjectValues([UserCredentialUsageDetails::class, 'createFromDiscriminatorValue'])), ]); } @@ -152,6 +162,14 @@ public function getSecurity(): ?SecurityReportsRoot { return $this->getBackingStore()->get('security'); } + /** + * Gets the servicePrincipalSignInActivities property value. Represents a collection of sign-in activities of service principals. + * @return array|null + */ + public function getServicePrincipalSignInActivities(): ?array { + return $this->getBackingStore()->get('servicePrincipalSignInActivities'); + } + /** * Gets the userCredentialUsageDetails property value. Represents the self-service password reset (SSPR) usage for a given tenant. * @return array|null @@ -166,6 +184,7 @@ public function getUserCredentialUsageDetails(): ?array { */ public function serialize(SerializationWriter $writer): void { parent::serialize($writer); + $writer->writeCollectionOfObjectValues('appCredentialSignInActivities', $this->getAppCredentialSignInActivities()); $writer->writeCollectionOfObjectValues('applicationSignInDetailedSummary', $this->getApplicationSignInDetailedSummary()); $writer->writeObjectValue('authenticationMethods', $this->getAuthenticationMethods()); $writer->writeCollectionOfObjectValues('credentialUserRegistrationDetails', $this->getCredentialUserRegistrationDetails()); @@ -179,9 +198,18 @@ public function serialize(SerializationWriter $writer): void { $writer->writeCollectionOfObjectValues('monthlyPrintUsageSummariesByPrinter', $this->getMonthlyPrintUsageSummariesByPrinter()); $writer->writeCollectionOfObjectValues('monthlyPrintUsageSummariesByUser', $this->getMonthlyPrintUsageSummariesByUser()); $writer->writeObjectValue('security', $this->getSecurity()); + $writer->writeCollectionOfObjectValues('servicePrincipalSignInActivities', $this->getServicePrincipalSignInActivities()); $writer->writeCollectionOfObjectValues('userCredentialUsageDetails', $this->getUserCredentialUsageDetails()); } + /** + * Sets the appCredentialSignInActivities property value. Represents a collection of sign-in activities of application credentials. + * @param array|null $value Value to set for the appCredentialSignInActivities property. + */ + public function setAppCredentialSignInActivities(?array $value): void { + $this->getBackingStore()->set('appCredentialSignInActivities', $value); + } + /** * Sets the applicationSignInDetailedSummary property value. Represents a detailed summary of an application sign-in. * @param array|null $value Value to set for the applicationSignInDetailedSummary property. @@ -286,6 +314,14 @@ public function setSecurity(?SecurityReportsRoot $value): void { $this->getBackingStore()->set('security', $value); } + /** + * Sets the servicePrincipalSignInActivities property value. Represents a collection of sign-in activities of service principals. + * @param array|null $value Value to set for the servicePrincipalSignInActivities property. + */ + public function setServicePrincipalSignInActivities(?array $value): void { + $this->getBackingStore()->set('servicePrincipalSignInActivities', $value); + } + /** * Sets the userCredentialUsageDetails property value. Represents the self-service password reset (SSPR) usage for a given tenant. * @param array|null $value Value to set for the userCredentialUsageDetails property. diff --git a/src/Generated/Models/ReportSuspiciousActivitySettings.php b/src/Generated/Models/ReportSuspiciousActivitySettings.php new file mode 100644 index 00000000000..5458e0de7ce --- /dev/null +++ b/src/Generated/Models/ReportSuspiciousActivitySettings.php @@ -0,0 +1,159 @@ +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 ReportSuspiciousActivitySettings + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): ReportSuspiciousActivitySettings { + return new ReportSuspiciousActivitySettings(); + } + + /** + * 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 { + return $this->getBackingStore()->get('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 [ + 'includeTarget' => fn(ParseNode $n) => $o->setIncludeTarget($n->getObjectValue([IncludeTarget::class, 'createFromDiscriminatorValue'])), + '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()), + 'state' => fn(ParseNode $n) => $o->setState($n->getEnumValue(AdvancedConfigState::class)), + 'voiceReportingCode' => fn(ParseNode $n) => $o->setVoiceReportingCode($n->getIntegerValue()), + ]; + } + + /** + * Gets the includeTarget property value. The includeTarget property + * @return IncludeTarget|null + */ + public function getIncludeTarget(): ?IncludeTarget { + return $this->getBackingStore()->get('includeTarget'); + } + + /** + * Gets the @odata.type property value. The OdataType property + * @return string|null + */ + public function getOdataType(): ?string { + return $this->getBackingStore()->get('odataType'); + } + + /** + * Gets the state property value. The state property + * @return AdvancedConfigState|null + */ + public function getState(): ?AdvancedConfigState { + return $this->getBackingStore()->get('state'); + } + + /** + * Gets the voiceReportingCode property value. Specifies the number the user will enter on their phone to report the MFA prompt as suspicious. + * @return int|null + */ + public function getVoiceReportingCode(): ?int { + return $this->getBackingStore()->get('voiceReportingCode'); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + $writer->writeObjectValue('includeTarget', $this->getIncludeTarget()); + $writer->writeStringValue('@odata.type', $this->getOdataType()); + $writer->writeEnumValue('state', $this->getState()); + $writer->writeIntegerValue('voiceReportingCode', $this->getVoiceReportingCode()); + $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 includeTarget property value. The includeTarget property + * @param IncludeTarget|null $value Value to set for the includeTarget property. + */ + public function setIncludeTarget(?IncludeTarget $value): void { + $this->getBackingStore()->set('includeTarget', $value); + } + + /** + * Sets the @odata.type property value. The OdataType property + * @param string|null $value Value to set for the OdataType property. + */ + public function setOdataType(?string $value): void { + $this->getBackingStore()->set('odataType', $value); + } + + /** + * Sets the state property value. The state property + * @param AdvancedConfigState|null $value Value to set for the state property. + */ + public function setState(?AdvancedConfigState $value): void { + $this->getBackingStore()->set('state', $value); + } + + /** + * Sets the voiceReportingCode property value. Specifies the number the user will enter on their phone to report the MFA prompt as suspicious. + * @param int|null $value Value to set for the voiceReportingCode property. + */ + public function setVoiceReportingCode(?int $value): void { + $this->getBackingStore()->set('voiceReportingCode', $value); + } + +} diff --git a/src/Generated/Models/RequiredResourceAccess.php b/src/Generated/Models/RequiredResourceAccess.php index bc2d809f836..dd5bd206d5b 100644 --- a/src/Generated/Models/RequiredResourceAccess.php +++ b/src/Generated/Models/RequiredResourceAccess.php @@ -18,7 +18,7 @@ class RequiredResourceAccess implements AdditionalDataHolder, BackedModel, Parsa private BackingStore $backingStore; /** - * Instantiates a new requiredResourceAccess and sets the default values. + * Instantiates a new RequiredResourceAccess and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/ResourceAccess.php b/src/Generated/Models/ResourceAccess.php index 066ba183f7a..c67c85ef7c2 100644 --- a/src/Generated/Models/ResourceAccess.php +++ b/src/Generated/Models/ResourceAccess.php @@ -18,7 +18,7 @@ class ResourceAccess implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new resourceAccess and sets the default values. + * Instantiates a new ResourceAccess and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/ResourceOperation.php b/src/Generated/Models/ResourceOperation.php index 42fc6386de1..227a476a843 100644 --- a/src/Generated/Models/ResourceOperation.php +++ b/src/Generated/Models/ResourceOperation.php @@ -6,13 +6,10 @@ use Microsoft\Kiota\Abstractions\Serialization\ParseNode; use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter; -/** - * Describes the resourceOperation resource (entity) of the Microsoft Graph API (REST), which supports Intune workflows related to role-based access control (RBAC). -*/ class ResourceOperation extends Entity implements Parsable { /** - * Instantiates a new resourceOperation and sets the default values. + * Instantiates a new ResourceOperation and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/RestrictedAppsViolation.php b/src/Generated/Models/RestrictedAppsViolation.php index e3313c23a40..41ee50f7723 100644 --- a/src/Generated/Models/RestrictedAppsViolation.php +++ b/src/Generated/Models/RestrictedAppsViolation.php @@ -6,13 +6,10 @@ use Microsoft\Kiota\Abstractions\Serialization\ParseNode; use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter; -/** - * Violation of restricted apps configuration profile per device per user -*/ class RestrictedAppsViolation extends Entity implements Parsable { /** - * Instantiates a new restrictedAppsViolation and sets the default values. + * Instantiates a new RestrictedAppsViolation and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/RiskyUser.php b/src/Generated/Models/RiskyUser.php index f749c83f5d9..340b2e725a8 100644 --- a/src/Generated/Models/RiskyUser.php +++ b/src/Generated/Models/RiskyUser.php @@ -10,7 +10,7 @@ class RiskyUser extends Entity implements Parsable { /** - * Instantiates a new RiskyUser and sets the default values. + * Instantiates a new riskyUser and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/RoleAssignment.php b/src/Generated/Models/RoleAssignment.php index 214ac3dd8cc..b5ab468b0e0 100644 --- a/src/Generated/Models/RoleAssignment.php +++ b/src/Generated/Models/RoleAssignment.php @@ -6,13 +6,10 @@ use Microsoft\Kiota\Abstractions\Serialization\ParseNode; use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter; -/** - * The Role Assignment resource. Role assignments tie together a role definition with members and scopes. There can be one or more role assignments per role. This applies to custom and built-in roles. -*/ class RoleAssignment extends Entity implements Parsable { /** - * Instantiates a new roleAssignment and sets the default values. + * Instantiates a new RoleAssignment and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/SalesCreditMemo.php b/src/Generated/Models/SalesCreditMemo.php index 0fa0628023d..b3db03b022e 100644 --- a/src/Generated/Models/SalesCreditMemo.php +++ b/src/Generated/Models/SalesCreditMemo.php @@ -20,7 +20,7 @@ class SalesCreditMemo implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new salesCreditMemo and sets the default values. + * Instantiates a new SalesCreditMemo and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/SalesInvoice.php b/src/Generated/Models/SalesInvoice.php index 67af17637d8..0a769b0426a 100644 --- a/src/Generated/Models/SalesInvoice.php +++ b/src/Generated/Models/SalesInvoice.php @@ -20,7 +20,7 @@ class SalesInvoice implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new salesInvoice and sets the default values. + * Instantiates a new SalesInvoice and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/SalesOrder.php b/src/Generated/Models/SalesOrder.php index fd6f696db78..7a2f9f1b1b5 100644 --- a/src/Generated/Models/SalesOrder.php +++ b/src/Generated/Models/SalesOrder.php @@ -20,7 +20,7 @@ class SalesOrder implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new salesOrder and sets the default values. + * Instantiates a new SalesOrder and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/SalesOrderLine.php b/src/Generated/Models/SalesOrderLine.php index f13bd7125ef..edc9d162d0b 100644 --- a/src/Generated/Models/SalesOrderLine.php +++ b/src/Generated/Models/SalesOrderLine.php @@ -10,7 +10,7 @@ class SalesOrderLine extends Entity implements Parsable { /** - * Instantiates a new SalesOrderLine and sets the default values. + * Instantiates a new salesOrderLine and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/SalesQuote.php b/src/Generated/Models/SalesQuote.php index a1cefbf1fe6..812507bebee 100644 --- a/src/Generated/Models/SalesQuote.php +++ b/src/Generated/Models/SalesQuote.php @@ -20,7 +20,7 @@ class SalesQuote implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new salesQuote and sets the default values. + * Instantiates a new SalesQuote and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/SalesQuoteLine.php b/src/Generated/Models/SalesQuoteLine.php index 701ea80c936..48c6b9abc75 100644 --- a/src/Generated/Models/SalesQuoteLine.php +++ b/src/Generated/Models/SalesQuoteLine.php @@ -9,7 +9,7 @@ class SalesQuoteLine extends Entity implements Parsable { /** - * Instantiates a new salesQuoteLine and sets the default values. + * Instantiates a new SalesQuoteLine and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/ScheduleItem.php b/src/Generated/Models/ScheduleItem.php index ad4b90b2e03..3f08210aa5e 100644 --- a/src/Generated/Models/ScheduleItem.php +++ b/src/Generated/Models/ScheduleItem.php @@ -18,7 +18,7 @@ class ScheduleItem implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new scheduleItem and sets the default values. + * Instantiates a new ScheduleItem and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/SearchAggregation.php b/src/Generated/Models/SearchAggregation.php index 53fdbc428f6..bf61e1999b8 100644 --- a/src/Generated/Models/SearchAggregation.php +++ b/src/Generated/Models/SearchAggregation.php @@ -18,7 +18,7 @@ class SearchAggregation implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new searchAggregation and sets the default values. + * Instantiates a new SearchAggregation and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/SearchHit.php b/src/Generated/Models/SearchHit.php index f86db871a62..2a18435e990 100644 --- a/src/Generated/Models/SearchHit.php +++ b/src/Generated/Models/SearchHit.php @@ -18,7 +18,7 @@ class SearchHit implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new searchHit and sets the default values. + * Instantiates a new SearchHit and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/SearchHitsContainer.php b/src/Generated/Models/SearchHitsContainer.php index d74dad4608c..017c29d0f4f 100644 --- a/src/Generated/Models/SearchHitsContainer.php +++ b/src/Generated/Models/SearchHitsContainer.php @@ -18,7 +18,7 @@ class SearchHitsContainer implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new searchHitsContainer and sets the default values. + * Instantiates a new SearchHitsContainer and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/SearchQuery.php b/src/Generated/Models/SearchQuery.php index 3493fce9569..42e40cb2a9c 100644 --- a/src/Generated/Models/SearchQuery.php +++ b/src/Generated/Models/SearchQuery.php @@ -18,7 +18,7 @@ class SearchQuery implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new searchQuery and sets the default values. + * Instantiates a new SearchQuery and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/SearchRequest.php b/src/Generated/Models/SearchRequest.php index 23a5a8af549..8c72104032a 100644 --- a/src/Generated/Models/SearchRequest.php +++ b/src/Generated/Models/SearchRequest.php @@ -18,7 +18,7 @@ class SearchRequest implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new searchRequest and sets the default values. + * Instantiates a new SearchRequest and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/SearchResponse.php b/src/Generated/Models/SearchResponse.php index 400188d2da7..bbaff2107da 100644 --- a/src/Generated/Models/SearchResponse.php +++ b/src/Generated/Models/SearchResponse.php @@ -18,7 +18,7 @@ class SearchResponse implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new searchResponse and sets the default values. + * Instantiates a new SearchResponse and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/Security/ClassificationResult.php b/src/Generated/Models/Security/ClassificationResult.php index b807dbd8c25..1de2bb1a8bd 100644 --- a/src/Generated/Models/Security/ClassificationResult.php +++ b/src/Generated/Models/Security/ClassificationResult.php @@ -18,7 +18,7 @@ class ClassificationResult implements AdditionalDataHolder, BackedModel, Parsabl private BackingStore $backingStore; /** - * Instantiates a new classificationResult and sets the default values. + * Instantiates a new ClassificationResult and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/Security/ContentInfo.php b/src/Generated/Models/Security/ContentInfo.php index f5261f02bba..c4f937a87c0 100644 --- a/src/Generated/Models/Security/ContentInfo.php +++ b/src/Generated/Models/Security/ContentInfo.php @@ -18,7 +18,7 @@ class ContentInfo implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new contentInfo and sets the default values. + * Instantiates a new ContentInfo and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/Security/CvssSummary.php b/src/Generated/Models/Security/CvssSummary.php index 5ac27ff90d6..04627832a2d 100644 --- a/src/Generated/Models/Security/CvssSummary.php +++ b/src/Generated/Models/Security/CvssSummary.php @@ -18,7 +18,7 @@ class CvssSummary implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new cvssSummary and sets the default values. + * Instantiates a new CvssSummary and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/Security/EdiscoveryNoncustodialDataSource.php b/src/Generated/Models/Security/EdiscoveryNoncustodialDataSource.php index c11e52326b3..392774ba1cc 100644 --- a/src/Generated/Models/Security/EdiscoveryNoncustodialDataSource.php +++ b/src/Generated/Models/Security/EdiscoveryNoncustodialDataSource.php @@ -9,7 +9,7 @@ class EdiscoveryNoncustodialDataSource extends DataSourceContainer implements Parsable { /** - * Instantiates a new EdiscoveryNoncustodialDataSource and sets the default values. + * Instantiates a new ediscoveryNoncustodialDataSource and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/Security/FormattedContent.php b/src/Generated/Models/Security/FormattedContent.php index 40d1a1572ba..afd7e86eecd 100644 --- a/src/Generated/Models/Security/FormattedContent.php +++ b/src/Generated/Models/Security/FormattedContent.php @@ -18,7 +18,7 @@ class FormattedContent implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new formattedContent and sets the default values. + * Instantiates a new FormattedContent and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/Security/HuntingRowResult.php b/src/Generated/Models/Security/HuntingRowResult.php index cec3802f05a..08ea3ebbe37 100644 --- a/src/Generated/Models/Security/HuntingRowResult.php +++ b/src/Generated/Models/Security/HuntingRowResult.php @@ -18,7 +18,7 @@ class HuntingRowResult implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new huntingRowResult and sets the default values. + * Instantiates a new HuntingRowResult and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/Security/InformationProtectionAction.php b/src/Generated/Models/Security/InformationProtectionAction.php index cae66fec632..5d23b5a7d97 100644 --- a/src/Generated/Models/Security/InformationProtectionAction.php +++ b/src/Generated/Models/Security/InformationProtectionAction.php @@ -18,7 +18,7 @@ class InformationProtectionAction implements AdditionalDataHolder, BackedModel, private BackingStore $backingStore; /** - * Instantiates a new informationProtectionAction and sets the default values. + * Instantiates a new InformationProtectionAction and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/Security/KeyValuePair.php b/src/Generated/Models/Security/KeyValuePair.php index 3efee577a17..2a0b3b5fb50 100644 --- a/src/Generated/Models/Security/KeyValuePair.php +++ b/src/Generated/Models/Security/KeyValuePair.php @@ -18,7 +18,7 @@ class KeyValuePair implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new keyValuePair and sets the default values. + * Instantiates a new KeyValuePair and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/Security/LabelingOptions.php b/src/Generated/Models/Security/LabelingOptions.php index 90aeb44af33..41e54cf67b8 100644 --- a/src/Generated/Models/Security/LabelingOptions.php +++ b/src/Generated/Models/Security/LabelingOptions.php @@ -18,7 +18,7 @@ class LabelingOptions implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new labelingOptions and sets the default values. + * Instantiates a new LabelingOptions and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/Security/LoggedOnUser.php b/src/Generated/Models/Security/LoggedOnUser.php index c8b494cb547..187898a6feb 100644 --- a/src/Generated/Models/Security/LoggedOnUser.php +++ b/src/Generated/Models/Security/LoggedOnUser.php @@ -18,7 +18,7 @@ class LoggedOnUser implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new loggedOnUser and sets the default values. + * Instantiates a new LoggedOnUser and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/Security/SinglePropertySchema.php b/src/Generated/Models/Security/SinglePropertySchema.php index d8d9b50240e..75b0bb4238d 100644 --- a/src/Generated/Models/Security/SinglePropertySchema.php +++ b/src/Generated/Models/Security/SinglePropertySchema.php @@ -18,7 +18,7 @@ class SinglePropertySchema implements AdditionalDataHolder, BackedModel, Parsabl private BackingStore $backingStore; /** - * Instantiates a new singlePropertySchema and sets the default values. + * Instantiates a new SinglePropertySchema and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/SecurityAction.php b/src/Generated/Models/SecurityAction.php index 6a26a62eb4d..4226906e1d4 100644 --- a/src/Generated/Models/SecurityAction.php +++ b/src/Generated/Models/SecurityAction.php @@ -10,7 +10,7 @@ class SecurityAction extends Entity implements Parsable { /** - * Instantiates a new securityAction and sets the default values. + * Instantiates a new SecurityAction and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/SensitiveContentEvidence.php b/src/Generated/Models/SensitiveContentEvidence.php index ea53291275c..fbd36cae6bf 100644 --- a/src/Generated/Models/SensitiveContentEvidence.php +++ b/src/Generated/Models/SensitiveContentEvidence.php @@ -18,7 +18,7 @@ class SensitiveContentEvidence implements AdditionalDataHolder, BackedModel, Par private BackingStore $backingStore; /** - * Instantiates a new sensitiveContentEvidence and sets the default values. + * Instantiates a new SensitiveContentEvidence and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/SensitivityLabelAssignment.php b/src/Generated/Models/SensitivityLabelAssignment.php index 62501e55b48..a62401e7d37 100644 --- a/src/Generated/Models/SensitivityLabelAssignment.php +++ b/src/Generated/Models/SensitivityLabelAssignment.php @@ -18,7 +18,7 @@ class SensitivityLabelAssignment implements AdditionalDataHolder, BackedModel, P private BackingStore $backingStore; /** - * Instantiates a new sensitivityLabelAssignment and sets the default values. + * Instantiates a new SensitivityLabelAssignment and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/ServiceHealthIssuePost.php b/src/Generated/Models/ServiceHealthIssuePost.php index a50b4a62315..eeb68cc21ae 100644 --- a/src/Generated/Models/ServiceHealthIssuePost.php +++ b/src/Generated/Models/ServiceHealthIssuePost.php @@ -19,7 +19,7 @@ class ServiceHealthIssuePost implements AdditionalDataHolder, BackedModel, Parsa private BackingStore $backingStore; /** - * Instantiates a new serviceHealthIssuePost and sets the default values. + * Instantiates a new ServiceHealthIssuePost and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/ServiceInformation.php b/src/Generated/Models/ServiceInformation.php index 939d0c3ad27..e95ea8a1d47 100644 --- a/src/Generated/Models/ServiceInformation.php +++ b/src/Generated/Models/ServiceInformation.php @@ -18,7 +18,7 @@ class ServiceInformation implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new serviceInformation and sets the default values. + * Instantiates a new ServiceInformation and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/ServicePlanInfo.php b/src/Generated/Models/ServicePlanInfo.php index 620acd1c53a..d889d499779 100644 --- a/src/Generated/Models/ServicePlanInfo.php +++ b/src/Generated/Models/ServicePlanInfo.php @@ -18,7 +18,7 @@ class ServicePlanInfo implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new servicePlanInfo and sets the default values. + * Instantiates a new ServicePlanInfo and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/ServicePrincipalSignInActivity.php b/src/Generated/Models/ServicePrincipalSignInActivity.php new file mode 100644 index 00000000000..6afcf96f62c --- /dev/null +++ b/src/Generated/Models/ServicePrincipalSignInActivity.php @@ -0,0 +1,153 @@ +getBackingStore()->get('appId'); + } + + /** + * Gets the applicationAuthenticationClientSignInActivity property value. The sign-in activity of the application in a app-only authentication flow (app-to-app tokens) where the application acts like a client. + * @return SignInActivity|null + */ + public function getApplicationAuthenticationClientSignInActivity(): ?SignInActivity { + return $this->getBackingStore()->get('applicationAuthenticationClientSignInActivity'); + } + + /** + * Gets the applicationAuthenticationResourceSignInActivity property value. The sign-in activity of the application in a app-only authentication flow (app-to-app tokens) where the application acts like a resource. + * @return SignInActivity|null + */ + public function getApplicationAuthenticationResourceSignInActivity(): ?SignInActivity { + return $this->getBackingStore()->get('applicationAuthenticationResourceSignInActivity'); + } + + /** + * Gets the delegatedClientSignInActivity property value. The sign-in activity of the application in a delegated flow (user sign-in) where the application acts like a client. + * @return SignInActivity|null + */ + public function getDelegatedClientSignInActivity(): ?SignInActivity { + return $this->getBackingStore()->get('delegatedClientSignInActivity'); + } + + /** + * Gets the delegatedResourceSignInActivity property value. The sign-in activity of the application in a delegated flow (user sign-in) where the application acts like a resource. + * @return SignInActivity|null + */ + public function getDelegatedResourceSignInActivity(): ?SignInActivity { + return $this->getBackingStore()->get('delegatedResourceSignInActivity'); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'appId' => fn(ParseNode $n) => $o->setAppId($n->getStringValue()), + 'applicationAuthenticationClientSignInActivity' => fn(ParseNode $n) => $o->setApplicationAuthenticationClientSignInActivity($n->getObjectValue([SignInActivity::class, 'createFromDiscriminatorValue'])), + 'applicationAuthenticationResourceSignInActivity' => fn(ParseNode $n) => $o->setApplicationAuthenticationResourceSignInActivity($n->getObjectValue([SignInActivity::class, 'createFromDiscriminatorValue'])), + 'delegatedClientSignInActivity' => fn(ParseNode $n) => $o->setDelegatedClientSignInActivity($n->getObjectValue([SignInActivity::class, 'createFromDiscriminatorValue'])), + 'delegatedResourceSignInActivity' => fn(ParseNode $n) => $o->setDelegatedResourceSignInActivity($n->getObjectValue([SignInActivity::class, 'createFromDiscriminatorValue'])), + 'lastSignInActivity' => fn(ParseNode $n) => $o->setLastSignInActivity($n->getObjectValue([SignInActivity::class, 'createFromDiscriminatorValue'])), + ]); + } + + /** + * Gets the lastSignInActivity property value. The most recent sign-in activity of the application across delegated or app-only flows where the application is used either as a client or resource. + * @return SignInActivity|null + */ + public function getLastSignInActivity(): ?SignInActivity { + return $this->getBackingStore()->get('lastSignInActivity'); + } + + /** + * 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('appId', $this->getAppId()); + $writer->writeObjectValue('applicationAuthenticationClientSignInActivity', $this->getApplicationAuthenticationClientSignInActivity()); + $writer->writeObjectValue('applicationAuthenticationResourceSignInActivity', $this->getApplicationAuthenticationResourceSignInActivity()); + $writer->writeObjectValue('delegatedClientSignInActivity', $this->getDelegatedClientSignInActivity()); + $writer->writeObjectValue('delegatedResourceSignInActivity', $this->getDelegatedResourceSignInActivity()); + $writer->writeObjectValue('lastSignInActivity', $this->getLastSignInActivity()); + } + + /** + * Sets the appId property value. The application ID of the resource. + * @param string|null $value Value to set for the appId property. + */ + public function setAppId(?string $value): void { + $this->getBackingStore()->set('appId', $value); + } + + /** + * Sets the applicationAuthenticationClientSignInActivity property value. The sign-in activity of the application in a app-only authentication flow (app-to-app tokens) where the application acts like a client. + * @param SignInActivity|null $value Value to set for the applicationAuthenticationClientSignInActivity property. + */ + public function setApplicationAuthenticationClientSignInActivity(?SignInActivity $value): void { + $this->getBackingStore()->set('applicationAuthenticationClientSignInActivity', $value); + } + + /** + * Sets the applicationAuthenticationResourceSignInActivity property value. The sign-in activity of the application in a app-only authentication flow (app-to-app tokens) where the application acts like a resource. + * @param SignInActivity|null $value Value to set for the applicationAuthenticationResourceSignInActivity property. + */ + public function setApplicationAuthenticationResourceSignInActivity(?SignInActivity $value): void { + $this->getBackingStore()->set('applicationAuthenticationResourceSignInActivity', $value); + } + + /** + * Sets the delegatedClientSignInActivity property value. The sign-in activity of the application in a delegated flow (user sign-in) where the application acts like a client. + * @param SignInActivity|null $value Value to set for the delegatedClientSignInActivity property. + */ + public function setDelegatedClientSignInActivity(?SignInActivity $value): void { + $this->getBackingStore()->set('delegatedClientSignInActivity', $value); + } + + /** + * Sets the delegatedResourceSignInActivity property value. The sign-in activity of the application in a delegated flow (user sign-in) where the application acts like a resource. + * @param SignInActivity|null $value Value to set for the delegatedResourceSignInActivity property. + */ + public function setDelegatedResourceSignInActivity(?SignInActivity $value): void { + $this->getBackingStore()->set('delegatedResourceSignInActivity', $value); + } + + /** + * Sets the lastSignInActivity property value. The most recent sign-in activity of the application across delegated or app-only flows where the application is used either as a client or resource. + * @param SignInActivity|null $value Value to set for the lastSignInActivity property. + */ + public function setLastSignInActivity(?SignInActivity $value): void { + $this->getBackingStore()->set('lastSignInActivity', $value); + } + +} diff --git a/src/Generated/Models/ServicePrincipalSignInActivityCollectionResponse.php b/src/Generated/Models/ServicePrincipalSignInActivityCollectionResponse.php new file mode 100644 index 00000000000..79ccc7778c3 --- /dev/null +++ b/src/Generated/Models/ServicePrincipalSignInActivityCollectionResponse.php @@ -0,0 +1,63 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ServicePrincipalSignInActivity::class, 'createFromDiscriminatorValue'])), + ]); + } + + /** + * Gets the value property value. The value property + * @return array|null + */ + public function getValue(): ?array { + return $this->getBackingStore()->get('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/SettingTemplateValue.php b/src/Generated/Models/SettingTemplateValue.php index c760e6675fc..199b6a7a1c4 100644 --- a/src/Generated/Models/SettingTemplateValue.php +++ b/src/Generated/Models/SettingTemplateValue.php @@ -18,7 +18,7 @@ class SettingTemplateValue implements AdditionalDataHolder, BackedModel, Parsabl private BackingStore $backingStore; /** - * Instantiates a new settingTemplateValue and sets the default values. + * Instantiates a new SettingTemplateValue and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/SettingValue.php b/src/Generated/Models/SettingValue.php index 27dc94123d5..d518fc04e7b 100644 --- a/src/Generated/Models/SettingValue.php +++ b/src/Generated/Models/SettingValue.php @@ -18,7 +18,7 @@ class SettingValue implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new settingValue and sets the default values. + * Instantiates a new SettingValue and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/SortProperty.php b/src/Generated/Models/SortProperty.php index 0ea09400763..d084750b52a 100644 --- a/src/Generated/Models/SortProperty.php +++ b/src/Generated/Models/SortProperty.php @@ -18,7 +18,7 @@ class SortProperty implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new sortProperty and sets the default values. + * Instantiates a new SortProperty and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/StringKeyObjectValuePair.php b/src/Generated/Models/StringKeyObjectValuePair.php index ea41998964b..4a81afd41a9 100644 --- a/src/Generated/Models/StringKeyObjectValuePair.php +++ b/src/Generated/Models/StringKeyObjectValuePair.php @@ -18,7 +18,7 @@ class StringKeyObjectValuePair implements AdditionalDataHolder, BackedModel, Par private BackingStore $backingStore; /** - * Instantiates a new stringKeyObjectValuePair and sets the default values. + * Instantiates a new StringKeyObjectValuePair and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/SubscribedSku.php b/src/Generated/Models/SubscribedSku.php index 8d0adfa1658..1f3094089f5 100644 --- a/src/Generated/Models/SubscribedSku.php +++ b/src/Generated/Models/SubscribedSku.php @@ -9,7 +9,7 @@ class SubscribedSku extends Entity implements Parsable { /** - * Instantiates a new SubscribedSku and sets the default values. + * Instantiates a new subscribedSku and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/SymantecCodeSigningCertificate.php b/src/Generated/Models/SymantecCodeSigningCertificate.php index 9a47306bef3..6029aff6c47 100644 --- a/src/Generated/Models/SymantecCodeSigningCertificate.php +++ b/src/Generated/Models/SymantecCodeSigningCertificate.php @@ -11,7 +11,7 @@ class SymantecCodeSigningCertificate extends Entity implements Parsable { /** - * Instantiates a new SymantecCodeSigningCertificate and sets the default values. + * Instantiates a new symantecCodeSigningCertificate and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/SynchronizationJobSubject.php b/src/Generated/Models/SynchronizationJobSubject.php index 906af04d4b7..6f428796516 100644 --- a/src/Generated/Models/SynchronizationJobSubject.php +++ b/src/Generated/Models/SynchronizationJobSubject.php @@ -18,7 +18,7 @@ class SynchronizationJobSubject implements AdditionalDataHolder, BackedModel, Pa private BackingStore $backingStore; /** - * Instantiates a new synchronizationJobSubject and sets the default values. + * Instantiates a new SynchronizationJobSubject and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/TaxArea.php b/src/Generated/Models/TaxArea.php index a05f768d831..55ff8459aa7 100644 --- a/src/Generated/Models/TaxArea.php +++ b/src/Generated/Models/TaxArea.php @@ -19,7 +19,7 @@ class TaxArea implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new taxArea and sets the default values. + * Instantiates a new TaxArea and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/TeamworkConnection.php b/src/Generated/Models/TeamworkConnection.php index 6bdf25fae7f..83f63e1eaa5 100644 --- a/src/Generated/Models/TeamworkConnection.php +++ b/src/Generated/Models/TeamworkConnection.php @@ -19,7 +19,7 @@ class TeamworkConnection implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new teamworkConnection and sets the default values. + * Instantiates a new TeamworkConnection and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/TeamworkHardwareDetail.php b/src/Generated/Models/TeamworkHardwareDetail.php index 0f0d7ec1b77..78c7bdffe71 100644 --- a/src/Generated/Models/TeamworkHardwareDetail.php +++ b/src/Generated/Models/TeamworkHardwareDetail.php @@ -18,7 +18,7 @@ class TeamworkHardwareDetail implements AdditionalDataHolder, BackedModel, Parsa private BackingStore $backingStore; /** - * Instantiates a new teamworkHardwareDetail and sets the default values. + * Instantiates a new TeamworkHardwareDetail and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/TelecomExpenseManagementPartner.php b/src/Generated/Models/TelecomExpenseManagementPartner.php index d9c5041913c..68aa54dfe32 100644 --- a/src/Generated/Models/TelecomExpenseManagementPartner.php +++ b/src/Generated/Models/TelecomExpenseManagementPartner.php @@ -7,13 +7,10 @@ use Microsoft\Kiota\Abstractions\Serialization\ParseNode; use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter; -/** - * telecomExpenseManagementPartner resources represent the metadata and status of a given TEM service. Once your organization has onboarded with a partner, the partner can be enabled or disabled to switch TEM functionality on or off. -*/ class TelecomExpenseManagementPartner extends Entity implements Parsable { /** - * Instantiates a new telecomExpenseManagementPartner and sets the default values. + * Instantiates a new TelecomExpenseManagementPartner and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/TeleconferenceDeviceMediaQuality.php b/src/Generated/Models/TeleconferenceDeviceMediaQuality.php index 2ea3252862b..002d98d3e5f 100644 --- a/src/Generated/Models/TeleconferenceDeviceMediaQuality.php +++ b/src/Generated/Models/TeleconferenceDeviceMediaQuality.php @@ -19,7 +19,7 @@ class TeleconferenceDeviceMediaQuality implements AdditionalDataHolder, BackedMo private BackingStore $backingStore; /** - * Instantiates a new teleconferenceDeviceMediaQuality and sets the default values. + * Instantiates a new TeleconferenceDeviceMediaQuality and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/TeleconferenceDeviceQuality.php b/src/Generated/Models/TeleconferenceDeviceQuality.php index 30adab596b2..14644030dd9 100644 --- a/src/Generated/Models/TeleconferenceDeviceQuality.php +++ b/src/Generated/Models/TeleconferenceDeviceQuality.php @@ -18,7 +18,7 @@ class TeleconferenceDeviceQuality implements AdditionalDataHolder, BackedModel, private BackingStore $backingStore; /** - * Instantiates a new teleconferenceDeviceQuality and sets the default values. + * Instantiates a new TeleconferenceDeviceQuality and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/TenantAttachRBAC.php b/src/Generated/Models/TenantAttachRBAC.php index 944a36d6b36..ab013ce6428 100644 --- a/src/Generated/Models/TenantAttachRBAC.php +++ b/src/Generated/Models/TenantAttachRBAC.php @@ -9,7 +9,7 @@ class TenantAttachRBAC extends Entity implements Parsable { /** - * Instantiates a new tenantAttachRBAC and sets the default values. + * Instantiates a new TenantAttachRBAC and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/TenantReference.php b/src/Generated/Models/TenantReference.php index 373c59a9418..4dbc0f94fa1 100644 --- a/src/Generated/Models/TenantReference.php +++ b/src/Generated/Models/TenantReference.php @@ -18,7 +18,7 @@ class TenantReference implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new tenantReference and sets the default values. + * Instantiates a new TenantReference and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/TimeZoneInformation.php b/src/Generated/Models/TimeZoneInformation.php index 0a306536159..a5cad540fa6 100644 --- a/src/Generated/Models/TimeZoneInformation.php +++ b/src/Generated/Models/TimeZoneInformation.php @@ -18,7 +18,7 @@ class TimeZoneInformation implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new timeZoneInformation and sets the default values. + * Instantiates a new TimeZoneInformation and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/TranslationLanguageOverride.php b/src/Generated/Models/TranslationLanguageOverride.php index 2ce04856200..ffbbf4f43c6 100644 --- a/src/Generated/Models/TranslationLanguageOverride.php +++ b/src/Generated/Models/TranslationLanguageOverride.php @@ -18,7 +18,7 @@ class TranslationLanguageOverride implements AdditionalDataHolder, BackedModel, private BackingStore $backingStore; /** - * Instantiates a new translationLanguageOverride and sets the default values. + * Instantiates a new TranslationLanguageOverride and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/UnifiedRbacResourceAction.php b/src/Generated/Models/UnifiedRbacResourceAction.php index ba261d82d96..3bf43824137 100644 --- a/src/Generated/Models/UnifiedRbacResourceAction.php +++ b/src/Generated/Models/UnifiedRbacResourceAction.php @@ -68,6 +68,7 @@ public function getFieldDeserializers(): array { 'authenticationContextId' => fn(ParseNode $n) => $o->setAuthenticationContextId($n->getStringValue()), 'description' => fn(ParseNode $n) => $o->setDescription($n->getStringValue()), 'isAuthenticationContextSettable' => fn(ParseNode $n) => $o->setIsAuthenticationContextSettable($n->getBooleanValue()), + 'isPrivileged' => fn(ParseNode $n) => $o->setIsPrivileged($n->getBooleanValue()), 'name' => fn(ParseNode $n) => $o->setName($n->getStringValue()), 'resourceScope' => fn(ParseNode $n) => $o->setResourceScope($n->getObjectValue([UnifiedRbacResourceScope::class, 'createFromDiscriminatorValue'])), 'resourceScopeId' => fn(ParseNode $n) => $o->setResourceScopeId($n->getStringValue()), @@ -82,6 +83,14 @@ public function getIsAuthenticationContextSettable(): ?bool { return $this->getBackingStore()->get('isAuthenticationContextSettable'); } + /** + * Gets the isPrivileged property value. The isPrivileged property + * @return bool|null + */ + public function getIsPrivileged(): ?bool { + return $this->getBackingStore()->get('isPrivileged'); + } + /** * Gets the name property value. Name for the action within the resource namespace, such as microsoft.insights/programs/update. Can include slash character (/). Case insensitive. Required. Supports $filter (eq). * @return string|null @@ -117,6 +126,7 @@ public function serialize(SerializationWriter $writer): void { $writer->writeStringValue('authenticationContextId', $this->getAuthenticationContextId()); $writer->writeStringValue('description', $this->getDescription()); $writer->writeBooleanValue('isAuthenticationContextSettable', $this->getIsAuthenticationContextSettable()); + $writer->writeBooleanValue('isPrivileged', $this->getIsPrivileged()); $writer->writeStringValue('name', $this->getName()); $writer->writeObjectValue('resourceScope', $this->getResourceScope()); $writer->writeStringValue('resourceScopeId', $this->getResourceScopeId()); @@ -162,6 +172,14 @@ public function setIsAuthenticationContextSettable(?bool $value): void { $this->getBackingStore()->set('isAuthenticationContextSettable', $value); } + /** + * Sets the isPrivileged property value. The isPrivileged property + * @param bool|null $value Value to set for the isPrivileged property. + */ + public function setIsPrivileged(?bool $value): void { + $this->getBackingStore()->set('isPrivileged', $value); + } + /** * Sets the name property value. Name for the action within the resource namespace, such as microsoft.insights/programs/update. Can include slash character (/). Case insensitive. Required. Supports $filter (eq). * @param string|null $value Value to set for the name property. diff --git a/src/Generated/Models/UnifiedRole.php b/src/Generated/Models/UnifiedRole.php index 4194ff34f6a..fe1f9dc0146 100644 --- a/src/Generated/Models/UnifiedRole.php +++ b/src/Generated/Models/UnifiedRole.php @@ -18,7 +18,7 @@ class UnifiedRole implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new unifiedRole and sets the default values. + * Instantiates a new UnifiedRole and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/UnifiedRoleDefinition.php b/src/Generated/Models/UnifiedRoleDefinition.php index 3442899284e..db905785842 100644 --- a/src/Generated/Models/UnifiedRoleDefinition.php +++ b/src/Generated/Models/UnifiedRoleDefinition.php @@ -61,6 +61,7 @@ public function getFieldDeserializers(): array { 'inheritsPermissionsFrom' => fn(ParseNode $n) => $o->setInheritsPermissionsFrom($n->getCollectionOfObjectValues([UnifiedRoleDefinition::class, 'createFromDiscriminatorValue'])), 'isBuiltIn' => fn(ParseNode $n) => $o->setIsBuiltIn($n->getBooleanValue()), 'isEnabled' => fn(ParseNode $n) => $o->setIsEnabled($n->getBooleanValue()), + 'isPrivileged' => fn(ParseNode $n) => $o->setIsPrivileged($n->getBooleanValue()), 'resourceScopes' => fn(ParseNode $n) => $o->setResourceScopes($n->getCollectionOfPrimitiveValues()), 'rolePermissions' => fn(ParseNode $n) => $o->setRolePermissions($n->getCollectionOfObjectValues([UnifiedRolePermission::class, 'createFromDiscriminatorValue'])), 'templateId' => fn(ParseNode $n) => $o->setTemplateId($n->getStringValue()), @@ -92,6 +93,14 @@ public function getIsEnabled(): ?bool { return $this->getBackingStore()->get('isEnabled'); } + /** + * Gets the isPrivileged property value. The isPrivileged property + * @return bool|null + */ + public function getIsPrivileged(): ?bool { + return $this->getBackingStore()->get('isPrivileged'); + } + /** * Gets the resourceScopes property value. List of scopes permissions granted by the role definition apply to. Currently only / is supported. Read-only when isBuiltIn is true. DO NOT USE. This will be deprecated soon. Attach scope to role assignment * @return array|null @@ -136,6 +145,7 @@ public function serialize(SerializationWriter $writer): void { $writer->writeCollectionOfObjectValues('inheritsPermissionsFrom', $this->getInheritsPermissionsFrom()); $writer->writeBooleanValue('isBuiltIn', $this->getIsBuiltIn()); $writer->writeBooleanValue('isEnabled', $this->getIsEnabled()); + $writer->writeBooleanValue('isPrivileged', $this->getIsPrivileged()); $writer->writeCollectionOfPrimitiveValues('resourceScopes', $this->getResourceScopes()); $writer->writeCollectionOfObjectValues('rolePermissions', $this->getRolePermissions()); $writer->writeStringValue('templateId', $this->getTemplateId()); @@ -190,6 +200,14 @@ public function setIsEnabled(?bool $value): void { $this->getBackingStore()->set('isEnabled', $value); } + /** + * Sets the isPrivileged property value. The isPrivileged property + * @param bool|null $value Value to set for the isPrivileged property. + */ + public function setIsPrivileged(?bool $value): void { + $this->getBackingStore()->set('isPrivileged', $value); + } + /** * Sets the resourceScopes property value. List of scopes permissions granted by the role definition apply to. Currently only / is supported. Read-only when isBuiltIn is true. DO NOT USE. This will be deprecated soon. Attach scope to role assignment * @param array|null $value Value to set for the resourceScopes property. diff --git a/src/Generated/Models/UnitOfMeasure.php b/src/Generated/Models/UnitOfMeasure.php index a323aa8f04a..8800d4b3683 100644 --- a/src/Generated/Models/UnitOfMeasure.php +++ b/src/Generated/Models/UnitOfMeasure.php @@ -19,7 +19,7 @@ class UnitOfMeasure implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new unitOfMeasure and sets the default values. + * Instantiates a new UnitOfMeasure and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/UserDefaultAuthenticationMethod.php b/src/Generated/Models/UserDefaultAuthenticationMethod.php new file mode 100644 index 00000000000..914109a260d --- /dev/null +++ b/src/Generated/Models/UserDefaultAuthenticationMethod.php @@ -0,0 +1,16 @@ +backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/UserRegistrationDetails.php b/src/Generated/Models/UserRegistrationDetails.php index ec5cb40922c..acd030ad79c 100644 --- a/src/Generated/Models/UserRegistrationDetails.php +++ b/src/Generated/Models/UserRegistrationDetails.php @@ -48,9 +48,12 @@ public function getFieldDeserializers(): array { 'isSsprCapable' => fn(ParseNode $n) => $o->setIsSsprCapable($n->getBooleanValue()), 'isSsprEnabled' => fn(ParseNode $n) => $o->setIsSsprEnabled($n->getBooleanValue()), 'isSsprRegistered' => fn(ParseNode $n) => $o->setIsSsprRegistered($n->getBooleanValue()), + 'isSystemPreferredAuthenticationMethodEnabled' => fn(ParseNode $n) => $o->setIsSystemPreferredAuthenticationMethodEnabled($n->getBooleanValue()), 'lastUpdatedDateTime' => fn(ParseNode $n) => $o->setLastUpdatedDateTime($n->getDateTimeValue()), 'methodsRegistered' => fn(ParseNode $n) => $o->setMethodsRegistered($n->getCollectionOfPrimitiveValues()), + 'systemPreferredAuthenticationMethods' => fn(ParseNode $n) => $o->setSystemPreferredAuthenticationMethods($n->getCollectionOfPrimitiveValues()), 'userDisplayName' => fn(ParseNode $n) => $o->setUserDisplayName($n->getStringValue()), + 'userPreferredMethodForSecondaryAuthentication' => fn(ParseNode $n) => $o->setUserPreferredMethodForSecondaryAuthentication($n->getEnumValue(UserDefaultAuthenticationMethod::class)), 'userPrincipalName' => fn(ParseNode $n) => $o->setUserPrincipalName($n->getStringValue()), 'userType' => fn(ParseNode $n) => $o->setUserType($n->getEnumValue(SignInUserType::class)), ]); @@ -112,6 +115,14 @@ public function getIsSsprRegistered(): ?bool { return $this->getBackingStore()->get('isSsprRegistered'); } + /** + * Gets the isSystemPreferredAuthenticationMethodEnabled property value. The isSystemPreferredAuthenticationMethodEnabled property + * @return bool|null + */ + public function getIsSystemPreferredAuthenticationMethodEnabled(): ?bool { + return $this->getBackingStore()->get('isSystemPreferredAuthenticationMethodEnabled'); + } + /** * Gets the lastUpdatedDateTime property value. The date and time (UTC) when the record was last updated. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. * @return DateTime|null @@ -128,6 +139,14 @@ public function getMethodsRegistered(): ?array { return $this->getBackingStore()->get('methodsRegistered'); } + /** + * Gets the systemPreferredAuthenticationMethods property value. The systemPreferredAuthenticationMethods property + * @return array|null + */ + public function getSystemPreferredAuthenticationMethods(): ?array { + return $this->getBackingStore()->get('systemPreferredAuthenticationMethods'); + } + /** * Gets the userDisplayName property value. The user display name, such as Adele Vance. Supports $filter (eq, startsWith) and $orderBy. * @return string|null @@ -136,6 +155,14 @@ public function getUserDisplayName(): ?string { return $this->getBackingStore()->get('userDisplayName'); } + /** + * Gets the userPreferredMethodForSecondaryAuthentication property value. The userPreferredMethodForSecondaryAuthentication property + * @return UserDefaultAuthenticationMethod|null + */ + public function getUserPreferredMethodForSecondaryAuthentication(): ?UserDefaultAuthenticationMethod { + return $this->getBackingStore()->get('userPreferredMethodForSecondaryAuthentication'); + } + /** * Gets the userPrincipalName property value. The user principal name, such as AdeleV@contoso.com. Supports $filter (eq, startsWith) and $orderBy. * @return string|null @@ -166,9 +193,12 @@ public function serialize(SerializationWriter $writer): void { $writer->writeBooleanValue('isSsprCapable', $this->getIsSsprCapable()); $writer->writeBooleanValue('isSsprEnabled', $this->getIsSsprEnabled()); $writer->writeBooleanValue('isSsprRegistered', $this->getIsSsprRegistered()); + $writer->writeBooleanValue('isSystemPreferredAuthenticationMethodEnabled', $this->getIsSystemPreferredAuthenticationMethodEnabled()); $writer->writeDateTimeValue('lastUpdatedDateTime', $this->getLastUpdatedDateTime()); $writer->writeCollectionOfPrimitiveValues('methodsRegistered', $this->getMethodsRegistered()); + $writer->writeCollectionOfPrimitiveValues('systemPreferredAuthenticationMethods', $this->getSystemPreferredAuthenticationMethods()); $writer->writeStringValue('userDisplayName', $this->getUserDisplayName()); + $writer->writeEnumValue('userPreferredMethodForSecondaryAuthentication', $this->getUserPreferredMethodForSecondaryAuthentication()); $writer->writeStringValue('userPrincipalName', $this->getUserPrincipalName()); $writer->writeEnumValue('userType', $this->getUserType()); } @@ -237,6 +267,14 @@ public function setIsSsprRegistered(?bool $value): void { $this->getBackingStore()->set('isSsprRegistered', $value); } + /** + * Sets the isSystemPreferredAuthenticationMethodEnabled property value. The isSystemPreferredAuthenticationMethodEnabled property + * @param bool|null $value Value to set for the isSystemPreferredAuthenticationMethodEnabled property. + */ + public function setIsSystemPreferredAuthenticationMethodEnabled(?bool $value): void { + $this->getBackingStore()->set('isSystemPreferredAuthenticationMethodEnabled', $value); + } + /** * Sets the lastUpdatedDateTime property value. The date and time (UTC) when the record was last updated. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. * @param DateTime|null $value Value to set for the lastUpdatedDateTime property. @@ -253,6 +291,14 @@ public function setMethodsRegistered(?array $value): void { $this->getBackingStore()->set('methodsRegistered', $value); } + /** + * Sets the systemPreferredAuthenticationMethods property value. The systemPreferredAuthenticationMethods property + * @param array|null $value Value to set for the systemPreferredAuthenticationMethods property. + */ + public function setSystemPreferredAuthenticationMethods(?array $value): void { + $this->getBackingStore()->set('systemPreferredAuthenticationMethods', $value); + } + /** * Sets the userDisplayName property value. The user display name, such as Adele Vance. Supports $filter (eq, startsWith) and $orderBy. * @param string|null $value Value to set for the userDisplayName property. @@ -261,6 +307,14 @@ public function setUserDisplayName(?string $value): void { $this->getBackingStore()->set('userDisplayName', $value); } + /** + * Sets the userPreferredMethodForSecondaryAuthentication property value. The userPreferredMethodForSecondaryAuthentication property + * @param UserDefaultAuthenticationMethod|null $value Value to set for the userPreferredMethodForSecondaryAuthentication property. + */ + public function setUserPreferredMethodForSecondaryAuthentication(?UserDefaultAuthenticationMethod $value): void { + $this->getBackingStore()->set('userPreferredMethodForSecondaryAuthentication', $value); + } + /** * Sets the userPrincipalName property value. The user principal name, such as AdeleV@contoso.com. Supports $filter (eq, startsWith) and $orderBy. * @param string|null $value Value to set for the userPrincipalName property. diff --git a/src/Generated/Models/UserRegistrationFeatureCount.php b/src/Generated/Models/UserRegistrationFeatureCount.php index dbe5210dad8..510cdcce469 100644 --- a/src/Generated/Models/UserRegistrationFeatureCount.php +++ b/src/Generated/Models/UserRegistrationFeatureCount.php @@ -18,7 +18,7 @@ class UserRegistrationFeatureCount implements AdditionalDataHolder, BackedModel, private BackingStore $backingStore; /** - * Instantiates a new userRegistrationFeatureCount and sets the default values. + * Instantiates a new UserRegistrationFeatureCount and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/UserRegistrationMethodCount.php b/src/Generated/Models/UserRegistrationMethodCount.php index a752abedaff..2db888b73fb 100644 --- a/src/Generated/Models/UserRegistrationMethodCount.php +++ b/src/Generated/Models/UserRegistrationMethodCount.php @@ -18,7 +18,7 @@ class UserRegistrationMethodCount implements AdditionalDataHolder, BackedModel, private BackingStore $backingStore; /** - * Instantiates a new userRegistrationMethodCount and sets the default values. + * Instantiates a new UserRegistrationMethodCount and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/UserSecurityProfile.php b/src/Generated/Models/UserSecurityProfile.php index 95d5581190a..f5774bb9693 100644 --- a/src/Generated/Models/UserSecurityProfile.php +++ b/src/Generated/Models/UserSecurityProfile.php @@ -10,7 +10,7 @@ class UserSecurityProfile extends Entity implements Parsable { /** - * Instantiates a new userSecurityProfile and sets the default values. + * Instantiates a new UserSecurityProfile and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/UserSimulationDetails.php b/src/Generated/Models/UserSimulationDetails.php index 13588ea17df..9872d63e5e2 100644 --- a/src/Generated/Models/UserSimulationDetails.php +++ b/src/Generated/Models/UserSimulationDetails.php @@ -19,7 +19,7 @@ class UserSimulationDetails implements AdditionalDataHolder, BackedModel, Parsab private BackingStore $backingStore; /** - * Instantiates a new userSimulationDetails and sets the default values. + * Instantiates a new UserSimulationDetails and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/UserTrainingStatusInfo.php b/src/Generated/Models/UserTrainingStatusInfo.php index a2fb2baf02b..62241be6a4f 100644 --- a/src/Generated/Models/UserTrainingStatusInfo.php +++ b/src/Generated/Models/UserTrainingStatusInfo.php @@ -19,7 +19,7 @@ class UserTrainingStatusInfo implements AdditionalDataHolder, BackedModel, Parsa private BackingStore $backingStore; /** - * Instantiates a new userTrainingStatusInfo and sets the default values. + * Instantiates a new UserTrainingStatusInfo and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/ValidationResult.php b/src/Generated/Models/ValidationResult.php index 6efc76e12a4..80a521897eb 100644 --- a/src/Generated/Models/ValidationResult.php +++ b/src/Generated/Models/ValidationResult.php @@ -18,7 +18,7 @@ class ValidationResult implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new validationResult and sets the default values. + * Instantiates a new ValidationResult and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/VerifiedDomain.php b/src/Generated/Models/VerifiedDomain.php index ca17421929a..d16cb76d941 100644 --- a/src/Generated/Models/VerifiedDomain.php +++ b/src/Generated/Models/VerifiedDomain.php @@ -18,7 +18,7 @@ class VerifiedDomain implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new verifiedDomain and sets the default values. + * Instantiates a new VerifiedDomain and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/VirtualEndpoint.php b/src/Generated/Models/VirtualEndpoint.php index df7578e967f..0b7c7c7f8be 100644 --- a/src/Generated/Models/VirtualEndpoint.php +++ b/src/Generated/Models/VirtualEndpoint.php @@ -9,7 +9,7 @@ class VirtualEndpoint extends Entity implements Parsable { /** - * Instantiates a new virtualEndpoint and sets the default values. + * Instantiates a new VirtualEndpoint and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/VisualInfo.php b/src/Generated/Models/VisualInfo.php index ae76f6097b5..e505ed933be 100644 --- a/src/Generated/Models/VisualInfo.php +++ b/src/Generated/Models/VisualInfo.php @@ -18,7 +18,7 @@ class VisualInfo implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new visualInfo and sets the default values. + * Instantiates a new VisualInfo and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/VpnServer.php b/src/Generated/Models/VpnServer.php index e0e10d21dc9..8538530141b 100644 --- a/src/Generated/Models/VpnServer.php +++ b/src/Generated/Models/VpnServer.php @@ -21,7 +21,7 @@ class VpnServer implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new vpnServer and sets the default values. + * Instantiates a new VpnServer and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/WindowsAutopilotDeploymentProfile.php b/src/Generated/Models/WindowsAutopilotDeploymentProfile.php index 3b157804a35..6c47588b8f3 100644 --- a/src/Generated/Models/WindowsAutopilotDeploymentProfile.php +++ b/src/Generated/Models/WindowsAutopilotDeploymentProfile.php @@ -7,13 +7,10 @@ use Microsoft\Kiota\Abstractions\Serialization\ParseNode; use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter; -/** - * Windows Autopilot Deployment Profile -*/ class WindowsAutopilotDeploymentProfile extends Entity implements Parsable { /** - * Instantiates a new windowsAutopilotDeploymentProfile and sets the default values. + * Instantiates a new WindowsAutopilotDeploymentProfile and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/WindowsAutopilotSettings.php b/src/Generated/Models/WindowsAutopilotSettings.php index 7f9bd2dc4df..d0525978027 100644 --- a/src/Generated/Models/WindowsAutopilotSettings.php +++ b/src/Generated/Models/WindowsAutopilotSettings.php @@ -10,7 +10,7 @@ class WindowsAutopilotSettings extends Entity implements Parsable { /** - * Instantiates a new windowsAutopilotSettings and sets the default values. + * Instantiates a new WindowsAutopilotSettings and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/WindowsDefenderApplicationControlSupplementalPolicy.php b/src/Generated/Models/WindowsDefenderApplicationControlSupplementalPolicy.php index e2317d44045..b2a42ba8751 100644 --- a/src/Generated/Models/WindowsDefenderApplicationControlSupplementalPolicy.php +++ b/src/Generated/Models/WindowsDefenderApplicationControlSupplementalPolicy.php @@ -11,7 +11,7 @@ class WindowsDefenderApplicationControlSupplementalPolicy extends Entity implements Parsable { /** - * Instantiates a new WindowsDefenderApplicationControlSupplementalPolicy and sets the default values. + * Instantiates a new windowsDefenderApplicationControlSupplementalPolicy and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/WindowsDomainJoinConfiguration.php b/src/Generated/Models/WindowsDomainJoinConfiguration.php index 399c146e626..335ff7acbbd 100644 --- a/src/Generated/Models/WindowsDomainJoinConfiguration.php +++ b/src/Generated/Models/WindowsDomainJoinConfiguration.php @@ -9,7 +9,7 @@ class WindowsDomainJoinConfiguration extends DeviceConfiguration implements Parsable { /** - * Instantiates a new windowsDomainJoinConfiguration and sets the default values. + * Instantiates a new WindowsDomainJoinConfiguration and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/WindowsFeatureUpdateProfile.php b/src/Generated/Models/WindowsFeatureUpdateProfile.php index d58493663a1..9a43a2e6959 100644 --- a/src/Generated/Models/WindowsFeatureUpdateProfile.php +++ b/src/Generated/Models/WindowsFeatureUpdateProfile.php @@ -7,13 +7,10 @@ use Microsoft\Kiota\Abstractions\Serialization\ParseNode; use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter; -/** - * Windows Feature Update Profile -*/ class WindowsFeatureUpdateProfile extends Entity implements Parsable { /** - * Instantiates a new windowsFeatureUpdateProfile and sets the default values. + * Instantiates a new WindowsFeatureUpdateProfile and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/WindowsInformationProtectionWipeAction.php b/src/Generated/Models/WindowsInformationProtectionWipeAction.php index d15b4bcc02c..d7c92f52824 100644 --- a/src/Generated/Models/WindowsInformationProtectionWipeAction.php +++ b/src/Generated/Models/WindowsInformationProtectionWipeAction.php @@ -7,10 +7,13 @@ use Microsoft\Kiota\Abstractions\Serialization\ParseNode; use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter; +/** + * Represents wipe requests issued by tenant admin for Bring-Your-Own-Device(BYOD) Windows devices. +*/ class WindowsInformationProtectionWipeAction extends Entity implements Parsable { /** - * Instantiates a new WindowsInformationProtectionWipeAction and sets the default values. + * Instantiates a new windowsInformationProtectionWipeAction and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/WindowsKioskAppBase.php b/src/Generated/Models/WindowsKioskAppBase.php index 2ec316de418..dd6a81ddac6 100644 --- a/src/Generated/Models/WindowsKioskAppBase.php +++ b/src/Generated/Models/WindowsKioskAppBase.php @@ -21,7 +21,7 @@ class WindowsKioskAppBase implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new windowsKioskAppBase and sets the default values. + * Instantiates a new WindowsKioskAppBase and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/WindowsKioskAppConfiguration.php b/src/Generated/Models/WindowsKioskAppConfiguration.php index 665d37814f4..4e9c00b6184 100644 --- a/src/Generated/Models/WindowsKioskAppConfiguration.php +++ b/src/Generated/Models/WindowsKioskAppConfiguration.php @@ -21,7 +21,7 @@ class WindowsKioskAppConfiguration implements AdditionalDataHolder, BackedModel, private BackingStore $backingStore; /** - * Instantiates a new windowsKioskAppConfiguration and sets the default values. + * Instantiates a new WindowsKioskAppConfiguration and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/WindowsKioskUser.php b/src/Generated/Models/WindowsKioskUser.php index 41e7604d267..51f736124f5 100644 --- a/src/Generated/Models/WindowsKioskUser.php +++ b/src/Generated/Models/WindowsKioskUser.php @@ -21,7 +21,7 @@ class WindowsKioskUser implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new windowsKioskUser and sets the default values. + * Instantiates a new WindowsKioskUser and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/WindowsMalwareInformation.php b/src/Generated/Models/WindowsMalwareInformation.php index 2de06520dd4..670090051d9 100644 --- a/src/Generated/Models/WindowsMalwareInformation.php +++ b/src/Generated/Models/WindowsMalwareInformation.php @@ -7,13 +7,10 @@ use Microsoft\Kiota\Abstractions\Serialization\ParseNode; use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter; -/** - * Malware information entity. -*/ class WindowsMalwareInformation extends Entity implements Parsable { /** - * Instantiates a new windowsMalwareInformation and sets the default values. + * Instantiates a new WindowsMalwareInformation and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/WindowsManagementApp.php b/src/Generated/Models/WindowsManagementApp.php index ac09ef8452f..9019d7ce21e 100644 --- a/src/Generated/Models/WindowsManagementApp.php +++ b/src/Generated/Models/WindowsManagementApp.php @@ -9,7 +9,7 @@ class WindowsManagementApp extends Entity implements Parsable { /** - * Instantiates a new WindowsManagementApp and sets the default values. + * Instantiates a new windowsManagementApp and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/WindowsUniversalAppXAppAssignmentSettings.php b/src/Generated/Models/WindowsUniversalAppXAppAssignmentSettings.php index ca9a9c759a8..2af504b3e0d 100644 --- a/src/Generated/Models/WindowsUniversalAppXAppAssignmentSettings.php +++ b/src/Generated/Models/WindowsUniversalAppXAppAssignmentSettings.php @@ -37,7 +37,7 @@ public function getFieldDeserializers(): array { } /** - * Gets the useDeviceContext property value. If true, uses device execution context for Windows Universal AppX mobile app. Device-context install is not allowed when this type of app is targeted with Available intent. Defaults to false. + * Gets the useDeviceContext property value. Whether or not to use device execution context for Windows Universal AppX mobile app. * @return bool|null */ public function getUseDeviceContext(): ?bool { @@ -54,7 +54,7 @@ public function serialize(SerializationWriter $writer): void { } /** - * Sets the useDeviceContext property value. If true, uses device execution context for Windows Universal AppX mobile app. Device-context install is not allowed when this type of app is targeted with Available intent. Defaults to false. + * Sets the useDeviceContext property value. Whether or not to use device execution context for Windows Universal AppX mobile app. * @param bool|null $value Value to set for the useDeviceContext property. */ public function setUseDeviceContext(?bool $value): void { diff --git a/src/Generated/Models/WindowsUpdateCatalogItem.php b/src/Generated/Models/WindowsUpdateCatalogItem.php index 6387b6ee408..42496235f63 100644 --- a/src/Generated/Models/WindowsUpdateCatalogItem.php +++ b/src/Generated/Models/WindowsUpdateCatalogItem.php @@ -7,13 +7,10 @@ use Microsoft\Kiota\Abstractions\Serialization\ParseNode; use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter; -/** - * Windows update catalog item entity -*/ class WindowsUpdateCatalogItem extends Entity implements Parsable { /** - * Instantiates a new windowsUpdateCatalogItem and sets the default values. + * Instantiates a new WindowsUpdateCatalogItem and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/WindowsUpdates/ApplicableContentDeviceMatch.php b/src/Generated/Models/WindowsUpdates/ApplicableContentDeviceMatch.php index 0530b7b9d43..9495ae96ecb 100644 --- a/src/Generated/Models/WindowsUpdates/ApplicableContentDeviceMatch.php +++ b/src/Generated/Models/WindowsUpdates/ApplicableContentDeviceMatch.php @@ -18,7 +18,7 @@ class ApplicableContentDeviceMatch implements AdditionalDataHolder, BackedModel, private BackingStore $backingStore; /** - * Instantiates a new applicableContentDeviceMatch and sets the default values. + * Instantiates a new ApplicableContentDeviceMatch and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/WindowsUpdates/DeployableContent.php b/src/Generated/Models/WindowsUpdates/DeployableContent.php index 9d3a9aa8cce..1bc1ee45648 100644 --- a/src/Generated/Models/WindowsUpdates/DeployableContent.php +++ b/src/Generated/Models/WindowsUpdates/DeployableContent.php @@ -18,7 +18,7 @@ class DeployableContent implements AdditionalDataHolder, BackedModel, Parsable private BackingStore $backingStore; /** - * Instantiates a new deployableContent and sets the default values. + * Instantiates a new DeployableContent and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/Models/ZebraFotaArtifact.php b/src/Generated/Models/ZebraFotaArtifact.php index f5afeec2cdc..d9323f6bbf8 100644 --- a/src/Generated/Models/ZebraFotaArtifact.php +++ b/src/Generated/Models/ZebraFotaArtifact.php @@ -6,13 +6,10 @@ use Microsoft\Kiota\Abstractions\Serialization\ParseNode; use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter; -/** - * Describes a single artifact for a specific device model. -*/ class ZebraFotaArtifact extends Entity implements Parsable { /** - * Instantiates a new zebraFotaArtifact and sets the default values. + * Instantiates a new ZebraFotaArtifact and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/ZebraFotaConnector.php b/src/Generated/Models/ZebraFotaConnector.php index 46eb75e2b55..424e21bb17f 100644 --- a/src/Generated/Models/ZebraFotaConnector.php +++ b/src/Generated/Models/ZebraFotaConnector.php @@ -10,7 +10,7 @@ class ZebraFotaConnector extends Entity implements Parsable { /** - * Instantiates a new zebraFotaConnector and sets the default values. + * Instantiates a new ZebraFotaConnector and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/ZebraFotaDeployment.php b/src/Generated/Models/ZebraFotaDeployment.php index e6d3fa74f95..da1d1c1efb6 100644 --- a/src/Generated/Models/ZebraFotaDeployment.php +++ b/src/Generated/Models/ZebraFotaDeployment.php @@ -6,13 +6,10 @@ use Microsoft\Kiota\Abstractions\Serialization\ParseNode; use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter; -/** - * The Zebra FOTA deployment entity that describes settings, deployment device groups required to create a FOTA deployment, and deployment status. -*/ class ZebraFotaDeployment extends Entity implements Parsable { /** - * Instantiates a new zebraFotaDeployment and sets the default values. + * Instantiates a new ZebraFotaDeployment and sets the default values. */ public function __construct() { parent::__construct(); diff --git a/src/Generated/Models/ZebraFotaDeploymentSettings.php b/src/Generated/Models/ZebraFotaDeploymentSettings.php index ce81bf05216..8f25f852e59 100644 --- a/src/Generated/Models/ZebraFotaDeploymentSettings.php +++ b/src/Generated/Models/ZebraFotaDeploymentSettings.php @@ -23,7 +23,7 @@ class ZebraFotaDeploymentSettings implements AdditionalDataHolder, BackedModel, private BackingStore $backingStore; /** - * Instantiates a new zebraFotaDeploymentSettings and sets the default values. + * Instantiates a new ZebraFotaDeploymentSettings and sets the default values. */ public function __construct() { $this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); diff --git a/src/Generated/NetworkAccess/Connectivity/Branches/BranchesRequestBuilder.php b/src/Generated/NetworkAccess/Connectivity/Branches/BranchesRequestBuilder.php new file mode 100644 index 00000000000..7f024439093 --- /dev/null +++ b/src/Generated/NetworkAccess/Connectivity/Branches/BranchesRequestBuilder.php @@ -0,0 +1,133 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the branches property of the microsoft.graph.networkaccess.connectivity entity. + * @param string $branchSiteId Unique identifier of the item + * @return BranchSiteItemRequestBuilder + */ + public function byBranchSiteId(string $branchSiteId): BranchSiteItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['branchSite%2Did'] = $branchSiteId; + return new BranchSiteItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new BranchesRequestBuilder 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}/networkAccess/connectivity/branches{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get branches from networkAccess + * @param BranchesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?BranchesRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [BranchSiteCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Create new navigation property to branches for networkAccess + * @param BranchSite $body The request body + * @param BranchesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(BranchSite $body, ?BranchesRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [BranchSite::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get branches from networkAccess + * @param BranchesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?BranchesRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Create new navigation property to branches for networkAccess + * @param BranchSite $body The request body + * @param BranchesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(BranchSite $body, ?BranchesRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + +} diff --git a/src/Generated/NetworkAccess/Connectivity/Branches/BranchesRequestBuilderGetQueryParameters.php b/src/Generated/NetworkAccess/Connectivity/Branches/BranchesRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..d38cda17f63 --- /dev/null +++ b/src/Generated/NetworkAccess/Connectivity/Branches/BranchesRequestBuilderGetQueryParameters.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 branchesRequestBuilderGetQueryParameters 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/NetworkAccess/Connectivity/Branches/BranchesRequestBuilderGetRequestConfiguration.php b/src/Generated/NetworkAccess/Connectivity/Branches/BranchesRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..75cfe01d1a5 --- /dev/null +++ b/src/Generated/NetworkAccess/Connectivity/Branches/BranchesRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param BranchesRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?BranchesRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new branchesRequestBuilderGetQueryParameters. + * @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 BranchesRequestBuilderGetQueryParameters + */ + 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): BranchesRequestBuilderGetQueryParameters { + return new BranchesRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/NetworkAccess/Connectivity/Branches/BranchesRequestBuilderPostRequestConfiguration.php b/src/Generated/NetworkAccess/Connectivity/Branches/BranchesRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..9ec960e9940 --- /dev/null +++ b/src/Generated/NetworkAccess/Connectivity/Branches/BranchesRequestBuilderPostRequestConfiguration.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/NetworkAccess/Connectivity/Branches/Count/CountRequestBuilder.php b/src/Generated/NetworkAccess/Connectivity/Branches/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..ece981982ee --- /dev/null +++ b/src/Generated/NetworkAccess/Connectivity/Branches/Count/CountRequestBuilder.php @@ -0,0 +1,72 @@ +|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}/networkAccess/connectivity/branches/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + +} diff --git a/src/Generated/NetworkAccess/Connectivity/Branches/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/NetworkAccess/Connectivity/Branches/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..d8ffbcfaccf --- /dev/null +++ b/src/Generated/NetworkAccess/Connectivity/Branches/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/NetworkAccess/Connectivity/Branches/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/NetworkAccess/Connectivity/Branches/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..6ea0e96d489 --- /dev/null +++ b/src/Generated/NetworkAccess/Connectivity/Branches/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/NetworkAccess/Connectivity/Branches/Item/BranchSiteItemRequestBuilder.php b/src/Generated/NetworkAccess/Connectivity/Branches/Item/BranchSiteItemRequestBuilder.php new file mode 100644 index 00000000000..ae88ce07089 --- /dev/null +++ b/src/Generated/NetworkAccess/Connectivity/Branches/Item/BranchSiteItemRequestBuilder.php @@ -0,0 +1,163 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the forwardingProfiles property of the microsoft.graph.networkaccess.branchSite entity. + */ + public function forwardingProfiles(): ForwardingProfilesRequestBuilder { + return new ForwardingProfilesRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new BranchSiteItemRequestBuilder 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}/networkAccess/connectivity/branches/{branchSite%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property branches for networkAccess + * @param BranchSiteItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function delete(?BranchSiteItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get branches from networkAccess + * @param BranchSiteItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?BranchSiteItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [BranchSite::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the navigation property branches in networkAccess + * @param BranchSite $body The request body + * @param BranchSiteItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function patch(BranchSite $body, ?BranchSiteItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [BranchSite::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Delete navigation property branches for networkAccess + * @param BranchSiteItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?BranchSiteItemRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * Get branches from networkAccess + * @param BranchSiteItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?BranchSiteItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the navigation property branches in networkAccess + * @param BranchSite $body The request body + * @param BranchSiteItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(BranchSite $body, ?BranchSiteItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + +} diff --git a/src/Generated/NetworkAccess/Connectivity/Branches/Item/BranchSiteItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/NetworkAccess/Connectivity/Branches/Item/BranchSiteItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..e6668eb8729 --- /dev/null +++ b/src/Generated/NetworkAccess/Connectivity/Branches/Item/BranchSiteItemRequestBuilderDeleteRequestConfiguration.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/NetworkAccess/Connectivity/Branches/Item/BranchSiteItemRequestBuilderGetQueryParameters.php b/src/Generated/NetworkAccess/Connectivity/Branches/Item/BranchSiteItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..0c96c7e1ef6 --- /dev/null +++ b/src/Generated/NetworkAccess/Connectivity/Branches/Item/BranchSiteItemRequestBuilderGetQueryParameters.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 BranchSiteItemRequestBuilderGetQueryParameters 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/NetworkAccess/Connectivity/Branches/Item/BranchSiteItemRequestBuilderGetRequestConfiguration.php b/src/Generated/NetworkAccess/Connectivity/Branches/Item/BranchSiteItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..fdb062d35f6 --- /dev/null +++ b/src/Generated/NetworkAccess/Connectivity/Branches/Item/BranchSiteItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param BranchSiteItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?BranchSiteItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new BranchSiteItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return BranchSiteItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): BranchSiteItemRequestBuilderGetQueryParameters { + return new BranchSiteItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/NetworkAccess/Connectivity/Branches/Item/BranchSiteItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/NetworkAccess/Connectivity/Branches/Item/BranchSiteItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..490690225f4 --- /dev/null +++ b/src/Generated/NetworkAccess/Connectivity/Branches/Item/BranchSiteItemRequestBuilderPatchRequestConfiguration.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/NetworkAccess/Connectivity/Branches/Item/DeviceLinks/Count/CountRequestBuilder.php b/src/Generated/NetworkAccess/Connectivity/Branches/Item/DeviceLinks/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..f8e181600ff --- /dev/null +++ b/src/Generated/NetworkAccess/Connectivity/Branches/Item/DeviceLinks/Count/CountRequestBuilder.php @@ -0,0 +1,72 @@ +|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}/networkAccess/connectivity/branches/{branchSite%2Did}/deviceLinks/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + +} diff --git a/src/Generated/NetworkAccess/Connectivity/Branches/Item/DeviceLinks/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/NetworkAccess/Connectivity/Branches/Item/DeviceLinks/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..156f6da3fcf --- /dev/null +++ b/src/Generated/NetworkAccess/Connectivity/Branches/Item/DeviceLinks/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/NetworkAccess/Connectivity/Branches/Item/DeviceLinks/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/NetworkAccess/Connectivity/Branches/Item/DeviceLinks/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..af9464077d6 --- /dev/null +++ b/src/Generated/NetworkAccess/Connectivity/Branches/Item/DeviceLinks/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/NetworkAccess/Connectivity/Branches/Item/DeviceLinks/DeviceLinksRequestBuilder.php b/src/Generated/NetworkAccess/Connectivity/Branches/Item/DeviceLinks/DeviceLinksRequestBuilder.php new file mode 100644 index 00000000000..f10081fc6a4 --- /dev/null +++ b/src/Generated/NetworkAccess/Connectivity/Branches/Item/DeviceLinks/DeviceLinksRequestBuilder.php @@ -0,0 +1,133 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the deviceLinks property of the microsoft.graph.networkaccess.branchSite entity. + * @param string $deviceLinkId Unique identifier of the item + * @return DeviceLinkItemRequestBuilder + */ + public function byDeviceLinkId(string $deviceLinkId): DeviceLinkItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['deviceLink%2Did'] = $deviceLinkId; + return new DeviceLinkItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new DeviceLinksRequestBuilder 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}/networkAccess/connectivity/branches/{branchSite%2Did}/deviceLinks{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get deviceLinks from networkAccess + * @param DeviceLinksRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?DeviceLinksRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [DeviceLinkCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Create new navigation property to deviceLinks for networkAccess + * @param DeviceLink $body The request body + * @param DeviceLinksRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(DeviceLink $body, ?DeviceLinksRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [DeviceLink::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get deviceLinks from networkAccess + * @param DeviceLinksRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?DeviceLinksRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Create new navigation property to deviceLinks for networkAccess + * @param DeviceLink $body The request body + * @param DeviceLinksRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(DeviceLink $body, ?DeviceLinksRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + +} diff --git a/src/Generated/NetworkAccess/Connectivity/Branches/Item/DeviceLinks/DeviceLinksRequestBuilderGetQueryParameters.php b/src/Generated/NetworkAccess/Connectivity/Branches/Item/DeviceLinks/DeviceLinksRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..da8210eb669 --- /dev/null +++ b/src/Generated/NetworkAccess/Connectivity/Branches/Item/DeviceLinks/DeviceLinksRequestBuilderGetQueryParameters.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 deviceLinksRequestBuilderGetQueryParameters 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/NetworkAccess/Connectivity/Branches/Item/DeviceLinks/DeviceLinksRequestBuilderGetRequestConfiguration.php b/src/Generated/NetworkAccess/Connectivity/Branches/Item/DeviceLinks/DeviceLinksRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..6417e1a57a0 --- /dev/null +++ b/src/Generated/NetworkAccess/Connectivity/Branches/Item/DeviceLinks/DeviceLinksRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param DeviceLinksRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?DeviceLinksRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new deviceLinksRequestBuilderGetQueryParameters. + * @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 DeviceLinksRequestBuilderGetQueryParameters + */ + 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): DeviceLinksRequestBuilderGetQueryParameters { + return new DeviceLinksRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/NetworkAccess/Connectivity/Branches/Item/DeviceLinks/DeviceLinksRequestBuilderPostRequestConfiguration.php b/src/Generated/NetworkAccess/Connectivity/Branches/Item/DeviceLinks/DeviceLinksRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..b24babaf22a --- /dev/null +++ b/src/Generated/NetworkAccess/Connectivity/Branches/Item/DeviceLinks/DeviceLinksRequestBuilderPostRequestConfiguration.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/NetworkAccess/Connectivity/Branches/Item/DeviceLinks/Item/DeviceLinkItemRequestBuilder.php b/src/Generated/NetworkAccess/Connectivity/Branches/Item/DeviceLinks/Item/DeviceLinkItemRequestBuilder.php new file mode 100644 index 00000000000..17162145be5 --- /dev/null +++ b/src/Generated/NetworkAccess/Connectivity/Branches/Item/DeviceLinks/Item/DeviceLinkItemRequestBuilder.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. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/networkAccess/connectivity/branches/{branchSite%2Did}/deviceLinks/{deviceLink%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property deviceLinks for networkAccess + * @param DeviceLinkItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function delete(?DeviceLinkItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get deviceLinks from networkAccess + * @param DeviceLinkItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?DeviceLinkItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [DeviceLink::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the navigation property deviceLinks in networkAccess + * @param DeviceLink $body The request body + * @param DeviceLinkItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function patch(DeviceLink $body, ?DeviceLinkItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [DeviceLink::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Delete navigation property deviceLinks for networkAccess + * @param DeviceLinkItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?DeviceLinkItemRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * Get deviceLinks from networkAccess + * @param DeviceLinkItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?DeviceLinkItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the navigation property deviceLinks in networkAccess + * @param DeviceLink $body The request body + * @param DeviceLinkItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(DeviceLink $body, ?DeviceLinkItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + +} diff --git a/src/Generated/NetworkAccess/Connectivity/Branches/Item/DeviceLinks/Item/DeviceLinkItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/NetworkAccess/Connectivity/Branches/Item/DeviceLinks/Item/DeviceLinkItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..23454adf905 --- /dev/null +++ b/src/Generated/NetworkAccess/Connectivity/Branches/Item/DeviceLinks/Item/DeviceLinkItemRequestBuilderDeleteRequestConfiguration.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/NetworkAccess/Connectivity/Branches/Item/DeviceLinks/Item/DeviceLinkItemRequestBuilderGetQueryParameters.php b/src/Generated/NetworkAccess/Connectivity/Branches/Item/DeviceLinks/Item/DeviceLinkItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..f3524fd7982 --- /dev/null +++ b/src/Generated/NetworkAccess/Connectivity/Branches/Item/DeviceLinks/Item/DeviceLinkItemRequestBuilderGetQueryParameters.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 DeviceLinkItemRequestBuilderGetQueryParameters 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/NetworkAccess/Connectivity/Branches/Item/DeviceLinks/Item/DeviceLinkItemRequestBuilderGetRequestConfiguration.php b/src/Generated/NetworkAccess/Connectivity/Branches/Item/DeviceLinks/Item/DeviceLinkItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..365139412d5 --- /dev/null +++ b/src/Generated/NetworkAccess/Connectivity/Branches/Item/DeviceLinks/Item/DeviceLinkItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param DeviceLinkItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?DeviceLinkItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new DeviceLinkItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return DeviceLinkItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): DeviceLinkItemRequestBuilderGetQueryParameters { + return new DeviceLinkItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/NetworkAccess/Connectivity/Branches/Item/DeviceLinks/Item/DeviceLinkItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/NetworkAccess/Connectivity/Branches/Item/DeviceLinks/Item/DeviceLinkItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..a97a78ce0bf --- /dev/null +++ b/src/Generated/NetworkAccess/Connectivity/Branches/Item/DeviceLinks/Item/DeviceLinkItemRequestBuilderPatchRequestConfiguration.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/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/Count/CountRequestBuilder.php b/src/Generated/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..0d1ff031f13 --- /dev/null +++ b/src/Generated/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/Count/CountRequestBuilder.php @@ -0,0 +1,72 @@ +|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}/networkAccess/connectivity/branches/{branchSite%2Did}/forwardingProfiles/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + +} diff --git a/src/Generated/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..a060332e000 --- /dev/null +++ b/src/Generated/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..f0c4e756816 --- /dev/null +++ b/src/Generated/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/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/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/ForwardingProfilesRequestBuilder.php b/src/Generated/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/ForwardingProfilesRequestBuilder.php new file mode 100644 index 00000000000..8066f484849 --- /dev/null +++ b/src/Generated/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/ForwardingProfilesRequestBuilder.php @@ -0,0 +1,133 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the forwardingProfiles property of the microsoft.graph.networkaccess.branchSite entity. + * @param string $forwardingProfileId Unique identifier of the item + * @return ForwardingProfileItemRequestBuilder + */ + public function byForwardingProfileId(string $forwardingProfileId): ForwardingProfileItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['forwardingProfile%2Did'] = $forwardingProfileId; + return new ForwardingProfileItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new ForwardingProfilesRequestBuilder 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}/networkAccess/connectivity/branches/{branchSite%2Did}/forwardingProfiles{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get forwardingProfiles from networkAccess + * @param ForwardingProfilesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ForwardingProfilesRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ForwardingProfileCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Create new navigation property to forwardingProfiles for networkAccess + * @param ForwardingProfile $body The request body + * @param ForwardingProfilesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(ForwardingProfile $body, ?ForwardingProfilesRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ForwardingProfile::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get forwardingProfiles from networkAccess + * @param ForwardingProfilesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ForwardingProfilesRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Create new navigation property to forwardingProfiles for networkAccess + * @param ForwardingProfile $body The request body + * @param ForwardingProfilesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(ForwardingProfile $body, ?ForwardingProfilesRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + +} diff --git a/src/Generated/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/ForwardingProfilesRequestBuilderGetQueryParameters.php b/src/Generated/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/ForwardingProfilesRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..648d98bf434 --- /dev/null +++ b/src/Generated/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/ForwardingProfilesRequestBuilderGetQueryParameters.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 forwardingProfilesRequestBuilderGetQueryParameters 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/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/ForwardingProfilesRequestBuilderGetRequestConfiguration.php b/src/Generated/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/ForwardingProfilesRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..57dd9351f6c --- /dev/null +++ b/src/Generated/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/ForwardingProfilesRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ForwardingProfilesRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ForwardingProfilesRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new forwardingProfilesRequestBuilderGetQueryParameters. + * @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 ForwardingProfilesRequestBuilderGetQueryParameters + */ + 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): ForwardingProfilesRequestBuilderGetQueryParameters { + return new ForwardingProfilesRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/ForwardingProfilesRequestBuilderPostRequestConfiguration.php b/src/Generated/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/ForwardingProfilesRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..311ee95ac89 --- /dev/null +++ b/src/Generated/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/ForwardingProfilesRequestBuilderPostRequestConfiguration.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/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/Item/ForwardingProfileItemRequestBuilder.php b/src/Generated/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/Item/ForwardingProfileItemRequestBuilder.php new file mode 100644 index 00000000000..b7a16725560 --- /dev/null +++ b/src/Generated/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/Item/ForwardingProfileItemRequestBuilder.php @@ -0,0 +1,155 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new ForwardingProfileItemRequestBuilder 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}/networkAccess/connectivity/branches/{branchSite%2Did}/forwardingProfiles/{forwardingProfile%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property forwardingProfiles for networkAccess + * @param ForwardingProfileItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function delete(?ForwardingProfileItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get forwardingProfiles from networkAccess + * @param ForwardingProfileItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ForwardingProfileItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ForwardingProfile::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the navigation property forwardingProfiles in networkAccess + * @param ForwardingProfile $body The request body + * @param ForwardingProfileItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function patch(ForwardingProfile $body, ?ForwardingProfileItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ForwardingProfile::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Delete navigation property forwardingProfiles for networkAccess + * @param ForwardingProfileItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?ForwardingProfileItemRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * Get forwardingProfiles from networkAccess + * @param ForwardingProfileItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ForwardingProfileItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the navigation property forwardingProfiles in networkAccess + * @param ForwardingProfile $body The request body + * @param ForwardingProfileItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(ForwardingProfile $body, ?ForwardingProfileItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + +} diff --git a/src/Generated/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/Item/ForwardingProfileItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/Item/ForwardingProfileItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..0cc9706f59f --- /dev/null +++ b/src/Generated/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/Item/ForwardingProfileItemRequestBuilderDeleteRequestConfiguration.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/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/Item/ForwardingProfileItemRequestBuilderGetQueryParameters.php b/src/Generated/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/Item/ForwardingProfileItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..b31fc4d6d13 --- /dev/null +++ b/src/Generated/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/Item/ForwardingProfileItemRequestBuilderGetQueryParameters.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 ForwardingProfileItemRequestBuilderGetQueryParameters 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/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/Item/ForwardingProfileItemRequestBuilderGetRequestConfiguration.php b/src/Generated/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/Item/ForwardingProfileItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..33b84475548 --- /dev/null +++ b/src/Generated/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/Item/ForwardingProfileItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ForwardingProfileItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ForwardingProfileItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new ForwardingProfileItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return ForwardingProfileItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): ForwardingProfileItemRequestBuilderGetQueryParameters { + return new ForwardingProfileItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/Item/ForwardingProfileItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/Item/ForwardingProfileItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..d5acfd81c99 --- /dev/null +++ b/src/Generated/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/Item/ForwardingProfileItemRequestBuilderPatchRequestConfiguration.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/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/Item/Policies/Count/CountRequestBuilder.php b/src/Generated/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/Item/Policies/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..cf759898fdd --- /dev/null +++ b/src/Generated/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/Item/Policies/Count/CountRequestBuilder.php @@ -0,0 +1,72 @@ +|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}/networkAccess/connectivity/branches/{branchSite%2Did}/forwardingProfiles/{forwardingProfile%2Did}/policies/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + +} diff --git a/src/Generated/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/Item/Policies/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/Item/Policies/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..9aaa7773b37 --- /dev/null +++ b/src/Generated/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/Item/Policies/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/Item/Policies/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/Item/Policies/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..21a4a8b24d8 --- /dev/null +++ b/src/Generated/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/Item/Policies/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/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/Item/Policies/Item/Policy/PolicyRequestBuilder.php b/src/Generated/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/Item/Policies/Item/Policy/PolicyRequestBuilder.php new file mode 100644 index 00000000000..d6971925aac --- /dev/null +++ b/src/Generated/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/Item/Policies/Item/Policy/PolicyRequestBuilder.php @@ -0,0 +1,73 @@ +|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}/networkAccess/connectivity/branches/{branchSite%2Did}/forwardingProfiles/{forwardingProfile%2Did}/policies/{policyLink%2Did}/policy{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get policy from networkAccess + * @param PolicyRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?PolicyRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [Policy::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get policy from networkAccess + * @param PolicyRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?PolicyRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + +} diff --git a/src/Generated/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/Item/Policies/Item/Policy/PolicyRequestBuilderGetQueryParameters.php b/src/Generated/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/Item/Policies/Item/Policy/PolicyRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..3a93a9baf92 --- /dev/null +++ b/src/Generated/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/Item/Policies/Item/Policy/PolicyRequestBuilderGetQueryParameters.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 policyRequestBuilderGetQueryParameters 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/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/Item/Policies/Item/Policy/PolicyRequestBuilderGetRequestConfiguration.php b/src/Generated/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/Item/Policies/Item/Policy/PolicyRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..daf0bc08d48 --- /dev/null +++ b/src/Generated/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/Item/Policies/Item/Policy/PolicyRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param PolicyRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?PolicyRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new policyRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return PolicyRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): PolicyRequestBuilderGetQueryParameters { + return new PolicyRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/Item/Policies/Item/PolicyLinkItemRequestBuilder.php b/src/Generated/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/Item/Policies/Item/PolicyLinkItemRequestBuilder.php new file mode 100644 index 00000000000..997b2aa01c6 --- /dev/null +++ b/src/Generated/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/Item/Policies/Item/PolicyLinkItemRequestBuilder.php @@ -0,0 +1,155 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new PolicyLinkItemRequestBuilder 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}/networkAccess/connectivity/branches/{branchSite%2Did}/forwardingProfiles/{forwardingProfile%2Did}/policies/{policyLink%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property policies for networkAccess + * @param PolicyLinkItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function delete(?PolicyLinkItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get policies from networkAccess + * @param PolicyLinkItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?PolicyLinkItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [PolicyLink::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the navigation property policies in networkAccess + * @param PolicyLink $body The request body + * @param PolicyLinkItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function patch(PolicyLink $body, ?PolicyLinkItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [PolicyLink::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Delete navigation property policies for networkAccess + * @param PolicyLinkItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?PolicyLinkItemRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * Get policies from networkAccess + * @param PolicyLinkItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?PolicyLinkItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the navigation property policies in networkAccess + * @param PolicyLink $body The request body + * @param PolicyLinkItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(PolicyLink $body, ?PolicyLinkItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + +} diff --git a/src/Generated/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/Item/Policies/Item/PolicyLinkItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/Item/Policies/Item/PolicyLinkItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..d48b44f8cfc --- /dev/null +++ b/src/Generated/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/Item/Policies/Item/PolicyLinkItemRequestBuilderDeleteRequestConfiguration.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/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/Item/Policies/Item/PolicyLinkItemRequestBuilderGetQueryParameters.php b/src/Generated/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/Item/Policies/Item/PolicyLinkItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..d6019fb5dd1 --- /dev/null +++ b/src/Generated/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/Item/Policies/Item/PolicyLinkItemRequestBuilderGetQueryParameters.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 PolicyLinkItemRequestBuilderGetQueryParameters 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/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/Item/Policies/Item/PolicyLinkItemRequestBuilderGetRequestConfiguration.php b/src/Generated/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/Item/Policies/Item/PolicyLinkItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..a962291244c --- /dev/null +++ b/src/Generated/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/Item/Policies/Item/PolicyLinkItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param PolicyLinkItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?PolicyLinkItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new PolicyLinkItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return PolicyLinkItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): PolicyLinkItemRequestBuilderGetQueryParameters { + return new PolicyLinkItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/Item/Policies/Item/PolicyLinkItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/Item/Policies/Item/PolicyLinkItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..1515ef79bcd --- /dev/null +++ b/src/Generated/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/Item/Policies/Item/PolicyLinkItemRequestBuilderPatchRequestConfiguration.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/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/Item/Policies/PoliciesRequestBuilder.php b/src/Generated/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/Item/Policies/PoliciesRequestBuilder.php new file mode 100644 index 00000000000..8f292ac4ced --- /dev/null +++ b/src/Generated/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/Item/Policies/PoliciesRequestBuilder.php @@ -0,0 +1,133 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the policies property of the microsoft.graph.networkaccess.profile entity. + * @param string $policyLinkId Unique identifier of the item + * @return PolicyLinkItemRequestBuilder + */ + public function byPolicyLinkId(string $policyLinkId): PolicyLinkItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['policyLink%2Did'] = $policyLinkId; + return new PolicyLinkItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new PoliciesRequestBuilder 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}/networkAccess/connectivity/branches/{branchSite%2Did}/forwardingProfiles/{forwardingProfile%2Did}/policies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get policies from networkAccess + * @param PoliciesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?PoliciesRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [PolicyLinkCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Create new navigation property to policies for networkAccess + * @param PolicyLink $body The request body + * @param PoliciesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(PolicyLink $body, ?PoliciesRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [PolicyLink::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get policies from networkAccess + * @param PoliciesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?PoliciesRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Create new navigation property to policies for networkAccess + * @param PolicyLink $body The request body + * @param PoliciesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(PolicyLink $body, ?PoliciesRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + +} diff --git a/src/Generated/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/Item/Policies/PoliciesRequestBuilderGetQueryParameters.php b/src/Generated/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/Item/Policies/PoliciesRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..9c43283c321 --- /dev/null +++ b/src/Generated/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/Item/Policies/PoliciesRequestBuilderGetQueryParameters.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 policiesRequestBuilderGetQueryParameters 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/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/Item/Policies/PoliciesRequestBuilderGetRequestConfiguration.php b/src/Generated/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/Item/Policies/PoliciesRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..d9e0fc655ba --- /dev/null +++ b/src/Generated/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/Item/Policies/PoliciesRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param PoliciesRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?PoliciesRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new policiesRequestBuilderGetQueryParameters. + * @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 PoliciesRequestBuilderGetQueryParameters + */ + 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): PoliciesRequestBuilderGetQueryParameters { + return new PoliciesRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/Item/Policies/PoliciesRequestBuilderPostRequestConfiguration.php b/src/Generated/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/Item/Policies/PoliciesRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..313a2fbd31f --- /dev/null +++ b/src/Generated/NetworkAccess/Connectivity/Branches/Item/ForwardingProfiles/Item/Policies/PoliciesRequestBuilderPostRequestConfiguration.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/NetworkAccess/Connectivity/ConnectivityRequestBuilder.php b/src/Generated/NetworkAccess/Connectivity/ConnectivityRequestBuilder.php new file mode 100644 index 00000000000..ae2ff46d245 --- /dev/null +++ b/src/Generated/NetworkAccess/Connectivity/ConnectivityRequestBuilder.php @@ -0,0 +1,155 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new ConnectivityRequestBuilder 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}/networkAccess/connectivity{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property connectivity for networkAccess + * @param ConnectivityRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function delete(?ConnectivityRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get connectivity from networkAccess + * @param ConnectivityRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ConnectivityRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [Connectivity::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the navigation property connectivity in networkAccess + * @param Connectivity $body The request body + * @param ConnectivityRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function patch(Connectivity $body, ?ConnectivityRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [Connectivity::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Delete navigation property connectivity for networkAccess + * @param ConnectivityRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?ConnectivityRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * Get connectivity from networkAccess + * @param ConnectivityRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ConnectivityRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the navigation property connectivity in networkAccess + * @param Connectivity $body The request body + * @param ConnectivityRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(Connectivity $body, ?ConnectivityRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + +} diff --git a/src/Generated/NetworkAccess/Connectivity/ConnectivityRequestBuilderDeleteRequestConfiguration.php b/src/Generated/NetworkAccess/Connectivity/ConnectivityRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..dc1a5d8492e --- /dev/null +++ b/src/Generated/NetworkAccess/Connectivity/ConnectivityRequestBuilderDeleteRequestConfiguration.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/NetworkAccess/Connectivity/ConnectivityRequestBuilderGetQueryParameters.php b/src/Generated/NetworkAccess/Connectivity/ConnectivityRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..cc7f89b89b2 --- /dev/null +++ b/src/Generated/NetworkAccess/Connectivity/ConnectivityRequestBuilderGetQueryParameters.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 connectivityRequestBuilderGetQueryParameters 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/NetworkAccess/Connectivity/ConnectivityRequestBuilderGetRequestConfiguration.php b/src/Generated/NetworkAccess/Connectivity/ConnectivityRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..c4f0adc675f --- /dev/null +++ b/src/Generated/NetworkAccess/Connectivity/ConnectivityRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ConnectivityRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ConnectivityRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new connectivityRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return ConnectivityRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): ConnectivityRequestBuilderGetQueryParameters { + return new ConnectivityRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/NetworkAccess/Connectivity/ConnectivityRequestBuilderPatchRequestConfiguration.php b/src/Generated/NetworkAccess/Connectivity/ConnectivityRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..309b55cccca --- /dev/null +++ b/src/Generated/NetworkAccess/Connectivity/ConnectivityRequestBuilderPatchRequestConfiguration.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/NetworkAccess/ForwardingPolicies/Count/CountRequestBuilder.php b/src/Generated/NetworkAccess/ForwardingPolicies/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..70a545d481c --- /dev/null +++ b/src/Generated/NetworkAccess/ForwardingPolicies/Count/CountRequestBuilder.php @@ -0,0 +1,72 @@ +|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}/networkAccess/forwardingPolicies/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + +} diff --git a/src/Generated/NetworkAccess/ForwardingPolicies/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/NetworkAccess/ForwardingPolicies/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..ca138d167d4 --- /dev/null +++ b/src/Generated/NetworkAccess/ForwardingPolicies/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/NetworkAccess/ForwardingPolicies/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/NetworkAccess/ForwardingPolicies/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..5b94f8c181c --- /dev/null +++ b/src/Generated/NetworkAccess/ForwardingPolicies/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/NetworkAccess/ForwardingPolicies/ForwardingPoliciesRequestBuilder.php b/src/Generated/NetworkAccess/ForwardingPolicies/ForwardingPoliciesRequestBuilder.php new file mode 100644 index 00000000000..8ea9da20ab6 --- /dev/null +++ b/src/Generated/NetworkAccess/ForwardingPolicies/ForwardingPoliciesRequestBuilder.php @@ -0,0 +1,133 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the forwardingPolicies property of the microsoft.graph.networkaccess.networkAccessRoot entity. + * @param string $forwardingPolicyId Unique identifier of the item + * @return ForwardingPolicyItemRequestBuilder + */ + public function byForwardingPolicyId(string $forwardingPolicyId): ForwardingPolicyItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['forwardingPolicy%2Did'] = $forwardingPolicyId; + return new ForwardingPolicyItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new ForwardingPoliciesRequestBuilder 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}/networkAccess/forwardingPolicies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get forwardingPolicies from networkAccess + * @param ForwardingPoliciesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ForwardingPoliciesRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ForwardingPolicyCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Create new navigation property to forwardingPolicies for networkAccess + * @param ForwardingPolicy $body The request body + * @param ForwardingPoliciesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(ForwardingPolicy $body, ?ForwardingPoliciesRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ForwardingPolicy::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get forwardingPolicies from networkAccess + * @param ForwardingPoliciesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ForwardingPoliciesRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Create new navigation property to forwardingPolicies for networkAccess + * @param ForwardingPolicy $body The request body + * @param ForwardingPoliciesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(ForwardingPolicy $body, ?ForwardingPoliciesRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + +} diff --git a/src/Generated/NetworkAccess/ForwardingPolicies/ForwardingPoliciesRequestBuilderGetQueryParameters.php b/src/Generated/NetworkAccess/ForwardingPolicies/ForwardingPoliciesRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..f763f9f1882 --- /dev/null +++ b/src/Generated/NetworkAccess/ForwardingPolicies/ForwardingPoliciesRequestBuilderGetQueryParameters.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 forwardingPoliciesRequestBuilderGetQueryParameters 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/NetworkAccess/ForwardingPolicies/ForwardingPoliciesRequestBuilderGetRequestConfiguration.php b/src/Generated/NetworkAccess/ForwardingPolicies/ForwardingPoliciesRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..43293d05bde --- /dev/null +++ b/src/Generated/NetworkAccess/ForwardingPolicies/ForwardingPoliciesRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ForwardingPoliciesRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ForwardingPoliciesRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new forwardingPoliciesRequestBuilderGetQueryParameters. + * @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 ForwardingPoliciesRequestBuilderGetQueryParameters + */ + 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): ForwardingPoliciesRequestBuilderGetQueryParameters { + return new ForwardingPoliciesRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/NetworkAccess/ForwardingPolicies/ForwardingPoliciesRequestBuilderPostRequestConfiguration.php b/src/Generated/NetworkAccess/ForwardingPolicies/ForwardingPoliciesRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..3c401b97498 --- /dev/null +++ b/src/Generated/NetworkAccess/ForwardingPolicies/ForwardingPoliciesRequestBuilderPostRequestConfiguration.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/NetworkAccess/ForwardingPolicies/Item/ForwardingPolicyItemRequestBuilder.php b/src/Generated/NetworkAccess/ForwardingPolicies/Item/ForwardingPolicyItemRequestBuilder.php new file mode 100644 index 00000000000..5976a0a1369 --- /dev/null +++ b/src/Generated/NetworkAccess/ForwardingPolicies/Item/ForwardingPolicyItemRequestBuilder.php @@ -0,0 +1,163 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the policyRules property of the microsoft.graph.networkaccess.policy entity. + */ + public function policyRules(): PolicyRulesRequestBuilder { + return new PolicyRulesRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new ForwardingPolicyItemRequestBuilder 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}/networkAccess/forwardingPolicies/{forwardingPolicy%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property forwardingPolicies for networkAccess + * @param ForwardingPolicyItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function delete(?ForwardingPolicyItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get forwardingPolicies from networkAccess + * @param ForwardingPolicyItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ForwardingPolicyItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ForwardingPolicy::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the navigation property forwardingPolicies in networkAccess + * @param ForwardingPolicy $body The request body + * @param ForwardingPolicyItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function patch(ForwardingPolicy $body, ?ForwardingPolicyItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ForwardingPolicy::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Delete navigation property forwardingPolicies for networkAccess + * @param ForwardingPolicyItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?ForwardingPolicyItemRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * Get forwardingPolicies from networkAccess + * @param ForwardingPolicyItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ForwardingPolicyItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the navigation property forwardingPolicies in networkAccess + * @param ForwardingPolicy $body The request body + * @param ForwardingPolicyItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(ForwardingPolicy $body, ?ForwardingPolicyItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + +} diff --git a/src/Generated/NetworkAccess/ForwardingPolicies/Item/ForwardingPolicyItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/NetworkAccess/ForwardingPolicies/Item/ForwardingPolicyItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..7a1cc4529ba --- /dev/null +++ b/src/Generated/NetworkAccess/ForwardingPolicies/Item/ForwardingPolicyItemRequestBuilderDeleteRequestConfiguration.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/NetworkAccess/ForwardingPolicies/Item/ForwardingPolicyItemRequestBuilderGetQueryParameters.php b/src/Generated/NetworkAccess/ForwardingPolicies/Item/ForwardingPolicyItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..ffe0956a587 --- /dev/null +++ b/src/Generated/NetworkAccess/ForwardingPolicies/Item/ForwardingPolicyItemRequestBuilderGetQueryParameters.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 ForwardingPolicyItemRequestBuilderGetQueryParameters 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/NetworkAccess/ForwardingPolicies/Item/ForwardingPolicyItemRequestBuilderGetRequestConfiguration.php b/src/Generated/NetworkAccess/ForwardingPolicies/Item/ForwardingPolicyItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..9395fae455e --- /dev/null +++ b/src/Generated/NetworkAccess/ForwardingPolicies/Item/ForwardingPolicyItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ForwardingPolicyItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ForwardingPolicyItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new ForwardingPolicyItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return ForwardingPolicyItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): ForwardingPolicyItemRequestBuilderGetQueryParameters { + return new ForwardingPolicyItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/NetworkAccess/ForwardingPolicies/Item/ForwardingPolicyItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/NetworkAccess/ForwardingPolicies/Item/ForwardingPolicyItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..0eaa842643b --- /dev/null +++ b/src/Generated/NetworkAccess/ForwardingPolicies/Item/ForwardingPolicyItemRequestBuilderPatchRequestConfiguration.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/NetworkAccess/ForwardingPolicies/Item/MicrosoftGraphNetworkaccessUpdatePolicyRules/MicrosoftGraphNetworkaccessUpdatePolicyRulesRequestBuilder.php b/src/Generated/NetworkAccess/ForwardingPolicies/Item/MicrosoftGraphNetworkaccessUpdatePolicyRules/MicrosoftGraphNetworkaccessUpdatePolicyRulesRequestBuilder.php new file mode 100644 index 00000000000..dd73c33b2fa --- /dev/null +++ b/src/Generated/NetworkAccess/ForwardingPolicies/Item/MicrosoftGraphNetworkaccessUpdatePolicyRules/MicrosoftGraphNetworkaccessUpdatePolicyRulesRequestBuilder.php @@ -0,0 +1,71 @@ +|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}/networkAccess/forwardingPolicies/{forwardingPolicy%2Did}/microsoft.graph.networkaccess.updatePolicyRules'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Invoke action updatePolicyRules + * @param UpdatePolicyRulesPostRequestBody $body The request body + * @param MicrosoftGraphNetworkaccessUpdatePolicyRulesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(UpdatePolicyRulesPostRequestBody $body, ?MicrosoftGraphNetworkaccessUpdatePolicyRulesRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Invoke action updatePolicyRules + * @param UpdatePolicyRulesPostRequestBody $body The request body + * @param MicrosoftGraphNetworkaccessUpdatePolicyRulesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(UpdatePolicyRulesPostRequestBody $body, ?MicrosoftGraphNetworkaccessUpdatePolicyRulesRequestBuilderPostRequestConfiguration $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->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + +} diff --git a/src/Generated/NetworkAccess/ForwardingPolicies/Item/MicrosoftGraphNetworkaccessUpdatePolicyRules/MicrosoftGraphNetworkaccessUpdatePolicyRulesRequestBuilderPostRequestConfiguration.php b/src/Generated/NetworkAccess/ForwardingPolicies/Item/MicrosoftGraphNetworkaccessUpdatePolicyRules/MicrosoftGraphNetworkaccessUpdatePolicyRulesRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..8027da65a9c --- /dev/null +++ b/src/Generated/NetworkAccess/ForwardingPolicies/Item/MicrosoftGraphNetworkaccessUpdatePolicyRules/MicrosoftGraphNetworkaccessUpdatePolicyRulesRequestBuilderPostRequestConfiguration.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/NetworkAccess/ForwardingPolicies/Item/MicrosoftGraphNetworkaccessUpdatePolicyRules/UpdatePolicyRulesPostRequestBody.php b/src/Generated/NetworkAccess/ForwardingPolicies/Item/MicrosoftGraphNetworkaccessUpdatePolicyRules/UpdatePolicyRulesPostRequestBody.php new file mode 100644 index 00000000000..61b6efdee32 --- /dev/null +++ b/src/Generated/NetworkAccess/ForwardingPolicies/Item/MicrosoftGraphNetworkaccessUpdatePolicyRules/UpdatePolicyRulesPostRequestBody.php @@ -0,0 +1,106 @@ +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 UpdatePolicyRulesPostRequestBody + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): UpdatePolicyRulesPostRequestBody { + return new UpdatePolicyRulesPostRequestBody(); + } + + /** + * 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 { + return $this->getBackingStore()->get('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 [ + 'rules' => fn(ParseNode $n) => $o->setRules($n->getCollectionOfObjectValues([PolicyRuleDelta::class, 'createFromDiscriminatorValue'])), + ]; + } + + /** + * Gets the rules property value. The rules property + * @return array|null + */ + public function getRules(): ?array { + return $this->getBackingStore()->get('rules'); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + $writer->writeCollectionOfObjectValues('rules', $this->getRules()); + $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 rules property value. The rules property + * @param array|null $value Value to set for the rules property. + */ + public function setRules(?array $value): void { + $this->getBackingStore()->set('rules', $value); + } + +} diff --git a/src/Generated/NetworkAccess/ForwardingPolicies/Item/PolicyRules/Count/CountRequestBuilder.php b/src/Generated/NetworkAccess/ForwardingPolicies/Item/PolicyRules/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..ce572d13c61 --- /dev/null +++ b/src/Generated/NetworkAccess/ForwardingPolicies/Item/PolicyRules/Count/CountRequestBuilder.php @@ -0,0 +1,72 @@ +|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}/networkAccess/forwardingPolicies/{forwardingPolicy%2Did}/policyRules/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + +} diff --git a/src/Generated/NetworkAccess/ForwardingPolicies/Item/PolicyRules/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/NetworkAccess/ForwardingPolicies/Item/PolicyRules/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..6e67f36bd46 --- /dev/null +++ b/src/Generated/NetworkAccess/ForwardingPolicies/Item/PolicyRules/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/NetworkAccess/ForwardingPolicies/Item/PolicyRules/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/NetworkAccess/ForwardingPolicies/Item/PolicyRules/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..2d0ae2be9ee --- /dev/null +++ b/src/Generated/NetworkAccess/ForwardingPolicies/Item/PolicyRules/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/NetworkAccess/ForwardingPolicies/Item/PolicyRules/Item/PolicyRuleItemRequestBuilder.php b/src/Generated/NetworkAccess/ForwardingPolicies/Item/PolicyRules/Item/PolicyRuleItemRequestBuilder.php new file mode 100644 index 00000000000..fa30c6e2d9b --- /dev/null +++ b/src/Generated/NetworkAccess/ForwardingPolicies/Item/PolicyRules/Item/PolicyRuleItemRequestBuilder.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. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/networkAccess/forwardingPolicies/{forwardingPolicy%2Did}/policyRules/{policyRule%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property policyRules for networkAccess + * @param PolicyRuleItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function delete(?PolicyRuleItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get policyRules from networkAccess + * @param PolicyRuleItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?PolicyRuleItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [PolicyRule::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the navigation property policyRules in networkAccess + * @param PolicyRule $body The request body + * @param PolicyRuleItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function patch(PolicyRule $body, ?PolicyRuleItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [PolicyRule::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Delete navigation property policyRules for networkAccess + * @param PolicyRuleItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?PolicyRuleItemRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * Get policyRules from networkAccess + * @param PolicyRuleItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?PolicyRuleItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the navigation property policyRules in networkAccess + * @param PolicyRule $body The request body + * @param PolicyRuleItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(PolicyRule $body, ?PolicyRuleItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + +} diff --git a/src/Generated/NetworkAccess/ForwardingPolicies/Item/PolicyRules/Item/PolicyRuleItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/NetworkAccess/ForwardingPolicies/Item/PolicyRules/Item/PolicyRuleItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..a37f2119e86 --- /dev/null +++ b/src/Generated/NetworkAccess/ForwardingPolicies/Item/PolicyRules/Item/PolicyRuleItemRequestBuilderDeleteRequestConfiguration.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/NetworkAccess/ForwardingPolicies/Item/PolicyRules/Item/PolicyRuleItemRequestBuilderGetQueryParameters.php b/src/Generated/NetworkAccess/ForwardingPolicies/Item/PolicyRules/Item/PolicyRuleItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..0bb0945f08c --- /dev/null +++ b/src/Generated/NetworkAccess/ForwardingPolicies/Item/PolicyRules/Item/PolicyRuleItemRequestBuilderGetQueryParameters.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 PolicyRuleItemRequestBuilderGetQueryParameters 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/NetworkAccess/ForwardingPolicies/Item/PolicyRules/Item/PolicyRuleItemRequestBuilderGetRequestConfiguration.php b/src/Generated/NetworkAccess/ForwardingPolicies/Item/PolicyRules/Item/PolicyRuleItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..2dadaf56285 --- /dev/null +++ b/src/Generated/NetworkAccess/ForwardingPolicies/Item/PolicyRules/Item/PolicyRuleItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param PolicyRuleItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?PolicyRuleItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new PolicyRuleItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return PolicyRuleItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): PolicyRuleItemRequestBuilderGetQueryParameters { + return new PolicyRuleItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/NetworkAccess/ForwardingPolicies/Item/PolicyRules/Item/PolicyRuleItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/NetworkAccess/ForwardingPolicies/Item/PolicyRules/Item/PolicyRuleItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..004cb8e4011 --- /dev/null +++ b/src/Generated/NetworkAccess/ForwardingPolicies/Item/PolicyRules/Item/PolicyRuleItemRequestBuilderPatchRequestConfiguration.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/NetworkAccess/ForwardingPolicies/Item/PolicyRules/PolicyRulesRequestBuilder.php b/src/Generated/NetworkAccess/ForwardingPolicies/Item/PolicyRules/PolicyRulesRequestBuilder.php new file mode 100644 index 00000000000..3083a4abe6e --- /dev/null +++ b/src/Generated/NetworkAccess/ForwardingPolicies/Item/PolicyRules/PolicyRulesRequestBuilder.php @@ -0,0 +1,133 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the policyRules property of the microsoft.graph.networkaccess.policy entity. + * @param string $policyRuleId Unique identifier of the item + * @return PolicyRuleItemRequestBuilder + */ + public function byPolicyRuleId(string $policyRuleId): PolicyRuleItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['policyRule%2Did'] = $policyRuleId; + return new PolicyRuleItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new PolicyRulesRequestBuilder 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}/networkAccess/forwardingPolicies/{forwardingPolicy%2Did}/policyRules{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get policyRules from networkAccess + * @param PolicyRulesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?PolicyRulesRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [PolicyRuleCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Create new navigation property to policyRules for networkAccess + * @param PolicyRule $body The request body + * @param PolicyRulesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(PolicyRule $body, ?PolicyRulesRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [PolicyRule::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get policyRules from networkAccess + * @param PolicyRulesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?PolicyRulesRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Create new navigation property to policyRules for networkAccess + * @param PolicyRule $body The request body + * @param PolicyRulesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(PolicyRule $body, ?PolicyRulesRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + +} diff --git a/src/Generated/NetworkAccess/ForwardingPolicies/Item/PolicyRules/PolicyRulesRequestBuilderGetQueryParameters.php b/src/Generated/NetworkAccess/ForwardingPolicies/Item/PolicyRules/PolicyRulesRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..17e7b23d726 --- /dev/null +++ b/src/Generated/NetworkAccess/ForwardingPolicies/Item/PolicyRules/PolicyRulesRequestBuilderGetQueryParameters.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 policyRulesRequestBuilderGetQueryParameters 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/NetworkAccess/ForwardingPolicies/Item/PolicyRules/PolicyRulesRequestBuilderGetRequestConfiguration.php b/src/Generated/NetworkAccess/ForwardingPolicies/Item/PolicyRules/PolicyRulesRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..10c980f19cd --- /dev/null +++ b/src/Generated/NetworkAccess/ForwardingPolicies/Item/PolicyRules/PolicyRulesRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param PolicyRulesRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?PolicyRulesRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new policyRulesRequestBuilderGetQueryParameters. + * @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 PolicyRulesRequestBuilderGetQueryParameters + */ + 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): PolicyRulesRequestBuilderGetQueryParameters { + return new PolicyRulesRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/NetworkAccess/ForwardingPolicies/Item/PolicyRules/PolicyRulesRequestBuilderPostRequestConfiguration.php b/src/Generated/NetworkAccess/ForwardingPolicies/Item/PolicyRules/PolicyRulesRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..90bf1bcafb6 --- /dev/null +++ b/src/Generated/NetworkAccess/ForwardingPolicies/Item/PolicyRules/PolicyRulesRequestBuilderPostRequestConfiguration.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/NetworkAccess/ForwardingProfiles/Count/CountRequestBuilder.php b/src/Generated/NetworkAccess/ForwardingProfiles/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..7fe50670369 --- /dev/null +++ b/src/Generated/NetworkAccess/ForwardingProfiles/Count/CountRequestBuilder.php @@ -0,0 +1,72 @@ +|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}/networkAccess/forwardingProfiles/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + +} diff --git a/src/Generated/NetworkAccess/ForwardingProfiles/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/NetworkAccess/ForwardingProfiles/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..4f2a2d261fd --- /dev/null +++ b/src/Generated/NetworkAccess/ForwardingProfiles/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/NetworkAccess/ForwardingProfiles/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/NetworkAccess/ForwardingProfiles/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..0a92f83ce19 --- /dev/null +++ b/src/Generated/NetworkAccess/ForwardingProfiles/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/NetworkAccess/ForwardingProfiles/ForwardingProfilesRequestBuilder.php b/src/Generated/NetworkAccess/ForwardingProfiles/ForwardingProfilesRequestBuilder.php new file mode 100644 index 00000000000..d3f3f40ed8c --- /dev/null +++ b/src/Generated/NetworkAccess/ForwardingProfiles/ForwardingProfilesRequestBuilder.php @@ -0,0 +1,133 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the forwardingProfiles property of the microsoft.graph.networkaccess.networkAccessRoot entity. + * @param string $forwardingProfileId Unique identifier of the item + * @return ForwardingProfileItemRequestBuilder + */ + public function byForwardingProfileId(string $forwardingProfileId): ForwardingProfileItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['forwardingProfile%2Did'] = $forwardingProfileId; + return new ForwardingProfileItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new ForwardingProfilesRequestBuilder 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}/networkAccess/forwardingProfiles{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get forwardingProfiles from networkAccess + * @param ForwardingProfilesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ForwardingProfilesRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ForwardingProfileCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Create new navigation property to forwardingProfiles for networkAccess + * @param ForwardingProfile $body The request body + * @param ForwardingProfilesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(ForwardingProfile $body, ?ForwardingProfilesRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ForwardingProfile::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get forwardingProfiles from networkAccess + * @param ForwardingProfilesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ForwardingProfilesRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Create new navigation property to forwardingProfiles for networkAccess + * @param ForwardingProfile $body The request body + * @param ForwardingProfilesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(ForwardingProfile $body, ?ForwardingProfilesRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + +} diff --git a/src/Generated/NetworkAccess/ForwardingProfiles/ForwardingProfilesRequestBuilderGetQueryParameters.php b/src/Generated/NetworkAccess/ForwardingProfiles/ForwardingProfilesRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..df35fe0e423 --- /dev/null +++ b/src/Generated/NetworkAccess/ForwardingProfiles/ForwardingProfilesRequestBuilderGetQueryParameters.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 forwardingProfilesRequestBuilderGetQueryParameters 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/NetworkAccess/ForwardingProfiles/ForwardingProfilesRequestBuilderGetRequestConfiguration.php b/src/Generated/NetworkAccess/ForwardingProfiles/ForwardingProfilesRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..22fc71935e6 --- /dev/null +++ b/src/Generated/NetworkAccess/ForwardingProfiles/ForwardingProfilesRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ForwardingProfilesRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ForwardingProfilesRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new forwardingProfilesRequestBuilderGetQueryParameters. + * @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 ForwardingProfilesRequestBuilderGetQueryParameters + */ + 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): ForwardingProfilesRequestBuilderGetQueryParameters { + return new ForwardingProfilesRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/NetworkAccess/ForwardingProfiles/ForwardingProfilesRequestBuilderPostRequestConfiguration.php b/src/Generated/NetworkAccess/ForwardingProfiles/ForwardingProfilesRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..20c0a42ff00 --- /dev/null +++ b/src/Generated/NetworkAccess/ForwardingProfiles/ForwardingProfilesRequestBuilderPostRequestConfiguration.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/NetworkAccess/ForwardingProfiles/Item/ForwardingProfileItemRequestBuilder.php b/src/Generated/NetworkAccess/ForwardingProfiles/Item/ForwardingProfileItemRequestBuilder.php new file mode 100644 index 00000000000..19a0cb62c4f --- /dev/null +++ b/src/Generated/NetworkAccess/ForwardingProfiles/Item/ForwardingProfileItemRequestBuilder.php @@ -0,0 +1,155 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new ForwardingProfileItemRequestBuilder 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}/networkAccess/forwardingProfiles/{forwardingProfile%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property forwardingProfiles for networkAccess + * @param ForwardingProfileItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function delete(?ForwardingProfileItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get forwardingProfiles from networkAccess + * @param ForwardingProfileItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ForwardingProfileItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ForwardingProfile::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the navigation property forwardingProfiles in networkAccess + * @param ForwardingProfile $body The request body + * @param ForwardingProfileItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function patch(ForwardingProfile $body, ?ForwardingProfileItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ForwardingProfile::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Delete navigation property forwardingProfiles for networkAccess + * @param ForwardingProfileItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?ForwardingProfileItemRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * Get forwardingProfiles from networkAccess + * @param ForwardingProfileItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ForwardingProfileItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the navigation property forwardingProfiles in networkAccess + * @param ForwardingProfile $body The request body + * @param ForwardingProfileItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(ForwardingProfile $body, ?ForwardingProfileItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + +} diff --git a/src/Generated/NetworkAccess/ForwardingProfiles/Item/ForwardingProfileItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/NetworkAccess/ForwardingProfiles/Item/ForwardingProfileItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..2117bc0ad90 --- /dev/null +++ b/src/Generated/NetworkAccess/ForwardingProfiles/Item/ForwardingProfileItemRequestBuilderDeleteRequestConfiguration.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/NetworkAccess/ForwardingProfiles/Item/ForwardingProfileItemRequestBuilderGetQueryParameters.php b/src/Generated/NetworkAccess/ForwardingProfiles/Item/ForwardingProfileItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..1f452340f80 --- /dev/null +++ b/src/Generated/NetworkAccess/ForwardingProfiles/Item/ForwardingProfileItemRequestBuilderGetQueryParameters.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 ForwardingProfileItemRequestBuilderGetQueryParameters 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/NetworkAccess/ForwardingProfiles/Item/ForwardingProfileItemRequestBuilderGetRequestConfiguration.php b/src/Generated/NetworkAccess/ForwardingProfiles/Item/ForwardingProfileItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..3d862115fb1 --- /dev/null +++ b/src/Generated/NetworkAccess/ForwardingProfiles/Item/ForwardingProfileItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ForwardingProfileItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ForwardingProfileItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new ForwardingProfileItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return ForwardingProfileItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): ForwardingProfileItemRequestBuilderGetQueryParameters { + return new ForwardingProfileItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/NetworkAccess/ForwardingProfiles/Item/ForwardingProfileItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/NetworkAccess/ForwardingProfiles/Item/ForwardingProfileItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..93f3b9c05e2 --- /dev/null +++ b/src/Generated/NetworkAccess/ForwardingProfiles/Item/ForwardingProfileItemRequestBuilderPatchRequestConfiguration.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/NetworkAccess/ForwardingProfiles/Item/Policies/Count/CountRequestBuilder.php b/src/Generated/NetworkAccess/ForwardingProfiles/Item/Policies/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..1b8a98d5af3 --- /dev/null +++ b/src/Generated/NetworkAccess/ForwardingProfiles/Item/Policies/Count/CountRequestBuilder.php @@ -0,0 +1,72 @@ +|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}/networkAccess/forwardingProfiles/{forwardingProfile%2Did}/policies/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + +} diff --git a/src/Generated/NetworkAccess/ForwardingProfiles/Item/Policies/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/NetworkAccess/ForwardingProfiles/Item/Policies/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..8afd210fd4e --- /dev/null +++ b/src/Generated/NetworkAccess/ForwardingProfiles/Item/Policies/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/NetworkAccess/ForwardingProfiles/Item/Policies/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/NetworkAccess/ForwardingProfiles/Item/Policies/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..6093b947fb5 --- /dev/null +++ b/src/Generated/NetworkAccess/ForwardingProfiles/Item/Policies/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/NetworkAccess/ForwardingProfiles/Item/Policies/Item/Policy/PolicyRequestBuilder.php b/src/Generated/NetworkAccess/ForwardingProfiles/Item/Policies/Item/Policy/PolicyRequestBuilder.php new file mode 100644 index 00000000000..5d0c21a08c6 --- /dev/null +++ b/src/Generated/NetworkAccess/ForwardingProfiles/Item/Policies/Item/Policy/PolicyRequestBuilder.php @@ -0,0 +1,73 @@ +|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}/networkAccess/forwardingProfiles/{forwardingProfile%2Did}/policies/{policyLink%2Did}/policy{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get policy from networkAccess + * @param PolicyRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?PolicyRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [Policy::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get policy from networkAccess + * @param PolicyRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?PolicyRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + +} diff --git a/src/Generated/NetworkAccess/ForwardingProfiles/Item/Policies/Item/Policy/PolicyRequestBuilderGetQueryParameters.php b/src/Generated/NetworkAccess/ForwardingProfiles/Item/Policies/Item/Policy/PolicyRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..355b26c2cbe --- /dev/null +++ b/src/Generated/NetworkAccess/ForwardingProfiles/Item/Policies/Item/Policy/PolicyRequestBuilderGetQueryParameters.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 policyRequestBuilderGetQueryParameters 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/NetworkAccess/ForwardingProfiles/Item/Policies/Item/Policy/PolicyRequestBuilderGetRequestConfiguration.php b/src/Generated/NetworkAccess/ForwardingProfiles/Item/Policies/Item/Policy/PolicyRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..0f40bebf6a8 --- /dev/null +++ b/src/Generated/NetworkAccess/ForwardingProfiles/Item/Policies/Item/Policy/PolicyRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param PolicyRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?PolicyRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new policyRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return PolicyRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): PolicyRequestBuilderGetQueryParameters { + return new PolicyRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/NetworkAccess/ForwardingProfiles/Item/Policies/Item/PolicyLinkItemRequestBuilder.php b/src/Generated/NetworkAccess/ForwardingProfiles/Item/Policies/Item/PolicyLinkItemRequestBuilder.php new file mode 100644 index 00000000000..d7f7bcb08b3 --- /dev/null +++ b/src/Generated/NetworkAccess/ForwardingProfiles/Item/Policies/Item/PolicyLinkItemRequestBuilder.php @@ -0,0 +1,155 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new PolicyLinkItemRequestBuilder 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}/networkAccess/forwardingProfiles/{forwardingProfile%2Did}/policies/{policyLink%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property policies for networkAccess + * @param PolicyLinkItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function delete(?PolicyLinkItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get policies from networkAccess + * @param PolicyLinkItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?PolicyLinkItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [PolicyLink::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the navigation property policies in networkAccess + * @param PolicyLink $body The request body + * @param PolicyLinkItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function patch(PolicyLink $body, ?PolicyLinkItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [PolicyLink::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Delete navigation property policies for networkAccess + * @param PolicyLinkItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?PolicyLinkItemRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * Get policies from networkAccess + * @param PolicyLinkItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?PolicyLinkItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the navigation property policies in networkAccess + * @param PolicyLink $body The request body + * @param PolicyLinkItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(PolicyLink $body, ?PolicyLinkItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + +} diff --git a/src/Generated/NetworkAccess/ForwardingProfiles/Item/Policies/Item/PolicyLinkItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/NetworkAccess/ForwardingProfiles/Item/Policies/Item/PolicyLinkItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..21452b4cff2 --- /dev/null +++ b/src/Generated/NetworkAccess/ForwardingProfiles/Item/Policies/Item/PolicyLinkItemRequestBuilderDeleteRequestConfiguration.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/NetworkAccess/ForwardingProfiles/Item/Policies/Item/PolicyLinkItemRequestBuilderGetQueryParameters.php b/src/Generated/NetworkAccess/ForwardingProfiles/Item/Policies/Item/PolicyLinkItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..23013cff13f --- /dev/null +++ b/src/Generated/NetworkAccess/ForwardingProfiles/Item/Policies/Item/PolicyLinkItemRequestBuilderGetQueryParameters.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 PolicyLinkItemRequestBuilderGetQueryParameters 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/NetworkAccess/ForwardingProfiles/Item/Policies/Item/PolicyLinkItemRequestBuilderGetRequestConfiguration.php b/src/Generated/NetworkAccess/ForwardingProfiles/Item/Policies/Item/PolicyLinkItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..9111a48285b --- /dev/null +++ b/src/Generated/NetworkAccess/ForwardingProfiles/Item/Policies/Item/PolicyLinkItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param PolicyLinkItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?PolicyLinkItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new PolicyLinkItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return PolicyLinkItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): PolicyLinkItemRequestBuilderGetQueryParameters { + return new PolicyLinkItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/NetworkAccess/ForwardingProfiles/Item/Policies/Item/PolicyLinkItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/NetworkAccess/ForwardingProfiles/Item/Policies/Item/PolicyLinkItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..075e67a0bde --- /dev/null +++ b/src/Generated/NetworkAccess/ForwardingProfiles/Item/Policies/Item/PolicyLinkItemRequestBuilderPatchRequestConfiguration.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/NetworkAccess/ForwardingProfiles/Item/Policies/PoliciesRequestBuilder.php b/src/Generated/NetworkAccess/ForwardingProfiles/Item/Policies/PoliciesRequestBuilder.php new file mode 100644 index 00000000000..0bfc0d0ba90 --- /dev/null +++ b/src/Generated/NetworkAccess/ForwardingProfiles/Item/Policies/PoliciesRequestBuilder.php @@ -0,0 +1,133 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the policies property of the microsoft.graph.networkaccess.profile entity. + * @param string $policyLinkId Unique identifier of the item + * @return PolicyLinkItemRequestBuilder + */ + public function byPolicyLinkId(string $policyLinkId): PolicyLinkItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['policyLink%2Did'] = $policyLinkId; + return new PolicyLinkItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new PoliciesRequestBuilder 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}/networkAccess/forwardingProfiles/{forwardingProfile%2Did}/policies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get policies from networkAccess + * @param PoliciesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?PoliciesRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [PolicyLinkCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Create new navigation property to policies for networkAccess + * @param PolicyLink $body The request body + * @param PoliciesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(PolicyLink $body, ?PoliciesRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [PolicyLink::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get policies from networkAccess + * @param PoliciesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?PoliciesRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Create new navigation property to policies for networkAccess + * @param PolicyLink $body The request body + * @param PoliciesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(PolicyLink $body, ?PoliciesRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + +} diff --git a/src/Generated/NetworkAccess/ForwardingProfiles/Item/Policies/PoliciesRequestBuilderGetQueryParameters.php b/src/Generated/NetworkAccess/ForwardingProfiles/Item/Policies/PoliciesRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..062dce70cf7 --- /dev/null +++ b/src/Generated/NetworkAccess/ForwardingProfiles/Item/Policies/PoliciesRequestBuilderGetQueryParameters.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 policiesRequestBuilderGetQueryParameters 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/NetworkAccess/ForwardingProfiles/Item/Policies/PoliciesRequestBuilderGetRequestConfiguration.php b/src/Generated/NetworkAccess/ForwardingProfiles/Item/Policies/PoliciesRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..8afd57aac02 --- /dev/null +++ b/src/Generated/NetworkAccess/ForwardingProfiles/Item/Policies/PoliciesRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param PoliciesRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?PoliciesRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new policiesRequestBuilderGetQueryParameters. + * @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 PoliciesRequestBuilderGetQueryParameters + */ + 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): PoliciesRequestBuilderGetQueryParameters { + return new PoliciesRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/NetworkAccess/ForwardingProfiles/Item/Policies/PoliciesRequestBuilderPostRequestConfiguration.php b/src/Generated/NetworkAccess/ForwardingProfiles/Item/Policies/PoliciesRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..0ebd84607bc --- /dev/null +++ b/src/Generated/NetworkAccess/ForwardingProfiles/Item/Policies/PoliciesRequestBuilderPostRequestConfiguration.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/NetworkAccess/Logs/LogsRequestBuilder.php b/src/Generated/NetworkAccess/Logs/LogsRequestBuilder.php new file mode 100644 index 00000000000..90967c65e51 --- /dev/null +++ b/src/Generated/NetworkAccess/Logs/LogsRequestBuilder.php @@ -0,0 +1,155 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new LogsRequestBuilder 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}/networkAccess/logs{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property logs for networkAccess + * @param LogsRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function delete(?LogsRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get logs from networkAccess + * @param LogsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?LogsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [Logs::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the navigation property logs in networkAccess + * @param Logs $body The request body + * @param LogsRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function patch(Logs $body, ?LogsRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [Logs::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Delete navigation property logs for networkAccess + * @param LogsRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?LogsRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * Get logs from networkAccess + * @param LogsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?LogsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the navigation property logs in networkAccess + * @param Logs $body The request body + * @param LogsRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(Logs $body, ?LogsRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + +} diff --git a/src/Generated/NetworkAccess/Logs/LogsRequestBuilderDeleteRequestConfiguration.php b/src/Generated/NetworkAccess/Logs/LogsRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..47ec116c9f5 --- /dev/null +++ b/src/Generated/NetworkAccess/Logs/LogsRequestBuilderDeleteRequestConfiguration.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/NetworkAccess/Logs/LogsRequestBuilderGetQueryParameters.php b/src/Generated/NetworkAccess/Logs/LogsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..783c4ba94bf --- /dev/null +++ b/src/Generated/NetworkAccess/Logs/LogsRequestBuilderGetQueryParameters.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 logsRequestBuilderGetQueryParameters 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/NetworkAccess/Logs/LogsRequestBuilderGetRequestConfiguration.php b/src/Generated/NetworkAccess/Logs/LogsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..5683fafce26 --- /dev/null +++ b/src/Generated/NetworkAccess/Logs/LogsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param LogsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?LogsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new logsRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return LogsRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): LogsRequestBuilderGetQueryParameters { + return new LogsRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/NetworkAccess/Logs/LogsRequestBuilderPatchRequestConfiguration.php b/src/Generated/NetworkAccess/Logs/LogsRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..481cd2909fe --- /dev/null +++ b/src/Generated/NetworkAccess/Logs/LogsRequestBuilderPatchRequestConfiguration.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/NetworkAccess/Logs/Traffic/Count/CountRequestBuilder.php b/src/Generated/NetworkAccess/Logs/Traffic/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..25067f938a8 --- /dev/null +++ b/src/Generated/NetworkAccess/Logs/Traffic/Count/CountRequestBuilder.php @@ -0,0 +1,72 @@ +|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}/networkAccess/logs/traffic/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + +} diff --git a/src/Generated/NetworkAccess/Logs/Traffic/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/NetworkAccess/Logs/Traffic/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..43044456676 --- /dev/null +++ b/src/Generated/NetworkAccess/Logs/Traffic/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/NetworkAccess/Logs/Traffic/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/NetworkAccess/Logs/Traffic/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..851bf34d986 --- /dev/null +++ b/src/Generated/NetworkAccess/Logs/Traffic/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/NetworkAccess/Logs/Traffic/Item/NetworkAccessTrafficTransactionItemRequestBuilder.php b/src/Generated/NetworkAccess/Logs/Traffic/Item/NetworkAccessTrafficTransactionItemRequestBuilder.php new file mode 100644 index 00000000000..870fa6646bb --- /dev/null +++ b/src/Generated/NetworkAccess/Logs/Traffic/Item/NetworkAccessTrafficTransactionItemRequestBuilder.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. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/networkAccess/logs/traffic/{networkAccessTraffic%2DtransactionId}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property traffic for networkAccess + * @param NetworkAccessTrafficTransactionItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function delete(?NetworkAccessTrafficTransactionItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get traffic from networkAccess + * @param NetworkAccessTrafficTransactionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?NetworkAccessTrafficTransactionItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [NetworkAccessTraffic::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the navigation property traffic in networkAccess + * @param NetworkAccessTraffic $body The request body + * @param NetworkAccessTrafficTransactionItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function patch(NetworkAccessTraffic $body, ?NetworkAccessTrafficTransactionItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [NetworkAccessTraffic::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Delete navigation property traffic for networkAccess + * @param NetworkAccessTrafficTransactionItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?NetworkAccessTrafficTransactionItemRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * Get traffic from networkAccess + * @param NetworkAccessTrafficTransactionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?NetworkAccessTrafficTransactionItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the navigation property traffic in networkAccess + * @param NetworkAccessTraffic $body The request body + * @param NetworkAccessTrafficTransactionItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(NetworkAccessTraffic $body, ?NetworkAccessTrafficTransactionItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + +} diff --git a/src/Generated/NetworkAccess/Logs/Traffic/Item/NetworkAccessTrafficTransactionItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/NetworkAccess/Logs/Traffic/Item/NetworkAccessTrafficTransactionItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..8406daddf74 --- /dev/null +++ b/src/Generated/NetworkAccess/Logs/Traffic/Item/NetworkAccessTrafficTransactionItemRequestBuilderDeleteRequestConfiguration.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/NetworkAccess/Logs/Traffic/Item/NetworkAccessTrafficTransactionItemRequestBuilderGetQueryParameters.php b/src/Generated/NetworkAccess/Logs/Traffic/Item/NetworkAccessTrafficTransactionItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..12b7787e038 --- /dev/null +++ b/src/Generated/NetworkAccess/Logs/Traffic/Item/NetworkAccessTrafficTransactionItemRequestBuilderGetQueryParameters.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 NetworkAccessTrafficTransactionItemRequestBuilderGetQueryParameters 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/NetworkAccess/Logs/Traffic/Item/NetworkAccessTrafficTransactionItemRequestBuilderGetRequestConfiguration.php b/src/Generated/NetworkAccess/Logs/Traffic/Item/NetworkAccessTrafficTransactionItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..0bf623fc4db --- /dev/null +++ b/src/Generated/NetworkAccess/Logs/Traffic/Item/NetworkAccessTrafficTransactionItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param NetworkAccessTrafficTransactionItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?NetworkAccessTrafficTransactionItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new NetworkAccessTrafficTransactionItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return NetworkAccessTrafficTransactionItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): NetworkAccessTrafficTransactionItemRequestBuilderGetQueryParameters { + return new NetworkAccessTrafficTransactionItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/NetworkAccess/Logs/Traffic/Item/NetworkAccessTrafficTransactionItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/NetworkAccess/Logs/Traffic/Item/NetworkAccessTrafficTransactionItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..796522be208 --- /dev/null +++ b/src/Generated/NetworkAccess/Logs/Traffic/Item/NetworkAccessTrafficTransactionItemRequestBuilderPatchRequestConfiguration.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/NetworkAccess/Logs/Traffic/TrafficRequestBuilder.php b/src/Generated/NetworkAccess/Logs/Traffic/TrafficRequestBuilder.php new file mode 100644 index 00000000000..35b950a0535 --- /dev/null +++ b/src/Generated/NetworkAccess/Logs/Traffic/TrafficRequestBuilder.php @@ -0,0 +1,133 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the traffic property of the microsoft.graph.networkaccess.logs entity. + * @param string $networkAccessTrafficTransactionId Unique identifier of the item + * @return NetworkAccessTrafficTransactionItemRequestBuilder + */ + public function byNetworkAccessTrafficTransactionId(string $networkAccessTrafficTransactionId): NetworkAccessTrafficTransactionItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['networkAccessTraffic%2DtransactionId'] = $networkAccessTrafficTransactionId; + return new NetworkAccessTrafficTransactionItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new TrafficRequestBuilder 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}/networkAccess/logs/traffic{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get traffic from networkAccess + * @param TrafficRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?TrafficRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [NetworkAccessTrafficCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Create new navigation property to traffic for networkAccess + * @param NetworkAccessTraffic $body The request body + * @param TrafficRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(NetworkAccessTraffic $body, ?TrafficRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [NetworkAccessTraffic::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get traffic from networkAccess + * @param TrafficRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?TrafficRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Create new navigation property to traffic for networkAccess + * @param NetworkAccessTraffic $body The request body + * @param TrafficRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(NetworkAccessTraffic $body, ?TrafficRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + +} diff --git a/src/Generated/NetworkAccess/Logs/Traffic/TrafficRequestBuilderGetQueryParameters.php b/src/Generated/NetworkAccess/Logs/Traffic/TrafficRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..39ca5dd621a --- /dev/null +++ b/src/Generated/NetworkAccess/Logs/Traffic/TrafficRequestBuilderGetQueryParameters.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 trafficRequestBuilderGetQueryParameters 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/NetworkAccess/Logs/Traffic/TrafficRequestBuilderGetRequestConfiguration.php b/src/Generated/NetworkAccess/Logs/Traffic/TrafficRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..1224c236a90 --- /dev/null +++ b/src/Generated/NetworkAccess/Logs/Traffic/TrafficRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param TrafficRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?TrafficRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new trafficRequestBuilderGetQueryParameters. + * @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 TrafficRequestBuilderGetQueryParameters + */ + 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): TrafficRequestBuilderGetQueryParameters { + return new TrafficRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/NetworkAccess/Logs/Traffic/TrafficRequestBuilderPostRequestConfiguration.php b/src/Generated/NetworkAccess/Logs/Traffic/TrafficRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..c9f79a7e2c8 --- /dev/null +++ b/src/Generated/NetworkAccess/Logs/Traffic/TrafficRequestBuilderPostRequestConfiguration.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/NetworkAccess/MicrosoftGraphNetworkaccessOnboard/MicrosoftGraphNetworkaccessOnboardRequestBuilder.php b/src/Generated/NetworkAccess/MicrosoftGraphNetworkaccessOnboard/MicrosoftGraphNetworkaccessOnboardRequestBuilder.php new file mode 100644 index 00000000000..450f2625152 --- /dev/null +++ b/src/Generated/NetworkAccess/MicrosoftGraphNetworkaccessOnboard/MicrosoftGraphNetworkaccessOnboardRequestBuilder.php @@ -0,0 +1,68 @@ +|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}/networkAccess/microsoft.graph.networkaccess.onboard'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Invoke action onboard + * @param MicrosoftGraphNetworkaccessOnboardRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(?MicrosoftGraphNetworkaccessOnboardRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Invoke action onboard + * @param MicrosoftGraphNetworkaccessOnboardRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(?MicrosoftGraphNetworkaccessOnboardRequestBuilderPostRequestConfiguration $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); + } + return $requestInfo; + } + +} diff --git a/src/Generated/NetworkAccess/MicrosoftGraphNetworkaccessOnboard/MicrosoftGraphNetworkaccessOnboardRequestBuilderPostRequestConfiguration.php b/src/Generated/NetworkAccess/MicrosoftGraphNetworkaccessOnboard/MicrosoftGraphNetworkaccessOnboardRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..11b5e7c0651 --- /dev/null +++ b/src/Generated/NetworkAccess/MicrosoftGraphNetworkaccessOnboard/MicrosoftGraphNetworkaccessOnboardRequestBuilderPostRequestConfiguration.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/NetworkAccess/NetworkAccessRequestBuilder.php b/src/Generated/NetworkAccess/NetworkAccessRequestBuilder.php new file mode 100644 index 00000000000..dd4c7491e6f --- /dev/null +++ b/src/Generated/NetworkAccess/NetworkAccessRequestBuilder.php @@ -0,0 +1,176 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the forwardingPolicies property of the microsoft.graph.networkaccess.networkAccessRoot entity. + */ + public function forwardingPolicies(): ForwardingPoliciesRequestBuilder { + return new ForwardingPoliciesRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the forwardingProfiles property of the microsoft.graph.networkaccess.networkAccessRoot entity. + */ + public function forwardingProfiles(): ForwardingProfilesRequestBuilder { + return new ForwardingProfilesRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the logs property of the microsoft.graph.networkaccess.networkAccessRoot entity. + */ + public function logs(): LogsRequestBuilder { + return new LogsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to call the onboard method. + */ + public function microsoftGraphNetworkaccessOnboard(): MicrosoftGraphNetworkaccessOnboardRequestBuilder { + return new MicrosoftGraphNetworkaccessOnboardRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the reports property of the microsoft.graph.networkaccess.networkAccessRoot entity. + */ + public function reports(): ReportsRequestBuilder { + return new ReportsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the settings property of the microsoft.graph.networkaccess.networkAccessRoot entity. + */ + public function settings(): SettingsRequestBuilder { + return new SettingsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the tenantStatus property of the microsoft.graph.networkaccess.networkAccessRoot entity. + */ + public function tenantStatus(): TenantStatusRequestBuilder { + return new TenantStatusRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new NetworkAccessRequestBuilder 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}/networkAccess{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get networkAccess + * @param NetworkAccessRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?NetworkAccessRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [NetworkAccessRoot::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update networkAccess + * @param NetworkAccessRoot $body The request body + * @param NetworkAccessRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function patch(NetworkAccessRoot $body, ?NetworkAccessRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [NetworkAccessRoot::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get networkAccess + * @param NetworkAccessRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?NetworkAccessRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update networkAccess + * @param NetworkAccessRoot $body The request body + * @param NetworkAccessRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(NetworkAccessRoot $body, ?NetworkAccessRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + +} diff --git a/src/Generated/NetworkAccess/NetworkAccessRequestBuilderGetQueryParameters.php b/src/Generated/NetworkAccess/NetworkAccessRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..9b38ac690c5 --- /dev/null +++ b/src/Generated/NetworkAccess/NetworkAccessRequestBuilderGetQueryParameters.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 networkAccessRequestBuilderGetQueryParameters 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/NetworkAccess/NetworkAccessRequestBuilderGetRequestConfiguration.php b/src/Generated/NetworkAccess/NetworkAccessRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..956359ded19 --- /dev/null +++ b/src/Generated/NetworkAccess/NetworkAccessRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param NetworkAccessRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?NetworkAccessRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new networkAccessRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return NetworkAccessRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): NetworkAccessRequestBuilderGetQueryParameters { + return new NetworkAccessRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/NetworkAccess/NetworkAccessRequestBuilderPatchRequestConfiguration.php b/src/Generated/NetworkAccess/NetworkAccessRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..a1620753547 --- /dev/null +++ b/src/Generated/NetworkAccess/NetworkAccessRequestBuilderPatchRequestConfiguration.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/NetworkAccess/Reports/MicrosoftGraphNetworkaccessEntitiesSummariesWithStartDateTimeWithEndDateTime/EntitiesSummariesWithStartDateTimeWithEndDateTimeResponse.php b/src/Generated/NetworkAccess/Reports/MicrosoftGraphNetworkaccessEntitiesSummariesWithStartDateTimeWithEndDateTime/EntitiesSummariesWithStartDateTimeWithEndDateTimeResponse.php new file mode 100644 index 00000000000..607d0137239 --- /dev/null +++ b/src/Generated/NetworkAccess/Reports/MicrosoftGraphNetworkaccessEntitiesSummariesWithStartDateTimeWithEndDateTime/EntitiesSummariesWithStartDateTimeWithEndDateTimeResponse.php @@ -0,0 +1,65 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([EntitiesSummary::class, 'createFromDiscriminatorValue'])), + ]); + } + + /** + * Gets the value property value. The value property + * @return array|null + */ + public function getValue(): ?array { + return $this->getBackingStore()->get('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/NetworkAccess/Reports/MicrosoftGraphNetworkaccessEntitiesSummariesWithStartDateTimeWithEndDateTime/MicrosoftGraphNetworkaccessEntitiesSummariesWithStartDateTimeWithEndDateTimeRequestBuilder.php b/src/Generated/NetworkAccess/Reports/MicrosoftGraphNetworkaccessEntitiesSummariesWithStartDateTimeWithEndDateTime/MicrosoftGraphNetworkaccessEntitiesSummariesWithStartDateTimeWithEndDateTimeRequestBuilder.php new file mode 100644 index 00000000000..c39c3745be4 --- /dev/null +++ b/src/Generated/NetworkAccess/Reports/MicrosoftGraphNetworkaccessEntitiesSummariesWithStartDateTimeWithEndDateTime/MicrosoftGraphNetworkaccessEntitiesSummariesWithStartDateTimeWithEndDateTimeRequestBuilder.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. + * @param DateTime|null $endDateTime Usage: endDateTime={endDateTime} + * @param DateTime|null $startDateTime Usage: startDateTime={startDateTime} + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter, ?DateTime $endDateTime = null, ?DateTime $startDateTime = null) { + parent::__construct($requestAdapter, [], '{+baseurl}/networkAccess/reports/microsoft.graph.networkaccess.entitiesSummaries(startDateTime={startDateTime},endDateTime={endDateTime}){?%24top,%24skip,%24search,%24filter,%24count}'); + if (is_array($pathParametersOrRawUrl)) { + $urlTplParams = $pathParametersOrRawUrl; + $urlTplParams['endDateTime'] = $endDateTime; + $urlTplParams['startDateTime'] = $startDateTime; + $this->pathParameters = $urlTplParams; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Invoke function entitiesSummaries + * @param MicrosoftGraphNetworkaccessEntitiesSummariesWithStartDateTimeWithEndDateTimeRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?MicrosoftGraphNetworkaccessEntitiesSummariesWithStartDateTimeWithEndDateTimeRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [EntitiesSummariesWithStartDateTimeWithEndDateTimeResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Invoke function entitiesSummaries + * @param MicrosoftGraphNetworkaccessEntitiesSummariesWithStartDateTimeWithEndDateTimeRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MicrosoftGraphNetworkaccessEntitiesSummariesWithStartDateTimeWithEndDateTimeRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + +} diff --git a/src/Generated/NetworkAccess/Reports/MicrosoftGraphNetworkaccessEntitiesSummariesWithStartDateTimeWithEndDateTime/MicrosoftGraphNetworkaccessEntitiesSummariesWithStartDateTimeWithEndDateTimeRequestBuilderGetQueryParameters.php b/src/Generated/NetworkAccess/Reports/MicrosoftGraphNetworkaccessEntitiesSummariesWithStartDateTimeWithEndDateTime/MicrosoftGraphNetworkaccessEntitiesSummariesWithStartDateTimeWithEndDateTimeRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..9972bea75ae --- /dev/null +++ b/src/Generated/NetworkAccess/Reports/MicrosoftGraphNetworkaccessEntitiesSummariesWithStartDateTimeWithEndDateTime/MicrosoftGraphNetworkaccessEntitiesSummariesWithStartDateTimeWithEndDateTimeRequestBuilderGetQueryParameters.php @@ -0,0 +1,58 @@ +count = $count; + $this->filter = $filter; + $this->search = $search; + $this->skip = $skip; + $this->top = $top; + } + +} diff --git a/src/Generated/NetworkAccess/Reports/MicrosoftGraphNetworkaccessEntitiesSummariesWithStartDateTimeWithEndDateTime/MicrosoftGraphNetworkaccessEntitiesSummariesWithStartDateTimeWithEndDateTimeRequestBuilderGetRequestConfiguration.php b/src/Generated/NetworkAccess/Reports/MicrosoftGraphNetworkaccessEntitiesSummariesWithStartDateTimeWithEndDateTime/MicrosoftGraphNetworkaccessEntitiesSummariesWithStartDateTimeWithEndDateTimeRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..3501ae47a61 --- /dev/null +++ b/src/Generated/NetworkAccess/Reports/MicrosoftGraphNetworkaccessEntitiesSummariesWithStartDateTimeWithEndDateTime/MicrosoftGraphNetworkaccessEntitiesSummariesWithStartDateTimeWithEndDateTimeRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,42 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MicrosoftGraphNetworkaccessEntitiesSummariesWithStartDateTimeWithEndDateTimeRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MicrosoftGraphNetworkaccessEntitiesSummariesWithStartDateTimeWithEndDateTimeRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new microsoftGraphNetworkaccessEntitiesSummariesWithStartDateTimeWithEndDateTimeRequestBuilderGetQueryParameters. + * @param bool|null $count Include count of items + * @param string|null $filter Filter items by property values + * @param string|null $search Search items by search phrases + * @param int|null $skip Skip the first n items + * @param int|null $top Show only the first n items + * @return MicrosoftGraphNetworkaccessEntitiesSummariesWithStartDateTimeWithEndDateTimeRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?bool $count = null, ?string $filter = null, ?string $search = null, ?int $skip = null, ?int $top = null): MicrosoftGraphNetworkaccessEntitiesSummariesWithStartDateTimeWithEndDateTimeRequestBuilderGetQueryParameters { + return new MicrosoftGraphNetworkaccessEntitiesSummariesWithStartDateTimeWithEndDateTimeRequestBuilderGetQueryParameters($count, $filter, $search, $skip, $top); + } + +} diff --git a/src/Generated/NetworkAccess/Reports/MicrosoftGraphNetworkaccessGetCrossTenantSummaryWithStartDateTimeWithEndDateTimeWithDiscoveryPivotDateTime/MicrosoftGraphNetworkaccessGetCrossTenantSummaryWithStartDateTimeWithEndDateTimeWithDiscoveryPivotDateTimeRequestBuilder.php b/src/Generated/NetworkAccess/Reports/MicrosoftGraphNetworkaccessGetCrossTenantSummaryWithStartDateTimeWithEndDateTimeWithDiscoveryPivotDateTime/MicrosoftGraphNetworkaccessGetCrossTenantSummaryWithStartDateTimeWithEndDateTimeWithDiscoveryPivotDateTimeRequestBuilder.php new file mode 100644 index 00000000000..05cc7a51a0a --- /dev/null +++ b/src/Generated/NetworkAccess/Reports/MicrosoftGraphNetworkaccessGetCrossTenantSummaryWithStartDateTimeWithEndDateTimeWithDiscoveryPivotDateTime/MicrosoftGraphNetworkaccessGetCrossTenantSummaryWithStartDateTimeWithEndDateTimeWithDiscoveryPivotDateTimeRequestBuilder.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. + * @param DateTime|null $discoveryPivotDateTime Usage: discoveryPivotDateTime={discoveryPivotDateTime} + * @param DateTime|null $endDateTime Usage: endDateTime={endDateTime} + * @param DateTime|null $startDateTime Usage: startDateTime={startDateTime} + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter, ?DateTime $discoveryPivotDateTime = null, ?DateTime $endDateTime = null, ?DateTime $startDateTime = null) { + parent::__construct($requestAdapter, [], '{+baseurl}/networkAccess/reports/microsoft.graph.networkaccess.getCrossTenantSummary(startDateTime={startDateTime},endDateTime={endDateTime},discoveryPivotDateTime={discoveryPivotDateTime})'); + if (is_array($pathParametersOrRawUrl)) { + $urlTplParams = $pathParametersOrRawUrl; + $urlTplParams['discoveryPivotDateTime'] = $discoveryPivotDateTime; + $urlTplParams['endDateTime'] = $endDateTime; + $urlTplParams['startDateTime'] = $startDateTime; + $this->pathParameters = $urlTplParams; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Invoke function getCrossTenantSummary + * @param MicrosoftGraphNetworkaccessGetCrossTenantSummaryWithStartDateTimeWithEndDateTimeWithDiscoveryPivotDateTimeRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?MicrosoftGraphNetworkaccessGetCrossTenantSummaryWithStartDateTimeWithEndDateTimeWithDiscoveryPivotDateTimeRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [CrossTenantSummary::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Invoke function getCrossTenantSummary + * @param MicrosoftGraphNetworkaccessGetCrossTenantSummaryWithStartDateTimeWithEndDateTimeWithDiscoveryPivotDateTimeRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MicrosoftGraphNetworkaccessGetCrossTenantSummaryWithStartDateTimeWithEndDateTimeWithDiscoveryPivotDateTimeRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + +} diff --git a/src/Generated/NetworkAccess/Reports/MicrosoftGraphNetworkaccessGetCrossTenantSummaryWithStartDateTimeWithEndDateTimeWithDiscoveryPivotDateTime/MicrosoftGraphNetworkaccessGetCrossTenantSummaryWithStartDateTimeWithEndDateTimeWithDiscoveryPivotDateTimeRequestBuilderGetRequestConfiguration.php b/src/Generated/NetworkAccess/Reports/MicrosoftGraphNetworkaccessGetCrossTenantSummaryWithStartDateTimeWithEndDateTimeWithDiscoveryPivotDateTime/MicrosoftGraphNetworkaccessGetCrossTenantSummaryWithStartDateTimeWithEndDateTimeWithDiscoveryPivotDateTimeRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..0bf8d6e05ab --- /dev/null +++ b/src/Generated/NetworkAccess/Reports/MicrosoftGraphNetworkaccessGetCrossTenantSummaryWithStartDateTimeWithEndDateTimeWithDiscoveryPivotDateTime/MicrosoftGraphNetworkaccessGetCrossTenantSummaryWithStartDateTimeWithEndDateTimeWithDiscoveryPivotDateTimeRequestBuilderGetRequestConfiguration.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/NetworkAccess/Reports/MicrosoftGraphNetworkaccessGetDestinationSummariesWithStartDateTimeWithEndDateTimeWithAggregatedBy/GetDestinationSummariesWithStartDateTimeWithEndDateTimeWithAggregatedByResponse.php b/src/Generated/NetworkAccess/Reports/MicrosoftGraphNetworkaccessGetDestinationSummariesWithStartDateTimeWithEndDateTimeWithAggregatedBy/GetDestinationSummariesWithStartDateTimeWithEndDateTimeWithAggregatedByResponse.php new file mode 100644 index 00000000000..74e61b19daa --- /dev/null +++ b/src/Generated/NetworkAccess/Reports/MicrosoftGraphNetworkaccessGetDestinationSummariesWithStartDateTimeWithEndDateTimeWithAggregatedBy/GetDestinationSummariesWithStartDateTimeWithEndDateTimeWithAggregatedByResponse.php @@ -0,0 +1,65 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([DestinationSummary::class, 'createFromDiscriminatorValue'])), + ]); + } + + /** + * Gets the value property value. The value property + * @return array|null + */ + public function getValue(): ?array { + return $this->getBackingStore()->get('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/NetworkAccess/Reports/MicrosoftGraphNetworkaccessGetDestinationSummariesWithStartDateTimeWithEndDateTimeWithAggregatedBy/MicrosoftGraphNetworkaccessGetDestinationSummariesWithStartDateTimeWithEndDateTimeWithAggregatedByRequestBuilder.php b/src/Generated/NetworkAccess/Reports/MicrosoftGraphNetworkaccessGetDestinationSummariesWithStartDateTimeWithEndDateTimeWithAggregatedBy/MicrosoftGraphNetworkaccessGetDestinationSummariesWithStartDateTimeWithEndDateTimeWithAggregatedByRequestBuilder.php new file mode 100644 index 00000000000..a166b19a94f --- /dev/null +++ b/src/Generated/NetworkAccess/Reports/MicrosoftGraphNetworkaccessGetDestinationSummariesWithStartDateTimeWithEndDateTimeWithAggregatedBy/MicrosoftGraphNetworkaccessGetDestinationSummariesWithStartDateTimeWithEndDateTimeWithAggregatedByRequestBuilder.php @@ -0,0 +1,80 @@ +|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 $aggregatedBy Usage: aggregatedBy='{aggregatedBy}' + * @param DateTime|null $endDateTime Usage: endDateTime={endDateTime} + * @param DateTime|null $startDateTime Usage: startDateTime={startDateTime} + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter, ?string $aggregatedBy = null, ?DateTime $endDateTime = null, ?DateTime $startDateTime = null) { + parent::__construct($requestAdapter, [], '{+baseurl}/networkAccess/reports/microsoft.graph.networkaccess.getDestinationSummaries(startDateTime={startDateTime},endDateTime={endDateTime},aggregatedBy=\'{aggregatedBy}\'){?%24top,%24skip,%24search,%24filter,%24count}'); + if (is_array($pathParametersOrRawUrl)) { + $urlTplParams = $pathParametersOrRawUrl; + $urlTplParams['aggregatedBy'] = $aggregatedBy; + $urlTplParams['endDateTime'] = $endDateTime; + $urlTplParams['startDateTime'] = $startDateTime; + $this->pathParameters = $urlTplParams; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Invoke function getDestinationSummaries + * @param MicrosoftGraphNetworkaccessGetDestinationSummariesWithStartDateTimeWithEndDateTimeWithAggregatedByRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?MicrosoftGraphNetworkaccessGetDestinationSummariesWithStartDateTimeWithEndDateTimeWithAggregatedByRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [GetDestinationSummariesWithStartDateTimeWithEndDateTimeWithAggregatedByResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Invoke function getDestinationSummaries + * @param MicrosoftGraphNetworkaccessGetDestinationSummariesWithStartDateTimeWithEndDateTimeWithAggregatedByRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MicrosoftGraphNetworkaccessGetDestinationSummariesWithStartDateTimeWithEndDateTimeWithAggregatedByRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + +} diff --git a/src/Generated/NetworkAccess/Reports/MicrosoftGraphNetworkaccessGetDestinationSummariesWithStartDateTimeWithEndDateTimeWithAggregatedBy/MicrosoftGraphNetworkaccessGetDestinationSummariesWithStartDateTimeWithEndDateTimeWithAggregatedByRequestBuilderGetQueryParameters.php b/src/Generated/NetworkAccess/Reports/MicrosoftGraphNetworkaccessGetDestinationSummariesWithStartDateTimeWithEndDateTimeWithAggregatedBy/MicrosoftGraphNetworkaccessGetDestinationSummariesWithStartDateTimeWithEndDateTimeWithAggregatedByRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..a41af5d730c --- /dev/null +++ b/src/Generated/NetworkAccess/Reports/MicrosoftGraphNetworkaccessGetDestinationSummariesWithStartDateTimeWithEndDateTimeWithAggregatedBy/MicrosoftGraphNetworkaccessGetDestinationSummariesWithStartDateTimeWithEndDateTimeWithAggregatedByRequestBuilderGetQueryParameters.php @@ -0,0 +1,58 @@ +count = $count; + $this->filter = $filter; + $this->search = $search; + $this->skip = $skip; + $this->top = $top; + } + +} diff --git a/src/Generated/NetworkAccess/Reports/MicrosoftGraphNetworkaccessGetDestinationSummariesWithStartDateTimeWithEndDateTimeWithAggregatedBy/MicrosoftGraphNetworkaccessGetDestinationSummariesWithStartDateTimeWithEndDateTimeWithAggregatedByRequestBuilderGetRequestConfiguration.php b/src/Generated/NetworkAccess/Reports/MicrosoftGraphNetworkaccessGetDestinationSummariesWithStartDateTimeWithEndDateTimeWithAggregatedBy/MicrosoftGraphNetworkaccessGetDestinationSummariesWithStartDateTimeWithEndDateTimeWithAggregatedByRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..5a1e728a961 --- /dev/null +++ b/src/Generated/NetworkAccess/Reports/MicrosoftGraphNetworkaccessGetDestinationSummariesWithStartDateTimeWithEndDateTimeWithAggregatedBy/MicrosoftGraphNetworkaccessGetDestinationSummariesWithStartDateTimeWithEndDateTimeWithAggregatedByRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,42 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MicrosoftGraphNetworkaccessGetDestinationSummariesWithStartDateTimeWithEndDateTimeWithAggregatedByRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MicrosoftGraphNetworkaccessGetDestinationSummariesWithStartDateTimeWithEndDateTimeWithAggregatedByRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new microsoftGraphNetworkaccessGetDestinationSummariesWithStartDateTimeWithEndDateTimeWithAggregatedByRequestBuilderGetQueryParameters. + * @param bool|null $count Include count of items + * @param string|null $filter Filter items by property values + * @param string|null $search Search items by search phrases + * @param int|null $skip Skip the first n items + * @param int|null $top Show only the first n items + * @return MicrosoftGraphNetworkaccessGetDestinationSummariesWithStartDateTimeWithEndDateTimeWithAggregatedByRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?bool $count = null, ?string $filter = null, ?string $search = null, ?int $skip = null, ?int $top = null): MicrosoftGraphNetworkaccessGetDestinationSummariesWithStartDateTimeWithEndDateTimeWithAggregatedByRequestBuilderGetQueryParameters { + return new MicrosoftGraphNetworkaccessGetDestinationSummariesWithStartDateTimeWithEndDateTimeWithAggregatedByRequestBuilderGetQueryParameters($count, $filter, $search, $skip, $top); + } + +} diff --git a/src/Generated/NetworkAccess/Reports/MicrosoftGraphNetworkaccessGetDeviceUsageSummaryWithStartDateTimeWithEndDateTimeWithActivityPivotDateTime/MicrosoftGraphNetworkaccessGetDeviceUsageSummaryWithStartDateTimeWithEndDateTimeWithActivityPivotDateTimeRequestBuilder.php b/src/Generated/NetworkAccess/Reports/MicrosoftGraphNetworkaccessGetDeviceUsageSummaryWithStartDateTimeWithEndDateTimeWithActivityPivotDateTime/MicrosoftGraphNetworkaccessGetDeviceUsageSummaryWithStartDateTimeWithEndDateTimeWithActivityPivotDateTimeRequestBuilder.php new file mode 100644 index 00000000000..d36a63d681b --- /dev/null +++ b/src/Generated/NetworkAccess/Reports/MicrosoftGraphNetworkaccessGetDeviceUsageSummaryWithStartDateTimeWithEndDateTimeWithActivityPivotDateTime/MicrosoftGraphNetworkaccessGetDeviceUsageSummaryWithStartDateTimeWithEndDateTimeWithActivityPivotDateTimeRequestBuilder.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. + * @param DateTime|null $activityPivotDateTime Usage: activityPivotDateTime={activityPivotDateTime} + * @param DateTime|null $endDateTime Usage: endDateTime={endDateTime} + * @param DateTime|null $startDateTime Usage: startDateTime={startDateTime} + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter, ?DateTime $activityPivotDateTime = null, ?DateTime $endDateTime = null, ?DateTime $startDateTime = null) { + parent::__construct($requestAdapter, [], '{+baseurl}/networkAccess/reports/microsoft.graph.networkaccess.getDeviceUsageSummary(startDateTime={startDateTime},endDateTime={endDateTime},activityPivotDateTime={activityPivotDateTime})'); + if (is_array($pathParametersOrRawUrl)) { + $urlTplParams = $pathParametersOrRawUrl; + $urlTplParams['activityPivotDateTime'] = $activityPivotDateTime; + $urlTplParams['endDateTime'] = $endDateTime; + $urlTplParams['startDateTime'] = $startDateTime; + $this->pathParameters = $urlTplParams; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Invoke function getDeviceUsageSummary + * @param MicrosoftGraphNetworkaccessGetDeviceUsageSummaryWithStartDateTimeWithEndDateTimeWithActivityPivotDateTimeRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?MicrosoftGraphNetworkaccessGetDeviceUsageSummaryWithStartDateTimeWithEndDateTimeWithActivityPivotDateTimeRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [DeviceUsageSummary::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Invoke function getDeviceUsageSummary + * @param MicrosoftGraphNetworkaccessGetDeviceUsageSummaryWithStartDateTimeWithEndDateTimeWithActivityPivotDateTimeRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MicrosoftGraphNetworkaccessGetDeviceUsageSummaryWithStartDateTimeWithEndDateTimeWithActivityPivotDateTimeRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + +} diff --git a/src/Generated/NetworkAccess/Reports/MicrosoftGraphNetworkaccessGetDeviceUsageSummaryWithStartDateTimeWithEndDateTimeWithActivityPivotDateTime/MicrosoftGraphNetworkaccessGetDeviceUsageSummaryWithStartDateTimeWithEndDateTimeWithActivityPivotDateTimeRequestBuilderGetRequestConfiguration.php b/src/Generated/NetworkAccess/Reports/MicrosoftGraphNetworkaccessGetDeviceUsageSummaryWithStartDateTimeWithEndDateTimeWithActivityPivotDateTime/MicrosoftGraphNetworkaccessGetDeviceUsageSummaryWithStartDateTimeWithEndDateTimeWithActivityPivotDateTimeRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..c3e413a3f17 --- /dev/null +++ b/src/Generated/NetworkAccess/Reports/MicrosoftGraphNetworkaccessGetDeviceUsageSummaryWithStartDateTimeWithEndDateTimeWithActivityPivotDateTime/MicrosoftGraphNetworkaccessGetDeviceUsageSummaryWithStartDateTimeWithEndDateTimeWithActivityPivotDateTimeRequestBuilderGetRequestConfiguration.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/NetworkAccess/Reports/MicrosoftGraphNetworkaccessTransactionSummariesWithStartDateTimeWithEndDateTime/MicrosoftGraphNetworkaccessTransactionSummariesWithStartDateTimeWithEndDateTimeRequestBuilder.php b/src/Generated/NetworkAccess/Reports/MicrosoftGraphNetworkaccessTransactionSummariesWithStartDateTimeWithEndDateTime/MicrosoftGraphNetworkaccessTransactionSummariesWithStartDateTimeWithEndDateTimeRequestBuilder.php new file mode 100644 index 00000000000..9a90298efb7 --- /dev/null +++ b/src/Generated/NetworkAccess/Reports/MicrosoftGraphNetworkaccessTransactionSummariesWithStartDateTimeWithEndDateTime/MicrosoftGraphNetworkaccessTransactionSummariesWithStartDateTimeWithEndDateTimeRequestBuilder.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. + * @param DateTime|null $endDateTime Usage: endDateTime={endDateTime} + * @param DateTime|null $startDateTime Usage: startDateTime={startDateTime} + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter, ?DateTime $endDateTime = null, ?DateTime $startDateTime = null) { + parent::__construct($requestAdapter, [], '{+baseurl}/networkAccess/reports/microsoft.graph.networkaccess.transactionSummaries(startDateTime={startDateTime},endDateTime={endDateTime}){?%24top,%24skip,%24search,%24filter,%24count}'); + if (is_array($pathParametersOrRawUrl)) { + $urlTplParams = $pathParametersOrRawUrl; + $urlTplParams['endDateTime'] = $endDateTime; + $urlTplParams['startDateTime'] = $startDateTime; + $this->pathParameters = $urlTplParams; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Invoke function transactionSummaries + * @param MicrosoftGraphNetworkaccessTransactionSummariesWithStartDateTimeWithEndDateTimeRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?MicrosoftGraphNetworkaccessTransactionSummariesWithStartDateTimeWithEndDateTimeRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [TransactionSummariesWithStartDateTimeWithEndDateTimeResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Invoke function transactionSummaries + * @param MicrosoftGraphNetworkaccessTransactionSummariesWithStartDateTimeWithEndDateTimeRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MicrosoftGraphNetworkaccessTransactionSummariesWithStartDateTimeWithEndDateTimeRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + +} diff --git a/src/Generated/NetworkAccess/Reports/MicrosoftGraphNetworkaccessTransactionSummariesWithStartDateTimeWithEndDateTime/MicrosoftGraphNetworkaccessTransactionSummariesWithStartDateTimeWithEndDateTimeRequestBuilderGetQueryParameters.php b/src/Generated/NetworkAccess/Reports/MicrosoftGraphNetworkaccessTransactionSummariesWithStartDateTimeWithEndDateTime/MicrosoftGraphNetworkaccessTransactionSummariesWithStartDateTimeWithEndDateTimeRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..2bcefd3e6ee --- /dev/null +++ b/src/Generated/NetworkAccess/Reports/MicrosoftGraphNetworkaccessTransactionSummariesWithStartDateTimeWithEndDateTime/MicrosoftGraphNetworkaccessTransactionSummariesWithStartDateTimeWithEndDateTimeRequestBuilderGetQueryParameters.php @@ -0,0 +1,58 @@ +count = $count; + $this->filter = $filter; + $this->search = $search; + $this->skip = $skip; + $this->top = $top; + } + +} diff --git a/src/Generated/NetworkAccess/Reports/MicrosoftGraphNetworkaccessTransactionSummariesWithStartDateTimeWithEndDateTime/MicrosoftGraphNetworkaccessTransactionSummariesWithStartDateTimeWithEndDateTimeRequestBuilderGetRequestConfiguration.php b/src/Generated/NetworkAccess/Reports/MicrosoftGraphNetworkaccessTransactionSummariesWithStartDateTimeWithEndDateTime/MicrosoftGraphNetworkaccessTransactionSummariesWithStartDateTimeWithEndDateTimeRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..2b930e27ef1 --- /dev/null +++ b/src/Generated/NetworkAccess/Reports/MicrosoftGraphNetworkaccessTransactionSummariesWithStartDateTimeWithEndDateTime/MicrosoftGraphNetworkaccessTransactionSummariesWithStartDateTimeWithEndDateTimeRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,42 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MicrosoftGraphNetworkaccessTransactionSummariesWithStartDateTimeWithEndDateTimeRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MicrosoftGraphNetworkaccessTransactionSummariesWithStartDateTimeWithEndDateTimeRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new microsoftGraphNetworkaccessTransactionSummariesWithStartDateTimeWithEndDateTimeRequestBuilderGetQueryParameters. + * @param bool|null $count Include count of items + * @param string|null $filter Filter items by property values + * @param string|null $search Search items by search phrases + * @param int|null $skip Skip the first n items + * @param int|null $top Show only the first n items + * @return MicrosoftGraphNetworkaccessTransactionSummariesWithStartDateTimeWithEndDateTimeRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?bool $count = null, ?string $filter = null, ?string $search = null, ?int $skip = null, ?int $top = null): MicrosoftGraphNetworkaccessTransactionSummariesWithStartDateTimeWithEndDateTimeRequestBuilderGetQueryParameters { + return new MicrosoftGraphNetworkaccessTransactionSummariesWithStartDateTimeWithEndDateTimeRequestBuilderGetQueryParameters($count, $filter, $search, $skip, $top); + } + +} diff --git a/src/Generated/NetworkAccess/Reports/MicrosoftGraphNetworkaccessTransactionSummariesWithStartDateTimeWithEndDateTime/TransactionSummariesWithStartDateTimeWithEndDateTimeResponse.php b/src/Generated/NetworkAccess/Reports/MicrosoftGraphNetworkaccessTransactionSummariesWithStartDateTimeWithEndDateTime/TransactionSummariesWithStartDateTimeWithEndDateTimeResponse.php new file mode 100644 index 00000000000..480179937a2 --- /dev/null +++ b/src/Generated/NetworkAccess/Reports/MicrosoftGraphNetworkaccessTransactionSummariesWithStartDateTimeWithEndDateTime/TransactionSummariesWithStartDateTimeWithEndDateTimeResponse.php @@ -0,0 +1,65 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([TransactionSummary::class, 'createFromDiscriminatorValue'])), + ]); + } + + /** + * Gets the value property value. The value property + * @return array|null + */ + public function getValue(): ?array { + return $this->getBackingStore()->get('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/NetworkAccess/Reports/ReportsRequestBuilder.php b/src/Generated/NetworkAccess/Reports/ReportsRequestBuilder.php new file mode 100644 index 00000000000..805923fab3f --- /dev/null +++ b/src/Generated/NetworkAccess/Reports/ReportsRequestBuilder.php @@ -0,0 +1,206 @@ +|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}/networkAccess/reports{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property reports for networkAccess + * @param ReportsRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function delete(?ReportsRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get reports from networkAccess + * @param ReportsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ReportsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [Reports::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Provides operations to call the entitiesSummaries method. + * @param DateTime $endDateTime Usage: endDateTime={endDateTime} + * @param DateTime $startDateTime Usage: startDateTime={startDateTime} + * @return MicrosoftGraphNetworkaccessEntitiesSummariesWithStartDateTimeWithEndDateTimeRequestBuilder + */ + public function microsoftGraphNetworkaccessEntitiesSummariesWithStartDateTimeWithEndDateTime(DateTime $endDateTime, DateTime $startDateTime): MicrosoftGraphNetworkaccessEntitiesSummariesWithStartDateTimeWithEndDateTimeRequestBuilder { + return new MicrosoftGraphNetworkaccessEntitiesSummariesWithStartDateTimeWithEndDateTimeRequestBuilder($this->pathParameters, $this->requestAdapter, $endDateTime, $startDateTime); + } + + /** + * Provides operations to call the getCrossTenantSummary method. + * @param DateTime $discoveryPivotDateTime Usage: discoveryPivotDateTime={discoveryPivotDateTime} + * @param DateTime $endDateTime Usage: endDateTime={endDateTime} + * @param DateTime $startDateTime Usage: startDateTime={startDateTime} + * @return MicrosoftGraphNetworkaccessGetCrossTenantSummaryWithStartDateTimeWithEndDateTimeWithDiscoveryPivotDateTimeRequestBuilder + */ + public function microsoftGraphNetworkaccessGetCrossTenantSummaryWithStartDateTimeWithEndDateTimeWithDiscoveryPivotDateTime(DateTime $discoveryPivotDateTime, DateTime $endDateTime, DateTime $startDateTime): MicrosoftGraphNetworkaccessGetCrossTenantSummaryWithStartDateTimeWithEndDateTimeWithDiscoveryPivotDateTimeRequestBuilder { + return new MicrosoftGraphNetworkaccessGetCrossTenantSummaryWithStartDateTimeWithEndDateTimeWithDiscoveryPivotDateTimeRequestBuilder($this->pathParameters, $this->requestAdapter, $discoveryPivotDateTime, $endDateTime, $startDateTime); + } + + /** + * Provides operations to call the getDestinationSummaries method. + * @param string $aggregatedBy Usage: aggregatedBy='{aggregatedBy}' + * @param DateTime $endDateTime Usage: endDateTime={endDateTime} + * @param DateTime $startDateTime Usage: startDateTime={startDateTime} + * @return MicrosoftGraphNetworkaccessGetDestinationSummariesWithStartDateTimeWithEndDateTimeWithAggregatedByRequestBuilder + */ + public function microsoftGraphNetworkaccessGetDestinationSummariesWithStartDateTimeWithEndDateTimeWithAggregatedBy(string $aggregatedBy, DateTime $endDateTime, DateTime $startDateTime): MicrosoftGraphNetworkaccessGetDestinationSummariesWithStartDateTimeWithEndDateTimeWithAggregatedByRequestBuilder { + return new MicrosoftGraphNetworkaccessGetDestinationSummariesWithStartDateTimeWithEndDateTimeWithAggregatedByRequestBuilder($this->pathParameters, $this->requestAdapter, $aggregatedBy, $endDateTime, $startDateTime); + } + + /** + * Provides operations to call the getDeviceUsageSummary method. + * @param DateTime $activityPivotDateTime Usage: activityPivotDateTime={activityPivotDateTime} + * @param DateTime $endDateTime Usage: endDateTime={endDateTime} + * @param DateTime $startDateTime Usage: startDateTime={startDateTime} + * @return MicrosoftGraphNetworkaccessGetDeviceUsageSummaryWithStartDateTimeWithEndDateTimeWithActivityPivotDateTimeRequestBuilder + */ + public function microsoftGraphNetworkaccessGetDeviceUsageSummaryWithStartDateTimeWithEndDateTimeWithActivityPivotDateTime(DateTime $activityPivotDateTime, DateTime $endDateTime, DateTime $startDateTime): MicrosoftGraphNetworkaccessGetDeviceUsageSummaryWithStartDateTimeWithEndDateTimeWithActivityPivotDateTimeRequestBuilder { + return new MicrosoftGraphNetworkaccessGetDeviceUsageSummaryWithStartDateTimeWithEndDateTimeWithActivityPivotDateTimeRequestBuilder($this->pathParameters, $this->requestAdapter, $activityPivotDateTime, $endDateTime, $startDateTime); + } + + /** + * Provides operations to call the transactionSummaries method. + * @param DateTime $endDateTime Usage: endDateTime={endDateTime} + * @param DateTime $startDateTime Usage: startDateTime={startDateTime} + * @return MicrosoftGraphNetworkaccessTransactionSummariesWithStartDateTimeWithEndDateTimeRequestBuilder + */ + public function microsoftGraphNetworkaccessTransactionSummariesWithStartDateTimeWithEndDateTime(DateTime $endDateTime, DateTime $startDateTime): MicrosoftGraphNetworkaccessTransactionSummariesWithStartDateTimeWithEndDateTimeRequestBuilder { + return new MicrosoftGraphNetworkaccessTransactionSummariesWithStartDateTimeWithEndDateTimeRequestBuilder($this->pathParameters, $this->requestAdapter, $endDateTime, $startDateTime); + } + + /** + * Update the navigation property reports in networkAccess + * @param Reports $body The request body + * @param ReportsRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function patch(Reports $body, ?ReportsRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [Reports::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Delete navigation property reports for networkAccess + * @param ReportsRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?ReportsRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * Get reports from networkAccess + * @param ReportsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ReportsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the navigation property reports in networkAccess + * @param Reports $body The request body + * @param ReportsRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(Reports $body, ?ReportsRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + +} diff --git a/src/Generated/NetworkAccess/Reports/ReportsRequestBuilderDeleteRequestConfiguration.php b/src/Generated/NetworkAccess/Reports/ReportsRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..dc4a0a61b64 --- /dev/null +++ b/src/Generated/NetworkAccess/Reports/ReportsRequestBuilderDeleteRequestConfiguration.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/NetworkAccess/Reports/ReportsRequestBuilderGetQueryParameters.php b/src/Generated/NetworkAccess/Reports/ReportsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..1a83aa18344 --- /dev/null +++ b/src/Generated/NetworkAccess/Reports/ReportsRequestBuilderGetQueryParameters.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 reportsRequestBuilderGetQueryParameters 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/NetworkAccess/Reports/ReportsRequestBuilderGetRequestConfiguration.php b/src/Generated/NetworkAccess/Reports/ReportsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..a8c7efea51c --- /dev/null +++ b/src/Generated/NetworkAccess/Reports/ReportsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ReportsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ReportsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new reportsRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return ReportsRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): ReportsRequestBuilderGetQueryParameters { + return new ReportsRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/NetworkAccess/Reports/ReportsRequestBuilderPatchRequestConfiguration.php b/src/Generated/NetworkAccess/Reports/ReportsRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..ab7b1c92703 --- /dev/null +++ b/src/Generated/NetworkAccess/Reports/ReportsRequestBuilderPatchRequestConfiguration.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/NetworkAccess/Settings/ConditionalAccess/ConditionalAccessRequestBuilder.php b/src/Generated/NetworkAccess/Settings/ConditionalAccess/ConditionalAccessRequestBuilder.php new file mode 100644 index 00000000000..642ce3590f8 --- /dev/null +++ b/src/Generated/NetworkAccess/Settings/ConditionalAccess/ConditionalAccessRequestBuilder.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. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/networkAccess/settings/conditionalAccess{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property conditionalAccess for networkAccess + * @param ConditionalAccessRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function delete(?ConditionalAccessRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get conditionalAccess from networkAccess + * @param ConditionalAccessRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ConditionalAccessRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ConditionalAccessSettings::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the navigation property conditionalAccess in networkAccess + * @param ConditionalAccessSettings $body The request body + * @param ConditionalAccessRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function patch(ConditionalAccessSettings $body, ?ConditionalAccessRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ConditionalAccessSettings::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Delete navigation property conditionalAccess for networkAccess + * @param ConditionalAccessRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?ConditionalAccessRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * Get conditionalAccess from networkAccess + * @param ConditionalAccessRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ConditionalAccessRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the navigation property conditionalAccess in networkAccess + * @param ConditionalAccessSettings $body The request body + * @param ConditionalAccessRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(ConditionalAccessSettings $body, ?ConditionalAccessRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + +} diff --git a/src/Generated/NetworkAccess/Settings/ConditionalAccess/ConditionalAccessRequestBuilderDeleteRequestConfiguration.php b/src/Generated/NetworkAccess/Settings/ConditionalAccess/ConditionalAccessRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..754271d4c14 --- /dev/null +++ b/src/Generated/NetworkAccess/Settings/ConditionalAccess/ConditionalAccessRequestBuilderDeleteRequestConfiguration.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/NetworkAccess/Settings/ConditionalAccess/ConditionalAccessRequestBuilderGetQueryParameters.php b/src/Generated/NetworkAccess/Settings/ConditionalAccess/ConditionalAccessRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..9871ae7b33a --- /dev/null +++ b/src/Generated/NetworkAccess/Settings/ConditionalAccess/ConditionalAccessRequestBuilderGetQueryParameters.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 conditionalAccessRequestBuilderGetQueryParameters 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/NetworkAccess/Settings/ConditionalAccess/ConditionalAccessRequestBuilderGetRequestConfiguration.php b/src/Generated/NetworkAccess/Settings/ConditionalAccess/ConditionalAccessRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..7184ac732fb --- /dev/null +++ b/src/Generated/NetworkAccess/Settings/ConditionalAccess/ConditionalAccessRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ConditionalAccessRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ConditionalAccessRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new conditionalAccessRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return ConditionalAccessRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): ConditionalAccessRequestBuilderGetQueryParameters { + return new ConditionalAccessRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/NetworkAccess/Settings/ConditionalAccess/ConditionalAccessRequestBuilderPatchRequestConfiguration.php b/src/Generated/NetworkAccess/Settings/ConditionalAccess/ConditionalAccessRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..ad8485dbf07 --- /dev/null +++ b/src/Generated/NetworkAccess/Settings/ConditionalAccess/ConditionalAccessRequestBuilderPatchRequestConfiguration.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/NetworkAccess/Settings/CrossTenantAccess/CrossTenantAccessRequestBuilder.php b/src/Generated/NetworkAccess/Settings/CrossTenantAccess/CrossTenantAccessRequestBuilder.php new file mode 100644 index 00000000000..02b56348ddf --- /dev/null +++ b/src/Generated/NetworkAccess/Settings/CrossTenantAccess/CrossTenantAccessRequestBuilder.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. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/networkAccess/settings/crossTenantAccess{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property crossTenantAccess for networkAccess + * @param CrossTenantAccessRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function delete(?CrossTenantAccessRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get crossTenantAccess from networkAccess + * @param CrossTenantAccessRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?CrossTenantAccessRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [CrossTenantAccessSettings::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the navigation property crossTenantAccess in networkAccess + * @param CrossTenantAccessSettings $body The request body + * @param CrossTenantAccessRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function patch(CrossTenantAccessSettings $body, ?CrossTenantAccessRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [CrossTenantAccessSettings::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Delete navigation property crossTenantAccess for networkAccess + * @param CrossTenantAccessRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?CrossTenantAccessRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * Get crossTenantAccess from networkAccess + * @param CrossTenantAccessRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?CrossTenantAccessRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the navigation property crossTenantAccess in networkAccess + * @param CrossTenantAccessSettings $body The request body + * @param CrossTenantAccessRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(CrossTenantAccessSettings $body, ?CrossTenantAccessRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + +} diff --git a/src/Generated/NetworkAccess/Settings/CrossTenantAccess/CrossTenantAccessRequestBuilderDeleteRequestConfiguration.php b/src/Generated/NetworkAccess/Settings/CrossTenantAccess/CrossTenantAccessRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..42958fb7e47 --- /dev/null +++ b/src/Generated/NetworkAccess/Settings/CrossTenantAccess/CrossTenantAccessRequestBuilderDeleteRequestConfiguration.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/NetworkAccess/Settings/CrossTenantAccess/CrossTenantAccessRequestBuilderGetQueryParameters.php b/src/Generated/NetworkAccess/Settings/CrossTenantAccess/CrossTenantAccessRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..c851fc9031b --- /dev/null +++ b/src/Generated/NetworkAccess/Settings/CrossTenantAccess/CrossTenantAccessRequestBuilderGetQueryParameters.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 crossTenantAccessRequestBuilderGetQueryParameters 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/NetworkAccess/Settings/CrossTenantAccess/CrossTenantAccessRequestBuilderGetRequestConfiguration.php b/src/Generated/NetworkAccess/Settings/CrossTenantAccess/CrossTenantAccessRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..d42f0d73d0b --- /dev/null +++ b/src/Generated/NetworkAccess/Settings/CrossTenantAccess/CrossTenantAccessRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param CrossTenantAccessRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?CrossTenantAccessRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new crossTenantAccessRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return CrossTenantAccessRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): CrossTenantAccessRequestBuilderGetQueryParameters { + return new CrossTenantAccessRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/NetworkAccess/Settings/CrossTenantAccess/CrossTenantAccessRequestBuilderPatchRequestConfiguration.php b/src/Generated/NetworkAccess/Settings/CrossTenantAccess/CrossTenantAccessRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..8728833e649 --- /dev/null +++ b/src/Generated/NetworkAccess/Settings/CrossTenantAccess/CrossTenantAccessRequestBuilderPatchRequestConfiguration.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/NetworkAccess/Settings/EnrichedAuditLogs/EnrichedAuditLogsRequestBuilder.php b/src/Generated/NetworkAccess/Settings/EnrichedAuditLogs/EnrichedAuditLogsRequestBuilder.php new file mode 100644 index 00000000000..35e6fcf8ead --- /dev/null +++ b/src/Generated/NetworkAccess/Settings/EnrichedAuditLogs/EnrichedAuditLogsRequestBuilder.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. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/networkAccess/settings/enrichedAuditLogs{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property enrichedAuditLogs for networkAccess + * @param EnrichedAuditLogsRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function delete(?EnrichedAuditLogsRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get enrichedAuditLogs from networkAccess + * @param EnrichedAuditLogsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?EnrichedAuditLogsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [EnrichedAuditLogs::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the navigation property enrichedAuditLogs in networkAccess + * @param EnrichedAuditLogs $body The request body + * @param EnrichedAuditLogsRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function patch(EnrichedAuditLogs $body, ?EnrichedAuditLogsRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [EnrichedAuditLogs::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Delete navigation property enrichedAuditLogs for networkAccess + * @param EnrichedAuditLogsRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?EnrichedAuditLogsRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * Get enrichedAuditLogs from networkAccess + * @param EnrichedAuditLogsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?EnrichedAuditLogsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the navigation property enrichedAuditLogs in networkAccess + * @param EnrichedAuditLogs $body The request body + * @param EnrichedAuditLogsRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(EnrichedAuditLogs $body, ?EnrichedAuditLogsRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + +} diff --git a/src/Generated/NetworkAccess/Settings/EnrichedAuditLogs/EnrichedAuditLogsRequestBuilderDeleteRequestConfiguration.php b/src/Generated/NetworkAccess/Settings/EnrichedAuditLogs/EnrichedAuditLogsRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..433f39daac1 --- /dev/null +++ b/src/Generated/NetworkAccess/Settings/EnrichedAuditLogs/EnrichedAuditLogsRequestBuilderDeleteRequestConfiguration.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/NetworkAccess/Settings/EnrichedAuditLogs/EnrichedAuditLogsRequestBuilderGetQueryParameters.php b/src/Generated/NetworkAccess/Settings/EnrichedAuditLogs/EnrichedAuditLogsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..da9707d7b12 --- /dev/null +++ b/src/Generated/NetworkAccess/Settings/EnrichedAuditLogs/EnrichedAuditLogsRequestBuilderGetQueryParameters.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 enrichedAuditLogsRequestBuilderGetQueryParameters 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/NetworkAccess/Settings/EnrichedAuditLogs/EnrichedAuditLogsRequestBuilderGetRequestConfiguration.php b/src/Generated/NetworkAccess/Settings/EnrichedAuditLogs/EnrichedAuditLogsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..2b98eb3be69 --- /dev/null +++ b/src/Generated/NetworkAccess/Settings/EnrichedAuditLogs/EnrichedAuditLogsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param EnrichedAuditLogsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?EnrichedAuditLogsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new enrichedAuditLogsRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return EnrichedAuditLogsRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): EnrichedAuditLogsRequestBuilderGetQueryParameters { + return new EnrichedAuditLogsRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/NetworkAccess/Settings/EnrichedAuditLogs/EnrichedAuditLogsRequestBuilderPatchRequestConfiguration.php b/src/Generated/NetworkAccess/Settings/EnrichedAuditLogs/EnrichedAuditLogsRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..53950920281 --- /dev/null +++ b/src/Generated/NetworkAccess/Settings/EnrichedAuditLogs/EnrichedAuditLogsRequestBuilderPatchRequestConfiguration.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/NetworkAccess/Settings/ForwardingOptions/ForwardingOptionsRequestBuilder.php b/src/Generated/NetworkAccess/Settings/ForwardingOptions/ForwardingOptionsRequestBuilder.php new file mode 100644 index 00000000000..8d1fed02404 --- /dev/null +++ b/src/Generated/NetworkAccess/Settings/ForwardingOptions/ForwardingOptionsRequestBuilder.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. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/networkAccess/settings/forwardingOptions{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property forwardingOptions for networkAccess + * @param ForwardingOptionsRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function delete(?ForwardingOptionsRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get forwardingOptions from networkAccess + * @param ForwardingOptionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ForwardingOptionsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ForwardingOptions::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the navigation property forwardingOptions in networkAccess + * @param ForwardingOptions $body The request body + * @param ForwardingOptionsRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function patch(ForwardingOptions $body, ?ForwardingOptionsRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ForwardingOptions::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Delete navigation property forwardingOptions for networkAccess + * @param ForwardingOptionsRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?ForwardingOptionsRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * Get forwardingOptions from networkAccess + * @param ForwardingOptionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ForwardingOptionsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the navigation property forwardingOptions in networkAccess + * @param ForwardingOptions $body The request body + * @param ForwardingOptionsRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(ForwardingOptions $body, ?ForwardingOptionsRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + +} diff --git a/src/Generated/NetworkAccess/Settings/ForwardingOptions/ForwardingOptionsRequestBuilderDeleteRequestConfiguration.php b/src/Generated/NetworkAccess/Settings/ForwardingOptions/ForwardingOptionsRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..54d958dc991 --- /dev/null +++ b/src/Generated/NetworkAccess/Settings/ForwardingOptions/ForwardingOptionsRequestBuilderDeleteRequestConfiguration.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/NetworkAccess/Settings/ForwardingOptions/ForwardingOptionsRequestBuilderGetQueryParameters.php b/src/Generated/NetworkAccess/Settings/ForwardingOptions/ForwardingOptionsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..9af2c9f6de5 --- /dev/null +++ b/src/Generated/NetworkAccess/Settings/ForwardingOptions/ForwardingOptionsRequestBuilderGetQueryParameters.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 forwardingOptionsRequestBuilderGetQueryParameters 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/NetworkAccess/Settings/ForwardingOptions/ForwardingOptionsRequestBuilderGetRequestConfiguration.php b/src/Generated/NetworkAccess/Settings/ForwardingOptions/ForwardingOptionsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..1119a8d1438 --- /dev/null +++ b/src/Generated/NetworkAccess/Settings/ForwardingOptions/ForwardingOptionsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ForwardingOptionsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ForwardingOptionsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new forwardingOptionsRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return ForwardingOptionsRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): ForwardingOptionsRequestBuilderGetQueryParameters { + return new ForwardingOptionsRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/NetworkAccess/Settings/ForwardingOptions/ForwardingOptionsRequestBuilderPatchRequestConfiguration.php b/src/Generated/NetworkAccess/Settings/ForwardingOptions/ForwardingOptionsRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..de789d46e86 --- /dev/null +++ b/src/Generated/NetworkAccess/Settings/ForwardingOptions/ForwardingOptionsRequestBuilderPatchRequestConfiguration.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/NetworkAccess/Settings/SettingsRequestBuilder.php b/src/Generated/NetworkAccess/Settings/SettingsRequestBuilder.php new file mode 100644 index 00000000000..8e27b5d19bd --- /dev/null +++ b/src/Generated/NetworkAccess/Settings/SettingsRequestBuilder.php @@ -0,0 +1,179 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the crossTenantAccess property of the microsoft.graph.networkaccess.settings entity. + */ + public function crossTenantAccess(): CrossTenantAccessRequestBuilder { + return new CrossTenantAccessRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the enrichedAuditLogs property of the microsoft.graph.networkaccess.settings entity. + */ + public function enrichedAuditLogs(): EnrichedAuditLogsRequestBuilder { + return new EnrichedAuditLogsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the forwardingOptions property of the microsoft.graph.networkaccess.settings entity. + */ + public function forwardingOptions(): ForwardingOptionsRequestBuilder { + return new ForwardingOptionsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new SettingsRequestBuilder 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}/networkAccess/settings{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property settings for networkAccess + * @param SettingsRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function delete(?SettingsRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get settings from networkAccess + * @param SettingsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?SettingsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [Settings::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the navigation property settings in networkAccess + * @param Settings $body The request body + * @param SettingsRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function patch(Settings $body, ?SettingsRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [Settings::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Delete navigation property settings for networkAccess + * @param SettingsRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?SettingsRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * Get settings from networkAccess + * @param SettingsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?SettingsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the navigation property settings in networkAccess + * @param Settings $body The request body + * @param SettingsRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(Settings $body, ?SettingsRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + +} diff --git a/src/Generated/NetworkAccess/Settings/SettingsRequestBuilderDeleteRequestConfiguration.php b/src/Generated/NetworkAccess/Settings/SettingsRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..3250761aa1b --- /dev/null +++ b/src/Generated/NetworkAccess/Settings/SettingsRequestBuilderDeleteRequestConfiguration.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/NetworkAccess/Settings/SettingsRequestBuilderGetQueryParameters.php b/src/Generated/NetworkAccess/Settings/SettingsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..54205359096 --- /dev/null +++ b/src/Generated/NetworkAccess/Settings/SettingsRequestBuilderGetQueryParameters.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 settingsRequestBuilderGetQueryParameters 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/NetworkAccess/Settings/SettingsRequestBuilderGetRequestConfiguration.php b/src/Generated/NetworkAccess/Settings/SettingsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..d50ce7b6f7d --- /dev/null +++ b/src/Generated/NetworkAccess/Settings/SettingsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param SettingsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?SettingsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new settingsRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return SettingsRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): SettingsRequestBuilderGetQueryParameters { + return new SettingsRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/NetworkAccess/Settings/SettingsRequestBuilderPatchRequestConfiguration.php b/src/Generated/NetworkAccess/Settings/SettingsRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..a4d52c37b2d --- /dev/null +++ b/src/Generated/NetworkAccess/Settings/SettingsRequestBuilderPatchRequestConfiguration.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/NetworkAccess/TenantStatus/TenantStatusRequestBuilder.php b/src/Generated/NetworkAccess/TenantStatus/TenantStatusRequestBuilder.php new file mode 100644 index 00000000000..47e63775485 --- /dev/null +++ b/src/Generated/NetworkAccess/TenantStatus/TenantStatusRequestBuilder.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. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/networkAccess/tenantStatus{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property tenantStatus for networkAccess + * @param TenantStatusRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function delete(?TenantStatusRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get tenantStatus from networkAccess + * @param TenantStatusRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?TenantStatusRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [TenantStatus::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the navigation property tenantStatus in networkAccess + * @param TenantStatus $body The request body + * @param TenantStatusRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function patch(TenantStatus $body, ?TenantStatusRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [TenantStatus::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Delete navigation property tenantStatus for networkAccess + * @param TenantStatusRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?TenantStatusRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * Get tenantStatus from networkAccess + * @param TenantStatusRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?TenantStatusRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the navigation property tenantStatus in networkAccess + * @param TenantStatus $body The request body + * @param TenantStatusRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(TenantStatus $body, ?TenantStatusRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + +} diff --git a/src/Generated/NetworkAccess/TenantStatus/TenantStatusRequestBuilderDeleteRequestConfiguration.php b/src/Generated/NetworkAccess/TenantStatus/TenantStatusRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..9ded33d44fc --- /dev/null +++ b/src/Generated/NetworkAccess/TenantStatus/TenantStatusRequestBuilderDeleteRequestConfiguration.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/NetworkAccess/TenantStatus/TenantStatusRequestBuilderGetQueryParameters.php b/src/Generated/NetworkAccess/TenantStatus/TenantStatusRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..33810830df7 --- /dev/null +++ b/src/Generated/NetworkAccess/TenantStatus/TenantStatusRequestBuilderGetQueryParameters.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 tenantStatusRequestBuilderGetQueryParameters 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/NetworkAccess/TenantStatus/TenantStatusRequestBuilderGetRequestConfiguration.php b/src/Generated/NetworkAccess/TenantStatus/TenantStatusRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..cbc1e2e163d --- /dev/null +++ b/src/Generated/NetworkAccess/TenantStatus/TenantStatusRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param TenantStatusRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?TenantStatusRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new tenantStatusRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return TenantStatusRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): TenantStatusRequestBuilderGetQueryParameters { + return new TenantStatusRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/NetworkAccess/TenantStatus/TenantStatusRequestBuilderPatchRequestConfiguration.php b/src/Generated/NetworkAccess/TenantStatus/TenantStatusRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..68971f67228 --- /dev/null +++ b/src/Generated/NetworkAccess/TenantStatus/TenantStatusRequestBuilderPatchRequestConfiguration.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/Partners/Item/IdentitySynchronization/IdentitySynchronizationRequestBuilder.php b/src/Generated/Policies/CrossTenantAccessPolicy/Partners/Item/IdentitySynchronization/IdentitySynchronizationRequestBuilder.php index cd94f5fbee7..e11c83bf36c 100644 --- a/src/Generated/Policies/CrossTenantAccessPolicy/Partners/Item/IdentitySynchronization/IdentitySynchronizationRequestBuilder.php +++ b/src/Generated/Policies/CrossTenantAccessPolicy/Partners/Item/IdentitySynchronization/IdentitySynchronizationRequestBuilder.php @@ -70,11 +70,11 @@ public function get(?IdentitySynchronizationRequestBuilderGetRequestConfiguratio } /** - * Create a cross-tenant user synchronization policy for a partner-specific configuration. + * Update the user synchronization policy of a partner-specific configuration. * @param CrossTenantIdentitySyncPolicyPartner $body The request body * @param IdentitySynchronizationRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://docs.microsoft.com/graph/api/crosstenantaccesspolicyconfigurationpartner-put-identitysynchronization?view=graph-rest-1.0 Find more info here + * @link https://docs.microsoft.com/graph/api/crosstenantidentitysyncpolicypartner-update?view=graph-rest-1.0 Find more info here */ public function patch(CrossTenantIdentitySyncPolicyPartner $body, ?IdentitySynchronizationRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); @@ -128,7 +128,7 @@ public function toGetRequestInformation(?IdentitySynchronizationRequestBuilderGe } /** - * Create a cross-tenant user synchronization policy for a partner-specific configuration. + * Update the user synchronization policy of a partner-specific configuration. * @param CrossTenantIdentitySyncPolicyPartner $body The request body * @param IdentitySynchronizationRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Reports/AppCredentialSignInActivities/AppCredentialSignInActivitiesRequestBuilder.php b/src/Generated/Reports/AppCredentialSignInActivities/AppCredentialSignInActivitiesRequestBuilder.php new file mode 100644 index 00000000000..b2ce9d703f4 --- /dev/null +++ b/src/Generated/Reports/AppCredentialSignInActivities/AppCredentialSignInActivitiesRequestBuilder.php @@ -0,0 +1,134 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the appCredentialSignInActivities property of the microsoft.graph.reportRoot entity. + * @param string $appCredentialSignInActivityId Unique identifier of the item + * @return AppCredentialSignInActivityItemRequestBuilder + */ + public function byAppCredentialSignInActivityId(string $appCredentialSignInActivityId): AppCredentialSignInActivityItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['appCredentialSignInActivity%2Did'] = $appCredentialSignInActivityId; + return new AppCredentialSignInActivityItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new AppCredentialSignInActivitiesRequestBuilder 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}/reports/appCredentialSignInActivities{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get a list of appCredentialSignInActivity objects that contains recent activity of application credentials. + * @param AppCredentialSignInActivitiesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://docs.microsoft.com/graph/api/reportroot-list-appcredentialsigninactivities?view=graph-rest-1.0 Find more info here + */ + public function get(?AppCredentialSignInActivitiesRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [AppCredentialSignInActivityCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Create new navigation property to appCredentialSignInActivities for reports + * @param AppCredentialSignInActivity $body The request body + * @param AppCredentialSignInActivitiesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(AppCredentialSignInActivity $body, ?AppCredentialSignInActivitiesRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [AppCredentialSignInActivity::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get a list of appCredentialSignInActivity objects that contains recent activity of application credentials. + * @param AppCredentialSignInActivitiesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?AppCredentialSignInActivitiesRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Create new navigation property to appCredentialSignInActivities for reports + * @param AppCredentialSignInActivity $body The request body + * @param AppCredentialSignInActivitiesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(AppCredentialSignInActivity $body, ?AppCredentialSignInActivitiesRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + +} diff --git a/src/Generated/Reports/AppCredentialSignInActivities/AppCredentialSignInActivitiesRequestBuilderGetQueryParameters.php b/src/Generated/Reports/AppCredentialSignInActivities/AppCredentialSignInActivitiesRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..5bdb9b00fd2 --- /dev/null +++ b/src/Generated/Reports/AppCredentialSignInActivities/AppCredentialSignInActivitiesRequestBuilderGetQueryParameters.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 appCredentialSignInActivitiesRequestBuilderGetQueryParameters 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/Reports/AppCredentialSignInActivities/AppCredentialSignInActivitiesRequestBuilderGetRequestConfiguration.php b/src/Generated/Reports/AppCredentialSignInActivities/AppCredentialSignInActivitiesRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..2b192a49348 --- /dev/null +++ b/src/Generated/Reports/AppCredentialSignInActivities/AppCredentialSignInActivitiesRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param AppCredentialSignInActivitiesRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?AppCredentialSignInActivitiesRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new appCredentialSignInActivitiesRequestBuilderGetQueryParameters. + * @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 AppCredentialSignInActivitiesRequestBuilderGetQueryParameters + */ + 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): AppCredentialSignInActivitiesRequestBuilderGetQueryParameters { + return new AppCredentialSignInActivitiesRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/Reports/AppCredentialSignInActivities/AppCredentialSignInActivitiesRequestBuilderPostRequestConfiguration.php b/src/Generated/Reports/AppCredentialSignInActivities/AppCredentialSignInActivitiesRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..24d3e88a461 --- /dev/null +++ b/src/Generated/Reports/AppCredentialSignInActivities/AppCredentialSignInActivitiesRequestBuilderPostRequestConfiguration.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/Reports/AppCredentialSignInActivities/Count/CountRequestBuilder.php b/src/Generated/Reports/AppCredentialSignInActivities/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..c4697ea3d97 --- /dev/null +++ b/src/Generated/Reports/AppCredentialSignInActivities/Count/CountRequestBuilder.php @@ -0,0 +1,72 @@ +|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}/reports/appCredentialSignInActivities/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + +} diff --git a/src/Generated/Reports/AppCredentialSignInActivities/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/Reports/AppCredentialSignInActivities/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..cf2dc08a73a --- /dev/null +++ b/src/Generated/Reports/AppCredentialSignInActivities/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/Reports/AppCredentialSignInActivities/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/Reports/AppCredentialSignInActivities/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..28302ba1c02 --- /dev/null +++ b/src/Generated/Reports/AppCredentialSignInActivities/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/Reports/AppCredentialSignInActivities/Item/AppCredentialSignInActivityItemRequestBuilder.php b/src/Generated/Reports/AppCredentialSignInActivities/Item/AppCredentialSignInActivityItemRequestBuilder.php new file mode 100644 index 00000000000..32aed062246 --- /dev/null +++ b/src/Generated/Reports/AppCredentialSignInActivities/Item/AppCredentialSignInActivityItemRequestBuilder.php @@ -0,0 +1,148 @@ +|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}/reports/appCredentialSignInActivities/{appCredentialSignInActivity%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property appCredentialSignInActivities for reports + * @param AppCredentialSignInActivityItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function delete(?AppCredentialSignInActivityItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get an appCredentialSignInActivity object that contains recent activity of an application credential. + * @param AppCredentialSignInActivityItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://docs.microsoft.com/graph/api/appcredentialsigninactivity-get?view=graph-rest-1.0 Find more info here + */ + public function get(?AppCredentialSignInActivityItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [AppCredentialSignInActivity::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the navigation property appCredentialSignInActivities in reports + * @param AppCredentialSignInActivity $body The request body + * @param AppCredentialSignInActivityItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function patch(AppCredentialSignInActivity $body, ?AppCredentialSignInActivityItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [AppCredentialSignInActivity::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Delete navigation property appCredentialSignInActivities for reports + * @param AppCredentialSignInActivityItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?AppCredentialSignInActivityItemRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * Get an appCredentialSignInActivity object that contains recent activity of an application credential. + * @param AppCredentialSignInActivityItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?AppCredentialSignInActivityItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the navigation property appCredentialSignInActivities in reports + * @param AppCredentialSignInActivity $body The request body + * @param AppCredentialSignInActivityItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(AppCredentialSignInActivity $body, ?AppCredentialSignInActivityItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + +} diff --git a/src/Generated/Reports/AppCredentialSignInActivities/Item/AppCredentialSignInActivityItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/Reports/AppCredentialSignInActivities/Item/AppCredentialSignInActivityItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..5dbae5c2593 --- /dev/null +++ b/src/Generated/Reports/AppCredentialSignInActivities/Item/AppCredentialSignInActivityItemRequestBuilderDeleteRequestConfiguration.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/Reports/AppCredentialSignInActivities/Item/AppCredentialSignInActivityItemRequestBuilderGetQueryParameters.php b/src/Generated/Reports/AppCredentialSignInActivities/Item/AppCredentialSignInActivityItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..19b88ca540e --- /dev/null +++ b/src/Generated/Reports/AppCredentialSignInActivities/Item/AppCredentialSignInActivityItemRequestBuilderGetQueryParameters.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 AppCredentialSignInActivityItemRequestBuilderGetQueryParameters 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/Reports/AppCredentialSignInActivities/Item/AppCredentialSignInActivityItemRequestBuilderGetRequestConfiguration.php b/src/Generated/Reports/AppCredentialSignInActivities/Item/AppCredentialSignInActivityItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..652731071de --- /dev/null +++ b/src/Generated/Reports/AppCredentialSignInActivities/Item/AppCredentialSignInActivityItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param AppCredentialSignInActivityItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?AppCredentialSignInActivityItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new AppCredentialSignInActivityItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return AppCredentialSignInActivityItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): AppCredentialSignInActivityItemRequestBuilderGetQueryParameters { + return new AppCredentialSignInActivityItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/Reports/AppCredentialSignInActivities/Item/AppCredentialSignInActivityItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/Reports/AppCredentialSignInActivities/Item/AppCredentialSignInActivityItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..a509ba4ea5c --- /dev/null +++ b/src/Generated/Reports/AppCredentialSignInActivities/Item/AppCredentialSignInActivityItemRequestBuilderPatchRequestConfiguration.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/Reports/ReportsRequestBuilder.php b/src/Generated/Reports/ReportsRequestBuilder.php index 39d5c3c9fcc..cc995ce3f48 100644 --- a/src/Generated/Reports/ReportsRequestBuilder.php +++ b/src/Generated/Reports/ReportsRequestBuilder.php @@ -8,6 +8,7 @@ use Http\Promise\RejectedPromise; use Microsoft\Graph\Beta\Generated\Models\ODataErrors\ODataError; use Microsoft\Graph\Beta\Generated\Models\ReportRoot; +use Microsoft\Graph\Beta\Generated\Reports\AppCredentialSignInActivities\AppCredentialSignInActivitiesRequestBuilder; use Microsoft\Graph\Beta\Generated\Reports\ApplicationSignInDetailedSummary\ApplicationSignInDetailedSummaryRequestBuilder; use Microsoft\Graph\Beta\Generated\Reports\AuthenticationMethods\AuthenticationMethodsRequestBuilder; use Microsoft\Graph\Beta\Generated\Reports\CredentialUserRegistrationDetails\CredentialUserRegistrationDetailsRequestBuilder; @@ -146,6 +147,7 @@ use Microsoft\Graph\Beta\Generated\Reports\MonthlyPrintUsageSummariesByPrinter\MonthlyPrintUsageSummariesByPrinterRequestBuilder; use Microsoft\Graph\Beta\Generated\Reports\MonthlyPrintUsageSummariesByUser\MonthlyPrintUsageSummariesByUserRequestBuilder; use Microsoft\Graph\Beta\Generated\Reports\Security\SecurityRequestBuilder; +use Microsoft\Graph\Beta\Generated\Reports\ServicePrincipalSignInActivities\ServicePrincipalSignInActivitiesRequestBuilder; use Microsoft\Graph\Beta\Generated\Reports\UserCredentialUsageDetails\UserCredentialUsageDetailsRequestBuilder; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; use Microsoft\Kiota\Abstractions\HttpMethod; @@ -158,6 +160,13 @@ */ class ReportsRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to manage the appCredentialSignInActivities property of the microsoft.graph.reportRoot entity. + */ + public function appCredentialSignInActivities(): AppCredentialSignInActivitiesRequestBuilder { + return new AppCredentialSignInActivitiesRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Provides operations to manage the applicationSignInDetailedSummary property of the microsoft.graph.reportRoot entity. */ @@ -333,6 +342,13 @@ public function security(): SecurityRequestBuilder { return new SecurityRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * Provides operations to manage the servicePrincipalSignInActivities property of the microsoft.graph.reportRoot entity. + */ + public function servicePrincipalSignInActivities(): ServicePrincipalSignInActivitiesRequestBuilder { + return new ServicePrincipalSignInActivitiesRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Provides operations to manage the userCredentialUsageDetails property of the microsoft.graph.reportRoot entity. */ diff --git a/src/Generated/Reports/ServicePrincipalSignInActivities/Count/CountRequestBuilder.php b/src/Generated/Reports/ServicePrincipalSignInActivities/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..ba8cf3d35b8 --- /dev/null +++ b/src/Generated/Reports/ServicePrincipalSignInActivities/Count/CountRequestBuilder.php @@ -0,0 +1,72 @@ +|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}/reports/servicePrincipalSignInActivities/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + +} diff --git a/src/Generated/Reports/ServicePrincipalSignInActivities/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/Reports/ServicePrincipalSignInActivities/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..fa12068f0cc --- /dev/null +++ b/src/Generated/Reports/ServicePrincipalSignInActivities/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/Reports/ServicePrincipalSignInActivities/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/Reports/ServicePrincipalSignInActivities/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..9526504ef7f --- /dev/null +++ b/src/Generated/Reports/ServicePrincipalSignInActivities/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/Reports/ServicePrincipalSignInActivities/Item/ServicePrincipalSignInActivityItemRequestBuilder.php b/src/Generated/Reports/ServicePrincipalSignInActivities/Item/ServicePrincipalSignInActivityItemRequestBuilder.php new file mode 100644 index 00000000000..04b7b540bff --- /dev/null +++ b/src/Generated/Reports/ServicePrincipalSignInActivities/Item/ServicePrincipalSignInActivityItemRequestBuilder.php @@ -0,0 +1,148 @@ +|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}/reports/servicePrincipalSignInActivities/{servicePrincipalSignInActivity%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property servicePrincipalSignInActivities for reports + * @param ServicePrincipalSignInActivityItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function delete(?ServicePrincipalSignInActivityItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get a servicePrincipalSignInActivity object that contains sign-in activity information for a service principal in an Azure Active Directory tenant. You can use a service principal as a client or resource. A service principal supports delegated or app-only authentication context. + * @param ServicePrincipalSignInActivityItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://docs.microsoft.com/graph/api/serviceprincipalsigninactivity-get?view=graph-rest-1.0 Find more info here + */ + public function get(?ServicePrincipalSignInActivityItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ServicePrincipalSignInActivity::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the navigation property servicePrincipalSignInActivities in reports + * @param ServicePrincipalSignInActivity $body The request body + * @param ServicePrincipalSignInActivityItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function patch(ServicePrincipalSignInActivity $body, ?ServicePrincipalSignInActivityItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ServicePrincipalSignInActivity::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Delete navigation property servicePrincipalSignInActivities for reports + * @param ServicePrincipalSignInActivityItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?ServicePrincipalSignInActivityItemRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * Get a servicePrincipalSignInActivity object that contains sign-in activity information for a service principal in an Azure Active Directory tenant. You can use a service principal as a client or resource. A service principal supports delegated or app-only authentication context. + * @param ServicePrincipalSignInActivityItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ServicePrincipalSignInActivityItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the navigation property servicePrincipalSignInActivities in reports + * @param ServicePrincipalSignInActivity $body The request body + * @param ServicePrincipalSignInActivityItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(ServicePrincipalSignInActivity $body, ?ServicePrincipalSignInActivityItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + +} diff --git a/src/Generated/Reports/ServicePrincipalSignInActivities/Item/ServicePrincipalSignInActivityItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/Reports/ServicePrincipalSignInActivities/Item/ServicePrincipalSignInActivityItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..6f9be9520e3 --- /dev/null +++ b/src/Generated/Reports/ServicePrincipalSignInActivities/Item/ServicePrincipalSignInActivityItemRequestBuilderDeleteRequestConfiguration.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/Reports/ServicePrincipalSignInActivities/Item/ServicePrincipalSignInActivityItemRequestBuilderGetQueryParameters.php b/src/Generated/Reports/ServicePrincipalSignInActivities/Item/ServicePrincipalSignInActivityItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..e2520f666fa --- /dev/null +++ b/src/Generated/Reports/ServicePrincipalSignInActivities/Item/ServicePrincipalSignInActivityItemRequestBuilderGetQueryParameters.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 ServicePrincipalSignInActivityItemRequestBuilderGetQueryParameters 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/Reports/ServicePrincipalSignInActivities/Item/ServicePrincipalSignInActivityItemRequestBuilderGetRequestConfiguration.php b/src/Generated/Reports/ServicePrincipalSignInActivities/Item/ServicePrincipalSignInActivityItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..945a6514a0d --- /dev/null +++ b/src/Generated/Reports/ServicePrincipalSignInActivities/Item/ServicePrincipalSignInActivityItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ServicePrincipalSignInActivityItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ServicePrincipalSignInActivityItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new ServicePrincipalSignInActivityItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return ServicePrincipalSignInActivityItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): ServicePrincipalSignInActivityItemRequestBuilderGetQueryParameters { + return new ServicePrincipalSignInActivityItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/Reports/ServicePrincipalSignInActivities/Item/ServicePrincipalSignInActivityItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/Reports/ServicePrincipalSignInActivities/Item/ServicePrincipalSignInActivityItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..05de85f463f --- /dev/null +++ b/src/Generated/Reports/ServicePrincipalSignInActivities/Item/ServicePrincipalSignInActivityItemRequestBuilderPatchRequestConfiguration.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/Reports/ServicePrincipalSignInActivities/ServicePrincipalSignInActivitiesRequestBuilder.php b/src/Generated/Reports/ServicePrincipalSignInActivities/ServicePrincipalSignInActivitiesRequestBuilder.php new file mode 100644 index 00000000000..10e05898f07 --- /dev/null +++ b/src/Generated/Reports/ServicePrincipalSignInActivities/ServicePrincipalSignInActivitiesRequestBuilder.php @@ -0,0 +1,134 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the servicePrincipalSignInActivities property of the microsoft.graph.reportRoot entity. + * @param string $servicePrincipalSignInActivityId Unique identifier of the item + * @return ServicePrincipalSignInActivityItemRequestBuilder + */ + public function byServicePrincipalSignInActivityId(string $servicePrincipalSignInActivityId): ServicePrincipalSignInActivityItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['servicePrincipalSignInActivity%2Did'] = $servicePrincipalSignInActivityId; + return new ServicePrincipalSignInActivityItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new ServicePrincipalSignInActivitiesRequestBuilder 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}/reports/servicePrincipalSignInActivities{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get a list of servicePrincipalSignInActivity objects that contains sign-in activity information for service principals in an Azure Active Directory tenant. You can use a service principal as a client or resource. A service principal supports delegated or app-only authentication context. + * @param ServicePrincipalSignInActivitiesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://docs.microsoft.com/graph/api/reportroot-list-serviceprincipalsigninactivities?view=graph-rest-1.0 Find more info here + */ + public function get(?ServicePrincipalSignInActivitiesRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ServicePrincipalSignInActivityCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Create new navigation property to servicePrincipalSignInActivities for reports + * @param ServicePrincipalSignInActivity $body The request body + * @param ServicePrincipalSignInActivitiesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(ServicePrincipalSignInActivity $body, ?ServicePrincipalSignInActivitiesRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ServicePrincipalSignInActivity::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get a list of servicePrincipalSignInActivity objects that contains sign-in activity information for service principals in an Azure Active Directory tenant. You can use a service principal as a client or resource. A service principal supports delegated or app-only authentication context. + * @param ServicePrincipalSignInActivitiesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ServicePrincipalSignInActivitiesRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Create new navigation property to servicePrincipalSignInActivities for reports + * @param ServicePrincipalSignInActivity $body The request body + * @param ServicePrincipalSignInActivitiesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(ServicePrincipalSignInActivity $body, ?ServicePrincipalSignInActivitiesRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + +} diff --git a/src/Generated/Reports/ServicePrincipalSignInActivities/ServicePrincipalSignInActivitiesRequestBuilderGetQueryParameters.php b/src/Generated/Reports/ServicePrincipalSignInActivities/ServicePrincipalSignInActivitiesRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..1f4aa86c25a --- /dev/null +++ b/src/Generated/Reports/ServicePrincipalSignInActivities/ServicePrincipalSignInActivitiesRequestBuilderGetQueryParameters.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 servicePrincipalSignInActivitiesRequestBuilderGetQueryParameters 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/Reports/ServicePrincipalSignInActivities/ServicePrincipalSignInActivitiesRequestBuilderGetRequestConfiguration.php b/src/Generated/Reports/ServicePrincipalSignInActivities/ServicePrincipalSignInActivitiesRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..9124cea1836 --- /dev/null +++ b/src/Generated/Reports/ServicePrincipalSignInActivities/ServicePrincipalSignInActivitiesRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ServicePrincipalSignInActivitiesRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ServicePrincipalSignInActivitiesRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new servicePrincipalSignInActivitiesRequestBuilderGetQueryParameters. + * @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 ServicePrincipalSignInActivitiesRequestBuilderGetQueryParameters + */ + 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): ServicePrincipalSignInActivitiesRequestBuilderGetQueryParameters { + return new ServicePrincipalSignInActivitiesRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/Reports/ServicePrincipalSignInActivities/ServicePrincipalSignInActivitiesRequestBuilderPostRequestConfiguration.php b/src/Generated/Reports/ServicePrincipalSignInActivities/ServicePrincipalSignInActivitiesRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..e48614623a2 --- /dev/null +++ b/src/Generated/Reports/ServicePrincipalSignInActivities/ServicePrincipalSignInActivitiesRequestBuilderPostRequestConfiguration.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/Sites/Item/Lists/Item/ListItemRequestBuilder.php b/src/Generated/Sites/Item/Lists/Item/ListItemRequestBuilder.php index f851e1f1e4d..9f1e50b12f9 100644 --- a/src/Generated/Sites/Item/Lists/Item/ListItemRequestBuilder.php +++ b/src/Generated/Sites/Item/Lists/Item/ListItemRequestBuilder.php @@ -122,10 +122,10 @@ public function delete(?ListItemRequestBuilderDeleteRequestConfiguration $reques } /** - * Return the metadata for a [list][]. + * Get the list of richLongRunningOperations associated with a list. * @param ListItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://docs.microsoft.com/graph/api/list-get?view=graph-rest-1.0 Find more info here + * @link https://docs.microsoft.com/graph/api/list-list-operations?view=graph-rest-1.0 Find more info here */ public function get(?ListItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -177,7 +177,7 @@ public function toDeleteRequestInformation(?ListItemRequestBuilderDeleteRequestC } /** - * Return the metadata for a [list][]. + * Get the list of richLongRunningOperations associated with a list. * @param ListItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Sites/Item/Lists/Item/ListItemRequestBuilderGetQueryParameters.php b/src/Generated/Sites/Item/Lists/Item/ListItemRequestBuilderGetQueryParameters.php index 4622971826c..33f5af44dc0 100644 --- a/src/Generated/Sites/Item/Lists/Item/ListItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Sites/Item/Lists/Item/ListItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Return the metadata for a [list][]. + * Get the list of richLongRunningOperations associated with a list. */ class ListItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Solutions/VirtualEvents/Events/Item/Sessions/Item/Registration/RegistrationRequestBuilder.php b/src/Generated/Solutions/VirtualEvents/Events/Item/Sessions/Item/Registration/RegistrationRequestBuilder.php index 9448cd66a71..123f05e2561 100644 --- a/src/Generated/Solutions/VirtualEvents/Events/Item/Sessions/Item/Registration/RegistrationRequestBuilder.php +++ b/src/Generated/Solutions/VirtualEvents/Events/Item/Sessions/Item/Registration/RegistrationRequestBuilder.php @@ -48,10 +48,10 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Disable and delete the meetingRegistration of an onlineMeeting on behalf of the organizer. + * Disable and delete the externalMeetingRegistration of an onlineMeeting. * @param RegistrationRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://docs.microsoft.com/graph/api/meetingregistration-delete?view=graph-rest-1.0 Find more info here + * @link https://docs.microsoft.com/graph/api/externalmeetingregistration-delete?view=graph-rest-1.0 Find more info here */ public function delete(?RegistrationRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); @@ -106,7 +106,7 @@ public function patch(MeetingRegistration $body, ?RegistrationRequestBuilderPatc } /** - * Disable and delete the meetingRegistration of an onlineMeeting on behalf of the organizer. + * Disable and delete the externalMeetingRegistration of an onlineMeeting. * @param RegistrationRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Solutions/VirtualEvents/Webinars/Item/Sessions/Item/Registration/RegistrationRequestBuilder.php b/src/Generated/Solutions/VirtualEvents/Webinars/Item/Sessions/Item/Registration/RegistrationRequestBuilder.php index ae0026692d0..6a17f1c3f10 100644 --- a/src/Generated/Solutions/VirtualEvents/Webinars/Item/Sessions/Item/Registration/RegistrationRequestBuilder.php +++ b/src/Generated/Solutions/VirtualEvents/Webinars/Item/Sessions/Item/Registration/RegistrationRequestBuilder.php @@ -48,10 +48,10 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Disable and delete the meetingRegistration of an onlineMeeting on behalf of the organizer. + * Disable and delete the externalMeetingRegistration of an onlineMeeting. * @param RegistrationRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://docs.microsoft.com/graph/api/meetingregistration-delete?view=graph-rest-1.0 Find more info here + * @link https://docs.microsoft.com/graph/api/externalmeetingregistration-delete?view=graph-rest-1.0 Find more info here */ public function delete(?RegistrationRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); @@ -106,7 +106,7 @@ public function patch(MeetingRegistration $body, ?RegistrationRequestBuilderPatc } /** - * Disable and delete the meetingRegistration of an onlineMeeting on behalf of the organizer. + * Disable and delete the externalMeetingRegistration of an onlineMeeting. * @param RegistrationRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/TeamTemplateDefinition/Item/TeamDefinition/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.php b/src/Generated/TeamTemplateDefinition/Item/TeamDefinition/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.php index ee7bbd92f95..8189b8e5c66 100644 --- a/src/Generated/TeamTemplateDefinition/Item/TeamDefinition/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.php +++ b/src/Generated/TeamTemplateDefinition/Item/TeamDefinition/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.php @@ -70,11 +70,11 @@ public function get(?ConversationMemberItemRequestBuilderGetRequestConfiguration } /** - * Update the role of a conversationMember in a team.or channel. + * Update the role of a conversationMember in a channel. This operation is allowed only for channels with a **membershipType** value of `private` or `shared`. * @param ConversationMember $body The request body * @param ConversationMemberItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://docs.microsoft.com/graph/api/conversationmember-update?view=graph-rest-1.0 Find more info here + * @link https://docs.microsoft.com/graph/api/channel-update-members?view=graph-rest-1.0 Find more info here */ public function patch(ConversationMember $body, ?ConversationMemberItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); @@ -128,7 +128,7 @@ public function toGetRequestInformation(?ConversationMemberItemRequestBuilderGet } /** - * Update the role of a conversationMember in a team.or channel. + * Update the role of a conversationMember in a channel. This operation is allowed only for channels with a **membershipType** value of `private` or `shared`. * @param ConversationMember $body The request body * @param ConversationMemberItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/TeamTemplateDefinition/Item/TeamDefinition/Channels/Item/Messages/MessagesRequestBuilder.php b/src/Generated/TeamTemplateDefinition/Item/TeamDefinition/Channels/Item/Messages/MessagesRequestBuilder.php index f9aad57c6e5..48d897ad22c 100644 --- a/src/Generated/TeamTemplateDefinition/Item/TeamDefinition/Channels/Item/Messages/MessagesRequestBuilder.php +++ b/src/Generated/TeamTemplateDefinition/Item/TeamDefinition/Channels/Item/Messages/MessagesRequestBuilder.php @@ -80,11 +80,11 @@ public function get(?MessagesRequestBuilderGetRequestConfiguration $requestConfi } /** - * Send a new chatMessage in the specified channel or a chat. + * Send a new chatMessage in the specified channel. * @param ChatMessage $body The request body * @param MessagesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://docs.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0 Find more info here + * @link https://docs.microsoft.com/graph/api/channel-post-messages?view=graph-rest-1.0 Find more info here */ public function post(ChatMessage $body, ?MessagesRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -121,7 +121,7 @@ public function toGetRequestInformation(?MessagesRequestBuilderGetRequestConfigu } /** - * Send a new chatMessage in the specified channel or a chat. + * Send a new chatMessage in the specified channel. * @param ChatMessage $body The request body * @param MessagesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/TeamTemplateDefinition/Item/TeamDefinition/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.php b/src/Generated/TeamTemplateDefinition/Item/TeamDefinition/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.php index 790874a3a59..e9e3a75f8b6 100644 --- a/src/Generated/TeamTemplateDefinition/Item/TeamDefinition/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.php +++ b/src/Generated/TeamTemplateDefinition/Item/TeamDefinition/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.php @@ -70,11 +70,11 @@ public function get(?ConversationMemberItemRequestBuilderGetRequestConfiguration } /** - * Update the role of a conversationMember in a team.or channel. + * Update the role of a conversationMember in a channel. This operation is allowed only for channels with a **membershipType** value of `private` or `shared`. * @param ConversationMember $body The request body * @param ConversationMemberItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://docs.microsoft.com/graph/api/conversationmember-update?view=graph-rest-1.0 Find more info here + * @link https://docs.microsoft.com/graph/api/channel-update-members?view=graph-rest-1.0 Find more info here */ public function patch(ConversationMember $body, ?ConversationMemberItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); @@ -128,7 +128,7 @@ public function toGetRequestInformation(?ConversationMemberItemRequestBuilderGet } /** - * Update the role of a conversationMember in a team.or channel. + * Update the role of a conversationMember in a channel. This operation is allowed only for channels with a **membershipType** value of `private` or `shared`. * @param ConversationMember $body The request body * @param ConversationMemberItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/TeamTemplateDefinition/Item/TeamDefinition/PrimaryChannel/Messages/MessagesRequestBuilder.php b/src/Generated/TeamTemplateDefinition/Item/TeamDefinition/PrimaryChannel/Messages/MessagesRequestBuilder.php index 086efb1ebd7..a704c484329 100644 --- a/src/Generated/TeamTemplateDefinition/Item/TeamDefinition/PrimaryChannel/Messages/MessagesRequestBuilder.php +++ b/src/Generated/TeamTemplateDefinition/Item/TeamDefinition/PrimaryChannel/Messages/MessagesRequestBuilder.php @@ -80,11 +80,11 @@ public function get(?MessagesRequestBuilderGetRequestConfiguration $requestConfi } /** - * Send a new chatMessage in the specified channel or a chat. + * Send a new chatMessage in the specified channel. * @param ChatMessage $body The request body * @param MessagesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://docs.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0 Find more info here + * @link https://docs.microsoft.com/graph/api/channel-post-messages?view=graph-rest-1.0 Find more info here */ public function post(ChatMessage $body, ?MessagesRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -121,7 +121,7 @@ public function toGetRequestInformation(?MessagesRequestBuilderGetRequestConfigu } /** - * Send a new chatMessage in the specified channel or a chat. + * Send a new chatMessage in the specified channel. * @param ChatMessage $body The request body * @param MessagesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Teams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.php b/src/Generated/Teams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.php index a390896e243..024e39a074e 100644 --- a/src/Generated/Teams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.php +++ b/src/Generated/Teams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.php @@ -70,11 +70,11 @@ public function get(?ConversationMemberItemRequestBuilderGetRequestConfiguration } /** - * Update the role of a conversationMember in a team.or channel. + * Update the role of a conversationMember in a channel. This operation is allowed only for channels with a **membershipType** value of `private` or `shared`. * @param ConversationMember $body The request body * @param ConversationMemberItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://docs.microsoft.com/graph/api/conversationmember-update?view=graph-rest-1.0 Find more info here + * @link https://docs.microsoft.com/graph/api/channel-update-members?view=graph-rest-1.0 Find more info here */ public function patch(ConversationMember $body, ?ConversationMemberItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); @@ -128,7 +128,7 @@ public function toGetRequestInformation(?ConversationMemberItemRequestBuilderGet } /** - * Update the role of a conversationMember in a team.or channel. + * Update the role of a conversationMember in a channel. This operation is allowed only for channels with a **membershipType** value of `private` or `shared`. * @param ConversationMember $body The request body * @param ConversationMemberItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Teams/Item/Channels/Item/Messages/MessagesRequestBuilder.php b/src/Generated/Teams/Item/Channels/Item/Messages/MessagesRequestBuilder.php index 99b7c02d24d..fee12936faa 100644 --- a/src/Generated/Teams/Item/Channels/Item/Messages/MessagesRequestBuilder.php +++ b/src/Generated/Teams/Item/Channels/Item/Messages/MessagesRequestBuilder.php @@ -80,11 +80,11 @@ public function get(?MessagesRequestBuilderGetRequestConfiguration $requestConfi } /** - * Send a new chatMessage in the specified channel or a chat. + * Send a new chatMessage in the specified channel. * @param ChatMessage $body The request body * @param MessagesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://docs.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0 Find more info here + * @link https://docs.microsoft.com/graph/api/channel-post-messages?view=graph-rest-1.0 Find more info here */ public function post(ChatMessage $body, ?MessagesRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -121,7 +121,7 @@ public function toGetRequestInformation(?MessagesRequestBuilderGetRequestConfigu } /** - * Send a new chatMessage in the specified channel or a chat. + * Send a new chatMessage in the specified channel. * @param ChatMessage $body The request body * @param MessagesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Teams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.php b/src/Generated/Teams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.php index 25999f1e7f2..a8ded56b6f5 100644 --- a/src/Generated/Teams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.php +++ b/src/Generated/Teams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.php @@ -70,11 +70,11 @@ public function get(?ConversationMemberItemRequestBuilderGetRequestConfiguration } /** - * Update the role of a conversationMember in a team.or channel. + * Update the role of a conversationMember in a channel. This operation is allowed only for channels with a **membershipType** value of `private` or `shared`. * @param ConversationMember $body The request body * @param ConversationMemberItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://docs.microsoft.com/graph/api/conversationmember-update?view=graph-rest-1.0 Find more info here + * @link https://docs.microsoft.com/graph/api/channel-update-members?view=graph-rest-1.0 Find more info here */ public function patch(ConversationMember $body, ?ConversationMemberItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); @@ -128,7 +128,7 @@ public function toGetRequestInformation(?ConversationMemberItemRequestBuilderGet } /** - * Update the role of a conversationMember in a team.or channel. + * Update the role of a conversationMember in a channel. This operation is allowed only for channels with a **membershipType** value of `private` or `shared`. * @param ConversationMember $body The request body * @param ConversationMemberItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Teams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.php b/src/Generated/Teams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.php index 276e8214e8e..0627f5dc26f 100644 --- a/src/Generated/Teams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.php +++ b/src/Generated/Teams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.php @@ -80,11 +80,11 @@ public function get(?MessagesRequestBuilderGetRequestConfiguration $requestConfi } /** - * Send a new chatMessage in the specified channel or a chat. + * Send a new chatMessage in the specified channel. * @param ChatMessage $body The request body * @param MessagesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://docs.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0 Find more info here + * @link https://docs.microsoft.com/graph/api/channel-post-messages?view=graph-rest-1.0 Find more info here */ public function post(ChatMessage $body, ?MessagesRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -121,7 +121,7 @@ public function toGetRequestInformation(?MessagesRequestBuilderGetRequestConfigu } /** - * Send a new chatMessage in the specified channel or a chat. + * Send a new chatMessage in the specified channel. * @param ChatMessage $body The request body * @param MessagesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.php b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.php index b1a06cc65de..8802094e16c 100644 --- a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.php +++ b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.php @@ -70,11 +70,11 @@ public function get(?ConversationMemberItemRequestBuilderGetRequestConfiguration } /** - * Update the role of a conversationMember in a team.or channel. + * Update the role of a conversationMember in a channel. This operation is allowed only for channels with a **membershipType** value of `private` or `shared`. * @param ConversationMember $body The request body * @param ConversationMemberItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://docs.microsoft.com/graph/api/conversationmember-update?view=graph-rest-1.0 Find more info here + * @link https://docs.microsoft.com/graph/api/channel-update-members?view=graph-rest-1.0 Find more info here */ public function patch(ConversationMember $body, ?ConversationMemberItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); @@ -128,7 +128,7 @@ public function toGetRequestInformation(?ConversationMemberItemRequestBuilderGet } /** - * Update the role of a conversationMember in a team.or channel. + * Update the role of a conversationMember in a channel. This operation is allowed only for channels with a **membershipType** value of `private` or `shared`. * @param ConversationMember $body The request body * @param ConversationMemberItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.php b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.php index 4f4e90a1349..9d8991c8f08 100644 --- a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.php +++ b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.php @@ -80,11 +80,11 @@ public function get(?MessagesRequestBuilderGetRequestConfiguration $requestConfi } /** - * Send a new chatMessage in the specified channel or a chat. + * Send a new chatMessage in the specified channel. * @param ChatMessage $body The request body * @param MessagesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://docs.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0 Find more info here + * @link https://docs.microsoft.com/graph/api/channel-post-messages?view=graph-rest-1.0 Find more info here */ public function post(ChatMessage $body, ?MessagesRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -121,7 +121,7 @@ public function toGetRequestInformation(?MessagesRequestBuilderGetRequestConfigu } /** - * Send a new chatMessage in the specified channel or a chat. + * Send a new chatMessage in the specified channel. * @param ChatMessage $body The request body * @param MessagesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Teamwork/TeamTemplates/Item/Definitions/Item/TeamDefinition/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.php b/src/Generated/Teamwork/TeamTemplates/Item/Definitions/Item/TeamDefinition/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.php index f3367628d0e..fc88f66695b 100644 --- a/src/Generated/Teamwork/TeamTemplates/Item/Definitions/Item/TeamDefinition/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.php +++ b/src/Generated/Teamwork/TeamTemplates/Item/Definitions/Item/TeamDefinition/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.php @@ -70,11 +70,11 @@ public function get(?ConversationMemberItemRequestBuilderGetRequestConfiguration } /** - * Update the role of a conversationMember in a team.or channel. + * Update the role of a conversationMember in a channel. This operation is allowed only for channels with a **membershipType** value of `private` or `shared`. * @param ConversationMember $body The request body * @param ConversationMemberItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://docs.microsoft.com/graph/api/conversationmember-update?view=graph-rest-1.0 Find more info here + * @link https://docs.microsoft.com/graph/api/channel-update-members?view=graph-rest-1.0 Find more info here */ public function patch(ConversationMember $body, ?ConversationMemberItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); @@ -128,7 +128,7 @@ public function toGetRequestInformation(?ConversationMemberItemRequestBuilderGet } /** - * Update the role of a conversationMember in a team.or channel. + * Update the role of a conversationMember in a channel. This operation is allowed only for channels with a **membershipType** value of `private` or `shared`. * @param ConversationMember $body The request body * @param ConversationMemberItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Teamwork/TeamTemplates/Item/Definitions/Item/TeamDefinition/Channels/Item/Messages/MessagesRequestBuilder.php b/src/Generated/Teamwork/TeamTemplates/Item/Definitions/Item/TeamDefinition/Channels/Item/Messages/MessagesRequestBuilder.php index 9441684acef..df0baefa915 100644 --- a/src/Generated/Teamwork/TeamTemplates/Item/Definitions/Item/TeamDefinition/Channels/Item/Messages/MessagesRequestBuilder.php +++ b/src/Generated/Teamwork/TeamTemplates/Item/Definitions/Item/TeamDefinition/Channels/Item/Messages/MessagesRequestBuilder.php @@ -80,11 +80,11 @@ public function get(?MessagesRequestBuilderGetRequestConfiguration $requestConfi } /** - * Send a new chatMessage in the specified channel or a chat. + * Send a new chatMessage in the specified channel. * @param ChatMessage $body The request body * @param MessagesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://docs.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0 Find more info here + * @link https://docs.microsoft.com/graph/api/channel-post-messages?view=graph-rest-1.0 Find more info here */ public function post(ChatMessage $body, ?MessagesRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -121,7 +121,7 @@ public function toGetRequestInformation(?MessagesRequestBuilderGetRequestConfigu } /** - * Send a new chatMessage in the specified channel or a chat. + * Send a new chatMessage in the specified channel. * @param ChatMessage $body The request body * @param MessagesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Teamwork/TeamTemplates/Item/Definitions/Item/TeamDefinition/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.php b/src/Generated/Teamwork/TeamTemplates/Item/Definitions/Item/TeamDefinition/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.php index 08186e06aef..0b398f7ff6b 100644 --- a/src/Generated/Teamwork/TeamTemplates/Item/Definitions/Item/TeamDefinition/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.php +++ b/src/Generated/Teamwork/TeamTemplates/Item/Definitions/Item/TeamDefinition/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.php @@ -70,11 +70,11 @@ public function get(?ConversationMemberItemRequestBuilderGetRequestConfiguration } /** - * Update the role of a conversationMember in a team.or channel. + * Update the role of a conversationMember in a channel. This operation is allowed only for channels with a **membershipType** value of `private` or `shared`. * @param ConversationMember $body The request body * @param ConversationMemberItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://docs.microsoft.com/graph/api/conversationmember-update?view=graph-rest-1.0 Find more info here + * @link https://docs.microsoft.com/graph/api/channel-update-members?view=graph-rest-1.0 Find more info here */ public function patch(ConversationMember $body, ?ConversationMemberItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); @@ -128,7 +128,7 @@ public function toGetRequestInformation(?ConversationMemberItemRequestBuilderGet } /** - * Update the role of a conversationMember in a team.or channel. + * Update the role of a conversationMember in a channel. This operation is allowed only for channels with a **membershipType** value of `private` or `shared`. * @param ConversationMember $body The request body * @param ConversationMemberItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Teamwork/TeamTemplates/Item/Definitions/Item/TeamDefinition/PrimaryChannel/Messages/MessagesRequestBuilder.php b/src/Generated/Teamwork/TeamTemplates/Item/Definitions/Item/TeamDefinition/PrimaryChannel/Messages/MessagesRequestBuilder.php index 55ef93e2991..443b3bd4a60 100644 --- a/src/Generated/Teamwork/TeamTemplates/Item/Definitions/Item/TeamDefinition/PrimaryChannel/Messages/MessagesRequestBuilder.php +++ b/src/Generated/Teamwork/TeamTemplates/Item/Definitions/Item/TeamDefinition/PrimaryChannel/Messages/MessagesRequestBuilder.php @@ -80,11 +80,11 @@ public function get(?MessagesRequestBuilderGetRequestConfiguration $requestConfi } /** - * Send a new chatMessage in the specified channel or a chat. + * Send a new chatMessage in the specified channel. * @param ChatMessage $body The request body * @param MessagesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://docs.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0 Find more info here + * @link https://docs.microsoft.com/graph/api/channel-post-messages?view=graph-rest-1.0 Find more info here */ public function post(ChatMessage $body, ?MessagesRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -121,7 +121,7 @@ public function toGetRequestInformation(?MessagesRequestBuilderGetRequestConfigu } /** - * Send a new chatMessage in the specified channel or a chat. + * Send a new chatMessage in the specified channel. * @param ChatMessage $body The request body * @param MessagesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Teamwork/TeamTemplates/TeamTemplatesRequestBuilder.php b/src/Generated/Teamwork/TeamTemplates/TeamTemplatesRequestBuilder.php index 217f263418f..a20801059b1 100644 --- a/src/Generated/Teamwork/TeamTemplates/TeamTemplatesRequestBuilder.php +++ b/src/Generated/Teamwork/TeamTemplates/TeamTemplatesRequestBuilder.php @@ -53,10 +53,10 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the list of teamTemplate objects that are available for a tenant. + * List the teamTemplateDefinition objects associated with a teamTemplate. * @param TeamTemplatesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://docs.microsoft.com/graph/api/teamwork-list-teamtemplates?view=graph-rest-1.0 Find more info here + * @link https://docs.microsoft.com/graph/api/teamtemplate-list-definitions?view=graph-rest-1.0 Find more info here */ public function get(?TeamTemplatesRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -91,7 +91,7 @@ public function post(TeamTemplate $body, ?TeamTemplatesRequestBuilderPostRequest } /** - * Get the list of teamTemplate objects that are available for a tenant. + * List the teamTemplateDefinition objects associated with a teamTemplate. * @param TeamTemplatesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Teamwork/TeamTemplates/TeamTemplatesRequestBuilderGetQueryParameters.php b/src/Generated/Teamwork/TeamTemplates/TeamTemplatesRequestBuilderGetQueryParameters.php index f64e287c0e8..89067819bb6 100644 --- a/src/Generated/Teamwork/TeamTemplates/TeamTemplatesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Teamwork/TeamTemplates/TeamTemplatesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the list of teamTemplate objects that are available for a tenant. + * List the teamTemplateDefinition objects associated with a teamTemplate. */ class TeamTemplatesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Users/Item/Chats/Item/Messages/MessagesRequestBuilder.php b/src/Generated/Users/Item/Chats/Item/Messages/MessagesRequestBuilder.php index d0fe26e98fd..23bcc842e93 100644 --- a/src/Generated/Users/Item/Chats/Item/Messages/MessagesRequestBuilder.php +++ b/src/Generated/Users/Item/Chats/Item/Messages/MessagesRequestBuilder.php @@ -80,11 +80,11 @@ public function get(?MessagesRequestBuilderGetRequestConfiguration $requestConfi } /** - * Send a new chatMessage in the specified chat. This API cannot create a new chat; you must use the list chats method to retrieve the ID of an existing chat before creating a chat message. + * Send a new chatMessage in the specified channel or a chat. * @param ChatMessage $body The request body * @param MessagesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://docs.microsoft.com/graph/api/chat-post-messages?view=graph-rest-1.0 Find more info here + * @link https://docs.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0 Find more info here */ public function post(ChatMessage $body, ?MessagesRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -121,7 +121,7 @@ public function toGetRequestInformation(?MessagesRequestBuilderGetRequestConfigu } /** - * Send a new chatMessage in the specified chat. This API cannot create a new chat; you must use the list chats method to retrieve the ID of an existing chat before creating a chat message. + * Send a new chatMessage in the specified channel or a chat. * @param ChatMessage $body The request body * @param MessagesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Users/Item/MailFolders/Item/ChildFolders/ChildFoldersRequestBuilder.php b/src/Generated/Users/Item/MailFolders/Item/ChildFolders/ChildFoldersRequestBuilder.php index cab420bfbda..e35be067448 100644 --- a/src/Generated/Users/Item/MailFolders/Item/ChildFolders/ChildFoldersRequestBuilder.php +++ b/src/Generated/Users/Item/MailFolders/Item/ChildFolders/ChildFoldersRequestBuilder.php @@ -80,11 +80,11 @@ public function get(?ChildFoldersRequestBuilderGetRequestConfiguration $requestC } /** - * Create a new mailSearchFolder in the specified user's mailbox. + * Use this API to create a new child mailFolder. If you intend a new folder to be hidden, you must set the **isHidden** property to `true` on creation. * @param MailFolder $body The request body * @param ChildFoldersRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://docs.microsoft.com/graph/api/mailsearchfolder-post?view=graph-rest-1.0 Find more info here + * @link https://docs.microsoft.com/graph/api/mailfolder-post-childfolders?view=graph-rest-1.0 Find more info here */ public function post(MailFolder $body, ?ChildFoldersRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -121,7 +121,7 @@ public function toGetRequestInformation(?ChildFoldersRequestBuilderGetRequestCon } /** - * Create a new mailSearchFolder in the specified user's mailbox. + * Use this API to create a new child mailFolder. If you intend a new folder to be hidden, you must set the **isHidden** property to `true` on creation. * @param MailFolder $body The request body * @param ChildFoldersRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.php b/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.php index e989f873585..82263850426 100644 --- a/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.php +++ b/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.php @@ -80,11 +80,11 @@ public function get(?AttachmentsRequestBuilderGetRequestConfiguration $requestCo } /** - * Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or to a new message that is being drafted, or created and sent on the fly. + * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. * @param Attachment $body The request body * @param AttachmentsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://docs.microsoft.com/graph/api/message-post-attachments?view=graph-rest-1.0 Find more info here + * @link https://docs.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 Find more info here */ public function post(Attachment $body, ?AttachmentsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -121,7 +121,7 @@ public function toGetRequestInformation(?AttachmentsRequestBuilderGetRequestConf } /** - * Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or to a new message that is being drafted, or created and sent on the fly. + * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. * @param Attachment $body The request body * @param AttachmentsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Users/Item/MailFolders/Item/MailFolderItemRequestBuilder.php b/src/Generated/Users/Item/MailFolders/Item/MailFolderItemRequestBuilder.php index 49d4e33b47d..f3ba795ab47 100644 --- a/src/Generated/Users/Item/MailFolders/Item/MailFolderItemRequestBuilder.php +++ b/src/Generated/Users/Item/MailFolders/Item/MailFolderItemRequestBuilder.php @@ -118,11 +118,11 @@ public function get(?MailFolderItemRequestBuilderGetRequestConfiguration $reques } /** - * Update the properties of mailFolder object. + * Update the writable properties of a mailSearchFolder object. * @param MailFolder $body The request body * @param MailFolderItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://docs.microsoft.com/graph/api/mailfolder-update?view=graph-rest-1.0 Find more info here + * @link https://docs.microsoft.com/graph/api/mailsearchfolder-update?view=graph-rest-1.0 Find more info here */ public function patch(MailFolder $body, ?MailFolderItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); @@ -176,7 +176,7 @@ public function toGetRequestInformation(?MailFolderItemRequestBuilderGetRequestC } /** - * Update the properties of mailFolder object. + * Update the writable properties of a mailSearchFolder object. * @param MailFolder $body The request body * @param MailFolderItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.php b/src/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.php index 46fc3b48c1a..d9e51fca2e0 100644 --- a/src/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.php +++ b/src/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.php @@ -80,11 +80,11 @@ public function get(?AttachmentsRequestBuilderGetRequestConfiguration $requestCo } /** - * Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or to a new message that is being drafted, or created and sent on the fly. + * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. * @param Attachment $body The request body * @param AttachmentsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://docs.microsoft.com/graph/api/message-post-attachments?view=graph-rest-1.0 Find more info here + * @link https://docs.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 Find more info here */ public function post(Attachment $body, ?AttachmentsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -121,7 +121,7 @@ public function toGetRequestInformation(?AttachmentsRequestBuilderGetRequestConf } /** - * Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or to a new message that is being drafted, or created and sent on the fly. + * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. * @param Attachment $body The request body * @param AttachmentsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Users/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.php b/src/Generated/Users/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.php index 1ead5efd531..e51d5c5fc97 100644 --- a/src/Generated/Users/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.php +++ b/src/Generated/Users/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.php @@ -80,11 +80,11 @@ public function get(?AttachmentsRequestBuilderGetRequestConfiguration $requestCo } /** - * Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or to a new message that is being drafted, or created and sent on the fly. + * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. * @param Attachment $body The request body * @param AttachmentsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://docs.microsoft.com/graph/api/message-post-attachments?view=graph-rest-1.0 Find more info here + * @link https://docs.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 Find more info here */ public function post(Attachment $body, ?AttachmentsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -121,7 +121,7 @@ public function toGetRequestInformation(?AttachmentsRequestBuilderGetRequestConf } /** - * Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or to a new message that is being drafted, or created and sent on the fly. + * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. * @param Attachment $body The request body * @param AttachmentsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Users/Item/Messages/Item/MessageItemRequestBuilder.php b/src/Generated/Users/Item/Messages/Item/MessageItemRequestBuilder.php index 8293814da10..9820d92174d 100644 --- a/src/Generated/Users/Item/Messages/Item/MessageItemRequestBuilder.php +++ b/src/Generated/Users/Item/Messages/Item/MessageItemRequestBuilder.php @@ -182,7 +182,7 @@ public function delete(?MessageItemRequestBuilderDeleteRequestConfiguration $req * The messages in a mailbox or folder. Read-only. Nullable. * @param MessageItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://docs.microsoft.com/graph/api/opentypeextension-get?view=graph-rest-1.0 Find more info here + * @link https://docs.microsoft.com/graph/api/message-get?view=graph-rest-1.0 Find more info here */ public function get(?MessageItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); diff --git a/src/Generated/Users/Item/Messages/Item/Value/ContentRequestBuilder.php b/src/Generated/Users/Item/Messages/Item/Value/ContentRequestBuilder.php index cb002960592..1d585238320 100644 --- a/src/Generated/Users/Item/Messages/Item/Value/ContentRequestBuilder.php +++ b/src/Generated/Users/Item/Messages/Item/Value/ContentRequestBuilder.php @@ -35,7 +35,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap * Get media content for the navigation property messages from users * @param ContentRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://docs.microsoft.com/graph/api/opentypeextension-get?view=graph-rest-1.0 Find more info here + * @link https://docs.microsoft.com/graph/api/user-list-messages?view=graph-rest-1.0 Find more info here */ public function get(?ContentRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); diff --git a/src/Generated/Users/Item/Messages/MessagesRequestBuilder.php b/src/Generated/Users/Item/Messages/MessagesRequestBuilder.php index 5681501f5db..107b05f2efe 100644 --- a/src/Generated/Users/Item/Messages/MessagesRequestBuilder.php +++ b/src/Generated/Users/Item/Messages/MessagesRequestBuilder.php @@ -64,7 +64,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap * The messages in a mailbox or folder. Read-only. Nullable. * @param MessagesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://docs.microsoft.com/graph/api/opentypeextension-get?view=graph-rest-1.0 Find more info here + * @link https://docs.microsoft.com/graph/api/user-list-messages?view=graph-rest-1.0 Find more info here */ public function get(?MessagesRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); diff --git a/src/Generated/Users/Item/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.php b/src/Generated/Users/Item/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.php index e8c6eba80dd..f94bc007eec 100644 --- a/src/Generated/Users/Item/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.php +++ b/src/Generated/Users/Item/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.php @@ -48,10 +48,10 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Disable and delete the meetingRegistration of an onlineMeeting on behalf of the organizer. + * Disable and delete the externalMeetingRegistration of an onlineMeeting. * @param RegistrationRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://docs.microsoft.com/graph/api/meetingregistration-delete?view=graph-rest-1.0 Find more info here + * @link https://docs.microsoft.com/graph/api/externalmeetingregistration-delete?view=graph-rest-1.0 Find more info here */ public function delete(?RegistrationRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); @@ -106,7 +106,7 @@ public function patch(MeetingRegistration $body, ?RegistrationRequestBuilderPatc } /** - * Disable and delete the meetingRegistration of an onlineMeeting on behalf of the organizer. + * Disable and delete the externalMeetingRegistration of an onlineMeeting. * @param RegistrationRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Users/UsersRequestBuilder.php b/src/Generated/Users/UsersRequestBuilder.php index f98acdd913c..0d9a3a54751 100644 --- a/src/Generated/Users/UsersRequestBuilder.php +++ b/src/Generated/Users/UsersRequestBuilder.php @@ -101,10 +101,10 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * 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. + * Retrieve a list of user objects. 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. * @param UsersRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://docs.microsoft.com/graph/api/user-get?view=graph-rest-1.0 Find more info here + * @link https://docs.microsoft.com/graph/api/user-list?view=graph-rest-1.0 Find more info here */ public function get(?UsersRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -140,7 +140,7 @@ public function post(User $body, ?UsersRequestBuilderPostRequestConfiguration $r } /** - * 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. + * Retrieve a list of user objects. 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. * @param UsersRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Users/UsersRequestBuilderGetQueryParameters.php b/src/Generated/Users/UsersRequestBuilderGetQueryParameters.php index 3ae38762b35..e55790b3a27 100644 --- a/src/Generated/Users/UsersRequestBuilderGetQueryParameters.php +++ b/src/Generated/Users/UsersRequestBuilderGetQueryParameters.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. + * Retrieve a list of user objects. 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. */ class UsersRequestBuilderGetQueryParameters { diff --git a/src/Generated/kiota-lock.json b/src/Generated/kiota-lock.json index bd591513aef..f5607721c11 100644 --- a/src/Generated/kiota-lock.json +++ b/src/Generated/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "7045EABE00D82C20973F102D6466708D6609D4E7B821EA5CB7699BFE22BC9286F62EB5CA616DDF3FDF2539B066A020DEFCD17AE459118CAD750A251A96F39C8A", + "descriptionHash": "069F6B06FC13F79E7F7B0898430C3AC61EA887D310ABB319F15177AB5E1B74CBB874C8E95E2B8EDB257024F6B8EA90E327D43911EAB32A6E1DA5A6BF27E6FBDA", "descriptionLocation": "/mnt/vss/_work/1/s/msgraph-metadata/clean_beta_openapi/openapi.yaml", "lockFileVersion": "1.0.0", "kiotaVersion": "1.3.0", diff --git a/src/GraphConstants.php b/src/GraphConstants.php index 4deafe4c317..a8d0c7afe8c 100644 --- a/src/GraphConstants.php +++ b/src/GraphConstants.php @@ -19,5 +19,5 @@ final class GraphConstants { const API_VERSION = "beta"; - const SDK_VERSION = "2.0.0-RC17"; + const SDK_VERSION = "2.0.0-RC18"; }