Skip to content

Commit

Permalink
Merge pull request #183 from microsoftgraph/dev
Browse files Browse the repository at this point in the history
2.0.0-RC19
  • Loading branch information
Ndiritu authored Jul 6, 2023
2 parents e484570 + eb5727a commit 4fbce6d
Show file tree
Hide file tree
Showing 7,823 changed files with 210,183 additions and 39,329 deletions.
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 Beta PHP SDK with Composer by editing your `composer.json` f
{
"minimum-stability": "RC",
"require": {
"microsoft/microsoft-graph-beta": "^2.0.0-RC18",
"microsoft/microsoft-graph-beta": "^2.0.0-RC19",
}
}
```
OR
```
{
"require": {
"microsoft/microsoft-graph-beta": "^2.0.0-RC18",
"microsoft/microsoft-graph-beta": "^2.0.0-RC19",
"microsoft/microsoft-graph-core": "@RC"
}
}
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
],
"require": {
"php": "^8.0 || ^7.4",
"microsoft/microsoft-graph-core": "2.0.0-RC9"
"microsoft/microsoft-graph-core": "2.0.0-RC10"
},
"require-dev": {
"phpunit/phpunit": "^8.0 || ^9.0",
Expand Down
32 changes: 32 additions & 0 deletions src/Generated/Admin/AdminRequestBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,14 @@
use Exception;
use Http\Promise\Promise;
use Http\Promise\RejectedPromise;
use Microsoft\Graph\Beta\Generated\Admin\AppsAndServices\AppsAndServicesRequestBuilder;
use Microsoft\Graph\Beta\Generated\Admin\Dynamics\DynamicsRequestBuilder;
use Microsoft\Graph\Beta\Generated\Admin\Edge\EdgeRequestBuilder;
use Microsoft\Graph\Beta\Generated\Admin\Forms\FormsRequestBuilder;
use Microsoft\Graph\Beta\Generated\Admin\ReportSettings\ReportSettingsRequestBuilder;
use Microsoft\Graph\Beta\Generated\Admin\ServiceAnnouncement\ServiceAnnouncementRequestBuilder;
use Microsoft\Graph\Beta\Generated\Admin\Sharepoint\SharepointRequestBuilder;
use Microsoft\Graph\Beta\Generated\Admin\Todo\TodoRequestBuilder;
use Microsoft\Graph\Beta\Generated\Admin\Windows\WindowsRequestBuilder;
use Microsoft\Graph\Beta\Generated\Models\Admin;
use Microsoft\Graph\Beta\Generated\Models\ODataErrors\ODataError;
Expand All @@ -22,13 +26,34 @@
*/
class AdminRequestBuilder extends BaseRequestBuilder
{
/**
* Provides operations to manage the appsAndServices property of the microsoft.graph.admin entity.
*/
public function appsAndServices(): AppsAndServicesRequestBuilder {
return new AppsAndServicesRequestBuilder($this->pathParameters, $this->requestAdapter);
}

/**
* Provides operations to manage the dynamics property of the microsoft.graph.admin entity.
*/
public function dynamics(): DynamicsRequestBuilder {
return new DynamicsRequestBuilder($this->pathParameters, $this->requestAdapter);
}

/**
* Provides operations to manage the edge property of the microsoft.graph.admin entity.
*/
public function edge(): EdgeRequestBuilder {
return new EdgeRequestBuilder($this->pathParameters, $this->requestAdapter);
}

/**
* Provides operations to manage the forms property of the microsoft.graph.admin entity.
*/
public function forms(): FormsRequestBuilder {
return new FormsRequestBuilder($this->pathParameters, $this->requestAdapter);
}

/**
* Provides operations to manage the reportSettings property of the microsoft.graph.admin entity.
*/
Expand All @@ -50,6 +75,13 @@ public function sharepoint(): SharepointRequestBuilder {
return new SharepointRequestBuilder($this->pathParameters, $this->requestAdapter);
}

/**
* Provides operations to manage the todo property of the microsoft.graph.admin entity.
*/
public function todo(): TodoRequestBuilder {
return new TodoRequestBuilder($this->pathParameters, $this->requestAdapter);
}

/**
* Provides operations to manage the windows property of the microsoft.graph.admin entity.
*/
Expand Down
147 changes: 147 additions & 0 deletions src/Generated/Admin/AppsAndServices/AppsAndServicesRequestBuilder.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,147 @@
<?php

namespace Microsoft\Graph\Beta\Generated\Admin\AppsAndServices;

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

/**
* Provides operations to manage the appsAndServices property of the microsoft.graph.admin entity.
*/
class AppsAndServicesRequestBuilder extends BaseRequestBuilder
{
/**
* Instantiates a new AppsAndServicesRequestBuilder and sets the default values.
* @param array<string, mixed>|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL.
* @param RequestAdapter $requestAdapter The request adapter to use to execute the requests.
*/
public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) {
parent::__construct($requestAdapter, [], '{+baseurl}/admin/appsAndServices{?%24select,%24expand}');
if (is_array($pathParametersOrRawUrl)) {
$this->pathParameters = $pathParametersOrRawUrl;
} else {
$this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl];
}
}

/**
* Delete navigation property appsAndServices for admin
* @param AppsAndServicesRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return Promise
*/
public function delete(?AppsAndServicesRequestBuilderDeleteRequestConfiguration $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 appsAndServices from admin
* @param AppsAndServicesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return Promise
*/
public function get(?AppsAndServicesRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise {
$requestInfo = $this->toGetRequestInformation($requestConfiguration);
try {
$errorMappings = [
'4XX' => [ODataError::class, 'createFromDiscriminatorValue'],
'5XX' => [ODataError::class, 'createFromDiscriminatorValue'],
];
return $this->requestAdapter->sendAsync($requestInfo, [AdminAppsAndServices::class, 'createFromDiscriminatorValue'], $errorMappings);
} catch(Exception $ex) {
return new RejectedPromise($ex);
}
}

/**
* Update the navigation property appsAndServices in admin
* @param AdminAppsAndServices $body The request body
* @param AppsAndServicesRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return Promise
*/
public function patch(AdminAppsAndServices $body, ?AppsAndServicesRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise {
$requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration);
try {
$errorMappings = [
'4XX' => [ODataError::class, 'createFromDiscriminatorValue'],
'5XX' => [ODataError::class, 'createFromDiscriminatorValue'],
];
return $this->requestAdapter->sendAsync($requestInfo, [AdminAppsAndServices::class, 'createFromDiscriminatorValue'], $errorMappings);
} catch(Exception $ex) {
return new RejectedPromise($ex);
}
}

/**
* Delete navigation property appsAndServices for admin
* @param AppsAndServicesRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return RequestInformation
*/
public function toDeleteRequestInformation(?AppsAndServicesRequestBuilderDeleteRequestConfiguration $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 appsAndServices from admin
* @param AppsAndServicesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return RequestInformation
*/
public function toGetRequestInformation(?AppsAndServicesRequestBuilderGetRequestConfiguration $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 appsAndServices in admin
* @param AdminAppsAndServices $body The request body
* @param AppsAndServicesRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return RequestInformation
*/
public function toPatchRequestInformation(AdminAppsAndServices $body, ?AppsAndServicesRequestBuilderPatchRequestConfiguration $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;
}

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

namespace Microsoft\Graph\Beta\Generated\Admin\AppsAndServices;

use Microsoft\Kiota\Abstractions\BaseRequestConfiguration;
use Microsoft\Kiota\Abstractions\RequestOption;

/**
* Configuration for the request such as headers, query parameters, and middleware options.
*/
class AppsAndServicesRequestBuilderDeleteRequestConfiguration extends BaseRequestConfiguration
{
/**
* Instantiates a new appsAndServicesRequestBuilderDeleteRequestConfiguration and sets the default values.
* @param array<string, array<string>|string>|null $headers Request headers
* @param array<RequestOption>|null $options Request options
*/
public function __construct(?array $headers = null, ?array $options = null) {
parent::__construct($headers ?? [], $options ?? []);
}

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

namespace Microsoft\Graph\Beta\Generated\Admin\AppsAndServices;

use Microsoft\Kiota\Abstractions\QueryParameter;

/**
* Get appsAndServices from admin
*/
class AppsAndServicesRequestBuilderGetQueryParameters
{
/**
* @QueryParameter("%24expand")
* @var array<string>|null $expand Expand related entities
*/
public ?array $expand = null;

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

/**
* Instantiates a new appsAndServicesRequestBuilderGetQueryParameters and sets the default values.
* @param array<string>|null $expand Expand related entities
* @param array<string>|null $select Select properties to be returned
*/
public function __construct(?array $expand = null, ?array $select = null) {
$this->expand = $expand;
$this->select = $select;
}

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

namespace Microsoft\Graph\Beta\Generated\Admin\AppsAndServices;

use Microsoft\Kiota\Abstractions\BaseRequestConfiguration;
use Microsoft\Kiota\Abstractions\RequestOption;

/**
* Configuration for the request such as headers, query parameters, and middleware options.
*/
class AppsAndServicesRequestBuilderGetRequestConfiguration extends BaseRequestConfiguration
{
/**
* @var AppsAndServicesRequestBuilderGetQueryParameters|null $queryParameters Request query parameters
*/
public ?AppsAndServicesRequestBuilderGetQueryParameters $queryParameters = null;

/**
* Instantiates a new appsAndServicesRequestBuilderGetRequestConfiguration and sets the default values.
* @param array<string, array<string>|string>|null $headers Request headers
* @param array<RequestOption>|null $options Request options
* @param AppsAndServicesRequestBuilderGetQueryParameters|null $queryParameters Request query parameters
*/
public function __construct(?array $headers = null, ?array $options = null, ?AppsAndServicesRequestBuilderGetQueryParameters $queryParameters = null) {
parent::__construct($headers ?? [], $options ?? []);
$this->queryParameters = $queryParameters;
}

/**
* Instantiates a new appsAndServicesRequestBuilderGetQueryParameters.
* @param array<string>|null $expand Expand related entities
* @param array<string>|null $select Select properties to be returned
* @return AppsAndServicesRequestBuilderGetQueryParameters
*/
public static function createQueryParameters(?array $expand = null, ?array $select = null): AppsAndServicesRequestBuilderGetQueryParameters {
return new AppsAndServicesRequestBuilderGetQueryParameters($expand, $select);
}

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

namespace Microsoft\Graph\Beta\Generated\Admin\AppsAndServices;

use Microsoft\Kiota\Abstractions\BaseRequestConfiguration;
use Microsoft\Kiota\Abstractions\RequestOption;

/**
* Configuration for the request such as headers, query parameters, and middleware options.
*/
class AppsAndServicesRequestBuilderPatchRequestConfiguration extends BaseRequestConfiguration
{
/**
* Instantiates a new appsAndServicesRequestBuilderPatchRequestConfiguration and sets the default values.
* @param array<string, array<string>|string>|null $headers Request headers
* @param array<RequestOption>|null $options Request options
*/
public function __construct(?array $headers = null, ?array $options = null) {
parent::__construct($headers ?? [], $options ?? []);
}

}
Loading

0 comments on commit 4fbce6d

Please sign in to comment.