Skip to content

Commit a5a0891

Browse files
Merge pull request #958 from microsoftgraph/v1.0/pipelinebuild/210015
Generated models and request builders
2 parents 6b3cac3 + 1465f36 commit a5a0891

79 files changed

Lines changed: 2671 additions & 74 deletions

File tree

  • packages
    • msgraph-sdk-admin/admin
    • msgraph-sdk-communications/communications
    • msgraph-sdk-deviceAppManagement/deviceAppManagement/targetedManagedAppConfigurations/item/targetApps
    • msgraph-sdk-deviceManagement/deviceManagement
      • exchangeConnectors/item/sync
      • virtualEndpoint
        • cloudPCs/item/reprovision
        • report/retrieveCloudPcRecommendationReports
    • msgraph-sdk-drives/drives/item/items/item/assignSensitivityLabel
    • msgraph-sdk-groups/groups/item
    • msgraph-sdk-identityGovernance/identityGovernance/lifecycleWorkflows
    • msgraph-sdk-identity/identity/conditionalAccess/authenticationStrength/policies/item/updateAllowedCombinations
    • msgraph-sdk-policies/policies/authenticationStrengthPolicies/item/updateAllowedCombinations
    • msgraph-sdk-reports/reports/partners/billing
      • reconciliation
        • billed/microsoftGraphPartnersBillingExport
        • unbilled/microsoftGraphPartnersBillingExport
      • usage
        • billed/microsoftGraphPartnersBillingExport
        • unbilled/microsoftGraphPartnersBillingExport
    • msgraph-sdk-security/security
      • cases/ediscoveryCases/item
        • reviewSets/item
          • microsoftGraphSecurityAddToReviewSet
          • microsoftGraphSecurityExport
          • queries/item/microsoftGraphSecurityExport
        • searches/item
          • microsoftGraphSecurityExportReport
          • microsoftGraphSecurityExportResult
          • microsoftGraphSecurityPurgeData
      • dataSecurityAndGovernance/protectionScopes/compute
      • identities/identityAccounts/item/microsoftGraphSecurityInvokeAction
    • msgraph-sdk-solutions/solutions/backupRestore/restorePoints/search
    • msgraph-sdk-teams/teams/item/clone
    • msgraph-sdk-users/users/item
      • calendarGroups/item/calendars/item/allowedCalendarSharingRolesWithUser
      • calendars/item/allowedCalendarSharingRolesWithUser
      • calendar/allowedCalendarSharingRolesWithUser
      • cloudPCs/item/reprovision
      • dataSecurityAndGovernance/protectionScopes/compute
      • getMailTips
      • joinedTeams/item/clone
      • onlineMeetings/item
      • presence
      • settings/workHoursAndLocations/occurrences/setCurrentLocation
      • translateExchangeIds
    • msgraph-sdk/models

Some content is hidden

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

packages/kiota-dom-export.txt

Lines changed: 298 additions & 0 deletions
Large diffs are not rendered by default.

packages/kiota-lock.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"descriptionHash": "EE655C46667963A6B56284D80428908D898ADF7596E1B9840E2353EEE838BF5BDD1519D02373734226B3D8607AA86D05BD7FA51B4D709F95127054A6D86E6D4D",
2+
"descriptionHash": "4F06022D5B45031BAB5C100A8706A34FA46122344724E8FCA8C63860D90BF29AC24BE841A1ED2D972C817F599F3CB3D773FDC21B97C78F4BD30527C351DF0259",
33
"descriptionLocation": "../../msgraph-metadata/clean_v10_openapi/openapi.yaml",
44
"lockFileVersion": "1.0.0",
5-
"kiotaVersion": "1.31.0",
5+
"kiotaVersion": "1.30.0",
66
"clientClassName": "GraphBaseServiceClient",
77
"typeAccessModifier": "Public",
88
"clientNamespaceName": "github.com/microsoftgraph/msgraph-sdk-typescript/",
Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
/* tslint:disable */
2+
/* eslint-disable */
3+
// Generated by Microsoft Kiota
4+
// @ts-ignore
5+
import { createExchangeAdminFromDiscriminatorValue, serializeExchangeAdmin, type ExchangeAdmin } from '@microsoft/msgraph-sdk/models/index.js';
6+
// @ts-ignore
7+
import { createODataErrorFromDiscriminatorValue, type ODataError } from '@microsoft/msgraph-sdk/models/oDataErrors/index.js';
8+
// @ts-ignore
9+
import { TracingRequestBuilderNavigationMetadata, TracingRequestBuilderRequestsMetadata, type TracingRequestBuilder } from './tracing/index.js';
10+
// @ts-ignore
11+
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type Parsable, type ParsableFactory, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
12+
13+
/**
14+
* Provides operations to manage the exchange property of the microsoft.graph.admin entity.
15+
*/
16+
export interface ExchangeRequestBuilder extends BaseRequestBuilder<ExchangeRequestBuilder> {
17+
/**
18+
* Provides operations to manage the tracing property of the microsoft.graph.exchangeAdmin entity.
19+
*/
20+
get tracing(): TracingRequestBuilder;
21+
/**
22+
* Delete navigation property exchange for admin
23+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
24+
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
25+
*/
26+
delete(requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<void>;
27+
/**
28+
* A container for the Exchange admin functionality. Read-only.
29+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
30+
* @returns {Promise<ExchangeAdmin>}
31+
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
32+
*/
33+
get(requestConfiguration?: RequestConfiguration<ExchangeRequestBuilderGetQueryParameters> | undefined) : Promise<ExchangeAdmin | undefined>;
34+
/**
35+
* Update the navigation property exchange in admin
36+
* @param body The request body
37+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
38+
* @returns {Promise<ExchangeAdmin>}
39+
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
40+
*/
41+
patch(body: ExchangeAdmin, requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<ExchangeAdmin | undefined>;
42+
/**
43+
* Delete navigation property exchange for admin
44+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
45+
* @returns {RequestInformation}
46+
*/
47+
toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation;
48+
/**
49+
* A container for the Exchange admin functionality. Read-only.
50+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
51+
* @returns {RequestInformation}
52+
*/
53+
toGetRequestInformation(requestConfiguration?: RequestConfiguration<ExchangeRequestBuilderGetQueryParameters> | undefined) : RequestInformation;
54+
/**
55+
* Update the navigation property exchange in admin
56+
* @param body The request body
57+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
58+
* @returns {RequestInformation}
59+
*/
60+
toPatchRequestInformation(body: ExchangeAdmin, requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation;
61+
}
62+
/**
63+
* A container for the Exchange admin functionality. Read-only.
64+
*/
65+
export interface ExchangeRequestBuilderGetQueryParameters {
66+
/**
67+
* Expand related entities
68+
*/
69+
expand?: string[];
70+
/**
71+
* Select properties to be returned
72+
*/
73+
select?: string[];
74+
}
75+
/**
76+
* Uri template for the request builder.
77+
*/
78+
export const ExchangeRequestBuilderUriTemplate = "{+baseurl}/admin/exchange{?%24expand,%24select}";
79+
/**
80+
* Mapper for query parameters from symbol name to serialization name represented as a constant.
81+
*/
82+
const ExchangeRequestBuilderGetQueryParametersMapper: Record<string, string> = {
83+
"expand": "%24expand",
84+
"select": "%24select",
85+
};
86+
/**
87+
* Metadata for all the navigation properties in the request builder.
88+
*/
89+
export const ExchangeRequestBuilderNavigationMetadata: Record<Exclude<keyof ExchangeRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata> = {
90+
tracing: {
91+
requestsMetadata: TracingRequestBuilderRequestsMetadata,
92+
navigationMetadata: TracingRequestBuilderNavigationMetadata,
93+
},
94+
};
95+
/**
96+
* Metadata for all the requests in the request builder.
97+
*/
98+
export const ExchangeRequestBuilderRequestsMetadata: RequestsMetadata = {
99+
delete: {
100+
uriTemplate: ExchangeRequestBuilderUriTemplate,
101+
responseBodyContentType: "application/json",
102+
errorMappings: {
103+
XXX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
104+
},
105+
adapterMethodName: "sendNoResponseContent",
106+
},
107+
get: {
108+
uriTemplate: ExchangeRequestBuilderUriTemplate,
109+
responseBodyContentType: "application/json",
110+
errorMappings: {
111+
XXX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
112+
},
113+
adapterMethodName: "send",
114+
responseBodyFactory: createExchangeAdminFromDiscriminatorValue,
115+
queryParametersMapper: ExchangeRequestBuilderGetQueryParametersMapper,
116+
},
117+
patch: {
118+
uriTemplate: ExchangeRequestBuilderUriTemplate,
119+
responseBodyContentType: "application/json",
120+
errorMappings: {
121+
XXX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
122+
},
123+
adapterMethodName: "send",
124+
responseBodyFactory: createExchangeAdminFromDiscriminatorValue,
125+
requestBodyContentType: "application/json",
126+
requestBodySerializer: serializeExchangeAdmin,
127+
requestInformationContentSetMethod: "setContentFromParsable",
128+
},
129+
};
130+
/* tslint:enable */
131+
/* eslint-enable */
Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
/* tslint:disable */
2+
/* eslint-disable */
3+
// Generated by Microsoft Kiota
4+
// @ts-ignore
5+
import { createMessageTracingRootFromDiscriminatorValue, serializeMessageTracingRoot, type MessageTracingRoot } from '@microsoft/msgraph-sdk/models/index.js';
6+
// @ts-ignore
7+
import { createODataErrorFromDiscriminatorValue, type ODataError } from '@microsoft/msgraph-sdk/models/oDataErrors/index.js';
8+
// @ts-ignore
9+
import { MessageTracesRequestBuilderNavigationMetadata, MessageTracesRequestBuilderRequestsMetadata, type MessageTracesRequestBuilder } from './messageTraces/index.js';
10+
// @ts-ignore
11+
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type Parsable, type ParsableFactory, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
12+
13+
/**
14+
* Provides operations to manage the tracing property of the microsoft.graph.exchangeAdmin entity.
15+
*/
16+
export interface TracingRequestBuilder extends BaseRequestBuilder<TracingRequestBuilder> {
17+
/**
18+
* Provides operations to manage the messageTraces property of the microsoft.graph.messageTracingRoot entity.
19+
*/
20+
get messageTraces(): MessageTracesRequestBuilder;
21+
/**
22+
* Delete navigation property tracing for admin
23+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
24+
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
25+
*/
26+
delete(requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<void>;
27+
/**
28+
* Represents a container for administrative resources to trace messages.
29+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
30+
* @returns {Promise<MessageTracingRoot>}
31+
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
32+
*/
33+
get(requestConfiguration?: RequestConfiguration<TracingRequestBuilderGetQueryParameters> | undefined) : Promise<MessageTracingRoot | undefined>;
34+
/**
35+
* Update the navigation property tracing in admin
36+
* @param body The request body
37+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
38+
* @returns {Promise<MessageTracingRoot>}
39+
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
40+
*/
41+
patch(body: MessageTracingRoot, requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<MessageTracingRoot | undefined>;
42+
/**
43+
* Delete navigation property tracing for admin
44+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
45+
* @returns {RequestInformation}
46+
*/
47+
toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation;
48+
/**
49+
* Represents a container for administrative resources to trace messages.
50+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
51+
* @returns {RequestInformation}
52+
*/
53+
toGetRequestInformation(requestConfiguration?: RequestConfiguration<TracingRequestBuilderGetQueryParameters> | undefined) : RequestInformation;
54+
/**
55+
* Update the navigation property tracing in admin
56+
* @param body The request body
57+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
58+
* @returns {RequestInformation}
59+
*/
60+
toPatchRequestInformation(body: MessageTracingRoot, requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation;
61+
}
62+
/**
63+
* Represents a container for administrative resources to trace messages.
64+
*/
65+
export interface TracingRequestBuilderGetQueryParameters {
66+
/**
67+
* Expand related entities
68+
*/
69+
expand?: string[];
70+
/**
71+
* Select properties to be returned
72+
*/
73+
select?: string[];
74+
}
75+
/**
76+
* Uri template for the request builder.
77+
*/
78+
export const TracingRequestBuilderUriTemplate = "{+baseurl}/admin/exchange/tracing{?%24expand,%24select}";
79+
/**
80+
* Mapper for query parameters from symbol name to serialization name represented as a constant.
81+
*/
82+
const TracingRequestBuilderGetQueryParametersMapper: Record<string, string> = {
83+
"expand": "%24expand",
84+
"select": "%24select",
85+
};
86+
/**
87+
* Metadata for all the navigation properties in the request builder.
88+
*/
89+
export const TracingRequestBuilderNavigationMetadata: Record<Exclude<keyof TracingRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata> = {
90+
messageTraces: {
91+
requestsMetadata: MessageTracesRequestBuilderRequestsMetadata,
92+
navigationMetadata: MessageTracesRequestBuilderNavigationMetadata,
93+
},
94+
};
95+
/**
96+
* Metadata for all the requests in the request builder.
97+
*/
98+
export const TracingRequestBuilderRequestsMetadata: RequestsMetadata = {
99+
delete: {
100+
uriTemplate: TracingRequestBuilderUriTemplate,
101+
responseBodyContentType: "application/json",
102+
errorMappings: {
103+
XXX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
104+
},
105+
adapterMethodName: "sendNoResponseContent",
106+
},
107+
get: {
108+
uriTemplate: TracingRequestBuilderUriTemplate,
109+
responseBodyContentType: "application/json",
110+
errorMappings: {
111+
XXX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
112+
},
113+
adapterMethodName: "send",
114+
responseBodyFactory: createMessageTracingRootFromDiscriminatorValue,
115+
queryParametersMapper: TracingRequestBuilderGetQueryParametersMapper,
116+
},
117+
patch: {
118+
uriTemplate: TracingRequestBuilderUriTemplate,
119+
responseBodyContentType: "application/json",
120+
errorMappings: {
121+
XXX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
122+
},
123+
adapterMethodName: "send",
124+
responseBodyFactory: createMessageTracingRootFromDiscriminatorValue,
125+
requestBodyContentType: "application/json",
126+
requestBodySerializer: serializeMessageTracingRoot,
127+
requestInformationContentSetMethod: "setContentFromParsable",
128+
},
129+
};
130+
/* tslint:enable */
131+
/* eslint-enable */
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
/* tslint:disable */
2+
/* eslint-disable */
3+
// Generated by Microsoft Kiota
4+
// @ts-ignore
5+
import { createODataErrorFromDiscriminatorValue, type ODataError } from '@microsoft/msgraph-sdk/models/oDataErrors/index.js';
6+
// @ts-ignore
7+
import { type BaseRequestBuilder, type Parsable, type ParsableFactory, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
8+
9+
/**
10+
* Provides operations to count the resources in the collection.
11+
*/
12+
export interface CountRequestBuilder extends BaseRequestBuilder<CountRequestBuilder> {
13+
/**
14+
* Get the number of the resource
15+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
16+
* @returns {Promise<number>}
17+
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
18+
*/
19+
get(requestConfiguration?: RequestConfiguration<CountRequestBuilderGetQueryParameters> | undefined) : Promise<number | undefined>;
20+
/**
21+
* Get the number of the resource
22+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
23+
* @returns {RequestInformation}
24+
*/
25+
toGetRequestInformation(requestConfiguration?: RequestConfiguration<CountRequestBuilderGetQueryParameters> | undefined) : RequestInformation;
26+
}
27+
/**
28+
* Get the number of the resource
29+
*/
30+
export interface CountRequestBuilderGetQueryParameters {
31+
/**
32+
* Filter items by property values
33+
*/
34+
filter?: string;
35+
/**
36+
* Search items by search phrases
37+
*/
38+
search?: string;
39+
}
40+
/**
41+
* Uri template for the request builder.
42+
*/
43+
export const CountRequestBuilderUriTemplate = "{+baseurl}/admin/exchange/tracing/messageTraces/$count{?%24filter,%24search}";
44+
/**
45+
* Mapper for query parameters from symbol name to serialization name represented as a constant.
46+
*/
47+
const CountRequestBuilderGetQueryParametersMapper: Record<string, string> = {
48+
"filter": "%24filter",
49+
"search": "%24search",
50+
};
51+
/**
52+
* Metadata for all the requests in the request builder.
53+
*/
54+
export const CountRequestBuilderRequestsMetadata: RequestsMetadata = {
55+
get: {
56+
uriTemplate: CountRequestBuilderUriTemplate,
57+
responseBodyContentType: "text/plain;q=0.9",
58+
errorMappings: {
59+
XXX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
60+
},
61+
adapterMethodName: "sendPrimitive",
62+
responseBodyFactory: "number",
63+
queryParametersMapper: CountRequestBuilderGetQueryParametersMapper,
64+
},
65+
};
66+
/* tslint:enable */
67+
/* eslint-enable */

0 commit comments

Comments
 (0)