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 #375

Closed
wants to merge 1 commit into from
Closed
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
45 changes: 36 additions & 9 deletions src/admin/adminRequestBuilder.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,45 @@
import { type Admin } from '../models/admin';
import { createAdminFromDiscriminatorValue } from '../models/createAdminFromDiscriminatorValue';
import { deserializeIntoAdmin } from '../models/deserializeIntoAdmin';
import { createAdminFromDiscriminatorValue, deserializeIntoAdmin, serializeAdmin, type Admin } from '../models/admin';
import { type ODataError } from '../models/oDataErrors/';
import { createODataErrorFromDiscriminatorValue } from '../models/oDataErrors/createODataErrorFromDiscriminatorValue';
import { deserializeIntoODataError } from '../models/oDataErrors/deserializeIntoODataError';
import { serializeODataError } from '../models/oDataErrors/serializeODataError';
import { serializeAdmin } from '../models/serializeAdmin';
import { type AdminRequestBuilderGetRequestConfiguration } from './adminRequestBuilderGetRequestConfiguration';
import { type AdminRequestBuilderPatchRequestConfiguration } from './adminRequestBuilderPatchRequestConfiguration';
import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../models/oDataErrors/oDataError';
import { EdgeRequestBuilder } from './edge/edgeRequestBuilder';
import { ServiceAnnouncementRequestBuilder } from './serviceAnnouncement/serviceAnnouncementRequestBuilder';
import { SharepointRequestBuilder } from './sharepoint/sharepointRequestBuilder';
import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestOption } from '@microsoft/kiota-abstractions';

export interface AdminRequestBuilderGetQueryParameters {
/**
* Expand related entities
*/
expand?: string[];
/**
* Select properties to be returned
*/
select?: string[];
}
export interface AdminRequestBuilderGetRequestConfiguration {
/**
* Request headers
*/
headers?: Record<string, string[]>;
/**
* Request options
*/
options?: RequestOption[];
/**
* Request query parameters
*/
queryParameters?: AdminRequestBuilderGetQueryParameters;
}
export interface AdminRequestBuilderPatchRequestConfiguration {
/**
* Request headers
*/
headers?: Record<string, string[]>;
/**
* Request options
*/
options?: RequestOption[];
}
/**
* Provides operations to manage the admin singleton.
*/
Expand Down
11 changes: 0 additions & 11 deletions src/admin/adminRequestBuilderGetQueryParameters.ts

This file was deleted.

17 changes: 0 additions & 17 deletions src/admin/adminRequestBuilderGetRequestConfiguration.ts

This file was deleted.

12 changes: 0 additions & 12 deletions src/admin/adminRequestBuilderPatchRequestConfiguration.ts

This file was deleted.

56 changes: 46 additions & 10 deletions src/admin/edge/edgeRequestBuilder.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,53 @@
import { createEdgeFromDiscriminatorValue } from '../../models/createEdgeFromDiscriminatorValue';
import { deserializeIntoEdge } from '../../models/deserializeIntoEdge';
import { type Edge } from '../../models/edge';
import { createEdgeFromDiscriminatorValue, deserializeIntoEdge, serializeEdge, type Edge } from '../../models/edge';
import { type ODataError } from '../../models/oDataErrors/';
import { createODataErrorFromDiscriminatorValue } from '../../models/oDataErrors/createODataErrorFromDiscriminatorValue';
import { deserializeIntoODataError } from '../../models/oDataErrors/deserializeIntoODataError';
import { serializeODataError } from '../../models/oDataErrors/serializeODataError';
import { serializeEdge } from '../../models/serializeEdge';
import { type EdgeRequestBuilderDeleteRequestConfiguration } from './edgeRequestBuilderDeleteRequestConfiguration';
import { type EdgeRequestBuilderGetRequestConfiguration } from './edgeRequestBuilderGetRequestConfiguration';
import { type EdgeRequestBuilderPatchRequestConfiguration } from './edgeRequestBuilderPatchRequestConfiguration';
import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError';
import { InternetExplorerModeRequestBuilder } from './internetExplorerMode/internetExplorerModeRequestBuilder';
import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestOption } from '@microsoft/kiota-abstractions';

export interface EdgeRequestBuilderDeleteRequestConfiguration {
/**
* Request headers
*/
headers?: Record<string, string[]>;
/**
* Request options
*/
options?: RequestOption[];
}
export interface EdgeRequestBuilderGetQueryParameters {
/**
* Expand related entities
*/
expand?: string[];
/**
* Select properties to be returned
*/
select?: string[];
}
export interface EdgeRequestBuilderGetRequestConfiguration {
/**
* Request headers
*/
headers?: Record<string, string[]>;
/**
* Request options
*/
options?: RequestOption[];
/**
* Request query parameters
*/
queryParameters?: EdgeRequestBuilderGetQueryParameters;
}
export interface EdgeRequestBuilderPatchRequestConfiguration {
/**
* Request headers
*/
headers?: Record<string, string[]>;
/**
* Request options
*/
options?: RequestOption[];
}
/**
* Provides operations to manage the edge property of the microsoft.graph.admin entity.
*/
Expand Down
12 changes: 0 additions & 12 deletions src/admin/edge/edgeRequestBuilderDeleteRequestConfiguration.ts

This file was deleted.

11 changes: 0 additions & 11 deletions src/admin/edge/edgeRequestBuilderGetQueryParameters.ts

This file was deleted.

17 changes: 0 additions & 17 deletions src/admin/edge/edgeRequestBuilderGetRequestConfiguration.ts

This file was deleted.

12 changes: 0 additions & 12 deletions src/admin/edge/edgeRequestBuilderPatchRequestConfiguration.ts

This file was deleted.

5 changes: 1 addition & 4 deletions src/admin/edge/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
export * from './edgeRequestBuilderDeleteRequestConfiguration'
export * from './edgeRequestBuilderGetQueryParameters'
export * from './edgeRequestBuilderGetRequestConfiguration'
export * from './edgeRequestBuilderPatchRequestConfiguration'
export * from './edgeRequestBuilder'
5 changes: 1 addition & 4 deletions src/admin/edge/internetExplorerMode/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
export * from './internetExplorerModeRequestBuilderDeleteRequestConfiguration'
export * from './internetExplorerModeRequestBuilderGetQueryParameters'
export * from './internetExplorerModeRequestBuilderGetRequestConfiguration'
export * from './internetExplorerModeRequestBuilderPatchRequestConfiguration'
export * from './internetExplorerModeRequestBuilder'
Original file line number Diff line number Diff line change
@@ -1,17 +1,53 @@
import { createInternetExplorerModeFromDiscriminatorValue } from '../../../models/createInternetExplorerModeFromDiscriminatorValue';
import { deserializeIntoInternetExplorerMode } from '../../../models/deserializeIntoInternetExplorerMode';
import { type InternetExplorerMode } from '../../../models/internetExplorerMode';
import { createInternetExplorerModeFromDiscriminatorValue, deserializeIntoInternetExplorerMode, serializeInternetExplorerMode, type InternetExplorerMode } from '../../../models/internetExplorerMode';
import { type ODataError } from '../../../models/oDataErrors/';
import { createODataErrorFromDiscriminatorValue } from '../../../models/oDataErrors/createODataErrorFromDiscriminatorValue';
import { deserializeIntoODataError } from '../../../models/oDataErrors/deserializeIntoODataError';
import { serializeODataError } from '../../../models/oDataErrors/serializeODataError';
import { serializeInternetExplorerMode } from '../../../models/serializeInternetExplorerMode';
import { type InternetExplorerModeRequestBuilderDeleteRequestConfiguration } from './internetExplorerModeRequestBuilderDeleteRequestConfiguration';
import { type InternetExplorerModeRequestBuilderGetRequestConfiguration } from './internetExplorerModeRequestBuilderGetRequestConfiguration';
import { type InternetExplorerModeRequestBuilderPatchRequestConfiguration } from './internetExplorerModeRequestBuilderPatchRequestConfiguration';
import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError';
import { SiteListsRequestBuilder } from './siteLists/siteListsRequestBuilder';
import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestOption } from '@microsoft/kiota-abstractions';

export interface InternetExplorerModeRequestBuilderDeleteRequestConfiguration {
/**
* Request headers
*/
headers?: Record<string, string[]>;
/**
* Request options
*/
options?: RequestOption[];
}
export interface InternetExplorerModeRequestBuilderGetQueryParameters {
/**
* Expand related entities
*/
expand?: string[];
/**
* Select properties to be returned
*/
select?: string[];
}
export interface InternetExplorerModeRequestBuilderGetRequestConfiguration {
/**
* Request headers
*/
headers?: Record<string, string[]>;
/**
* Request options
*/
options?: RequestOption[];
/**
* Request query parameters
*/
queryParameters?: InternetExplorerModeRequestBuilderGetQueryParameters;
}
export interface InternetExplorerModeRequestBuilderPatchRequestConfiguration {
/**
* Request headers
*/
headers?: Record<string, string[]>;
/**
* Request options
*/
options?: RequestOption[];
}
/**
* Provides operations to manage the internetExplorerMode property of the microsoft.graph.edge entity.
*/
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,10 +1,31 @@
import { type ODataError } from '../../../../../models/oDataErrors/';
import { createODataErrorFromDiscriminatorValue } from '../../../../../models/oDataErrors/createODataErrorFromDiscriminatorValue';
import { deserializeIntoODataError } from '../../../../../models/oDataErrors/deserializeIntoODataError';
import { serializeODataError } from '../../../../../models/oDataErrors/serializeODataError';
import { type CountRequestBuilderGetRequestConfiguration } from './countRequestBuilderGetRequestConfiguration';
import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError';
import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestOption } from '@microsoft/kiota-abstractions';

export interface CountRequestBuilderGetQueryParameters {
/**
* Filter items by property values
*/
filter?: string;
/**
* Search items by search phrases
*/
search?: string;
}
export interface CountRequestBuilderGetRequestConfiguration {
/**
* Request headers
*/
headers?: Record<string, string[]>;
/**
* Request options
*/
options?: RequestOption[];
/**
* Request query parameters
*/
queryParameters?: CountRequestBuilderGetQueryParameters;
}
/**
* Provides operations to count the resources in the collection.
*/
Expand Down

This file was deleted.

Loading