-
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.
feat(generation): update request builders and models
Update generated files with build 174332
- Loading branch information
Microsoft Graph DevX Tooling
authored and
Microsoft Graph DevX Tooling
committed
Dec 17, 2024
1 parent
6aee108
commit 8620da8
Showing
515 changed files
with
26,112 additions
and
512 deletions.
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
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
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
128 changes: 128 additions & 0 deletions
128
src/Generated/CertificateAuthorities/CertificateAuthoritiesRequestBuilder.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,128 @@ | ||
<?php | ||
|
||
namespace Microsoft\Graph\Beta\Generated\CertificateAuthorities; | ||
|
||
use Exception; | ||
use Http\Promise\Promise; | ||
use Microsoft\Graph\Beta\Generated\CertificateAuthorities\CertificateBasedApplicationConfigurations\CertificateBasedApplicationConfigurationsRequestBuilder; | ||
use Microsoft\Graph\Beta\Generated\CertificateAuthorities\MutualTlsOauthConfigurations\MutualTlsOauthConfigurationsRequestBuilder; | ||
use Microsoft\Graph\Beta\Generated\Models\CertificateAuthorityPath; | ||
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 certificateAuthorityPath singleton. | ||
*/ | ||
class CertificateAuthoritiesRequestBuilder extends BaseRequestBuilder | ||
{ | ||
/** | ||
* Provides operations to manage the certificateBasedApplicationConfigurations property of the microsoft.graph.certificateAuthorityPath entity. | ||
*/ | ||
public function certificateBasedApplicationConfigurations(): CertificateBasedApplicationConfigurationsRequestBuilder { | ||
return new CertificateBasedApplicationConfigurationsRequestBuilder($this->pathParameters, $this->requestAdapter); | ||
} | ||
|
||
/** | ||
* Provides operations to manage the mutualTlsOauthConfigurations property of the microsoft.graph.certificateAuthorityPath entity. | ||
*/ | ||
public function mutualTlsOauthConfigurations(): MutualTlsOauthConfigurationsRequestBuilder { | ||
return new MutualTlsOauthConfigurationsRequestBuilder($this->pathParameters, $this->requestAdapter); | ||
} | ||
|
||
/** | ||
* Instantiates a new CertificateAuthoritiesRequestBuilder 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}/certificateAuthorities{?%24expand,%24select}'); | ||
if (is_array($pathParametersOrRawUrl)) { | ||
$this->pathParameters = $pathParametersOrRawUrl; | ||
} else { | ||
$this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; | ||
} | ||
} | ||
|
||
/** | ||
* Get certificateAuthorities | ||
* @param CertificateAuthoritiesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. | ||
* @return Promise<CertificateAuthorityPath|null> | ||
* @throws Exception | ||
*/ | ||
public function get(?CertificateAuthoritiesRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { | ||
$requestInfo = $this->toGetRequestInformation($requestConfiguration); | ||
$errorMappings = [ | ||
'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], | ||
]; | ||
return $this->requestAdapter->sendAsync($requestInfo, [CertificateAuthorityPath::class, 'createFromDiscriminatorValue'], $errorMappings); | ||
} | ||
|
||
/** | ||
* Update certificateAuthorities | ||
* @param CertificateAuthorityPath $body The request body | ||
* @param CertificateAuthoritiesRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. | ||
* @return Promise<CertificateAuthorityPath|null> | ||
* @throws Exception | ||
*/ | ||
public function patch(CertificateAuthorityPath $body, ?CertificateAuthoritiesRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { | ||
$requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); | ||
$errorMappings = [ | ||
'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], | ||
]; | ||
return $this->requestAdapter->sendAsync($requestInfo, [CertificateAuthorityPath::class, 'createFromDiscriminatorValue'], $errorMappings); | ||
} | ||
|
||
/** | ||
* Get certificateAuthorities | ||
* @param CertificateAuthoritiesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. | ||
* @return RequestInformation | ||
*/ | ||
public function toGetRequestInformation(?CertificateAuthoritiesRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { | ||
$requestInfo = new RequestInformation(); | ||
$requestInfo->urlTemplate = $this->urlTemplate; | ||
$requestInfo->pathParameters = $this->pathParameters; | ||
$requestInfo->httpMethod = HttpMethod::GET; | ||
if ($requestConfiguration !== null) { | ||
$requestInfo->addHeaders($requestConfiguration->headers); | ||
if ($requestConfiguration->queryParameters !== null) { | ||
$requestInfo->setQueryParameters($requestConfiguration->queryParameters); | ||
} | ||
$requestInfo->addRequestOptions(...$requestConfiguration->options); | ||
} | ||
$requestInfo->tryAddHeader('Accept', "application/json"); | ||
return $requestInfo; | ||
} | ||
|
||
/** | ||
* Update certificateAuthorities | ||
* @param CertificateAuthorityPath $body The request body | ||
* @param CertificateAuthoritiesRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. | ||
* @return RequestInformation | ||
*/ | ||
public function toPatchRequestInformation(CertificateAuthorityPath $body, ?CertificateAuthoritiesRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { | ||
$requestInfo = new RequestInformation(); | ||
$requestInfo->urlTemplate = $this->urlTemplate; | ||
$requestInfo->pathParameters = $this->pathParameters; | ||
$requestInfo->httpMethod = HttpMethod::PATCH; | ||
if ($requestConfiguration !== null) { | ||
$requestInfo->addHeaders($requestConfiguration->headers); | ||
$requestInfo->addRequestOptions(...$requestConfiguration->options); | ||
} | ||
$requestInfo->tryAddHeader('Accept', "application/json"); | ||
$requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); | ||
return $requestInfo; | ||
} | ||
|
||
/** | ||
* Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. | ||
* @param string $rawUrl The raw URL to use for the request builder. | ||
* @return CertificateAuthoritiesRequestBuilder | ||
*/ | ||
public function withUrl(string $rawUrl): CertificateAuthoritiesRequestBuilder { | ||
return new CertificateAuthoritiesRequestBuilder($rawUrl, $this->requestAdapter); | ||
} | ||
|
||
} |
34 changes: 34 additions & 0 deletions
34
...nerated/CertificateAuthorities/CertificateAuthoritiesRequestBuilderGetQueryParameters.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\CertificateAuthorities; | ||
|
||
use Microsoft\Kiota\Abstractions\QueryParameter; | ||
|
||
/** | ||
* Get certificateAuthorities | ||
*/ | ||
class CertificateAuthoritiesRequestBuilderGetQueryParameters | ||
{ | ||
/** | ||
* @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 CertificateAuthoritiesRequestBuilderGetQueryParameters 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; | ||
} | ||
|
||
} |
Oops, something went wrong.