Skip to content

Commit

Permalink
Update generated files with build 125718
Browse files Browse the repository at this point in the history
  • Loading branch information
Microsoft Graph DevX Tooling authored and Microsoft Graph DevX Tooling committed Sep 26, 2023
1 parent bb88095 commit 5ca5fe6
Show file tree
Hide file tree
Showing 1,730 changed files with 92,356 additions and 1,834 deletions.
8 changes: 8 additions & 0 deletions src/Generated/Contacts/Item/OrgContactItemRequestBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
use Microsoft\Graph\Generated\Contacts\Item\MemberOf\MemberOfRequestBuilder;
use Microsoft\Graph\Generated\Contacts\Item\Restore\RestoreRequestBuilder;
use Microsoft\Graph\Generated\Contacts\Item\RetryServiceProvisioning\RetryServiceProvisioningRequestBuilder;
use Microsoft\Graph\Generated\Contacts\Item\ServiceProvisioningErrors\ServiceProvisioningErrorsRequestBuilder;
use Microsoft\Graph\Generated\Contacts\Item\TransitiveMemberOf\TransitiveMemberOfRequestBuilder;
use Microsoft\Graph\Generated\Models\ODataErrors\ODataError;
use Microsoft\Graph\Generated\Models\OrgContact;
Expand Down Expand Up @@ -90,6 +91,13 @@ public function retryServiceProvisioning(): RetryServiceProvisioningRequestBuild
return new RetryServiceProvisioningRequestBuilder($this->pathParameters, $this->requestAdapter);
}

/**
* The serviceProvisioningErrors property
*/
public function serviceProvisioningErrors(): ServiceProvisioningErrorsRequestBuilder {
return new ServiceProvisioningErrorsRequestBuilder($this->pathParameters, $this->requestAdapter);
}

/**
* Provides operations to manage the transitiveMemberOf property of the microsoft.graph.orgContact entity.
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Microsoft\Graph\Generated\Directory\DeletedItems\Delta;
namespace Microsoft\Graph\Generated\Contacts\Item\ServiceProvisioningErrors\Count;

use Exception;
use Http\Promise\Promise;
Expand All @@ -12,17 +12,17 @@
use Microsoft\Kiota\Abstractions\RequestInformation;

/**
* Provides operations to call the delta method.
* Provides operations to count the resources in the collection.
*/
class DeltaRequestBuilder extends BaseRequestBuilder
class CountRequestBuilder extends BaseRequestBuilder
{
/**
* Instantiates a new DeltaRequestBuilder and sets the default values.
* Instantiates a new CountRequestBuilder 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}/directory/deletedItems/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}');
parent::__construct($requestAdapter, [], '{+baseurl}/contacts/{orgContact%2Did}/serviceProvisioningErrors/$count{?%24search,%24filter}');
if (is_array($pathParametersOrRawUrl)) {
$this->pathParameters = $pathParametersOrRawUrl;
} else {
Expand All @@ -31,34 +31,34 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap
}

/**
* Invoke function delta
* @param DeltaRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* 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(?DeltaRequestBuilderGetRequestConfiguration $requestConfiguration = null): 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->sendAsync($requestInfo, [DeltaResponse::class, 'createFromDiscriminatorValue'], $errorMappings);
return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings);
} catch(Exception $ex) {
return new RejectedPromise($ex);
}
}

/**
* Invoke function delta
* @param DeltaRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* 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(?DeltaRequestBuilderGetRequestConfiguration $requestConfiguration = null): 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', "application/json");
$requestInfo->addHeader('Accept', "text/plain");
if ($requestConfiguration !== null) {
$requestInfo->addHeaders($requestConfiguration->headers);
if ($requestConfiguration->queryParameters !== null) {
Expand All @@ -72,10 +72,10 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat
/**
* 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 DeltaRequestBuilder
* @return CountRequestBuilder
*/
public function withUrl(string $rawUrl): DeltaRequestBuilder {
return new DeltaRequestBuilder($rawUrl, $this->requestAdapter);
public function withUrl(string $rawUrl): CountRequestBuilder {
return new CountRequestBuilder($rawUrl, $this->requestAdapter);
}

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

namespace Microsoft\Graph\Generated\Contacts\Item\ServiceProvisioningErrors\Count;

use Microsoft\Kiota\Abstractions\QueryParameter;

/**
* Get the number of the resource
*/
class CountRequestBuilderGetQueryParameters
{
/**
* @QueryParameter("%24filter")
* @var string|null $filter Filter items by property values
*/
public ?string $filter = null;

/**
* @QueryParameter("%24search")
* @var string|null $search Search items by search phrases
*/
public ?string $search = null;

/**
* Instantiates a new CountRequestBuilderGetQueryParameters and sets the default values.
* @param string|null $filter Filter items by property values
* @param string|null $search Search items by search phrases
*/
public function __construct(?string $filter = null, ?string $search = null) {
$this->filter = $filter;
$this->search = $search;
}

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

namespace Microsoft\Graph\Generated\Contacts\Item\ServiceProvisioningErrors\Count;

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

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

/**
* Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values.
* @param array<string, array<string>|string>|null $headers Request headers
* @param array<RequestOption>|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);
}

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

namespace Microsoft\Graph\Generated\Contacts\Item\ServiceProvisioningErrors;

use Exception;
use Http\Promise\Promise;
use Http\Promise\RejectedPromise;
use Microsoft\Graph\Generated\Contacts\Item\ServiceProvisioningErrors\Count\CountRequestBuilder;
use Microsoft\Graph\Generated\Models\ODataErrors\ODataError;
use Microsoft\Graph\Generated\Models\ServiceProvisioningErrorCollectionResponse;
use Microsoft\Kiota\Abstractions\BaseRequestBuilder;
use Microsoft\Kiota\Abstractions\HttpMethod;
use Microsoft\Kiota\Abstractions\RequestAdapter;
use Microsoft\Kiota\Abstractions\RequestInformation;

/**
* Builds and executes requests for operations under /contacts/{orgContact-id}/serviceProvisioningErrors
*/
class ServiceProvisioningErrorsRequestBuilder extends BaseRequestBuilder
{
/**
* Provides operations to count the resources in the collection.
*/
public function count(): CountRequestBuilder {
return new CountRequestBuilder($this->pathParameters, $this->requestAdapter);
}

/**
* Instantiates a new ServiceProvisioningErrorsRequestBuilder 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}/contacts/{orgContact%2Did}/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}');
if (is_array($pathParametersOrRawUrl)) {
$this->pathParameters = $pathParametersOrRawUrl;
} else {
$this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl];
}
}

/**
* Get serviceProvisioningErrors property value
* @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return Promise
*/
public function get(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise {
$requestInfo = $this->toGetRequestInformation($requestConfiguration);
try {
$errorMappings = [
'4XX' => [ODataError::class, 'createFromDiscriminatorValue'],
'5XX' => [ODataError::class, 'createFromDiscriminatorValue'],
];
return $this->requestAdapter->sendAsync($requestInfo, [ServiceProvisioningErrorCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings);
} catch(Exception $ex) {
return new RejectedPromise($ex);
}
}

/**
* Get serviceProvisioningErrors property value
* @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return RequestInformation
*/
public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $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;
}

/**
* 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 ServiceProvisioningErrorsRequestBuilder
*/
public function withUrl(string $rawUrl): ServiceProvisioningErrorsRequestBuilder {
return new ServiceProvisioningErrorsRequestBuilder($rawUrl, $this->requestAdapter);
}

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

namespace Microsoft\Graph\Generated\Contacts\Item\ServiceProvisioningErrors;

use Microsoft\Kiota\Abstractions\QueryParameter;

/**
* Get serviceProvisioningErrors property value
*/
class ServiceProvisioningErrorsRequestBuilderGetQueryParameters
{
/**
* @QueryParameter("%24count")
* @var bool|null $count Include count of items
*/
public ?bool $count = null;

/**
* @QueryParameter("%24expand")
* @var array<string>|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<string>|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<string>|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 serviceProvisioningErrorsRequestBuilderGetQueryParameters and sets the default values.
* @param bool|null $count Include count of items
* @param array<string>|null $expand Expand related entities
* @param string|null $filter Filter items by property values
* @param array<string>|null $orderby Order items by property values
* @param string|null $search Search items by search phrases
* @param array<string>|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;
}

}
Loading

0 comments on commit 5ca5fe6

Please sign in to comment.