Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generated models and request builders using Kiota #1020

Merged
merged 2 commits into from
Oct 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 PHP SDK with Composer by editing your `composer.json` file:
{
"minimum-stability": "RC",
"require": {
"microsoft/microsoft-graph": "^2.0.0-RC9",
"microsoft/microsoft-graph": "^2.0.0-RC10",
}
}
```
OR
```
{
"require": {
"microsoft/microsoft-graph": "^2.0.0-RC9",
"microsoft/microsoft-graph": "^2.0.0-RC10",
"microsoft/microsoft-graph-core": "@RC"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function __construct(array $pathParameters, RequestAdapter $requestAdapte
}

/**
* Invoke action addLargeGalleryView
* Add the large gallery view to a call.
* @param AddLargeGalleryViewPostRequestBody $body
* @param AddLargeGalleryViewRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return RequestInformation
Expand All @@ -68,7 +68,7 @@ public function createPostRequestInformation(AddLargeGalleryViewPostRequestBody
}

/**
* Invoke action addLargeGalleryView
* Add the large gallery view to a call.
* @param AddLargeGalleryViewPostRequestBody $body
* @param AddLargeGalleryViewRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @param ResponseHandler|null $responseHandler Response handler to use in place of the default response handling provided by the core service
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function __construct(array $pathParameters, RequestAdapter $requestAdapte
}

/**
* Get contentSharingSessions from communications
* Retrieve a list of contentSharingSession objects in a call.
* @param ContentSharingSessionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return RequestInformation
*/
Expand Down Expand Up @@ -102,7 +102,7 @@ public function createPostRequestInformation(ContentSharingSession $body, ?Conte
}

/**
* Get contentSharingSessions from communications
* Retrieve a list of contentSharingSession objects in a call.
* @param ContentSharingSessionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @param ResponseHandler|null $responseHandler Response handler to use in place of the default response handling provided by the core service
* @return Promise
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function __construct(array $pathParameters, RequestAdapter $requestAdapte
}

/**
* Get authenticationContextClassReferences from identity
* Retrieve a list of authenticationContextClassReference objects.
* @param AuthenticationContextClassReferencesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return RequestInformation
*/
Expand Down Expand Up @@ -102,7 +102,7 @@ public function createPostRequestInformation(AuthenticationContextClassReference
}

/**
* Get authenticationContextClassReferences from identity
* Retrieve a list of authenticationContextClassReference objects.
* @param AuthenticationContextClassReferencesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @param ResponseHandler|null $responseHandler Response handler to use in place of the default response handling provided by the core service
* @return Promise
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function createDeleteRequestInformation(?AuthenticationContextClassRefere
}

/**
* Get authenticationContextClassReferences from identity
* Read-only. Nullable. Returns a collection of the specified authentication context class references.
* @param AuthenticationContextClassReferenceItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return RequestInformation
*/
Expand Down Expand Up @@ -133,7 +133,7 @@ public function delete(?AuthenticationContextClassReferenceItemRequestBuilderDel
}

/**
* Get authenticationContextClassReferences from identity
* Read-only. Nullable. Returns a collection of the specified authentication context class references.
* @param AuthenticationContextClassReferenceItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @param ResponseHandler|null $responseHandler Response handler to use in place of the default response handling provided by the core service
* @return Promise
Expand Down
18 changes: 9 additions & 9 deletions src/Generated/Models/AssignedTrainingInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@ class AssignedTrainingInfo implements AdditionalDataHolder, Parsable
private array $additionalData;

/**
* @var int|null $assignedUserCount The assignedUserCount property
* @var int|null $assignedUserCount Number of users who were assigned the training in an attack simulation and training campaign.
*/
private ?int $assignedUserCount = null;

/**
* @var int|null $completedUserCount The completedUserCount property
* @var int|null $completedUserCount Number of users who completed the training in an attack simulation and training campaign.
*/
private ?int $completedUserCount = null;

/**
* @var string|null $displayName The displayName property
* @var string|null $displayName Display name of the training in an attack simulation and training campaign.
*/
private ?string $displayName = null;

Expand Down Expand Up @@ -60,23 +60,23 @@ public function getAdditionalData(): array {
}

/**
* Gets the assignedUserCount property value. The assignedUserCount property
* Gets the assignedUserCount property value. Number of users who were assigned the training in an attack simulation and training campaign.
* @return int|null
*/
public function getAssignedUserCount(): ?int {
return $this->assignedUserCount;
}

/**
* Gets the completedUserCount property value. The completedUserCount property
* Gets the completedUserCount property value. Number of users who completed the training in an attack simulation and training campaign.
* @return int|null
*/
public function getCompletedUserCount(): ?int {
return $this->completedUserCount;
}

/**
* Gets the displayName property value. The displayName property
* Gets the displayName property value. Display name of the training in an attack simulation and training campaign.
* @return string|null
*/
public function getDisplayName(): ?string {
Expand Down Expand Up @@ -126,23 +126,23 @@ public function setAdditionalData(?array $value ): void {
}

/**
* Sets the assignedUserCount property value. The assignedUserCount property
* Sets the assignedUserCount property value. Number of users who were assigned the training in an attack simulation and training campaign.
* @param int|null $value Value to set for the assignedUserCount property.
*/
public function setAssignedUserCount(?int $value ): void {
$this->assignedUserCount = $value;
}

/**
* Sets the completedUserCount property value. The completedUserCount property
* Sets the completedUserCount property value. Number of users who completed the training in an attack simulation and training campaign.
* @param int|null $value Value to set for the completedUserCount property.
*/
public function setCompletedUserCount(?int $value ): void {
$this->completedUserCount = $value;
}

/**
* Sets the displayName property value. The displayName property
* Sets the displayName property value. Display name of the training in an attack simulation and training campaign.
* @param string|null $value Value to set for the displayName property.
*/
public function setDisplayName(?string $value ): void {
Expand Down
12 changes: 6 additions & 6 deletions src/Generated/Models/AttackSimulationRepeatOffender.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class AttackSimulationRepeatOffender implements AdditionalDataHolder, Parsable
private array $additionalData;

/**
* @var AttackSimulationUser|null $attackSimulationUser The attackSimulationUser property
* @var AttackSimulationUser|null $attackSimulationUser The user in an attack simulation and training campaign.
*/
private ?AttackSimulationUser $attackSimulationUser = null;

Expand All @@ -25,7 +25,7 @@ class AttackSimulationRepeatOffender implements AdditionalDataHolder, Parsable
private ?string $odataType = null;

/**
* @var int|null $repeatOffenceCount The repeatOffenceCount property
* @var int|null $repeatOffenceCount Number of repeat offences of the user in attack simulation and training campaigns.
*/
private ?int $repeatOffenceCount = null;

Expand Down Expand Up @@ -55,7 +55,7 @@ public function getAdditionalData(): array {
}

/**
* Gets the attackSimulationUser property value. The attackSimulationUser property
* Gets the attackSimulationUser property value. The user in an attack simulation and training campaign.
* @return AttackSimulationUser|null
*/
public function getAttackSimulationUser(): ?AttackSimulationUser {
Expand Down Expand Up @@ -84,7 +84,7 @@ public function getOdataType(): ?string {
}

/**
* Gets the repeatOffenceCount property value. The repeatOffenceCount property
* Gets the repeatOffenceCount property value. Number of repeat offences of the user in attack simulation and training campaigns.
* @return int|null
*/
public function getRepeatOffenceCount(): ?int {
Expand All @@ -111,7 +111,7 @@ public function setAdditionalData(?array $value ): void {
}

/**
* Sets the attackSimulationUser property value. The attackSimulationUser property
* Sets the attackSimulationUser property value. The user in an attack simulation and training campaign.
* @param AttackSimulationUser|null $value Value to set for the attackSimulationUser property.
*/
public function setAttackSimulationUser(?AttackSimulationUser $value ): void {
Expand All @@ -127,7 +127,7 @@ public function setOdataType(?string $value ): void {
}

/**
* Sets the repeatOffenceCount property value. The repeatOffenceCount property
* Sets the repeatOffenceCount property value. Number of repeat offences of the user in attack simulation and training campaigns.
* @param int|null $value Value to set for the repeatOffenceCount property.
*/
public function setRepeatOffenceCount(?int $value ): void {
Expand Down
12 changes: 6 additions & 6 deletions src/Generated/Models/AttackSimulationRoot.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
class AttackSimulationRoot extends Entity implements Parsable
{
/**
* @var array<SimulationAutomation>|null $simulationAutomations The simulationAutomations property
* @var array<SimulationAutomation>|null $simulationAutomations Represents simulation automation created to run on a tenant.
*/
private ?array $simulationAutomations = null;

/**
* @var array<Simulation>|null $simulations The simulations property
* @var array<Simulation>|null $simulations Represents an attack simulation training campaign in a tenant.
*/
private ?array $simulations = null;

Expand Down Expand Up @@ -48,15 +48,15 @@ public function getFieldDeserializers(): array {
}

/**
* Gets the simulationAutomations property value. The simulationAutomations property
* Gets the simulationAutomations property value. Represents simulation automation created to run on a tenant.
* @return array<SimulationAutomation>|null
*/
public function getSimulationAutomations(): ?array {
return $this->simulationAutomations;
}

/**
* Gets the simulations property value. The simulations property
* Gets the simulations property value. Represents an attack simulation training campaign in a tenant.
* @return array<Simulation>|null
*/
public function getSimulations(): ?array {
Expand All @@ -74,15 +74,15 @@ public function serialize(SerializationWriter $writer): void {
}

/**
* Sets the simulationAutomations property value. The simulationAutomations property
* Sets the simulationAutomations property value. Represents simulation automation created to run on a tenant.
* @param array<SimulationAutomation>|null $value Value to set for the simulationAutomations property.
*/
public function setSimulationAutomations(?array $value ): void {
$this->simulationAutomations = $value;
}

/**
* Sets the simulations property value. The simulations property
* Sets the simulations property value. Represents an attack simulation training campaign in a tenant.
* @param array<Simulation>|null $value Value to set for the simulations property.
*/
public function setSimulations(?array $value ): void {
Expand Down
30 changes: 15 additions & 15 deletions src/Generated/Models/AttackSimulationSimulationUserCoverage.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,22 @@ class AttackSimulationSimulationUserCoverage implements AdditionalDataHolder, Pa
private array $additionalData;

/**
* @var AttackSimulationUser|null $attackSimulationUser The attackSimulationUser property
* @var AttackSimulationUser|null $attackSimulationUser User in an attack simulation and training campaign.
*/
private ?AttackSimulationUser $attackSimulationUser = null;

/**
* @var int|null $clickCount The clickCount property
* @var int|null $clickCount Number of link clicks in the received payloads by the user in attack simulation and training campaigns.
*/
private ?int $clickCount = null;

/**
* @var int|null $compromisedCount The compromisedCount property
* @var int|null $compromisedCount Number of compromising actions by the user in attack simulation and training campaigns.
*/
private ?int $compromisedCount = null;

/**
* @var DateTime|null $latestSimulationDateTime The latestSimulationDateTime property
* @var DateTime|null $latestSimulationDateTime Date and time of the latest attack simulation and training campaign that the user was included in.
*/
private ?DateTime $latestSimulationDateTime = null;

Expand All @@ -41,7 +41,7 @@ class AttackSimulationSimulationUserCoverage implements AdditionalDataHolder, Pa
private ?string $odataType = null;

/**
* @var int|null $simulationCount The simulationCount property
* @var int|null $simulationCount Number of attack simulation and training campaigns that the user was included in.
*/
private ?int $simulationCount = null;

Expand Down Expand Up @@ -71,23 +71,23 @@ public function getAdditionalData(): array {
}

/**
* Gets the attackSimulationUser property value. The attackSimulationUser property
* Gets the attackSimulationUser property value. User in an attack simulation and training campaign.
* @return AttackSimulationUser|null
*/
public function getAttackSimulationUser(): ?AttackSimulationUser {
return $this->attackSimulationUser;
}

/**
* Gets the clickCount property value. The clickCount property
* Gets the clickCount property value. Number of link clicks in the received payloads by the user in attack simulation and training campaigns.
* @return int|null
*/
public function getClickCount(): ?int {
return $this->clickCount;
}

/**
* Gets the compromisedCount property value. The compromisedCount property
* Gets the compromisedCount property value. Number of compromising actions by the user in attack simulation and training campaigns.
* @return int|null
*/
public function getCompromisedCount(): ?int {
Expand All @@ -111,7 +111,7 @@ public function getFieldDeserializers(): array {
}

/**
* Gets the latestSimulationDateTime property value. The latestSimulationDateTime property
* Gets the latestSimulationDateTime property value. Date and time of the latest attack simulation and training campaign that the user was included in.
* @return DateTime|null
*/
public function getLatestSimulationDateTime(): ?DateTime {
Expand All @@ -127,7 +127,7 @@ public function getOdataType(): ?string {
}

/**
* Gets the simulationCount property value. The simulationCount property
* Gets the simulationCount property value. Number of attack simulation and training campaigns that the user was included in.
* @return int|null
*/
public function getSimulationCount(): ?int {
Expand Down Expand Up @@ -157,31 +157,31 @@ public function setAdditionalData(?array $value ): void {
}

/**
* Sets the attackSimulationUser property value. The attackSimulationUser property
* Sets the attackSimulationUser property value. User in an attack simulation and training campaign.
* @param AttackSimulationUser|null $value Value to set for the attackSimulationUser property.
*/
public function setAttackSimulationUser(?AttackSimulationUser $value ): void {
$this->attackSimulationUser = $value;
}

/**
* Sets the clickCount property value. The clickCount property
* Sets the clickCount property value. Number of link clicks in the received payloads by the user in attack simulation and training campaigns.
* @param int|null $value Value to set for the clickCount property.
*/
public function setClickCount(?int $value ): void {
$this->clickCount = $value;
}

/**
* Sets the compromisedCount property value. The compromisedCount property
* Sets the compromisedCount property value. Number of compromising actions by the user in attack simulation and training campaigns.
* @param int|null $value Value to set for the compromisedCount property.
*/
public function setCompromisedCount(?int $value ): void {
$this->compromisedCount = $value;
}

/**
* Sets the latestSimulationDateTime property value. The latestSimulationDateTime property
* Sets the latestSimulationDateTime property value. Date and time of the latest attack simulation and training campaign that the user was included in.
* @param DateTime|null $value Value to set for the latestSimulationDateTime property.
*/
public function setLatestSimulationDateTime(?DateTime $value ): void {
Expand All @@ -197,7 +197,7 @@ public function setOdataType(?string $value ): void {
}

/**
* Sets the simulationCount property value. The simulationCount property
* Sets the simulationCount property value. Number of attack simulation and training campaigns that the user was included in.
* @param int|null $value Value to set for the simulationCount property.
*/
public function setSimulationCount(?int $value ): void {
Expand Down
Loading