-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #183 from microsoftgraph/dev
2.0.0-RC19
- Loading branch information
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.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
147 changes: 147 additions & 0 deletions
147
src/Generated/Admin/AppsAndServices/AppsAndServicesRequestBuilder.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
|
||
} |
22 changes: 22 additions & 0 deletions
22
...nerated/Admin/AppsAndServices/AppsAndServicesRequestBuilderDeleteRequestConfiguration.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ?? []); | ||
} | ||
|
||
} |
34 changes: 34 additions & 0 deletions
34
src/Generated/Admin/AppsAndServices/AppsAndServicesRequestBuilderGetQueryParameters.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
|
||
} |
39 changes: 39 additions & 0 deletions
39
src/Generated/Admin/AppsAndServices/AppsAndServicesRequestBuilderGetRequestConfiguration.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
|
||
} |
22 changes: 22 additions & 0 deletions
22
...enerated/Admin/AppsAndServices/AppsAndServicesRequestBuilderPatchRequestConfiguration.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ?? []); | ||
} | ||
|
||
} |
Oops, something went wrong.