Skip to content

Commit

Permalink
Merge pull request #1542 from microsoftgraph/kiota/v1.0/pipelinebuild…
Browse files Browse the repository at this point in the history
…/151773

Generated  models and request builders
  • Loading branch information
SilasKenneth authored Jun 4, 2024
2 parents acc529d + 37cca52 commit df9608a
Show file tree
Hide file tree
Showing 1,783 changed files with 6,214 additions and 39,732 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,11 @@ public function delete(?ContentRequestBuilderDeleteRequestConfiguration $request
}

/**
* The attachment content.
* Read the properties and relationships of a serviceAnnouncementAttachment object.
* @param ContentRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return Promise<StreamInterface|null>
* @throws Exception
* @link https://learn.microsoft.com/graph/api/serviceannouncementattachment-get?view=graph-rest-1.0 Find more info here
*/
public function get(?ContentRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise {
$requestInfo = $this->toGetRequestInformation($requestConfiguration);
Expand Down Expand Up @@ -95,7 +96,7 @@ public function toDeleteRequestInformation(?ContentRequestBuilderDeleteRequestCo
}

/**
* The attachment content.
* Read the properties and relationships of a serviceAnnouncementAttachment object.
* @param ContentRequestBuilderGetRequestConfiguration|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 @@ -35,7 +35,7 @@ public function byAgreementAcceptanceId(string $agreementAcceptanceId): Agreemen
* @param RequestAdapter $requestAdapter The request adapter to use to execute the requests.
*/
public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) {
parent::__construct($requestAdapter, [], '{+baseurl}/agreementAcceptances{?%24count,%24filter,%24search,%24select,%24skip,%24top}');
parent::__construct($requestAdapter, [], '{+baseurl}/agreementAcceptances{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}');
if (is_array($pathParametersOrRawUrl)) {
$this->pathParameters = $pathParametersOrRawUrl;
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,24 @@ class AgreementAcceptancesRequestBuilderGetQueryParameters
*/
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
Expand Down Expand Up @@ -48,15 +60,19 @@ class AgreementAcceptancesRequestBuilderGetQueryParameters
/**
* Instantiates a new AgreementAcceptancesRequestBuilderGetQueryParameters 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, ?string $filter = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null) {
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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,17 @@ public function __construct(?array $headers = null, ?array $options = null, ?Agr
/**
* Instantiates a new AgreementAcceptancesRequestBuilderGetQueryParameters.
* @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
* @return AgreementAcceptancesRequestBuilderGetQueryParameters
*/
public static function createQueryParameters(?bool $count = null, ?string $filter = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null): AgreementAcceptancesRequestBuilderGetQueryParameters {
return new AgreementAcceptancesRequestBuilderGetQueryParameters($count, $filter, $search, $select, $skip, $top);
public static function createQueryParameters(?bool $count = null, ?array $expand = null, ?string $filter = null, ?array $orderby = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null): AgreementAcceptancesRequestBuilderGetQueryParameters {
return new AgreementAcceptancesRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top);
}

}
2 changes: 1 addition & 1 deletion src/Generated/Agreements/AgreementsRequestBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function byAgreementId(string $agreementId): AgreementItemRequestBuilder
* @param RequestAdapter $requestAdapter The request adapter to use to execute the requests.
*/
public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) {
parent::__construct($requestAdapter, [], '{+baseurl}/agreements{?%24count,%24filter,%24search,%24select,%24skip,%24top}');
parent::__construct($requestAdapter, [], '{+baseurl}/agreements{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}');
if (is_array($pathParametersOrRawUrl)) {
$this->pathParameters = $pathParametersOrRawUrl;
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,24 @@ class AgreementsRequestBuilderGetQueryParameters
*/
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
Expand Down Expand Up @@ -48,15 +60,19 @@ class AgreementsRequestBuilderGetQueryParameters
/**
* Instantiates a new AgreementsRequestBuilderGetQueryParameters 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, ?string $filter = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null) {
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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,17 @@ public function __construct(?array $headers = null, ?array $options = null, ?Agr
/**
* Instantiates a new AgreementsRequestBuilderGetQueryParameters.
* @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
* @return AgreementsRequestBuilderGetQueryParameters
*/
public static function createQueryParameters(?bool $count = null, ?string $filter = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null): AgreementsRequestBuilderGetQueryParameters {
return new AgreementsRequestBuilderGetQueryParameters($count, $filter, $search, $select, $skip, $top);
public static function createQueryParameters(?bool $count = null, ?array $expand = null, ?string $filter = null, ?array $orderby = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null): AgreementsRequestBuilderGetQueryParameters {
return new AgreementsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,11 @@ public function delete(?BotRequestBuilderDeleteRequestConfiguration $requestConf
}

/**
* The details of the bot specified in the Teams app manifest.
* Get the bot associated with a specific definition of the TeamsApp.
* @param BotRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return Promise<TeamworkBot|null>
* @throws Exception
* @link https://learn.microsoft.com/graph/api/teamworkbot-get?view=graph-rest-1.0 Find more info here
*/
public function get(?BotRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise {
$requestInfo = $this->toGetRequestInformation($requestConfiguration);
Expand Down Expand Up @@ -92,7 +93,7 @@ public function toDeleteRequestInformation(?BotRequestBuilderDeleteRequestConfig
}

/**
* The details of the bot specified in the Teams app manifest.
* Get the bot associated with a specific definition of the TeamsApp.
* @param BotRequestBuilderGetRequestConfiguration|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;

/**
* The details of the bot specified in the Teams app manifest.
* Get the bot associated with a specific definition of the TeamsApp.
*/
class BotRequestBuilderGetQueryParameters
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ public function delete(?ConversationMemberItemRequestBuilderDeleteRequestConfigu
}

/**
* Retrieve a conversationMember from a chat or channel.
* Retrieve a conversationMember from a chat.
* @param ConversationMemberItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return Promise<ConversationMember|null>
* @throws Exception
* @link https://learn.microsoft.com/graph/api/conversationmember-get?view=graph-rest-1.0 Find more info here
* @link https://learn.microsoft.com/graph/api/chat-get-members?view=graph-rest-1.0 Find more info here
*/
public function get(?ConversationMemberItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise {
$requestInfo = $this->toGetRequestInformation($requestConfiguration);
Expand Down Expand Up @@ -94,7 +94,7 @@ public function toDeleteRequestInformation(?ConversationMemberItemRequestBuilder
}

/**
* Retrieve a conversationMember from a chat or channel.
* Retrieve a conversationMember from a chat.
* @param ConversationMemberItemRequestBuilderGetRequestConfiguration|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;

/**
* Retrieve a conversationMember from a chat or channel.
* Retrieve a conversationMember from a chat.
*/
class ConversationMemberItemRequestBuilderGetQueryParameters
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,11 @@ public function delete(?ContentRequestBuilderDeleteRequestConfiguration $request
}

/**
* The unique identifier for an entity. Read-only.
* Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content.
* @param ContentRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return Promise<StreamInterface|null>
* @throws Exception
* @link https://learn.microsoft.com/graph/api/chatmessage-list-hostedcontents?view=graph-rest-1.0 Find more info here
*/
public function get(?ContentRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise {
$requestInfo = $this->toGetRequestInformation($requestConfiguration);
Expand Down Expand Up @@ -96,7 +97,7 @@ public function toDeleteRequestInformation(?ContentRequestBuilderDeleteRequestCo
}

/**
* The unique identifier for an entity. Read-only.
* Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content.
* @param ContentRequestBuilderGetRequestConfiguration|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 @@ -55,10 +55,11 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap
}

/**
* Retrieve the properties and relationships of a callRecord object. There are two ways to get the id of a callRecord: You can use the $expand query parameter to optionally include session and segment details, as shown in the Get full details example. When you expand session details, the maximum page size is 60 sessions.
* Get the list of callRecord objects and their properties. The results can be optionally filtered using the $filter query parameter on the startDateTime and participant id properties. Note that the listed call records don't include expandable relationships such as sessions and participants_v2. You can expand these relationships using Get callRecord for a specific record.
* @param CallRecordsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return Promise<CallRecordCollectionResponse|null>
* @throws Exception
* @link https://learn.microsoft.com/graph/api/callrecords-cloudcommunications-list-callrecords?view=graph-rest-1.0 Find more info here
*/
public function get(?CallRecordsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise {
$requestInfo = $this->toGetRequestInformation($requestConfiguration);
Expand Down Expand Up @@ -104,7 +105,7 @@ public function post(CallRecord $body, ?CallRecordsRequestBuilderPostRequestConf
}

/**
* Retrieve the properties and relationships of a callRecord object. There are two ways to get the id of a callRecord: You can use the $expand query parameter to optionally include session and segment details, as shown in the Get full details example. When you expand session details, the maximum page size is 60 sessions.
* Get the list of callRecord objects and their properties. The results can be optionally filtered using the $filter query parameter on the startDateTime and participant id properties. Note that the listed call records don't include expandable relationships such as sessions and participants_v2. You can expand these relationships using Get callRecord for a specific record.
* @param CallRecordsRequestBuilderGetRequestConfiguration|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;

/**
* Retrieve the properties and relationships of a callRecord object. There are two ways to get the id of a callRecord: You can use the $expand query parameter to optionally include session and segment details, as shown in the Get full details example. When you expand session details, the maximum page size is 60 sessions.
* Get the list of callRecord objects and their properties. The results can be optionally filtered using the $filter query parameter on the startDateTime and participant id properties. Note that the listed call records don't include expandable relationships such as sessions and participants_v2. You can expand these relationships using Get callRecord for a specific record.
*/
class CallRecordsRequestBuilderGetQueryParameters
{
Expand Down
Loading

0 comments on commit df9608a

Please sign in to comment.