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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ You can install the PHP SDK with Composer by editing your `composer.json` file:
{
"minimum-stability": "RC",
"require": {
"microsoft/microsoft-graph": "^2.0.0-RC8",
"microsoft/microsoft-graph": "^2.0.0-RC9",
}
}
```
OR
```
{
"require": {
"microsoft/microsoft-graph": "^2.0.0-RC8",
"microsoft/microsoft-graph": "^2.0.0-RC9",
"microsoft/microsoft-graph-core": "@RC"
}
}
Expand Down
3 changes: 2 additions & 1 deletion src/Generated/Admin/AdminRequestBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ public function createPatchRequestInformation(Admin $body, ?AdminRequestBuilderP
$requestInfo->urlTemplate = $this->urlTemplate;
$requestInfo->pathParameters = $this->pathParameters;
$requestInfo->httpMethod = HttpMethod::PATCH;
$requestInfo->headers = array_merge($requestInfo->headers, ["Accept" => "application/json"]);
if ($requestConfiguration !== null) {
if ($requestConfiguration->headers !== null) {
$requestInfo->headers = array_merge($requestInfo->headers, $requestConfiguration->headers);
Expand Down Expand Up @@ -132,7 +133,7 @@ public function patch(Admin $body, ?AdminRequestBuilderPatchRequestConfiguration
'4XX' => array(ODataError::class, 'createFromDiscriminatorValue'),
'5XX' => array(ODataError::class, 'createFromDiscriminatorValue'),
];
return $this->requestAdapter->sendNoContentAsync($requestInfo, $responseHandler, $errorMappings);
return $this->requestAdapter->sendAsync($requestInfo, array(Admin::class, 'createFromDiscriminatorValue'), $responseHandler, $errorMappings);
} catch(Exception $ex) {
return new RejectedPromise($ex);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ public function count(): CountRequestBuilder {
* @param RequestAdapter $requestAdapter The request adapter to use to execute the requests.
*/
public function __construct(array $pathParameters, RequestAdapter $requestAdapter) {
$this->urlTemplate = '{+baseurl}/admin/serviceAnnouncement/healthOverviews{?%24top*,%24skip*,%24search*,%24filter*,%24count*,%24orderby,%24select,%24expand}';
$this->urlTemplate = '{+baseurl}/admin/serviceAnnouncement/healthOverviews{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}';
$this->requestAdapter = $requestAdapter;
$this->pathParameters = $pathParameters;
}

/**
* A collection of service health information for tenant. This property is a contained navigation property, it is nullable and readonly.
* Retrieve the serviceHealth resources from the **healthOverviews** navigation property. This operation provides the health report of all subscribed services for a tenant.
* @param HealthOverviewsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return RequestInformation
*/
Expand Down Expand Up @@ -102,7 +102,7 @@ public function createPostRequestInformation(ServiceHealth $body, ?HealthOvervie
}

/**
* A collection of service health information for tenant. This property is a contained navigation property, it is nullable and readonly.
* Retrieve the serviceHealth resources from the **healthOverviews** navigation property. This operation provides the health report of all subscribed services for a tenant.
* @param HealthOverviewsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @param ResponseHandler|null $responseHandler Response handler to use in place of the default response handling provided by the core service
* @return Promise
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function count(): CountRequestBuilder {
* @param RequestAdapter $requestAdapter The request adapter to use to execute the requests.
*/
public function __construct(array $pathParameters, RequestAdapter $requestAdapter) {
$this->urlTemplate = '{+baseurl}/admin/serviceAnnouncement/healthOverviews/{serviceHealth%2Did}/issues{?%24top*,%24skip*,%24search*,%24filter*,%24count*,%24orderby,%24select,%24expand}';
$this->urlTemplate = '{+baseurl}/admin/serviceAnnouncement/healthOverviews/{serviceHealth%2Did}/issues{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}';
$this->requestAdapter = $requestAdapter;
$this->pathParameters = $pathParameters;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ public function createPatchRequestInformation(ServiceHealthIssue $body, ?Service
$requestInfo->urlTemplate = $this->urlTemplate;
$requestInfo->pathParameters = $this->pathParameters;
$requestInfo->httpMethod = HttpMethod::PATCH;
$requestInfo->headers = array_merge($requestInfo->headers, ["Accept" => "application/json"]);
if ($requestConfiguration !== null) {
if ($requestConfiguration->headers !== null) {
$requestInfo->headers = array_merge($requestInfo->headers, $requestConfiguration->headers);
Expand Down Expand Up @@ -173,7 +174,7 @@ public function patch(ServiceHealthIssue $body, ?ServiceHealthIssueItemRequestBu
'4XX' => array(ODataError::class, 'createFromDiscriminatorValue'),
'5XX' => array(ODataError::class, 'createFromDiscriminatorValue'),
];
return $this->requestAdapter->sendNoContentAsync($requestInfo, $responseHandler, $errorMappings);
return $this->requestAdapter->sendAsync($requestInfo, array(ServiceHealthIssue::class, 'createFromDiscriminatorValue'), $responseHandler, $errorMappings);
} catch(Exception $ex) {
return new RejectedPromise($ex);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ public function createPatchRequestInformation(ServiceHealth $body, ?ServiceHealt
$requestInfo->urlTemplate = $this->urlTemplate;
$requestInfo->pathParameters = $this->pathParameters;
$requestInfo->httpMethod = HttpMethod::PATCH;
$requestInfo->headers = array_merge($requestInfo->headers, ["Accept" => "application/json"]);
if ($requestConfiguration !== null) {
if ($requestConfiguration->headers !== null) {
$requestInfo->headers = array_merge($requestInfo->headers, $requestConfiguration->headers);
Expand Down Expand Up @@ -184,7 +185,7 @@ public function patch(ServiceHealth $body, ?ServiceHealthItemRequestBuilderPatch
'4XX' => array(ODataError::class, 'createFromDiscriminatorValue'),
'5XX' => array(ODataError::class, 'createFromDiscriminatorValue'),
];
return $this->requestAdapter->sendNoContentAsync($requestInfo, $responseHandler, $errorMappings);
return $this->requestAdapter->sendAsync($requestInfo, array(ServiceHealth::class, 'createFromDiscriminatorValue'), $responseHandler, $errorMappings);
} catch(Exception $ex) {
return new RejectedPromise($ex);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ public function count(): CountRequestBuilder {
* @param RequestAdapter $requestAdapter The request adapter to use to execute the requests.
*/
public function __construct(array $pathParameters, RequestAdapter $requestAdapter) {
$this->urlTemplate = '{+baseurl}/admin/serviceAnnouncement/issues{?%24top*,%24skip*,%24search*,%24filter*,%24count*,%24orderby,%24select,%24expand}';
$this->urlTemplate = '{+baseurl}/admin/serviceAnnouncement/issues{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}';
$this->requestAdapter = $requestAdapter;
$this->pathParameters = $pathParameters;
}

/**
* A collection of service issues for tenant. This property is a contained navigation property, it is nullable and readonly.
* Retrieve serviceHealthIssue resources from the **issues** navigation property. This operation retrieves information about all service health issues that exist for the tenant.
* @param IssuesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return RequestInformation
*/
Expand Down Expand Up @@ -102,7 +102,7 @@ public function createPostRequestInformation(ServiceHealthIssue $body, ?IssuesRe
}

/**
* A collection of service issues for tenant. This property is a contained navigation property, it is nullable and readonly.
* Retrieve serviceHealthIssue resources from the **issues** navigation property. This operation retrieves information about all service health issues that exist for the tenant.
* @param IssuesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @param ResponseHandler|null $responseHandler Response handler to use in place of the default response handling provided by the core service
* @return Promise
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ public function createPatchRequestInformation(ServiceHealthIssue $body, ?Service
$requestInfo->urlTemplate = $this->urlTemplate;
$requestInfo->pathParameters = $this->pathParameters;
$requestInfo->httpMethod = HttpMethod::PATCH;
$requestInfo->headers = array_merge($requestInfo->headers, ["Accept" => "application/json"]);
if ($requestConfiguration !== null) {
if ($requestConfiguration->headers !== null) {
$requestInfo->headers = array_merge($requestInfo->headers, $requestConfiguration->headers);
Expand Down Expand Up @@ -173,7 +174,7 @@ public function patch(ServiceHealthIssue $body, ?ServiceHealthIssueItemRequestBu
'4XX' => array(ODataError::class, 'createFromDiscriminatorValue'),
'5XX' => array(ODataError::class, 'createFromDiscriminatorValue'),
];
return $this->requestAdapter->sendNoContentAsync($requestInfo, $responseHandler, $errorMappings);
return $this->requestAdapter->sendAsync($requestInfo, array(ServiceHealthIssue::class, 'createFromDiscriminatorValue'), $responseHandler, $errorMappings);
} catch(Exception $ex) {
return new RejectedPromise($ex);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function __construct(array $pathParameters, RequestAdapter $requestAdapte
}

/**
* Invoke action archive
* Archive a list of serviceUpdateMessages for the signed in user.
* @param ArchivePostRequestBody $body
* @param ArchiveRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return RequestInformation
Expand All @@ -67,7 +67,7 @@ public function createPostRequestInformation(ArchivePostRequestBody $body, ?Arch
}

/**
* Invoke action archive
* Archive a list of serviceUpdateMessages for the signed in user.
* @param ArchivePostRequestBody $body
* @param ArchiveRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @param ResponseHandler|null $responseHandler Response handler to use in place of the default response handling provided by the core service
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function __construct(array $pathParameters, RequestAdapter $requestAdapte
}

/**
* Invoke action favorite
* Change the status of a list of serviceUpdateMessages to favorite for the signed in user.
* @param FavoritePostRequestBody $body
* @param FavoriteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return RequestInformation
Expand All @@ -67,7 +67,7 @@ public function createPostRequestInformation(FavoritePostRequestBody $body, ?Fav
}

/**
* Invoke action favorite
* Change the status of a list of serviceUpdateMessages to favorite for the signed in user.
* @param FavoritePostRequestBody $body
* @param FavoriteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @param ResponseHandler|null $responseHandler Response handler to use in place of the default response handling provided by the core service
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ public function count(): CountRequestBuilder {
* @param RequestAdapter $requestAdapter The request adapter to use to execute the requests.
*/
public function __construct(array $pathParameters, RequestAdapter $requestAdapter) {
$this->urlTemplate = '{+baseurl}/admin/serviceAnnouncement/messages/{serviceUpdateMessage%2Did}/attachments{?%24top*,%24skip*,%24search*,%24filter*,%24count*,%24orderby,%24select,%24expand}';
$this->urlTemplate = '{+baseurl}/admin/serviceAnnouncement/messages/{serviceUpdateMessage%2Did}/attachments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}';
$this->requestAdapter = $requestAdapter;
$this->pathParameters = $pathParameters;
}

/**
* A collection of serviceAnnouncementAttachments.
* Get the list of attachments associated with a service message.
* @param AttachmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return RequestInformation
*/
Expand Down Expand Up @@ -102,7 +102,7 @@ public function createPostRequestInformation(ServiceAnnouncementAttachment $body
}

/**
* A collection of serviceAnnouncementAttachments.
* Get the list of attachments associated with a service message.
* @param AttachmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @param ResponseHandler|null $responseHandler Response handler to use in place of the default response handling provided by the core service
* @return Promise
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ public function createPatchRequestInformation(ServiceAnnouncementAttachment $bod
$requestInfo->urlTemplate = $this->urlTemplate;
$requestInfo->pathParameters = $this->pathParameters;
$requestInfo->httpMethod = HttpMethod::PATCH;
$requestInfo->headers = array_merge($requestInfo->headers, ["Accept" => "application/json"]);
if ($requestConfiguration !== null) {
if ($requestConfiguration->headers !== null) {
$requestInfo->headers = array_merge($requestInfo->headers, $requestConfiguration->headers);
Expand Down Expand Up @@ -172,7 +173,7 @@ public function patch(ServiceAnnouncementAttachment $body, ?ServiceAnnouncementA
'4XX' => array(ODataError::class, 'createFromDiscriminatorValue'),
'5XX' => array(ODataError::class, 'createFromDiscriminatorValue'),
];
return $this->requestAdapter->sendNoContentAsync($requestInfo, $responseHandler, $errorMappings);
return $this->requestAdapter->sendAsync($requestInfo, array(ServiceAnnouncementAttachment::class, 'createFromDiscriminatorValue'), $responseHandler, $errorMappings);
} catch(Exception $ex) {
return new RejectedPromise($ex);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ public function createPatchRequestInformation(ServiceUpdateMessage $body, ?Servi
$requestInfo->urlTemplate = $this->urlTemplate;
$requestInfo->pathParameters = $this->pathParameters;
$requestInfo->httpMethod = HttpMethod::PATCH;
$requestInfo->headers = array_merge($requestInfo->headers, ["Accept" => "application/json"]);
if ($requestConfiguration !== null) {
if ($requestConfiguration->headers !== null) {
$requestInfo->headers = array_merge($requestInfo->headers, $requestConfiguration->headers);
Expand Down Expand Up @@ -192,7 +193,7 @@ public function patch(ServiceUpdateMessage $body, ?ServiceUpdateMessageItemReque
'4XX' => array(ODataError::class, 'createFromDiscriminatorValue'),
'5XX' => array(ODataError::class, 'createFromDiscriminatorValue'),
];
return $this->requestAdapter->sendNoContentAsync($requestInfo, $responseHandler, $errorMappings);
return $this->requestAdapter->sendAsync($requestInfo, array(ServiceUpdateMessage::class, 'createFromDiscriminatorValue'), $responseHandler, $errorMappings);
} catch(Exception $ex) {
return new RejectedPromise($ex);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function __construct(array $pathParameters, RequestAdapter $requestAdapte
}

/**
* Invoke action markRead
* Mark a list of serviceUpdateMessages as **read** for the signed in user.
* @param MarkReadPostRequestBody $body
* @param MarkReadRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return RequestInformation
Expand All @@ -67,7 +67,7 @@ public function createPostRequestInformation(MarkReadPostRequestBody $body, ?Mar
}

/**
* Invoke action markRead
* Mark a list of serviceUpdateMessages as **read** for the signed in user.
* @param MarkReadPostRequestBody $body
* @param MarkReadRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @param ResponseHandler|null $responseHandler Response handler to use in place of the default response handling provided by the core service
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function __construct(array $pathParameters, RequestAdapter $requestAdapte
}

/**
* Invoke action markUnread
* Mark a list of serviceUpdateMessages as **unread** for the signed in user.
* @param MarkUnreadPostRequestBody $body
* @param MarkUnreadRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return RequestInformation
Expand All @@ -67,7 +67,7 @@ public function createPostRequestInformation(MarkUnreadPostRequestBody $body, ?M
}

/**
* Invoke action markUnread
* Mark a list of serviceUpdateMessages as **unread** for the signed in user.
* @param MarkUnreadPostRequestBody $body
* @param MarkUnreadRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @param ResponseHandler|null $responseHandler Response handler to use in place of the default response handling provided by the core service
Expand Down
Loading