Skip to content

Commit 5913150

Browse files
authored
Merge pull request #347 from microsoftgraph/kiota/beta/pipelinebuild/174332
Generated beta models and request builders
2 parents 6aee108 + 8620da8 commit 5913150

File tree

515 files changed

+26112
-512
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

515 files changed

+26112
-512
lines changed

src/Generated/Admin/Windows/Updates/ResourceConnections/Item/ResourceConnectionItemRequestBuilder.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap
3131
}
3232

3333
/**
34-
* Delete a resourceConnection object.
34+
* Delete an operationalInsightsConnection object.
3535
* @param ResourceConnectionItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
3636
* @return Promise<void|null>
3737
* @throws Exception
38-
* @link https://learn.microsoft.com/graph/api/windowsupdates-resourceconnection-delete?view=graph-rest-beta Find more info here
38+
* @link https://learn.microsoft.com/graph/api/windowsupdates-operationalinsightsconnection-delete?view=graph-rest-beta Find more info here
3939
*/
4040
public function delete(?ResourceConnectionItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise {
4141
$requestInfo = $this->toDeleteRequestInformation($requestConfiguration);
@@ -46,11 +46,11 @@ public function delete(?ResourceConnectionItemRequestBuilderDeleteRequestConfigu
4646
}
4747

4848
/**
49-
* Read the properties and relationships of a resourceConnection object.
49+
* Read the properties and relationships of an operationalInsightsConnection object.
5050
* @param ResourceConnectionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
5151
* @return Promise<ResourceConnection|null>
5252
* @throws Exception
53-
* @link https://learn.microsoft.com/graph/api/windowsupdates-resourceconnection-get?view=graph-rest-beta Find more info here
53+
* @link https://learn.microsoft.com/graph/api/windowsupdates-operationalinsightsconnection-get?view=graph-rest-beta Find more info here
5454
*/
5555
public function get(?ResourceConnectionItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise {
5656
$requestInfo = $this->toGetRequestInformation($requestConfiguration);
@@ -76,7 +76,7 @@ public function patch(ResourceConnection $body, ?ResourceConnectionItemRequestBu
7676
}
7777

7878
/**
79-
* Delete a resourceConnection object.
79+
* Delete an operationalInsightsConnection object.
8080
* @param ResourceConnectionItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
8181
* @return RequestInformation
8282
*/
@@ -94,7 +94,7 @@ public function toDeleteRequestInformation(?ResourceConnectionItemRequestBuilder
9494
}
9595

9696
/**
97-
* Read the properties and relationships of a resourceConnection object.
97+
* Read the properties and relationships of an operationalInsightsConnection object.
9898
* @param ResourceConnectionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
9999
* @return RequestInformation
100100
*/

src/Generated/Admin/Windows/Updates/ResourceConnections/Item/ResourceConnectionItemRequestBuilderGetQueryParameters.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use Microsoft\Kiota\Abstractions\QueryParameter;
66

77
/**
8-
* Read the properties and relationships of a resourceConnection object.
8+
* Read the properties and relationships of an operationalInsightsConnection object.
99
*/
1010
class ResourceConnectionItemRequestBuilderGetQueryParameters
1111
{

src/Generated/Admin/Windows/Updates/UpdatableAssets/Item/UpdatableAssetItemRequestBuilder.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,11 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap
6363
}
6464

6565
/**
66-
* Delete an updatableAssetGroup object. When an updatableAssetGroup object, its member updatableAsset objects are not deleted.
66+
* Delete an updatableAsset object.
6767
* @param UpdatableAssetItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
6868
* @return Promise<void|null>
6969
* @throws Exception
70-
* @link https://learn.microsoft.com/graph/api/windowsupdates-updatableassetgroup-delete?view=graph-rest-beta Find more info here
70+
* @link https://learn.microsoft.com/graph/api/windowsupdates-updatableasset-delete?view=graph-rest-beta Find more info here
7171
*/
7272
public function delete(?UpdatableAssetItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise {
7373
$requestInfo = $this->toDeleteRequestInformation($requestConfiguration);
@@ -108,7 +108,7 @@ public function patch(UpdatableAsset $body, ?UpdatableAssetItemRequestBuilderPat
108108
}
109109

110110
/**
111-
* Delete an updatableAssetGroup object. When an updatableAssetGroup object, its member updatableAsset objects are not deleted.
111+
* Delete an updatableAsset object.
112112
* @param UpdatableAssetItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
113113
* @return RequestInformation
114114
*/

src/Generated/App/Calls/Item/Participants/Invite/InviteRequestBuilder.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap
3131
}
3232

3333
/**
34-
* Delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled.
34+
* Invite participants to the active call. For more information about how to handle operations, see commsOperation.
3535
* @param InvitePostRequestBody $body The request body
3636
* @param InviteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
3737
* @return Promise<InviteParticipantsOperation|null>
3838
* @throws Exception
39-
* @link https://learn.microsoft.com/graph/api/participant-delete?view=graph-rest-beta Find more info here
39+
* @link https://learn.microsoft.com/graph/api/participant-invite?view=graph-rest-beta Find more info here
4040
*/
4141
public function post(InvitePostRequestBody $body, ?InviteRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise {
4242
$requestInfo = $this->toPostRequestInformation($body, $requestConfiguration);
@@ -47,7 +47,7 @@ public function post(InvitePostRequestBody $body, ?InviteRequestBuilderPostReque
4747
}
4848

4949
/**
50-
* Delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled.
50+
* Invite participants to the active call. For more information about how to handle operations, see commsOperation.
5151
* @param InvitePostRequestBody $body The request body
5252
* @param InviteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
5353
* @return RequestInformation

src/Generated/AppCatalogs/TeamsApps/TeamsAppsRequestBuilder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap
5252
}
5353

5454
/**
55-
* List apps from the Microsoft Teams app catalog. This includes apps from the Microsoft Teams store and apps from your organization's app catalog (the tenant app catalog). To get apps from your organization's app catalog only, specify organization as the distributionMethod in the request.
55+
* List apps from the Microsoft Teams app catalog, including apps from the Microsoft Teams store and apps from your organization's app catalog (the tenant app catalog). To get apps from your organization's app catalog only, specify organization as the distributionMethod in the request.
5656
* @param TeamsAppsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
5757
* @return Promise<TeamsAppCollectionResponse|null>
5858
* @throws Exception
@@ -83,7 +83,7 @@ public function post(TeamsApp $body, ?TeamsAppsRequestBuilderPostRequestConfigur
8383
}
8484

8585
/**
86-
* List apps from the Microsoft Teams app catalog. This includes apps from the Microsoft Teams store and apps from your organization's app catalog (the tenant app catalog). To get apps from your organization's app catalog only, specify organization as the distributionMethod in the request.
86+
* List apps from the Microsoft Teams app catalog, including apps from the Microsoft Teams store and apps from your organization's app catalog (the tenant app catalog). To get apps from your organization's app catalog only, specify organization as the distributionMethod in the request.
8787
* @param TeamsAppsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
8888
* @return RequestInformation
8989
*/

src/Generated/AppCatalogs/TeamsApps/TeamsAppsRequestBuilderGetQueryParameters.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use Microsoft\Kiota\Abstractions\QueryParameter;
66

77
/**
8-
* List apps from the Microsoft Teams app catalog. This includes apps from the Microsoft Teams store and apps from your organization's app catalog (the tenant app catalog). To get apps from your organization's app catalog only, specify organization as the distributionMethod in the request.
8+
* List apps from the Microsoft Teams app catalog, including apps from the Microsoft Teams store and apps from your organization's app catalog (the tenant app catalog). To get apps from your organization's app catalog only, specify organization as the distributionMethod in the request.
99
*/
1010
class TeamsAppsRequestBuilderGetQueryParameters
1111
{

src/Generated/BaseGraphClient.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
use Microsoft\Graph\Beta\Generated\BookingBusinesses\BookingBusinessesRequestBuilder;
2626
use Microsoft\Graph\Beta\Generated\BookingCurrencies\BookingCurrenciesRequestBuilder;
2727
use Microsoft\Graph\Beta\Generated\BusinessFlowTemplates\BusinessFlowTemplatesRequestBuilder;
28+
use Microsoft\Graph\Beta\Generated\CertificateAuthorities\CertificateAuthoritiesRequestBuilder;
2829
use Microsoft\Graph\Beta\Generated\CertificateBasedAuthConfiguration\CertificateBasedAuthConfigurationRequestBuilder;
2930
use Microsoft\Graph\Beta\Generated\Chats\ChatsRequestBuilder;
3031
use Microsoft\Graph\Beta\Generated\Commands\CommandsRequestBuilder;
@@ -119,6 +120,7 @@
119120
use Microsoft\Graph\Beta\Generated\TeamsTemplates\TeamsTemplatesRequestBuilder;
120121
use Microsoft\Graph\Beta\Generated\TeamTemplateDefinition\TeamTemplateDefinitionRequestBuilder;
121122
use Microsoft\Graph\Beta\Generated\Teamwork\TeamworkRequestBuilder;
123+
use Microsoft\Graph\Beta\Generated\Templates\TemplatesRequestBuilder;
122124
use Microsoft\Graph\Beta\Generated\TenantRelationships\TenantRelationshipsRequestBuilder;
123125
use Microsoft\Graph\Beta\Generated\TermStore\TermStoreRequestBuilder;
124126
use Microsoft\Graph\Beta\Generated\ThreatSubmission\ThreatSubmissionRequestBuilder;
@@ -291,6 +293,13 @@ public function businessFlowTemplates(): BusinessFlowTemplatesRequestBuilder {
291293
return new BusinessFlowTemplatesRequestBuilder($this->pathParameters, $this->requestAdapter);
292294
}
293295

296+
/**
297+
* Provides operations to manage the certificateAuthorityPath singleton.
298+
*/
299+
public function certificateAuthorities(): CertificateAuthoritiesRequestBuilder {
300+
return new CertificateAuthoritiesRequestBuilder($this->pathParameters, $this->requestAdapter);
301+
}
302+
294303
/**
295304
* Provides operations to manage the collection of certificateBasedAuthConfiguration entities.
296305
*/
@@ -914,6 +923,13 @@ public function teamwork(): TeamworkRequestBuilder {
914923
return new TeamworkRequestBuilder($this->pathParameters, $this->requestAdapter);
915924
}
916925

926+
/**
927+
* Provides operations to manage the template singleton.
928+
*/
929+
public function templates(): TemplatesRequestBuilder {
930+
return new TemplatesRequestBuilder($this->pathParameters, $this->requestAdapter);
931+
}
932+
917933
/**
918934
* Provides operations to manage the tenantRelationship singleton.
919935
*/
Lines changed: 128 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,128 @@
1+
<?php
2+
3+
namespace Microsoft\Graph\Beta\Generated\CertificateAuthorities;
4+
5+
use Exception;
6+
use Http\Promise\Promise;
7+
use Microsoft\Graph\Beta\Generated\CertificateAuthorities\CertificateBasedApplicationConfigurations\CertificateBasedApplicationConfigurationsRequestBuilder;
8+
use Microsoft\Graph\Beta\Generated\CertificateAuthorities\MutualTlsOauthConfigurations\MutualTlsOauthConfigurationsRequestBuilder;
9+
use Microsoft\Graph\Beta\Generated\Models\CertificateAuthorityPath;
10+
use Microsoft\Graph\Beta\Generated\Models\ODataErrors\ODataError;
11+
use Microsoft\Kiota\Abstractions\BaseRequestBuilder;
12+
use Microsoft\Kiota\Abstractions\HttpMethod;
13+
use Microsoft\Kiota\Abstractions\RequestAdapter;
14+
use Microsoft\Kiota\Abstractions\RequestInformation;
15+
16+
/**
17+
* Provides operations to manage the certificateAuthorityPath singleton.
18+
*/
19+
class CertificateAuthoritiesRequestBuilder extends BaseRequestBuilder
20+
{
21+
/**
22+
* Provides operations to manage the certificateBasedApplicationConfigurations property of the microsoft.graph.certificateAuthorityPath entity.
23+
*/
24+
public function certificateBasedApplicationConfigurations(): CertificateBasedApplicationConfigurationsRequestBuilder {
25+
return new CertificateBasedApplicationConfigurationsRequestBuilder($this->pathParameters, $this->requestAdapter);
26+
}
27+
28+
/**
29+
* Provides operations to manage the mutualTlsOauthConfigurations property of the microsoft.graph.certificateAuthorityPath entity.
30+
*/
31+
public function mutualTlsOauthConfigurations(): MutualTlsOauthConfigurationsRequestBuilder {
32+
return new MutualTlsOauthConfigurationsRequestBuilder($this->pathParameters, $this->requestAdapter);
33+
}
34+
35+
/**
36+
* Instantiates a new CertificateAuthoritiesRequestBuilder and sets the default values.
37+
* @param array<string, mixed>|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL.
38+
* @param RequestAdapter $requestAdapter The request adapter to use to execute the requests.
39+
*/
40+
public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) {
41+
parent::__construct($requestAdapter, [], '{+baseurl}/certificateAuthorities{?%24expand,%24select}');
42+
if (is_array($pathParametersOrRawUrl)) {
43+
$this->pathParameters = $pathParametersOrRawUrl;
44+
} else {
45+
$this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl];
46+
}
47+
}
48+
49+
/**
50+
* Get certificateAuthorities
51+
* @param CertificateAuthoritiesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
52+
* @return Promise<CertificateAuthorityPath|null>
53+
* @throws Exception
54+
*/
55+
public function get(?CertificateAuthoritiesRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise {
56+
$requestInfo = $this->toGetRequestInformation($requestConfiguration);
57+
$errorMappings = [
58+
'XXX' => [ODataError::class, 'createFromDiscriminatorValue'],
59+
];
60+
return $this->requestAdapter->sendAsync($requestInfo, [CertificateAuthorityPath::class, 'createFromDiscriminatorValue'], $errorMappings);
61+
}
62+
63+
/**
64+
* Update certificateAuthorities
65+
* @param CertificateAuthorityPath $body The request body
66+
* @param CertificateAuthoritiesRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
67+
* @return Promise<CertificateAuthorityPath|null>
68+
* @throws Exception
69+
*/
70+
public function patch(CertificateAuthorityPath $body, ?CertificateAuthoritiesRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise {
71+
$requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration);
72+
$errorMappings = [
73+
'XXX' => [ODataError::class, 'createFromDiscriminatorValue'],
74+
];
75+
return $this->requestAdapter->sendAsync($requestInfo, [CertificateAuthorityPath::class, 'createFromDiscriminatorValue'], $errorMappings);
76+
}
77+
78+
/**
79+
* Get certificateAuthorities
80+
* @param CertificateAuthoritiesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
81+
* @return RequestInformation
82+
*/
83+
public function toGetRequestInformation(?CertificateAuthoritiesRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation {
84+
$requestInfo = new RequestInformation();
85+
$requestInfo->urlTemplate = $this->urlTemplate;
86+
$requestInfo->pathParameters = $this->pathParameters;
87+
$requestInfo->httpMethod = HttpMethod::GET;
88+
if ($requestConfiguration !== null) {
89+
$requestInfo->addHeaders($requestConfiguration->headers);
90+
if ($requestConfiguration->queryParameters !== null) {
91+
$requestInfo->setQueryParameters($requestConfiguration->queryParameters);
92+
}
93+
$requestInfo->addRequestOptions(...$requestConfiguration->options);
94+
}
95+
$requestInfo->tryAddHeader('Accept', "application/json");
96+
return $requestInfo;
97+
}
98+
99+
/**
100+
* Update certificateAuthorities
101+
* @param CertificateAuthorityPath $body The request body
102+
* @param CertificateAuthoritiesRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
103+
* @return RequestInformation
104+
*/
105+
public function toPatchRequestInformation(CertificateAuthorityPath $body, ?CertificateAuthoritiesRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation {
106+
$requestInfo = new RequestInformation();
107+
$requestInfo->urlTemplate = $this->urlTemplate;
108+
$requestInfo->pathParameters = $this->pathParameters;
109+
$requestInfo->httpMethod = HttpMethod::PATCH;
110+
if ($requestConfiguration !== null) {
111+
$requestInfo->addHeaders($requestConfiguration->headers);
112+
$requestInfo->addRequestOptions(...$requestConfiguration->options);
113+
}
114+
$requestInfo->tryAddHeader('Accept', "application/json");
115+
$requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body);
116+
return $requestInfo;
117+
}
118+
119+
/**
120+
* Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
121+
* @param string $rawUrl The raw URL to use for the request builder.
122+
* @return CertificateAuthoritiesRequestBuilder
123+
*/
124+
public function withUrl(string $rawUrl): CertificateAuthoritiesRequestBuilder {
125+
return new CertificateAuthoritiesRequestBuilder($rawUrl, $this->requestAdapter);
126+
}
127+
128+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<?php
2+
3+
namespace Microsoft\Graph\Beta\Generated\CertificateAuthorities;
4+
5+
use Microsoft\Kiota\Abstractions\QueryParameter;
6+
7+
/**
8+
* Get certificateAuthorities
9+
*/
10+
class CertificateAuthoritiesRequestBuilderGetQueryParameters
11+
{
12+
/**
13+
* @QueryParameter("%24expand")
14+
* @var array<string>|null $expand Expand related entities
15+
*/
16+
public ?array $expand = null;
17+
18+
/**
19+
* @QueryParameter("%24select")
20+
* @var array<string>|null $select Select properties to be returned
21+
*/
22+
public ?array $select = null;
23+
24+
/**
25+
* Instantiates a new CertificateAuthoritiesRequestBuilderGetQueryParameters and sets the default values.
26+
* @param array<string>|null $expand Expand related entities
27+
* @param array<string>|null $select Select properties to be returned
28+
*/
29+
public function __construct(?array $expand = null, ?array $select = null) {
30+
$this->expand = $expand;
31+
$this->select = $select;
32+
}
33+
34+
}

0 commit comments

Comments
 (0)