Skip to content
Merged
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
303 changes: 302 additions & 1 deletion packages/kiota-dom-export.txt

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions packages/kiota-lock.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"descriptionHash": "69696A6A0E6B0C446E2144BB6EA04E01713601E3448A463BAAB5112D4FE1A8CA2FEAB7731DA16DBD5CB6A6A8FE039C9934C019462E8777F3F8CC0A96C505B146",
"descriptionHash": "625ED6B056F99972FDEA259383CEB2A79B763CCDF327528AF1DA1F785F2CBCD3E2BF7FA94F15007985808F2D6B73C4AA7E308B0C4AD6676B34C0CFEC22F883DA",
"descriptionLocation": "../../msgraph-metadata/clean_v10_openapi/openapi.yaml",
"lockFileVersion": "1.0.0",
"kiotaVersion": "1.35.0",
"kiotaVersion": "1.36.1",
"clientClassName": "GraphBaseServiceClient",
"typeAccessModifier": "Public",
"clientNamespaceName": "github.com/microsoftgraph/msgraph-sdk-typescript/",
Expand Down
9 changes: 9 additions & 0 deletions packages/msgraph-sdk-devices/devices/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ import { GetByIdsRequestBuilderRequestsMetadata, type GetByIdsRequestBuilder } f
// @ts-ignore
import { DeviceItemRequestBuilderNavigationMetadata, DeviceItemRequestBuilderRequestsMetadata, type DeviceItemRequestBuilder } from './item/index.js';
// @ts-ignore
import { ProvisionRequestBuilderRequestsMetadata, type ProvisionRequestBuilder } from './provision/index.js';
// @ts-ignore
import { type ValidatePropertiesRequestBuilder, ValidatePropertiesRequestBuilderRequestsMetadata } from './validateProperties/index.js';
// @ts-ignore
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type Parsable, type ParsableFactory, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
Expand All @@ -40,6 +42,10 @@ export interface DevicesRequestBuilder extends BaseRequestBuilder<DevicesRequest
* Provides operations to call the getByIds method.
*/
get getByIds(): GetByIdsRequestBuilder;
/**
* Provides operations to call the provision method.
*/
get provision(): ProvisionRequestBuilder;
/**
* Provides operations to call the validateProperties method.
*/
Expand Down Expand Up @@ -156,6 +162,9 @@ export const DevicesRequestBuilderNavigationMetadata: Record<Exclude<keyof Devic
getByIds: {
requestsMetadata: GetByIdsRequestBuilderRequestsMetadata,
},
provision: {
requestsMetadata: ProvisionRequestBuilderRequestsMetadata,
},
validateProperties: {
requestsMetadata: ValidatePropertiesRequestBuilderRequestsMetadata,
},
Expand Down
97 changes: 97 additions & 0 deletions packages/msgraph-sdk-devices/devices/provision/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
/* tslint:disable */
/* eslint-disable */
// Generated by Microsoft Kiota
// @ts-ignore
import { createProvisionResponseFromDiscriminatorValue, serializeProvisionResponse, type ProvisionResponse } from '@microsoft/msgraph-sdk/models/index.js';
// @ts-ignore
import { createODataErrorFromDiscriminatorValue, type ODataError } from '@microsoft/msgraph-sdk/models/oDataErrors/index.js';
// @ts-ignore
import { type AdditionalDataHolder, type BackedModel, type BackingStore, type BaseRequestBuilder, type Parsable, type ParsableFactory, type ParseNode, type RequestConfiguration, type RequestInformation, type RequestsMetadata, type SerializationWriter } from '@microsoft/kiota-abstractions';

/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {ProvisionPostRequestBody}
*/
// @ts-ignore
export function createProvisionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record<string, (node: ParseNode) => void>) {
return deserializeIntoProvisionPostRequestBody;
}
/**
* The deserialization information for the current model
* @param ProvisionPostRequestBody The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoProvisionPostRequestBody(provisionPostRequestBody: Partial<ProvisionPostRequestBody> | undefined = {}) : Record<string, (node: ParseNode) => void> {
return {
"backingStoreEnabled": n => { provisionPostRequestBody.backingStoreEnabled = true; },
"provisioningBlob": n => { provisionPostRequestBody.provisioningBlob = n.getStringValue(); },
}
}
export interface ProvisionPostRequestBody extends AdditionalDataHolder, BackedModel, Parsable {
/**
* Stores model information.
*/
backingStoreEnabled?: boolean | null;
/**
* The provisioningBlob property
*/
provisioningBlob?: string | null;
}
/**
* Provides operations to call the provision method.
*/
export interface ProvisionRequestBuilder extends BaseRequestBuilder<ProvisionRequestBuilder> {
/**
* Provision a device on behalf of an approved Virtual Desktop Infrastructure (VDI) provider. This action wraps the Zero Touch Deployment (ZTD) protocol to create a device in a pending state in the customer's directory. The device can't be used for authentication until it completes its registration. The created device is stamped with a system label that identifies the approved VDI provider. Only VDI applications on Microsoft's approved list of VDI providers can successfully call this action. Calls from other applications are blocked even when the application is granted the required permission.
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<ProvisionResponse>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
* @see {@link https://learn.microsoft.com/graph/api/device-provision?view=graph-rest-1.0|Find more info here}
*/
post(body: ProvisionPostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<ProvisionResponse | undefined>;
/**
* Provision a device on behalf of an approved Virtual Desktop Infrastructure (VDI) provider. This action wraps the Zero Touch Deployment (ZTD) protocol to create a device in a pending state in the customer's directory. The device can't be used for authentication until it completes its registration. The created device is stamped with a system label that identifies the approved VDI provider. Only VDI applications on Microsoft's approved list of VDI providers can successfully call this action. Calls from other applications are blocked even when the application is granted the required permission.
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toPostRequestInformation(body: ProvisionPostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation;
}
/**
* Serializes information the current object
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
* @param ProvisionPostRequestBody The instance to serialize from.
* @param writer Serialization writer to use to serialize this model
*/
// @ts-ignore
export function serializeProvisionPostRequestBody(writer: SerializationWriter, provisionPostRequestBody: Partial<ProvisionPostRequestBody> | undefined | null = {}, isSerializingDerivedType: boolean = false) : void {
if (!provisionPostRequestBody || isSerializingDerivedType) { return; }
writer.writeStringValue("provisioningBlob", provisionPostRequestBody.provisioningBlob);
writer.writeAdditionalData(provisionPostRequestBody.additionalData);
}
/**
* Uri template for the request builder.
*/
export const ProvisionRequestBuilderUriTemplate = "{+baseurl}/devices/provision";
/**
* Metadata for all the requests in the request builder.
*/
export const ProvisionRequestBuilderRequestsMetadata: RequestsMetadata = {
post: {
uriTemplate: ProvisionRequestBuilderUriTemplate,
responseBodyContentType: "application/json",
errorMappings: {
XXX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
},
adapterMethodName: "send",
responseBodyFactory: createProvisionResponseFromDiscriminatorValue,
requestBodyContentType: "application/json",
requestBodySerializer: serializeProvisionPostRequestBody,
requestInformationContentSetMethod: "setContentFromParsable",
},
};
/* tslint:enable */
/* eslint-enable */
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import { RelatedTenantItemRequestBuilderNavigationMetadata, RelatedTenantItemReq
// @ts-ignore
import { RefreshRequestBuilderRequestsMetadata, type RefreshRequestBuilder } from './refresh/index.js';
// @ts-ignore
import { RefreshStatusRequestBuilderRequestsMetadata, type RefreshStatusRequestBuilder } from './refreshStatus/index.js';
// @ts-ignore
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type Parsable, type ParsableFactory, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';

/**
Expand All @@ -26,6 +28,10 @@ export interface RelatedTenantsRequestBuilder extends BaseRequestBuilder<Related
* Provides operations to call the refresh method.
*/
get refresh(): RefreshRequestBuilder;
/**
* Provides operations to call the refreshStatus method.
*/
get refreshStatus(): RefreshStatusRequestBuilder;
/**
* Provides operations to manage the relatedTenants property of the microsoft.graph.tenantGovernance entity.
* @param relatedTenantId The unique identifier of relatedTenant
Expand Down Expand Up @@ -131,6 +137,9 @@ export const RelatedTenantsRequestBuilderNavigationMetadata: Record<Exclude<keyo
refresh: {
requestsMetadata: RefreshRequestBuilderRequestsMetadata,
},
refreshStatus: {
requestsMetadata: RefreshStatusRequestBuilderRequestsMetadata,
},
};
/**
* Metadata for all the requests in the request builder.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
/* tslint:disable */
/* eslint-disable */
// Generated by Microsoft Kiota
// @ts-ignore
import { createRelatedTenantsRefreshStatusFromDiscriminatorValue, type RelatedTenantsRefreshStatus } from '@microsoft/msgraph-sdk/models/index.js';
// @ts-ignore
import { createODataErrorFromDiscriminatorValue, type ODataError } from '@microsoft/msgraph-sdk/models/oDataErrors/index.js';
// @ts-ignore
import { type BaseRequestBuilder, type Parsable, type ParsableFactory, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';

/**
* Provides operations to call the refreshStatus method.
*/
export interface RefreshStatusRequestBuilder extends BaseRequestBuilder<RefreshStatusRequestBuilder> {
/**
* Invoke function refreshStatus
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<RelatedTenantsRefreshStatus>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
*/
get(requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<RelatedTenantsRefreshStatus | undefined>;
/**
* Invoke function refreshStatus
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toGetRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation;
}
/**
* Uri template for the request builder.
*/
export const RefreshStatusRequestBuilderUriTemplate = "{+baseurl}/directory/tenantGovernance/relatedTenants/refreshStatus()";
/**
* Metadata for all the requests in the request builder.
*/
export const RefreshStatusRequestBuilderRequestsMetadata: RequestsMetadata = {
get: {
uriTemplate: RefreshStatusRequestBuilderUriTemplate,
responseBodyContentType: "application/json",
errorMappings: {
XXX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
},
adapterMethodName: "send",
responseBodyFactory: createRelatedTenantsRefreshStatusFromDiscriminatorValue,
},
};
/* tslint:enable */
/* eslint-enable */
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import { createODataErrorFromDiscriminatorValue, type ODataError } from '@micros
// @ts-ignore
import { GrantRequestBuilderRequestsMetadata, type GrantRequestBuilder } from './grant/index.js';
// @ts-ignore
import { RevokeGrantsRequestBuilderRequestsMetadata, type RevokeGrantsRequestBuilder } from './revokeGrants/index.js';
// @ts-ignore
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type Parsable, type ParsableFactory, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';

/**
Expand All @@ -18,6 +20,10 @@ export interface PermissionItemRequestBuilder extends BaseRequestBuilder<Permiss
* Provides operations to call the grant method.
*/
get grant(): GrantRequestBuilder;
/**
* Provides operations to call the revokeGrants method.
*/
get revokeGrants(): RevokeGrantsRequestBuilder;
/**
* Delete navigation property permissions for drives
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
Expand Down Expand Up @@ -90,6 +96,9 @@ export const PermissionItemRequestBuilderNavigationMetadata: Record<Exclude<keyo
grant: {
requestsMetadata: GrantRequestBuilderRequestsMetadata,
},
revokeGrants: {
requestsMetadata: RevokeGrantsRequestBuilderRequestsMetadata,
},
};
/**
* Metadata for all the requests in the request builder.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
/* tslint:disable */
/* eslint-disable */
// Generated by Microsoft Kiota
// @ts-ignore
import { createDriveRecipientFromDiscriminatorValue, createPermissionFromDiscriminatorValue, serializeDriveRecipient, serializePermission, type DriveRecipient, type Permission } from '@microsoft/msgraph-sdk/models/index.js';
// @ts-ignore
import { createODataErrorFromDiscriminatorValue, type ODataError } from '@microsoft/msgraph-sdk/models/oDataErrors/index.js';
// @ts-ignore
import { type AdditionalDataHolder, type BackedModel, type BackingStore, type BaseRequestBuilder, type Parsable, type ParsableFactory, type ParseNode, type RequestConfiguration, type RequestInformation, type RequestsMetadata, type SerializationWriter } from '@microsoft/kiota-abstractions';

/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {RevokeGrantsPostRequestBody}
*/
// @ts-ignore
export function createRevokeGrantsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record<string, (node: ParseNode) => void>) {
return deserializeIntoRevokeGrantsPostRequestBody;
}
/**
* The deserialization information for the current model
* @param RevokeGrantsPostRequestBody The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoRevokeGrantsPostRequestBody(revokeGrantsPostRequestBody: Partial<RevokeGrantsPostRequestBody> | undefined = {}) : Record<string, (node: ParseNode) => void> {
return {
"backingStoreEnabled": n => { revokeGrantsPostRequestBody.backingStoreEnabled = true; },
"grantees": n => { revokeGrantsPostRequestBody.grantees = n.getCollectionOfObjectValues<DriveRecipient>(createDriveRecipientFromDiscriminatorValue); },
}
}
export interface RevokeGrantsPostRequestBody extends AdditionalDataHolder, BackedModel, Parsable {
/**
* Stores model information.
*/
backingStoreEnabled?: boolean | null;
/**
* The grantees property
*/
grantees?: DriveRecipient[] | null;
}
/**
* Provides operations to call the revokeGrants method.
*/
export interface RevokeGrantsRequestBuilder extends BaseRequestBuilder<RevokeGrantsRequestBuilder> {
/**
* Revoke access to a listItem or driveItem granted via a sharing link by removing the specified driveRecipient entries from the link. Recipients who already redeemed the link and recipients who only received an invitation both lose access. Revoking a grant removes the recipient from this sharing link only; it doesn't remove any access the recipient has through a different sharing link, a direct grant, or membership in a group that has access.
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<Permission>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
* @see {@link https://learn.microsoft.com/graph/api/permission-revokegrants?view=graph-rest-1.0|Find more info here}
*/
post(body: RevokeGrantsPostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<Permission | undefined>;
/**
* Revoke access to a listItem or driveItem granted via a sharing link by removing the specified driveRecipient entries from the link. Recipients who already redeemed the link and recipients who only received an invitation both lose access. Revoking a grant removes the recipient from this sharing link only; it doesn't remove any access the recipient has through a different sharing link, a direct grant, or membership in a group that has access.
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toPostRequestInformation(body: RevokeGrantsPostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation;
}
/**
* Serializes information the current object
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
* @param RevokeGrantsPostRequestBody The instance to serialize from.
* @param writer Serialization writer to use to serialize this model
*/
// @ts-ignore
export function serializeRevokeGrantsPostRequestBody(writer: SerializationWriter, revokeGrantsPostRequestBody: Partial<RevokeGrantsPostRequestBody> | undefined | null = {}, isSerializingDerivedType: boolean = false) : void {
if (!revokeGrantsPostRequestBody || isSerializingDerivedType) { return; }
writer.writeCollectionOfObjectValues<DriveRecipient>("grantees", revokeGrantsPostRequestBody.grantees, serializeDriveRecipient);
writer.writeAdditionalData(revokeGrantsPostRequestBody.additionalData);
}
/**
* Uri template for the request builder.
*/
export const RevokeGrantsRequestBuilderUriTemplate = "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/permissions/{permission%2Did}/revokeGrants";
/**
* Metadata for all the requests in the request builder.
*/
export const RevokeGrantsRequestBuilderRequestsMetadata: RequestsMetadata = {
post: {
uriTemplate: RevokeGrantsRequestBuilderUriTemplate,
responseBodyContentType: "application/json",
errorMappings: {
XXX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
},
adapterMethodName: "send",
responseBodyFactory: createPermissionFromDiscriminatorValue,
requestBodyContentType: "application/json",
requestBodySerializer: serializeRevokeGrantsPostRequestBody,
requestInformationContentSetMethod: "setContentFromParsable",
},
};
/* tslint:enable */
/* eslint-enable */
Loading
Loading