@microsoft/msgraph-sdk-drives 1.0.0-preview.86 → 1.0.0-preview.87

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/drives/item/list/index.d.ts +5 -0
  2. package/drives/item/list/index.d.ts.map +1 -1
  3. package/drives/item/list/index.js +6 -0
  4. package/drives/item/list/index.js.map +1 -1
  5. package/drives/item/list/items/item/index.d.ts +5 -0
  6. package/drives/item/list/items/item/index.d.ts.map +1 -1
  7. package/drives/item/list/items/item/index.js +6 -0
  8. package/drives/item/list/items/item/index.js.map +1 -1
  9. package/drives/item/list/items/item/permissions/count/index.d.ts +41 -0
  10. package/drives/item/list/items/item/permissions/count/index.d.ts.map +1 -0
  11. package/drives/item/list/items/item/permissions/count/index.js +34 -0
  12. package/drives/item/list/items/item/permissions/count/index.js.map +1 -0
  13. package/drives/item/list/items/item/permissions/index.d.ts +97 -0
  14. package/drives/item/list/items/item/permissions/index.d.ts.map +1 -0
  15. package/drives/item/list/items/item/permissions/index.js +71 -0
  16. package/drives/item/list/items/item/permissions/index.js.map +1 -0
  17. package/drives/item/list/items/item/permissions/item/grant/index.d.ts +90 -0
  18. package/drives/item/list/items/item/permissions/item/grant/index.d.ts.map +1 -0
  19. package/drives/item/list/items/item/permissions/item/grant/index.js +100 -0
  20. package/drives/item/list/items/item/permissions/item/grant/index.js.map +1 -0
  21. package/drives/item/list/items/item/permissions/item/index.d.ts +78 -0
  22. package/drives/item/list/items/item/permissions/item/index.d.ts.map +1 -0
  23. package/drives/item/list/items/item/permissions/item/index.js +66 -0
  24. package/drives/item/list/items/item/permissions/item/index.js.map +1 -0
  25. package/drives/item/list/permissions/count/index.d.ts +41 -0
  26. package/drives/item/list/permissions/count/index.d.ts.map +1 -0
  27. package/drives/item/list/permissions/count/index.js +34 -0
  28. package/drives/item/list/permissions/count/index.js.map +1 -0
  29. package/drives/item/list/permissions/index.d.ts +97 -0
  30. package/drives/item/list/permissions/index.d.ts.map +1 -0
  31. package/drives/item/list/permissions/index.js +71 -0
  32. package/drives/item/list/permissions/index.js.map +1 -0
  33. package/drives/item/list/permissions/item/grant/index.d.ts +90 -0
  34. package/drives/item/list/permissions/item/grant/index.d.ts.map +1 -0
  35. package/drives/item/list/permissions/item/grant/index.js +100 -0
  36. package/drives/item/list/permissions/item/grant/index.js.map +1 -0
  37. package/drives/item/list/permissions/item/index.d.ts +78 -0
  38. package/drives/item/list/permissions/item/index.d.ts.map +1 -0
  39. package/drives/item/list/permissions/item/index.js +66 -0
  40. package/drives/item/list/permissions/item/index.js.map +1 -0
  41. package/package.json +1 -1
  42. package/tsconfig.tsbuildinfo +1 -1
@@ -0,0 +1,78 @@
1
+ import { type Permission } from '@microsoft/msgraph-sdk/models/index.js';
2
+ import { type GrantRequestBuilder } from './grant/index.js';
3
+ import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
4
+ /**
5
+ * Provides operations to manage the permissions property of the microsoft.graph.listItem entity.
6
+ */
7
+ export interface PermissionItemRequestBuilder extends BaseRequestBuilder<PermissionItemRequestBuilder> {
8
+ /**
9
+ * Provides operations to call the grant method.
10
+ */
11
+ get grant(): GrantRequestBuilder;
12
+ /**
13
+ * Delete navigation property permissions for drives
14
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
15
+ * @throws {ODataError} error when the service returns a 4XX or 5XX status code
16
+ */
17
+ delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
18
+ /**
19
+ * Get permissions from drives
20
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
21
+ * @returns {Promise<Permission>}
22
+ * @throws {ODataError} error when the service returns a 4XX or 5XX status code
23
+ */
24
+ get(requestConfiguration?: RequestConfiguration<PermissionItemRequestBuilderGetQueryParameters> | undefined): Promise<Permission | undefined>;
25
+ /**
26
+ * Update the navigation property permissions in drives
27
+ * @param body The request body
28
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
29
+ * @returns {Promise<Permission>}
30
+ * @throws {ODataError} error when the service returns a 4XX or 5XX status code
31
+ */
32
+ patch(body: Permission, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<Permission | undefined>;
33
+ /**
34
+ * Delete navigation property permissions for drives
35
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
36
+ * @returns {RequestInformation}
37
+ */
38
+ toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
39
+ /**
40
+ * Get permissions from drives
41
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
42
+ * @returns {RequestInformation}
43
+ */
44
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<PermissionItemRequestBuilderGetQueryParameters> | undefined): RequestInformation;
45
+ /**
46
+ * Update the navigation property permissions in drives
47
+ * @param body The request body
48
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
49
+ * @returns {RequestInformation}
50
+ */
51
+ toPatchRequestInformation(body: Permission, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
52
+ }
53
+ /**
54
+ * Get permissions from drives
55
+ */
56
+ export interface PermissionItemRequestBuilderGetQueryParameters {
57
+ /**
58
+ * Expand related entities
59
+ */
60
+ expand?: string[];
61
+ /**
62
+ * Select properties to be returned
63
+ */
64
+ select?: string[];
65
+ }
66
+ /**
67
+ * Uri template for the request builder.
68
+ */
69
+ export declare const PermissionItemRequestBuilderUriTemplate = "{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/permissions/{permission%2Did}{?%24expand,%24select}";
70
+ /**
71
+ * Metadata for all the navigation properties in the request builder.
72
+ */
73
+ export declare const PermissionItemRequestBuilderNavigationMetadata: Record<Exclude<keyof PermissionItemRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
74
+ /**
75
+ * Metadata for all the requests in the request builder.
76
+ */
77
+ export declare const PermissionItemRequestBuilderRequestsMetadata: RequestsMetadata;
78
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAIA,OAAO,EAA+D,KAAK,UAAU,EAAE,MAAM,wCAAwC,CAAC;AAItI,OAAO,EAAuC,KAAK,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAEjG,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,kCAAkC,EAAE,KAAK,kBAAkB,EAAuC,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAE1P;;GAEG;AACH,MAAM,WAAW,4BAA6B,SAAQ,kBAAkB,CAAC,4BAA4B,CAAC;IAClG;;OAEG;IACH,IAAI,KAAK,IAAI,mBAAmB,CAAC;IACjC;;;;OAIG;IACF,MAAM,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACzF;;;;;OAKG;IACF,GAAG,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,8CAA8C,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC,CAAC;IAChJ;;;;;;OAMG;IACF,KAAK,CAAC,IAAI,EAAE,UAAU,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC,CAAC;IAC5H;;;;OAIG;IACF,0BAA0B,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;IAClH;;;;OAIG;IACF,uBAAuB,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,8CAA8C,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;IACvJ;;;;;OAKG;IACF,yBAAyB,CAAC,IAAI,EAAE,UAAU,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;CACtI;AACD;;GAEG;AACH,MAAM,WAAW,8CAA8C;IAC3D;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB;AACD;;GAEG;AACH,eAAO,MAAM,uCAAuC,kHAAkH,CAAC;AAQvK;;GAEG;AACH,eAAO,MAAM,8CAA8C,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,4BAA4B,EAAE,kCAAkC,CAAC,EAAE,kBAAkB,CAItK,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,4CAA4C,EAAE,gBA+B1D,CAAC"}
@@ -0,0 +1,66 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ // Generated by Microsoft Kiota
4
+ // @ts-ignore
5
+ import { createPermissionFromDiscriminatorValue, serializePermission } from '@microsoft/msgraph-sdk/models/index.js';
6
+ // @ts-ignore
7
+ import { createODataErrorFromDiscriminatorValue } from '@microsoft/msgraph-sdk/models/oDataErrors/index.js';
8
+ // @ts-ignore
9
+ import { GrantRequestBuilderRequestsMetadata } from './grant/index.js';
10
+ /**
11
+ * Uri template for the request builder.
12
+ */
13
+ export const PermissionItemRequestBuilderUriTemplate = "{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/permissions/{permission%2Did}{?%24expand,%24select}";
14
+ /**
15
+ * Mapper for query parameters from symbol name to serialization name represented as a constant.
16
+ */
17
+ const PermissionItemRequestBuilderGetQueryParametersMapper = {
18
+ "expand": "%24expand",
19
+ "select": "%24select",
20
+ };
21
+ /**
22
+ * Metadata for all the navigation properties in the request builder.
23
+ */
24
+ export const PermissionItemRequestBuilderNavigationMetadata = {
25
+ grant: {
26
+ requestsMetadata: GrantRequestBuilderRequestsMetadata,
27
+ },
28
+ };
29
+ /**
30
+ * Metadata for all the requests in the request builder.
31
+ */
32
+ export const PermissionItemRequestBuilderRequestsMetadata = {
33
+ delete: {
34
+ uriTemplate: PermissionItemRequestBuilderUriTemplate,
35
+ responseBodyContentType: "application/json",
36
+ errorMappings: {
37
+ XXX: createODataErrorFromDiscriminatorValue,
38
+ },
39
+ adapterMethodName: "sendNoResponseContent",
40
+ },
41
+ get: {
42
+ uriTemplate: PermissionItemRequestBuilderUriTemplate,
43
+ responseBodyContentType: "application/json",
44
+ errorMappings: {
45
+ XXX: createODataErrorFromDiscriminatorValue,
46
+ },
47
+ adapterMethodName: "send",
48
+ responseBodyFactory: createPermissionFromDiscriminatorValue,
49
+ queryParametersMapper: PermissionItemRequestBuilderGetQueryParametersMapper,
50
+ },
51
+ patch: {
52
+ uriTemplate: PermissionItemRequestBuilderUriTemplate,
53
+ responseBodyContentType: "application/json",
54
+ errorMappings: {
55
+ XXX: createODataErrorFromDiscriminatorValue,
56
+ },
57
+ adapterMethodName: "send",
58
+ responseBodyFactory: createPermissionFromDiscriminatorValue,
59
+ requestBodyContentType: "application/json",
60
+ requestBodySerializer: serializePermission,
61
+ requestInformationContentSetMethod: "setContentFromParsable",
62
+ },
63
+ };
64
+ /* tslint:enable */
65
+ /* eslint-enable */
66
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,+BAA+B;AAC/B,aAAa;AACb,OAAO,EAAE,sCAAsC,EAAE,mBAAmB,EAAmB,MAAM,wCAAwC,CAAC;AACtI,aAAa;AACb,OAAO,EAAE,sCAAsC,EAAmB,MAAM,oDAAoD,CAAC;AAC7H,aAAa;AACb,OAAO,EAAE,mCAAmC,EAA4B,MAAM,kBAAkB,CAAC;AAkEjG;;GAEG;AACH,MAAM,CAAC,MAAM,uCAAuC,GAAG,+GAA+G,CAAC;AACvK;;GAEG;AACH,MAAM,oDAAoD,GAA2B;IACjF,QAAQ,EAAE,WAAW;IACrB,QAAQ,EAAE,WAAW;CACxB,CAAC;AACF;;GAEG;AACH,MAAM,CAAC,MAAM,8CAA8C,GAAgH;IACvK,KAAK,EAAE;QACH,gBAAgB,EAAE,mCAAmC;KACxD;CACJ,CAAC;AACF;;GAEG;AACH,MAAM,CAAC,MAAM,4CAA4C,GAAqB;IAC1E,MAAM,EAAE;QACJ,WAAW,EAAE,uCAAuC;QACpD,uBAAuB,EAAE,kBAAkB;QAC3C,aAAa,EAAE;YACX,GAAG,EAAE,sCAAmE;SAC3E;QACD,iBAAiB,EAAE,uBAAuB;KAC7C;IACD,GAAG,EAAE;QACD,WAAW,EAAE,uCAAuC;QACpD,uBAAuB,EAAE,kBAAkB;QAC3C,aAAa,EAAE;YACX,GAAG,EAAE,sCAAmE;SAC3E;QACD,iBAAiB,EAAE,MAAM;QACzB,mBAAmB,EAAG,sCAAsC;QAC5D,qBAAqB,EAAE,oDAAoD;KAC9E;IACD,KAAK,EAAE;QACH,WAAW,EAAE,uCAAuC;QACpD,uBAAuB,EAAE,kBAAkB;QAC3C,aAAa,EAAE;YACX,GAAG,EAAE,sCAAmE;SAC3E;QACD,iBAAiB,EAAE,MAAM;QACzB,mBAAmB,EAAG,sCAAsC;QAC5D,sBAAsB,EAAE,kBAAkB;QAC1C,qBAAqB,EAAE,mBAAmB;QAC1C,kCAAkC,EAAE,wBAAwB;KAC/D;CACJ,CAAC;AACF,mBAAmB;AACnB,mBAAmB"}
@@ -0,0 +1,41 @@
1
+ import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
2
+ /**
3
+ * Provides operations to count the resources in the collection.
4
+ */
5
+ export interface CountRequestBuilder extends BaseRequestBuilder<CountRequestBuilder> {
6
+ /**
7
+ * Get the number of the resource
8
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
9
+ * @returns {Promise<number>}
10
+ * @throws {ODataError} error when the service returns a 4XX or 5XX status code
11
+ */
12
+ get(requestConfiguration?: RequestConfiguration<CountRequestBuilderGetQueryParameters> | undefined): Promise<number | undefined>;
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 {RequestInformation}
17
+ */
18
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<CountRequestBuilderGetQueryParameters> | undefined): RequestInformation;
19
+ }
20
+ /**
21
+ * Get the number of the resource
22
+ */
23
+ export interface CountRequestBuilderGetQueryParameters {
24
+ /**
25
+ * Filter items by property values
26
+ */
27
+ filter?: string;
28
+ /**
29
+ * Search items by search phrases
30
+ */
31
+ search?: string;
32
+ }
33
+ /**
34
+ * Uri template for the request builder.
35
+ */
36
+ export declare const CountRequestBuilderUriTemplate = "{+baseurl}/drives/{drive%2Did}/list/permissions/$count{?%24filter,%24search}";
37
+ /**
38
+ * Metadata for all the requests in the request builder.
39
+ */
40
+ export declare const CountRequestBuilderRequestsMetadata: RequestsMetadata;
41
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,kBAAkB,EAAuC,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAExL;;GAEG;AACH,MAAM,WAAW,mBAAoB,SAAQ,kBAAkB,CAAC,mBAAmB,CAAC;IAChF;;;;;OAKG;IACF,GAAG,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,qCAAqC,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACnI;;;;OAIG;IACF,uBAAuB,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,qCAAqC,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;CACjJ;AACD;;GAEG;AACH,MAAM,WAAW,qCAAqC;IAClD;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AACD;;GAEG;AACH,eAAO,MAAM,8BAA8B,iFAAiF,CAAC;AAQ7H;;GAEG;AACH,eAAO,MAAM,mCAAmC,EAAE,gBAWjD,CAAC"}
@@ -0,0 +1,34 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ // Generated by Microsoft Kiota
4
+ // @ts-ignore
5
+ import { createODataErrorFromDiscriminatorValue } from '@microsoft/msgraph-sdk/models/oDataErrors/index.js';
6
+ /**
7
+ * Uri template for the request builder.
8
+ */
9
+ export const CountRequestBuilderUriTemplate = "{+baseurl}/drives/{drive%2Did}/list/permissions/$count{?%24filter,%24search}";
10
+ /**
11
+ * Mapper for query parameters from symbol name to serialization name represented as a constant.
12
+ */
13
+ const CountRequestBuilderGetQueryParametersMapper = {
14
+ "filter": "%24filter",
15
+ "search": "%24search",
16
+ };
17
+ /**
18
+ * Metadata for all the requests in the request builder.
19
+ */
20
+ export const CountRequestBuilderRequestsMetadata = {
21
+ get: {
22
+ uriTemplate: CountRequestBuilderUriTemplate,
23
+ responseBodyContentType: "text/plain;q=0.9",
24
+ errorMappings: {
25
+ XXX: createODataErrorFromDiscriminatorValue,
26
+ },
27
+ adapterMethodName: "sendPrimitive",
28
+ responseBodyFactory: "number",
29
+ queryParametersMapper: CountRequestBuilderGetQueryParametersMapper,
30
+ },
31
+ };
32
+ /* tslint:enable */
33
+ /* eslint-enable */
34
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,+BAA+B;AAC/B,aAAa;AACb,OAAO,EAAE,sCAAsC,EAAmB,MAAM,oDAAoD,CAAC;AAmC7H;;GAEG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAG,8EAA8E,CAAC;AAC7H;;GAEG;AACH,MAAM,2CAA2C,GAA2B;IACxE,QAAQ,EAAE,WAAW;IACrB,QAAQ,EAAE,WAAW;CACxB,CAAC;AACF;;GAEG;AACH,MAAM,CAAC,MAAM,mCAAmC,GAAqB;IACjE,GAAG,EAAE;QACD,WAAW,EAAE,8BAA8B;QAC3C,uBAAuB,EAAE,kBAAkB;QAC3C,aAAa,EAAE;YACX,GAAG,EAAE,sCAAmE;SAC3E;QACD,iBAAiB,EAAE,eAAe;QAClC,mBAAmB,EAAG,QAAQ;QAC9B,qBAAqB,EAAE,2CAA2C;KACrE;CACJ,CAAC;AACF,mBAAmB;AACnB,mBAAmB"}
@@ -0,0 +1,97 @@
1
+ import { type Permission, type PermissionCollectionResponse } from '@microsoft/msgraph-sdk/models/index.js';
2
+ import { type CountRequestBuilder } from './count/index.js';
3
+ import { type PermissionItemRequestBuilder } from './item/index.js';
4
+ import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
5
+ /**
6
+ * Provides operations to manage the permissions property of the microsoft.graph.list entity.
7
+ */
8
+ export interface PermissionsRequestBuilder extends BaseRequestBuilder<PermissionsRequestBuilder> {
9
+ /**
10
+ * Provides operations to count the resources in the collection.
11
+ */
12
+ get count(): CountRequestBuilder;
13
+ /**
14
+ * Provides operations to manage the permissions property of the microsoft.graph.list entity.
15
+ * @param permissionId The unique identifier of permission
16
+ * @returns {PermissionItemRequestBuilder}
17
+ */
18
+ byPermissionId(permissionId: string): PermissionItemRequestBuilder;
19
+ /**
20
+ * Get permissions from drives
21
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
22
+ * @returns {Promise<PermissionCollectionResponse>}
23
+ * @throws {ODataError} error when the service returns a 4XX or 5XX status code
24
+ */
25
+ get(requestConfiguration?: RequestConfiguration<PermissionsRequestBuilderGetQueryParameters> | undefined): Promise<PermissionCollectionResponse | undefined>;
26
+ /**
27
+ * Create new navigation property to permissions for drives
28
+ * @param body The request body
29
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
30
+ * @returns {Promise<Permission>}
31
+ * @throws {ODataError} error when the service returns a 4XX or 5XX status code
32
+ */
33
+ post(body: Permission, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<Permission | undefined>;
34
+ /**
35
+ * Get permissions from drives
36
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
37
+ * @returns {RequestInformation}
38
+ */
39
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<PermissionsRequestBuilderGetQueryParameters> | undefined): RequestInformation;
40
+ /**
41
+ * Create new navigation property to permissions for drives
42
+ * @param body The request body
43
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
44
+ * @returns {RequestInformation}
45
+ */
46
+ toPostRequestInformation(body: Permission, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
47
+ }
48
+ /**
49
+ * Get permissions from drives
50
+ */
51
+ export interface PermissionsRequestBuilderGetQueryParameters {
52
+ /**
53
+ * Include count of items
54
+ */
55
+ count?: boolean;
56
+ /**
57
+ * Expand related entities
58
+ */
59
+ expand?: string[];
60
+ /**
61
+ * Filter items by property values
62
+ */
63
+ filter?: string;
64
+ /**
65
+ * Order items by property values
66
+ */
67
+ orderby?: string[];
68
+ /**
69
+ * Search items by search phrases
70
+ */
71
+ search?: string;
72
+ /**
73
+ * Select properties to be returned
74
+ */
75
+ select?: string[];
76
+ /**
77
+ * Skip the first n items
78
+ */
79
+ skip?: number;
80
+ /**
81
+ * Show only the first n items
82
+ */
83
+ top?: number;
84
+ }
85
+ /**
86
+ * Uri template for the request builder.
87
+ */
88
+ export declare const PermissionsRequestBuilderUriTemplate = "{+baseurl}/drives/{drive%2Did}/list/permissions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}";
89
+ /**
90
+ * Metadata for all the navigation properties in the request builder.
91
+ */
92
+ export declare const PermissionsRequestBuilderNavigationMetadata: Record<Exclude<keyof PermissionsRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
93
+ /**
94
+ * Metadata for all the requests in the request builder.
95
+ */
96
+ export declare const PermissionsRequestBuilderRequestsMetadata: RequestsMetadata;
97
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAyH,KAAK,UAAU,EAAE,KAAK,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AAInO,OAAO,EAAuC,KAAK,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAEjG,OAAO,EAAgG,KAAK,4BAA4B,EAAE,MAAM,iBAAiB,CAAC;AAElK,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,kCAAkC,EAAE,KAAK,kBAAkB,EAAuC,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAE1P;;GAEG;AACH,MAAM,WAAW,yBAA0B,SAAQ,kBAAkB,CAAC,yBAAyB,CAAC;IAC5F;;OAEG;IACH,IAAI,KAAK,IAAI,mBAAmB,CAAC;IACjC;;;;OAIG;IACF,cAAc,CAAC,YAAY,EAAE,MAAM,GAAI,4BAA4B,CAAC;IACrE;;;;;OAKG;IACF,GAAG,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,2CAA2C,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,4BAA4B,GAAG,SAAS,CAAC,CAAC;IAC/J;;;;;;OAMG;IACF,IAAI,CAAC,IAAI,EAAE,UAAU,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC,CAAC;IAC3H;;;;OAIG;IACF,uBAAuB,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,2CAA2C,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;IACpJ;;;;;OAKG;IACF,wBAAwB,CAAC,IAAI,EAAE,UAAU,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;CACrI;AACD;;GAEG;AACH,MAAM,WAAW,2CAA2C;IACxD;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CAChB;AACD;;GAEG;AACH,eAAO,MAAM,oCAAoC,iIAAiI,CAAC;AAcnL;;GAEG;AACH,eAAO,MAAM,2CAA2C,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,yBAAyB,EAAE,kCAAkC,CAAC,EAAE,kBAAkB,CAShK,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,yCAAyC,EAAE,gBAuBvD,CAAC"}
@@ -0,0 +1,71 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ // Generated by Microsoft Kiota
4
+ // @ts-ignore
5
+ import { createPermissionCollectionResponseFromDiscriminatorValue, createPermissionFromDiscriminatorValue, serializePermission } from '@microsoft/msgraph-sdk/models/index.js';
6
+ // @ts-ignore
7
+ import { createODataErrorFromDiscriminatorValue } from '@microsoft/msgraph-sdk/models/oDataErrors/index.js';
8
+ // @ts-ignore
9
+ import { CountRequestBuilderRequestsMetadata } from './count/index.js';
10
+ // @ts-ignore
11
+ import { PermissionItemRequestBuilderNavigationMetadata, PermissionItemRequestBuilderRequestsMetadata } from './item/index.js';
12
+ /**
13
+ * Uri template for the request builder.
14
+ */
15
+ export const PermissionsRequestBuilderUriTemplate = "{+baseurl}/drives/{drive%2Did}/list/permissions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}";
16
+ /**
17
+ * Mapper for query parameters from symbol name to serialization name represented as a constant.
18
+ */
19
+ const PermissionsRequestBuilderGetQueryParametersMapper = {
20
+ "count": "%24count",
21
+ "expand": "%24expand",
22
+ "filter": "%24filter",
23
+ "orderby": "%24orderby",
24
+ "search": "%24search",
25
+ "select": "%24select",
26
+ "skip": "%24skip",
27
+ "top": "%24top",
28
+ };
29
+ /**
30
+ * Metadata for all the navigation properties in the request builder.
31
+ */
32
+ export const PermissionsRequestBuilderNavigationMetadata = {
33
+ byPermissionId: {
34
+ requestsMetadata: PermissionItemRequestBuilderRequestsMetadata,
35
+ navigationMetadata: PermissionItemRequestBuilderNavigationMetadata,
36
+ pathParametersMappings: ["permission%2Did"],
37
+ },
38
+ count: {
39
+ requestsMetadata: CountRequestBuilderRequestsMetadata,
40
+ },
41
+ };
42
+ /**
43
+ * Metadata for all the requests in the request builder.
44
+ */
45
+ export const PermissionsRequestBuilderRequestsMetadata = {
46
+ get: {
47
+ uriTemplate: PermissionsRequestBuilderUriTemplate,
48
+ responseBodyContentType: "application/json",
49
+ errorMappings: {
50
+ XXX: createODataErrorFromDiscriminatorValue,
51
+ },
52
+ adapterMethodName: "send",
53
+ responseBodyFactory: createPermissionCollectionResponseFromDiscriminatorValue,
54
+ queryParametersMapper: PermissionsRequestBuilderGetQueryParametersMapper,
55
+ },
56
+ post: {
57
+ uriTemplate: PermissionsRequestBuilderUriTemplate,
58
+ responseBodyContentType: "application/json",
59
+ errorMappings: {
60
+ XXX: createODataErrorFromDiscriminatorValue,
61
+ },
62
+ adapterMethodName: "send",
63
+ responseBodyFactory: createPermissionFromDiscriminatorValue,
64
+ requestBodyContentType: "application/json",
65
+ requestBodySerializer: serializePermission,
66
+ requestInformationContentSetMethod: "setContentFromParsable",
67
+ },
68
+ };
69
+ /* tslint:enable */
70
+ /* eslint-enable */
71
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,+BAA+B;AAC/B,aAAa;AACb,OAAO,EAAE,wDAAwD,EAAE,sCAAsC,EAAE,mBAAmB,EAAsD,MAAM,wCAAwC,CAAC;AACnO,aAAa;AACb,OAAO,EAAE,sCAAsC,EAAmB,MAAM,oDAAoD,CAAC;AAC7H,aAAa;AACb,OAAO,EAAE,mCAAmC,EAA4B,MAAM,kBAAkB,CAAC;AACjG,aAAa;AACb,OAAO,EAAE,8CAA8C,EAAE,4CAA4C,EAAqC,MAAM,iBAAiB,CAAC;AAoFlK;;GAEG;AACH,MAAM,CAAC,MAAM,oCAAoC,GAAG,8HAA8H,CAAC;AACnL;;GAEG;AACH,MAAM,iDAAiD,GAA2B;IAC9E,OAAO,EAAE,UAAU;IACnB,QAAQ,EAAE,WAAW;IACrB,QAAQ,EAAE,WAAW;IACrB,SAAS,EAAE,YAAY;IACvB,QAAQ,EAAE,WAAW;IACrB,QAAQ,EAAE,WAAW;IACrB,MAAM,EAAE,SAAS;IACjB,KAAK,EAAE,QAAQ;CAClB,CAAC;AACF;;GAEG;AACH,MAAM,CAAC,MAAM,2CAA2C,GAA6G;IACjK,cAAc,EAAE;QACZ,gBAAgB,EAAE,4CAA4C;QAC9D,kBAAkB,EAAE,8CAA8C;QAClE,sBAAsB,EAAE,CAAC,iBAAiB,CAAC;KAC9C;IACD,KAAK,EAAE;QACH,gBAAgB,EAAE,mCAAmC;KACxD;CACJ,CAAC;AACF;;GAEG;AACH,MAAM,CAAC,MAAM,yCAAyC,GAAqB;IACvE,GAAG,EAAE;QACD,WAAW,EAAE,oCAAoC;QACjD,uBAAuB,EAAE,kBAAkB;QAC3C,aAAa,EAAE;YACX,GAAG,EAAE,sCAAmE;SAC3E;QACD,iBAAiB,EAAE,MAAM;QACzB,mBAAmB,EAAG,wDAAwD;QAC9E,qBAAqB,EAAE,iDAAiD;KAC3E;IACD,IAAI,EAAE;QACF,WAAW,EAAE,oCAAoC;QACjD,uBAAuB,EAAE,kBAAkB;QAC3C,aAAa,EAAE;YACX,GAAG,EAAE,sCAAmE;SAC3E;QACD,iBAAiB,EAAE,MAAM;QACzB,mBAAmB,EAAG,sCAAsC;QAC5D,sBAAsB,EAAE,kBAAkB;QAC1C,qBAAqB,EAAE,mBAAmB;QAC1C,kCAAkC,EAAE,wBAAwB;KAC/D;CACJ,CAAC;AACF,mBAAmB;AACnB,mBAAmB"}
@@ -0,0 +1,90 @@
1
+ import { type BaseCollectionPaginationCountResponse, type DriveRecipient, type Permission } from '@microsoft/msgraph-sdk/models/index.js';
2
+ import { type AdditionalDataHolder, type BackedModel, type BaseRequestBuilder, type Parsable, type ParseNode, type RequestConfiguration, type RequestInformation, type RequestsMetadata, type SerializationWriter } from '@microsoft/kiota-abstractions';
3
+ /**
4
+ * Creates a new instance of the appropriate class based on discriminator value
5
+ * @param parseNode The parse node to use to read the discriminator value and create the object
6
+ * @returns {GrantPostRequestBody}
7
+ */
8
+ export declare function createGrantPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
9
+ /**
10
+ * Creates a new instance of the appropriate class based on discriminator value
11
+ * @param parseNode The parse node to use to read the discriminator value and create the object
12
+ * @returns {GrantPostResponse}
13
+ */
14
+ export declare function createGrantPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
15
+ /**
16
+ * The deserialization information for the current model
17
+ * @param GrantPostRequestBody The instance to deserialize into.
18
+ * @returns {Record<string, (node: ParseNode) => void>}
19
+ */
20
+ export declare function deserializeIntoGrantPostRequestBody(grantPostRequestBody?: Partial<GrantPostRequestBody> | undefined): Record<string, (node: ParseNode) => void>;
21
+ /**
22
+ * The deserialization information for the current model
23
+ * @param GrantPostResponse The instance to deserialize into.
24
+ * @returns {Record<string, (node: ParseNode) => void>}
25
+ */
26
+ export declare function deserializeIntoGrantPostResponse(grantPostResponse?: Partial<GrantPostResponse> | undefined): Record<string, (node: ParseNode) => void>;
27
+ export interface GrantPostRequestBody extends AdditionalDataHolder, BackedModel, Parsable {
28
+ /**
29
+ * Stores model information.
30
+ */
31
+ backingStoreEnabled?: boolean | null;
32
+ /**
33
+ * The recipients property
34
+ */
35
+ recipients?: DriveRecipient[] | null;
36
+ /**
37
+ * The roles property
38
+ */
39
+ roles?: string[] | null;
40
+ }
41
+ export interface GrantPostResponse extends BaseCollectionPaginationCountResponse, Parsable {
42
+ /**
43
+ * The value property
44
+ */
45
+ value?: Permission[] | null;
46
+ }
47
+ /**
48
+ * Provides operations to call the grant method.
49
+ */
50
+ export interface GrantRequestBuilder extends BaseRequestBuilder<GrantRequestBuilder> {
51
+ /**
52
+ * Grant users access to a link represented by a permission.
53
+ * @param body The request body
54
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
55
+ * @returns {Promise<GrantPostResponse>}
56
+ * @throws {ODataError} error when the service returns a 4XX or 5XX status code
57
+ * @see {@link https://learn.microsoft.com/graph/api/permission-grant?view=graph-rest-1.0|Find more info here}
58
+ */
59
+ post(body: GrantPostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<GrantPostResponse | undefined>;
60
+ /**
61
+ * Grant users access to a link represented by a permission.
62
+ * @param body The request body
63
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
64
+ * @returns {RequestInformation}
65
+ */
66
+ toPostRequestInformation(body: GrantPostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
67
+ }
68
+ /**
69
+ * Serializes information the current object
70
+ * @param GrantPostRequestBody The instance to serialize from.
71
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
72
+ * @param writer Serialization writer to use to serialize this model
73
+ */
74
+ export declare function serializeGrantPostRequestBody(writer: SerializationWriter, grantPostRequestBody?: Partial<GrantPostRequestBody> | undefined | null, isSerializingDerivedType?: boolean): void;
75
+ /**
76
+ * Serializes information the current object
77
+ * @param GrantPostResponse The instance to serialize from.
78
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
79
+ * @param writer Serialization writer to use to serialize this model
80
+ */
81
+ export declare function serializeGrantPostResponse(writer: SerializationWriter, grantPostResponse?: Partial<GrantPostResponse> | undefined | null, isSerializingDerivedType?: boolean): void;
82
+ /**
83
+ * Uri template for the request builder.
84
+ */
85
+ export declare const GrantRequestBuilderUriTemplate = "{+baseurl}/drives/{drive%2Did}/list/permissions/{permission%2Did}/grant";
86
+ /**
87
+ * Metadata for all the requests in the request builder.
88
+ */
89
+ export declare const GrantRequestBuilderRequestsMetadata: RequestsMetadata;
90
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAIA,OAAO,EAA0O,KAAK,qCAAqC,EAAE,KAAK,cAAc,EAAE,KAAK,UAAU,EAAE,MAAM,wCAAwC,CAAC;AAIlX,OAAO,EAAE,KAAK,oBAAoB,EAAE,KAAK,WAAW,EAAqB,KAAK,kBAAkB,EAAE,KAAK,QAAQ,EAAwB,KAAK,SAAS,EAAE,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,KAAK,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAElS;;;;GAIG;AAEH,wBAAgB,gDAAgD,CAAC,SAAS,EAAE,SAAS,GAAG,SAAS,GAAI,CAAC,CAAC,QAAQ,CAAC,EAAE,QAAQ,KAAK,MAAM,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC,CAAC,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CAAC,IAAI,EAAE,oBAAoB,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;CAC/I;AACD;;;;;GAKG;AAEH,wBAAgB,6BAA6B,CAAC,MAAM,EAAE,mBAAmB,EAAE,oBAAoB,GAAE,OAAO,CAAC,oBAAoB,CAAC,GAAG,SAAS,GAAG,IAAS,EAAE,wBAAwB,GAAE,OAAe,GAAI,IAAI,CAKxM;AACD;;;;;GAKG;AAEH,wBAAgB,0BAA0B,CAAC,MAAM,EAAE,mBAAmB,EAAE,iBAAiB,GAAE,OAAO,CAAC,iBAAiB,CAAC,GAAG,SAAS,GAAG,IAAS,EAAE,wBAAwB,GAAE,OAAe,GAAI,IAAI,CAI/L;AACD;;GAEG;AACH,eAAO,MAAM,8BAA8B,4EAA4E,CAAC;AACxH;;GAEG;AACH,eAAO,MAAM,mCAAmC,EAAE,gBAajD,CAAC"}
@@ -0,0 +1,100 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ // Generated by Microsoft Kiota
4
+ // @ts-ignore
5
+ import { createDriveRecipientFromDiscriminatorValue, createPermissionFromDiscriminatorValue, deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, serializeDriveRecipient, serializePermission } from '@microsoft/msgraph-sdk/models/index.js';
6
+ // @ts-ignore
7
+ import { createODataErrorFromDiscriminatorValue } from '@microsoft/msgraph-sdk/models/oDataErrors/index.js';
8
+ /**
9
+ * Creates a new instance of the appropriate class based on discriminator value
10
+ * @param parseNode The parse node to use to read the discriminator value and create the object
11
+ * @returns {GrantPostRequestBody}
12
+ */
13
+ // @ts-ignore
14
+ export function createGrantPostRequestBodyFromDiscriminatorValue(parseNode) {
15
+ return deserializeIntoGrantPostRequestBody;
16
+ }
17
+ /**
18
+ * Creates a new instance of the appropriate class based on discriminator value
19
+ * @param parseNode The parse node to use to read the discriminator value and create the object
20
+ * @returns {GrantPostResponse}
21
+ */
22
+ // @ts-ignore
23
+ export function createGrantPostResponseFromDiscriminatorValue(parseNode) {
24
+ return deserializeIntoGrantPostResponse;
25
+ }
26
+ /**
27
+ * The deserialization information for the current model
28
+ * @param GrantPostRequestBody The instance to deserialize into.
29
+ * @returns {Record<string, (node: ParseNode) => void>}
30
+ */
31
+ // @ts-ignore
32
+ export function deserializeIntoGrantPostRequestBody(grantPostRequestBody = {}) {
33
+ return {
34
+ "backingStoreEnabled": n => { grantPostRequestBody.backingStoreEnabled = true; },
35
+ "recipients": n => { grantPostRequestBody.recipients = n.getCollectionOfObjectValues(createDriveRecipientFromDiscriminatorValue); },
36
+ "roles": n => { grantPostRequestBody.roles = n.getCollectionOfPrimitiveValues("string"); },
37
+ };
38
+ }
39
+ /**
40
+ * The deserialization information for the current model
41
+ * @param GrantPostResponse The instance to deserialize into.
42
+ * @returns {Record<string, (node: ParseNode) => void>}
43
+ */
44
+ // @ts-ignore
45
+ export function deserializeIntoGrantPostResponse(grantPostResponse = {}) {
46
+ return Object.assign(Object.assign({}, deserializeIntoBaseCollectionPaginationCountResponse(grantPostResponse)), { "value": n => { grantPostResponse.value = n.getCollectionOfObjectValues(createPermissionFromDiscriminatorValue); } });
47
+ }
48
+ /**
49
+ * Serializes information the current object
50
+ * @param GrantPostRequestBody The instance to serialize from.
51
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
52
+ * @param writer Serialization writer to use to serialize this model
53
+ */
54
+ // @ts-ignore
55
+ export function serializeGrantPostRequestBody(writer, grantPostRequestBody = {}, isSerializingDerivedType = false) {
56
+ if (!grantPostRequestBody || isSerializingDerivedType) {
57
+ return;
58
+ }
59
+ writer.writeCollectionOfObjectValues("recipients", grantPostRequestBody.recipients, serializeDriveRecipient);
60
+ writer.writeCollectionOfPrimitiveValues("roles", grantPostRequestBody.roles);
61
+ writer.writeAdditionalData(grantPostRequestBody.additionalData);
62
+ }
63
+ /**
64
+ * Serializes information the current object
65
+ * @param GrantPostResponse The instance to serialize from.
66
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
67
+ * @param writer Serialization writer to use to serialize this model
68
+ */
69
+ // @ts-ignore
70
+ export function serializeGrantPostResponse(writer, grantPostResponse = {}, isSerializingDerivedType = false) {
71
+ if (!grantPostResponse || isSerializingDerivedType) {
72
+ return;
73
+ }
74
+ serializeBaseCollectionPaginationCountResponse(writer, grantPostResponse, isSerializingDerivedType);
75
+ writer.writeCollectionOfObjectValues("value", grantPostResponse.value, serializePermission);
76
+ }
77
+ /**
78
+ * Uri template for the request builder.
79
+ */
80
+ export const GrantRequestBuilderUriTemplate = "{+baseurl}/drives/{drive%2Did}/list/permissions/{permission%2Did}/grant";
81
+ /**
82
+ * Metadata for all the requests in the request builder.
83
+ */
84
+ export const GrantRequestBuilderRequestsMetadata = {
85
+ post: {
86
+ uriTemplate: GrantRequestBuilderUriTemplate,
87
+ responseBodyContentType: "application/json",
88
+ errorMappings: {
89
+ XXX: createODataErrorFromDiscriminatorValue,
90
+ },
91
+ adapterMethodName: "send",
92
+ responseBodyFactory: createGrantPostResponseFromDiscriminatorValue,
93
+ requestBodyContentType: "application/json",
94
+ requestBodySerializer: serializeGrantPostRequestBody,
95
+ requestInformationContentSetMethod: "setContentFromParsable",
96
+ },
97
+ };
98
+ /* tslint:enable */
99
+ /* eslint-enable */
100
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,+BAA+B;AAC/B,aAAa;AACb,OAAO,EAAE,0CAA0C,EAAE,sCAAsC,EAAE,oDAAoD,EAAE,8CAA8C,EAAE,uBAAuB,EAAE,mBAAmB,EAAoF,MAAM,wCAAwC,CAAC;AAClX,aAAa;AACb,OAAO,EAAE,sCAAsC,EAAmB,MAAM,oDAAoD,CAAC;AAI7H;;;;GAIG;AACH,aAAa;AACb,MAAM,UAAU,gDAAgD,CAAC,SAAg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