Skip to content

Commit

Permalink
Merge pull request #230 from microsoftgraph/dev
Browse files Browse the repository at this point in the history
Release 2.0.0 🚀
  • Loading branch information
SilasKenneth authored Nov 9, 2023
2 parents 56ee638 + 778961d commit b299343
Show file tree
Hide file tree
Showing 321 changed files with 6,942 additions and 621 deletions.
14 changes: 2 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,8 @@
You can install the Beta PHP SDK with Composer by editing your `composer.json` file:
```
{
"minimum-stability": "RC",
"require": {
"microsoft/microsoft-graph-beta": "^2.0.0-RC28",
}
}
```
OR
```
{
"require": {
"microsoft/microsoft-graph-beta": "^2.0.0-RC28",
"microsoft/microsoft-graph-core": "@RC"
"microsoft/microsoft-graph-beta": "^2.0.0"
}
}
```
Expand Down Expand Up @@ -140,7 +130,7 @@ try {
## Documentation and resources


* [Examples](https://aka.ms/graph/sdk/php/preview/examples)
* [Examples](https://github.com/microsoftgraph/msgraph-sdk-php/blob/dev/docs/Examples.md)

* [Microsoft Graph website](https://aka.ms/graph)

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-RC12"
"microsoft/microsoft-graph-core": "2.0.0"
},
"require-dev": {
"phpunit/phpunit": "^8.0 || ^9.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function get(?ProfileCardPropertiesRequestBuilderGetRequestConfiguration
}

/**
* Create a new profileCardProperty for an organization. The new property is identified by its directoryPropertyName property. For more information about how to add properties to the profile card for an organization, see Add or delete custom attributes on a profile card using the profile card API. This API is available in the following national cloud deployments.
* Create a new profileCardProperty for an organization. The new property is identified by its directoryPropertyName property. For more information about how to add properties to the profile card for an organization, see Add or remove custom attributes on a profile card using the profile card API. This API is available in the following national cloud deployments.
* @param ProfileCardProperty $body The request body
* @param ProfileCardPropertiesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return Promise<ProfileCardProperty|null>
Expand Down Expand Up @@ -106,7 +106,7 @@ public function toGetRequestInformation(?ProfileCardPropertiesRequestBuilderGetR
}

/**
* Create a new profileCardProperty for an organization. The new property is identified by its directoryPropertyName property. For more information about how to add properties to the profile card for an organization, see Add or delete custom attributes on a profile card using the profile card API. This API is available in the following national cloud deployments.
* Create a new profileCardProperty for an organization. The new property is identified by its directoryPropertyName property. For more information about how to add properties to the profile card for an organization, see Add or remove custom attributes on a profile card using the profile card API. This API is available in the following national cloud deployments.
* @param ProfileCardProperty $body The request body
* @param ProfileCardPropertiesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return RequestInformation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap
}

/**
* Delete an operationalInsightsConnection object. This API is available in the following national cloud deployments.
* Delete a resourceConnection object. This API is available in the following national cloud deployments.
* @param ResourceConnectionItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return Promise<void|null>
* @throws Exception
* @link https://learn.microsoft.com/graph/api/windowsupdates-operationalinsightsconnection-delete?view=graph-rest-1.0 Find more info here
* @link https://learn.microsoft.com/graph/api/windowsupdates-resourceconnection-delete?view=graph-rest-1.0 Find more info here
*/
public function delete(?ResourceConnectionItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise {
$requestInfo = $this->toDeleteRequestInformation($requestConfiguration);
Expand Down Expand Up @@ -79,7 +79,7 @@ public function patch(ResourceConnection $body, ?ResourceConnectionItemRequestBu
}

/**
* Delete an operationalInsightsConnection object. This API is available in the following national cloud deployments.
* Delete a resourceConnection object. This API is available in the following national cloud deployments.
* @param ResourceConnectionItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return RequestInformation
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,11 @@ public function delete(?UpdatableAssetItemRequestBuilderDeleteRequestConfigurati
}

/**
* Read the properties and relationships of an updatableAsset object. This API is available in the following national cloud deployments.
* Read the properties of an azureADDevice object. This API is available in the following national cloud deployments.
* @param UpdatableAssetItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return Promise<UpdatableAsset|null>
* @throws Exception
* @link https://learn.microsoft.com/graph/api/windowsupdates-updatableasset-get?view=graph-rest-1.0 Find more info here
* @link https://learn.microsoft.com/graph/api/windowsupdates-azureaddevice-get?view=graph-rest-1.0 Find more info here
*/
public function get(?UpdatableAssetItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise {
$requestInfo = $this->toGetRequestInformation($requestConfiguration);
Expand Down Expand Up @@ -129,7 +129,7 @@ public function toDeleteRequestInformation(?UpdatableAssetItemRequestBuilderDele
}

/**
* Read the properties and relationships of an updatableAsset object. This API is available in the following national cloud deployments.
* Read the properties of an azureADDevice object. This API is available in the following national cloud deployments.
* @param UpdatableAssetItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return RequestInformation
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Microsoft\Kiota\Abstractions\QueryParameter;

/**
* Read the properties and relationships of an updatableAsset object. This API is available in the following national cloud deployments.
* Read the properties of an azureADDevice object. This API is available in the following national cloud deployments.
*/
class UpdatableAssetItemRequestBuilderGetQueryParameters
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ public function delete(?ComplianceChangeItemRequestBuilderDeleteRequestConfigura
}

/**
* Read the properties and relationships of a contentApproval object. This API is available in the following national cloud deployments.
* Read the properties and relationships of a complianceChange object. This API is available in the following national cloud deployments.
* @param ComplianceChangeItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return Promise<ComplianceChange|null>
* @throws Exception
* @link https://learn.microsoft.com/graph/api/windowsupdates-contentapproval-get?view=graph-rest-1.0 Find more info here
* @link https://learn.microsoft.com/graph/api/windowsupdates-compliancechange-get?view=graph-rest-1.0 Find more info here
*/
public function get(?ComplianceChangeItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise {
$requestInfo = $this->toGetRequestInformation($requestConfiguration);
Expand Down Expand Up @@ -106,7 +106,7 @@ public function toDeleteRequestInformation(?ComplianceChangeItemRequestBuilderDe
}

/**
* Read the properties and relationships of a contentApproval object. This API is available in the following national cloud deployments.
* Read the properties and relationships of a complianceChange object. This API is available in the following national cloud deployments.
* @param ComplianceChangeItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return RequestInformation
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Microsoft\Kiota\Abstractions\QueryParameter;

/**
* Read the properties and relationships of a contentApproval object. This API is available in the following national cloud deployments.
* Read the properties and relationships of a complianceChange object. This API is available in the following national cloud deployments.
*/
class ComplianceChangeItemRequestBuilderGetQueryParameters
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap
}

/**
* Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a group object . Supports $filter (eq, not, for isResolved and serviceInstance).
* Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a group object. Supports $filter (eq, not, for isResolved and serviceInstance).
* @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return Promise<ServiceProvisioningErrorCollectionResponse|null>
* @throws Exception
Expand All @@ -54,7 +54,7 @@ public function get(?ServiceProvisioningErrorsRequestBuilderGetRequestConfigurat
}

/**
* Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a group object . Supports $filter (eq, not, for isResolved and serviceInstance).
* Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a group object. Supports $filter (eq, not, for isResolved and serviceInstance).
* @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return RequestInformation
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Microsoft\Kiota\Abstractions\QueryParameter;

/**
* Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a group object . Supports $filter (eq, not, for isResolved and serviceInstance).
* Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a group object. Supports $filter (eq, not, for isResolved and serviceInstance).
*/
class ServiceProvisioningErrorsRequestBuilderGetQueryParameters
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap
}

/**
* Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a group object . Supports $filter (eq, not, for isResolved and serviceInstance).
* Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a group object. Supports $filter (eq, not, for isResolved and serviceInstance).
* @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return Promise<ServiceProvisioningErrorCollectionResponse|null>
* @throws Exception
Expand All @@ -54,7 +54,7 @@ public function get(?ServiceProvisioningErrorsRequestBuilderGetRequestConfigurat
}

/**
* Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a group object . Supports $filter (eq, not, for isResolved and serviceInstance).
* Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a group object. Supports $filter (eq, not, for isResolved and serviceInstance).
* @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return RequestInformation
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Microsoft\Kiota\Abstractions\QueryParameter;

/**
* Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a group object . Supports $filter (eq, not, for isResolved and serviceInstance).
* Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a group object. Supports $filter (eq, not, for isResolved and serviceInstance).
*/
class ServiceProvisioningErrorsRequestBuilderGetQueryParameters
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
use Microsoft\Graph\Beta\Generated\DeviceManagement\ComanagedDevices\Item\LogoutSharedAppleDeviceActiveUser\LogoutSharedAppleDeviceActiveUserRequestBuilder;
use Microsoft\Graph\Beta\Generated\DeviceManagement\ComanagedDevices\Item\ManagedDeviceMobileAppConfigurationStates\ManagedDeviceMobileAppConfigurationStatesRequestBuilder;
use Microsoft\Graph\Beta\Generated\DeviceManagement\ComanagedDevices\Item\OverrideComplianceState\OverrideComplianceStateRequestBuilder;
use Microsoft\Graph\Beta\Generated\DeviceManagement\ComanagedDevices\Item\PauseConfigurationRefresh\PauseConfigurationRefreshRequestBuilder;
use Microsoft\Graph\Beta\Generated\DeviceManagement\ComanagedDevices\Item\PlayLostModeSound\PlayLostModeSoundRequestBuilder;
use Microsoft\Graph\Beta\Generated\DeviceManagement\ComanagedDevices\Item\RebootNow\RebootNowRequestBuilder;
use Microsoft\Graph\Beta\Generated\DeviceManagement\ComanagedDevices\Item\RecoverPasscode\RecoverPasscodeRequestBuilder;
Expand Down Expand Up @@ -261,6 +262,13 @@ public function overrideComplianceState(): OverrideComplianceStateRequestBuilder
return new OverrideComplianceStateRequestBuilder($this->pathParameters, $this->requestAdapter);
}

/**
* Provides operations to call the pauseConfigurationRefresh method.
*/
public function pauseConfigurationRefresh(): PauseConfigurationRefreshRequestBuilder {
return new PauseConfigurationRefreshRequestBuilder($this->pathParameters, $this->requestAdapter);
}

/**
* Provides operations to call the playLostModeSound method.
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
<?php

namespace Microsoft\Graph\Beta\Generated\DeviceManagement\ComanagedDevices\Item\PauseConfigurationRefresh;

use Microsoft\Kiota\Abstractions\Serialization\AdditionalDataHolder;
use Microsoft\Kiota\Abstractions\Serialization\Parsable;
use Microsoft\Kiota\Abstractions\Serialization\ParseNode;
use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter;
use Microsoft\Kiota\Abstractions\Store\BackedModel;
use Microsoft\Kiota\Abstractions\Store\BackingStore;
use Microsoft\Kiota\Abstractions\Store\BackingStoreFactorySingleton;

class PauseConfigurationRefreshPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable
{
/**
* @var BackingStore $backingStore Stores model information.
*/
private BackingStore $backingStore;

/**
* Instantiates a new pauseConfigurationRefreshPostRequestBody and sets the default values.
*/
public function __construct() {
$this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore();
$this->setAdditionalData([]);
}

/**
* Creates a new instance of the appropriate class based on discriminator value
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
* @return PauseConfigurationRefreshPostRequestBody
*/
public static function createFromDiscriminatorValue(ParseNode $parseNode): PauseConfigurationRefreshPostRequestBody {
return new PauseConfigurationRefreshPostRequestBody();
}

/**
* Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
* @return array<string, mixed>|null
*/
public function getAdditionalData(): ?array {
$val = $this->getBackingStore()->get('additionalData');
if (is_null($val) || is_array($val)) {
/** @var array<string, mixed>|null $val */
return $val;
}
throw new \UnexpectedValueException("Invalid type found in backing store for 'additionalData'");
}

/**
* Gets the BackingStore property value. Stores model information.
* @return BackingStore
*/
public function getBackingStore(): BackingStore {
return $this->backingStore;
}

/**
* The deserialization information for the current model
* @return array<string, callable(ParseNode): void>
*/
public function getFieldDeserializers(): array {
$o = $this;
return [
'pauseTimePeriodInMinutes' => fn(ParseNode $n) => $o->setPauseTimePeriodInMinutes($n->getIntegerValue()),
];
}

/**
* Gets the pauseTimePeriodInMinutes property value. The pauseTimePeriodInMinutes property
* @return int|null
*/
public function getPauseTimePeriodInMinutes(): ?int {
$val = $this->getBackingStore()->get('pauseTimePeriodInMinutes');
if (is_null($val) || is_int($val)) {
return $val;
}
throw new \UnexpectedValueException("Invalid type found in backing store for 'pauseTimePeriodInMinutes'");
}

/**
* Serializes information the current object
* @param SerializationWriter $writer Serialization writer to use to serialize this model
*/
public function serialize(SerializationWriter $writer): void {
$writer->writeIntegerValue('pauseTimePeriodInMinutes', $this->getPauseTimePeriodInMinutes());
$writer->writeAdditionalData($this->getAdditionalData());
}

/**
* Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
* @param array<string,mixed> $value Value to set for the AdditionalData property.
*/
public function setAdditionalData(?array $value): void {
$this->getBackingStore()->set('additionalData', $value);
}

/**
* Sets the BackingStore property value. Stores model information.
* @param BackingStore $value Value to set for the BackingStore property.
*/
public function setBackingStore(BackingStore $value): void {
$this->backingStore = $value;
}

/**
* Sets the pauseTimePeriodInMinutes property value. The pauseTimePeriodInMinutes property
* @param int|null $value Value to set for the pauseTimePeriodInMinutes property.
*/
public function setPauseTimePeriodInMinutes(?int $value): void {
$this->getBackingStore()->set('pauseTimePeriodInMinutes', $value);
}

}
Loading

0 comments on commit b299343

Please sign in to comment.