Skip to content

Commit

Permalink
Merge pull request #496 from microsoftgraph/v1.0/pipelinebuild/134405
Browse files Browse the repository at this point in the history
Generated  models and request builders
  • Loading branch information
baywet authored Feb 12, 2024
2 parents 210d1ad + ed46665 commit f4642a5
Show file tree
Hide file tree
Showing 7,814 changed files with 106,787 additions and 101,990 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
36 changes: 19 additions & 17 deletions packages/msgraph-sdk-admin/admin/edge/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Generated by Microsoft Kiota
import { createEdgeFromDiscriminatorValue, serializeEdge, type Edge } from '@microsoft/msgraph-sdk/models/';
import { createODataErrorFromDiscriminatorValue, type ODataError } from '@microsoft/msgraph-sdk/models/oDataErrors/';
import { InternetExplorerModeRequestBuilderNavigationMetadata, InternetExplorerModeRequestBuilderRequestsMetadata, InternetExplorerModeRequestBuilderUriTemplate, type InternetExplorerModeRequestBuilder } from './internetExplorerMode/';
import { InternetExplorerModeRequestBuilderNavigationMetadata, InternetExplorerModeRequestBuilderRequestsMetadata, type InternetExplorerModeRequestBuilder } from './internetExplorerMode/';
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type Parsable, type ParsableFactory, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';

/**
Expand All @@ -17,38 +17,41 @@ export interface EdgeRequestBuilder extends BaseRequestBuilder<EdgeRequestBuilde
/**
* Delete navigation property edge for admin
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
*/
delete(requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<void>;
/**
* A container for Microsoft Edge resources. Read-only.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns a Promise of Edge
* @returns {Promise<Edge>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
*/
get(requestConfiguration?: RequestConfiguration<EdgeRequestBuilderGetQueryParameters> | undefined) : Promise<Edge | undefined>;
/**
* Update the navigation property edge in admin
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns a Promise of Edge
* @returns {Promise<Edge>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
*/
patch(body: Edge, requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<Edge | undefined>;
/**
* Delete navigation property edge for admin
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns a RequestInformation
* @returns {RequestInformation}
*/
toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation;
/**
* A container for Microsoft Edge resources. Read-only.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns a RequestInformation
* @returns {RequestInformation}
*/
toGetRequestInformation(requestConfiguration?: RequestConfiguration<EdgeRequestBuilderGetQueryParameters> | undefined) : RequestInformation;
/**
* Update the navigation property edge in admin
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns a RequestInformation
* @returns {RequestInformation}
*/
toPatchRequestInformation(body: Edge, requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation;
}
Expand All @@ -65,6 +68,10 @@ export interface EdgeRequestBuilderGetQueryParameters {
*/
select?: string[];
}
/**
* Uri template for the request builder.
*/
export const EdgeRequestBuilderUriTemplate = "{+baseurl}/admin/edge{?%24expand,%24select}";
/**
* Mapper for query parameters from symbol name to serialization name represented as a constant.
*/
Expand All @@ -77,7 +84,6 @@ const EdgeRequestBuilderGetQueryParametersMapper: Record<string, string> = {
*/
export const EdgeRequestBuilderNavigationMetadata: Record<Exclude<keyof EdgeRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata> = {
internetExplorerMode: {
uriTemplate: InternetExplorerModeRequestBuilderUriTemplate,
requestsMetadata: InternetExplorerModeRequestBuilderRequestsMetadata,
navigationMetadata: InternetExplorerModeRequestBuilderNavigationMetadata,
},
Expand All @@ -87,28 +93,28 @@ export const EdgeRequestBuilderNavigationMetadata: Record<Exclude<keyof EdgeRequ
*/
export const EdgeRequestBuilderRequestsMetadata: RequestsMetadata = {
delete: {
uriTemplate: EdgeRequestBuilderUriTemplate,
responseBodyContentType: "application/json",
errorMappings: {
_4XX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
_5XX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
XXX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
},
adapterMethodName: "sendNoResponseContentAsync",
},
get: {
uriTemplate: EdgeRequestBuilderUriTemplate,
responseBodyContentType: "application/json",
errorMappings: {
_4XX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
_5XX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
XXX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
},
adapterMethodName: "sendAsync",
responseBodyFactory: createEdgeFromDiscriminatorValue,
queryParametersMapper: EdgeRequestBuilderGetQueryParametersMapper,
},
patch: {
uriTemplate: EdgeRequestBuilderUriTemplate,
responseBodyContentType: "application/json",
errorMappings: {
_4XX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
_5XX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
XXX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
},
adapterMethodName: "sendAsync",
responseBodyFactory: createEdgeFromDiscriminatorValue,
Expand All @@ -117,9 +123,5 @@ export const EdgeRequestBuilderRequestsMetadata: RequestsMetadata = {
requestInformationContentSetMethod: "setContentFromParsable",
},
};
/**
* Uri template for the request builder.
*/
export const EdgeRequestBuilderUriTemplate = "{+baseurl}/admin/edge{?%24expand,%24select}";
/* tslint:enable */
/* eslint-enable */
36 changes: 19 additions & 17 deletions packages/msgraph-sdk-admin/admin/edge/internetExplorerMode/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Generated by Microsoft Kiota
import { createInternetExplorerModeFromDiscriminatorValue, serializeInternetExplorerMode, type InternetExplorerMode } from '@microsoft/msgraph-sdk/models/';
import { createODataErrorFromDiscriminatorValue, type ODataError } from '@microsoft/msgraph-sdk/models/oDataErrors/';
import { SiteListsRequestBuilderNavigationMetadata, SiteListsRequestBuilderRequestsMetadata, SiteListsRequestBuilderUriTemplate, type SiteListsRequestBuilder } from './siteLists/';
import { SiteListsRequestBuilderNavigationMetadata, SiteListsRequestBuilderRequestsMetadata, type SiteListsRequestBuilder } from './siteLists/';
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type Parsable, type ParsableFactory, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';

/**
Expand All @@ -17,38 +17,41 @@ export interface InternetExplorerModeRequestBuilder extends BaseRequestBuilder<I
/**
* Delete navigation property internetExplorerMode for admin
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
*/
delete(requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<void>;
/**
* A container for Internet Explorer mode resources.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns a Promise of InternetExplorerMode
* @returns {Promise<InternetExplorerMode>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
*/
get(requestConfiguration?: RequestConfiguration<InternetExplorerModeRequestBuilderGetQueryParameters> | undefined) : Promise<InternetExplorerMode | undefined>;
/**
* Update the navigation property internetExplorerMode in admin
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns a Promise of InternetExplorerMode
* @returns {Promise<InternetExplorerMode>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
*/
patch(body: InternetExplorerMode, requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<InternetExplorerMode | undefined>;
/**
* Delete navigation property internetExplorerMode for admin
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns a RequestInformation
* @returns {RequestInformation}
*/
toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation;
/**
* A container for Internet Explorer mode resources.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns a RequestInformation
* @returns {RequestInformation}
*/
toGetRequestInformation(requestConfiguration?: RequestConfiguration<InternetExplorerModeRequestBuilderGetQueryParameters> | undefined) : RequestInformation;
/**
* Update the navigation property internetExplorerMode in admin
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns a RequestInformation
* @returns {RequestInformation}
*/
toPatchRequestInformation(body: InternetExplorerMode, requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation;
}
Expand All @@ -65,6 +68,10 @@ export interface InternetExplorerModeRequestBuilderGetQueryParameters {
*/
select?: string[];
}
/**
* Uri template for the request builder.
*/
export const InternetExplorerModeRequestBuilderUriTemplate = "{+baseurl}/admin/edge/internetExplorerMode{?%24expand,%24select}";
/**
* Mapper for query parameters from symbol name to serialization name represented as a constant.
*/
Expand All @@ -77,7 +84,6 @@ const InternetExplorerModeRequestBuilderGetQueryParametersMapper: Record<string,
*/
export const InternetExplorerModeRequestBuilderNavigationMetadata: Record<Exclude<keyof InternetExplorerModeRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata> = {
siteLists: {
uriTemplate: SiteListsRequestBuilderUriTemplate,
requestsMetadata: SiteListsRequestBuilderRequestsMetadata,
navigationMetadata: SiteListsRequestBuilderNavigationMetadata,
},
Expand All @@ -87,28 +93,28 @@ export const InternetExplorerModeRequestBuilderNavigationMetadata: Record<Exclud
*/
export const InternetExplorerModeRequestBuilderRequestsMetadata: RequestsMetadata = {
delete: {
uriTemplate: InternetExplorerModeRequestBuilderUriTemplate,
responseBodyContentType: "application/json",
errorMappings: {
_4XX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
_5XX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
XXX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
},
adapterMethodName: "sendNoResponseContentAsync",
},
get: {
uriTemplate: InternetExplorerModeRequestBuilderUriTemplate,
responseBodyContentType: "application/json",
errorMappings: {
_4XX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
_5XX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
XXX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
},
adapterMethodName: "sendAsync",
responseBodyFactory: createInternetExplorerModeFromDiscriminatorValue,
queryParametersMapper: InternetExplorerModeRequestBuilderGetQueryParametersMapper,
},
patch: {
uriTemplate: InternetExplorerModeRequestBuilderUriTemplate,
responseBodyContentType: "application/json",
errorMappings: {
_4XX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
_5XX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
XXX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
},
adapterMethodName: "sendAsync",
responseBodyFactory: createInternetExplorerModeFromDiscriminatorValue,
Expand All @@ -117,9 +123,5 @@ export const InternetExplorerModeRequestBuilderRequestsMetadata: RequestsMetadat
requestInformationContentSetMethod: "setContentFromParsable",
},
};
/**
* Uri template for the request builder.
*/
export const InternetExplorerModeRequestBuilderUriTemplate = "{+baseurl}/admin/edge/internetExplorerMode{?%24expand,%24select}";
/* tslint:enable */
/* eslint-enable */
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@ export interface CountRequestBuilder extends BaseRequestBuilder<CountRequestBuil
/**
* Get the number of the resource
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns a Promise of Integer
* @returns {Promise<number>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
*/
get(requestConfiguration?: RequestConfiguration<CountRequestBuilderGetQueryParameters> | undefined) : Promise<number | undefined>;
/**
* Get the number of the resource
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns a RequestInformation
* @returns {RequestInformation}
*/
toGetRequestInformation(requestConfiguration?: RequestConfiguration<CountRequestBuilderGetQueryParameters> | undefined) : RequestInformation;
}
Expand All @@ -34,6 +35,10 @@ export interface CountRequestBuilderGetQueryParameters {
*/
search?: string;
}
/**
* Uri template for the request builder.
*/
export const CountRequestBuilderUriTemplate = "{+baseurl}/admin/edge/internetExplorerMode/siteLists/$count{?%24filter,%24search}";
/**
* Mapper for query parameters from symbol name to serialization name represented as a constant.
*/
Expand All @@ -46,19 +51,15 @@ const CountRequestBuilderGetQueryParametersMapper: Record<string, string> = {
*/
export const CountRequestBuilderRequestsMetadata: RequestsMetadata = {
get: {
uriTemplate: CountRequestBuilderUriTemplate,
responseBodyContentType: "text/plain;q=0.9",
errorMappings: {
_4XX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
_5XX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
XXX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
},
adapterMethodName: "sendPrimitiveAsync",
responseBodyFactory: "number",
queryParametersMapper: CountRequestBuilderGetQueryParametersMapper,
},
};
/**
* Uri template for the request builder.
*/
export const CountRequestBuilderUriTemplate = "{+baseurl}/admin/edge/internetExplorerMode/siteLists/$count{?%24filter,%24search}";
/* tslint:enable */
/* eslint-enable */
Loading

0 comments on commit f4642a5

Please sign in to comment.