Updates from: 01/30/2021 04:13:08
Service Microsoft Docs article Related commit history on GitHub Change details
v1.0 https://docs.microsoft.com/en-us/graph/api/authenticationmethodsroot-usersregisteredbyfeature https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/authenticationmethodsroot-usersregisteredbyfeature.md /dev/null
@@ -0,0 +1,129 @@
+
+ Title: "authenticationMethodsRoot: usersRegisteredByFeature"
+description: "Get the number of users capable of multi-factor authentication, self-service password reset, and passwordless authentication."
+
+localization_priority: Normal
+ms.prod: "reports"
+doc_type: apiPageType
++
+# authenticationMethodsRoot: usersRegisteredByFeature
+Namespace: microsoft.graph
+
+[!INCLUDE [beta-disclaimer](../../includes/beta-disclaimer.md)]
+
+Get the number of users capable of multi-factor authentication, self-service password reset, and passwordless authentication.
+
+## Permissions
+The following permissions are required to call this API. To learn more, including how to choose permissions, see [Permissions](/graph/permissions-reference).
+
+|Permission type|Permissions (from least to most privileged)|
+|:|:|
+|Delegated (work or school account)|Reports.Read.All|
+|Delegated (personal Microsoft account)|Not supported.|
+|Application|Not supported.|
+
+In order to access the API, [one of the following roles](/azure/active-directory/users-groups-roles/directory-assign-admin-roles#available-roles) is required:
+
+* Reports reader
+* Security reader
+* Security admin
+* Global reader
+* Global admin
+
+## HTTP request
+
+<!-- {
+ "blockType": "ignored"
+}
+-->
+``` http
+GET /reports/authenticationMethods/usersRegisteredByFeature
+```
+
+## Function parameters
+The following table shows the parameters that can be used with this function.
+
+|Parameter|Type|Description|
+|:|:|:|
+|includedUserTypes|includedUserTypes|User type. Possible values are: `all`, `member`, `guest`.|
+|includedUserRoles|includedUserRoles|User role type. Possible values are: `all`, `privilegedAdmin`, `admin`, `user`.|
+
+The value `privilegedAdmin` consists of the following privileged admin roles:
+
+* Global admin
+* Security admin
+* Conditional Access admin
+* Exchange admin
+* SharePoint admin
+* Helpdesk admin
+* Billing admin
+* User admin
+* Authentication admin
+
+The value `admin` includes all Azure AD admin roles.
+
+## Request headers
+|Name|Description|
+|:|:|
+|Authorization|Bearer {token}. Required.|
+
+## Request body
+Do not supply a request body for this method.
+
+## Response
+
+If successful, this function returns a `200 OK` response code and a [userRegistrationFeatureSummary](../resources/userregistrationfeaturesummary.md) in the response body.
+
+## Examples
+
+### Request
+<!-- {
+ "blockType": "request",
+ "name": "authenticationmethodsroot_usersregisteredbyfeature"
+}
+-->
+``` http
+GET https://graph.microsoft.com/beta/reports/authenticationMethods/usersRegisteredByFeature(includedUserTypes='all',includedUserRoles='all')
+```
++
+### Response
+**Note:** The response object shown here might be shortened for readability.
+<!-- {
+ "blockType": "response",
+ "truncated": true,
+ "@odata.type": "microsoft.graph.userRegistrationFeatureSummary"
+} -->
+
+``` http
+HTTP/1.1 200 OK
+Content-Type: application/json
+
+{
+ "@odata.type": "#microsoft.graph.userRegistrationFeatureSummary",
+ "totalUserCount": 23123,
+ "userTypes": "all",
+ "userRoles": "all",
+ "userRegistrationFeatureCounts": [{
+ "feature": "ssprRegistered",
+ "userCount": 23423
+ },
+ {
+ "feature": "ssprEnabled",
+ "userCount": 4234
+ },
+ {
+ "feature": "ssprCapable",
+ "userCount": 4234
+ }, {
+ "feature": "passwordlessRegistered",
+ "userCount": 323
+ },
+ {
+ "feature": "mfaCapable",
+ "userCount": 3345
+ }
+ ]
+}
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/api/authenticationmethodsroot-usersregisteredbymethod https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/authenticationmethodsroot-usersregisteredbymethod.md /dev/null
@@ -0,0 +1,121 @@
+
+ Title: "authenticationMethodsRoot: usersRegisteredByMethod"
+description: "Get the number of users registered for each authentication method."
+
+localization_priority: Normal
+ms.prod: "reports"
+doc_type: apiPageType
++
+# authenticationMethodsRoot: usersRegisteredByMethod
+Namespace: microsoft.graph
+
+[!INCLUDE [beta-disclaimer](../../includes/beta-disclaimer.md)]
+
+Get the number of users registered for each authentication method.
+
+## Permissions
+One of the following permissions is required to call this API. To learn more, including how to choose permissions, see [Permissions](/graph/permissions-reference).
+
+|Permission type|Permissions (from least to most privileged)|
+|:|:|
+|Delegated (work or school account)|Reports.Read.All|
+|Delegated (personal Microsoft account)|Not supported.|
+|Application|Not supported.|
+
+In order to access the API, [one of the following roles](/azure/active-directory/users-groups-roles/directory-assign-admin-roles#available-roles) is required:
+
+* Reports reader
+* Security reader
+* Security admin
+* Global reader
+* Global admin
+
+## HTTP request
+
+<!-- {
+ "blockType": "ignored"
+}
+-->
+``` http
+GET /reports/authenticationMethods/usersRegisteredByMethod
+```
+
+## Function parameters
+The following table shows the parameters that can be used with this function.
+
+|Parameter|Type|Description|
+|:|:|:|
+|includedUserTypes|includedUserTypes|User type. Possible values are: `all`, `member`, `guest`.|
+|includedUserRoles|includedUserRoles|User role type. Possible values are: `all`, `privilegedAdmin`, `admin`, `user`.|
+
+The value `privilegedAdmin` consists of the following privileged admin roles:
+
+* Global admin
+* Security admin
+* Conditional Access admin
+* Exchange admin
+* SharePoint admin
+* Helpdesk admin
+* Billing admin
+* User admin
+* Authentication admin
+
+The value `admin` includes all Azure AD admin roles.
+
+## Request headers
+|Name|Description|
+|:|:|
+|Authorization|Bearer {token}. Required.|
+
+## Request body
+Do not supply a request body for this method.
+
+## Response
+
+If successful, this function returns a `200 OK` response code and a [userRegistrationMethodSummary](../resources/userregistrationmethodsummary.md) in the response body.
+
+## Examples
+
+### Request
+<!-- {
+ "blockType": "request",
+ "name": "authenticationmethodsroot_usersregisteredbymethod"
+}
+-->
+``` http
+GET https://graph.microsoft.com/beta/reports/authenticationMethods/usersRegisteredByMethod(includedUserTypes='all',includedUserRoles='all')
+```
++
+### Response
+**Note:** The response object shown here might be shortened for readability.
+<!-- {
+ "blockType": "response",
+ "truncated": true,
+ "@odata.type": "microsoft.graph.userRegistrationFeatureSummary"
+}
+-->
+``` http
+HTTP/1.1 200 OK
+Content-Type: application/json
+
+{
+ "@odata.type": "#microsoft.graph.userRegistrationMethodSummary",
+ "userTypes": "all",
+ "userRoles": "all",
+ "userRegistrationMethodCounts": [{
+ "authenticationMethod": "password",
+ "userCount": 12209
+ },
+ {
+ "authenticationMethod": "windowsHelloForBusiness",
+ "userCount": 223
+ },
+ {
+ "authenticationMethod": "mobilePhone",
+ "userCount": 4234
+ }
+ ]
+}
+```
v1.0 https://docs.microsoft.com/en-us/graph/api/place-get https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/place-get.md
@@ -130,11 +130,11 @@ Content-type: application/json
"phone": "000-000-0000", "nickname": "Conf Room", "label": "100",
- "capacity": "50",
+ "capacity": 50,
"building": "1", "floorNumber": 1, "isManaged": true,
- "isWheelchairAccessible": false,
+ "isWheelChairAccessible": false,
"bookingType": "standard", "tags": [ "bean bags"
v1.0 https://docs.microsoft.com/en-us/graph/api/place-list https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/place-list.md
@@ -161,11 +161,11 @@ Content-type: application/json
"phone": "000-000-0000", "nickname": "Conf Room", "label": "100",
- "capacity": "50",
+ "capacity": 50,
"building": "1", "floorNumber": 1, "isManaged": true,
- "isWheelchairAccessible": false,
+ "isWheelChairAccessible": false,
"bookingType": "standard", "tags": [ "bean bags"
@@ -192,11 +192,11 @@ Content-type: application/json
"phone": "000-000-0000", "nickname": "Conf Room", "label": "200",
- "capacity": "40",
+ "capacity": 40,
"building": "2", "floorNumber": 2, "isManaged": true,
- "isWheelchairAccessible": false,
+ "isWheelChairAccessible": false,
"bookingType": "standard", "tags": [ "benches",
@@ -370,11 +370,11 @@ Content-type: application/json
"phone": "000-000-0000", "nickname": "Conf Room", "label": "200",
- "capacity": "40",
+ "capacity": 40,
"building": "2", "floorNumber": 2, "isManaged": true,
- "isWheelchairAccessible": false,
+ "isWheelChairAccessible": false,
"bookingType": "standard", "tags": [ "benches",
v1.0 https://docs.microsoft.com/en-us/graph/api/place-update https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/place-update.md
@@ -50,12 +50,12 @@ In the request body, supply the values for relevant fields that should be update
| audioDeviceName | String | Specifies the name of the audio device in the room. | | bookingType | [bookingType](../resources/room.md) | Type of room. Possible values are `Standard` and `Reserved`. | | building | String | Specifies the building name or building number that the room is in. |
-| capacity | String | Specifies the capacity of the room. |
+| capacity | Int32 | Specifies the capacity of the room. |
| displayDeviceName | String | Specifies the name of the display device in the room. | | floorLabel | String | Specifies the floor letter that the room is on. | | floorNumber | Int32 | Specifies the floor number that the room is on. | | geoCoordinates | [outlookGeoCoordinates](../resources/outlookgeocoordinates.md) | Specifies the room or roomlist location in latitude, longitude and optionally, altitude coordinates. |
-| isWheelchairAccessible | Boolean | Specifies whether the room is wheelchair accessible. |
+| isWheelChairAccessible | Boolean | Specifies whether the room is wheelchair accessible. |
| label | String | Specifies a descriptive label for the room, for example, a number or name. | | nickname | String | Specifies a nickname for the room, for example, "conf room". | | phone | String | The phone number of the room or roomlist. |
@@ -91,8 +91,8 @@ Content-length: 285
"nickname": "Conf Room", "building": "1", "label": "100",
- "capacity": "50",
- "isWheelchairAccessible": false
+ "capacity": 50,
+ "isWheelChairAccessible": false
} ``` # [C#](#tab/csharp)
@@ -151,12 +151,12 @@ Content-type: application/json
"phone": "555-555-0100", "nickname": "Conf Room", "label": "100",
- "capacity": "50",
+ "capacity": 50,
"building": "1", "floorLabel": "1P", "floorNumber": 1, "isManaged": true,
- "isWheelchairAccessible": false,
+ "isWheelChairAccessible": false,
"bookingType": "standard", "tags": [ "bean bags"
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/create-event-recurring-daily-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/create-event-recurring-daily-csharp-snippets.md /dev/null
@@ -0,0 +1,64 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var @event = new Event
+{
+ Subject = "Let's go for lunch",
+ Body = new ItemBody
+ {
+ ContentType = BodyType.Html,
+ Content = "Does noon work for you?"
+ },
+ Start = new DateTimeTimeZone
+ {
+ DateTime = "2020-02-25T12:00:00",
+ TimeZone = "Pacific Standard Time"
+ },
+ End = new DateTimeTimeZone
+ {
+ DateTime = "2020-02-25T14:00:00",
+ TimeZone = "Pacific Standard Time"
+ },
+ Location = new Location
+ {
+ DisplayName = "Harry's Bar"
+ },
+ Attendees = new List<Attendee>()
+ {
+ new Attendee
+ {
+ EmailAddress = new EmailAddress
+ {
+ Address = "AlexW@contoso.OnMicrosoft.com",
+ Name = "Alex Wilbur"
+ },
+ Type = AttendeeType.Required
+ }
+ },
+ Recurrence = new PatternedRecurrence
+ {
+ Pattern = new RecurrencePattern
+ {
+ Type = RecurrencePatternType.Daily,
+ Interval = 1
+ },
+ Range = new RecurrenceRange
+ {
+ Type = RecurrenceRangeType.Numbered,
+ StartDate = new Date(2020,2,25),
+ NumberOfOccurrences = 2
+ }
+ }
+};
+
+await graphClient.Me.Events
+ .Request()
+ .Header("Prefer","outlook.timezone=\"Pacific Standard Time\"")
+ .AddAsync(@event);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/create-item-attachment-from-event-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/create-item-attachment-from-event-csharp-snippets.md /dev/null
@@ -0,0 +1,37 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var attachment = new ItemAttachment
+{
+ Name = "Holiday event",
+ Item = new Event
+ {
+ Subject = "Discuss gifts for children",
+ Body = new ItemBody
+ {
+ ContentType = BodyType.Html,
+ Content = "Let's look for funding!"
+ },
+ Start = new DateTimeTimeZone
+ {
+ DateTime = "2016-12-02T18:00:00",
+ TimeZone = "Pacific Standard Time"
+ },
+ End = new DateTimeTimeZone
+ {
+ DateTime = "2016-12-02T19:00:00",
+ TimeZone = "Pacific Standard Time"
+ }
+ }
+};
+
+await graphClient.Me.Events["{AAMkAGI1AAAt9AHjAAA=}"].Attachments
+ .Request()
+ .AddAsync(attachment);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/create-item-attachment-from-message-beta-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/create-item-attachment-from-message-beta-csharp-snippets.md /dev/null
@@ -0,0 +1,37 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var attachment = new ItemAttachment
+{
+ Name = "Holiday event",
+ Item = new Event
+ {
+ Subject = "Discuss gifts for children",
+ Body = new ItemBody
+ {
+ ContentType = BodyType.Html,
+ Content = "Let's look for funding!"
+ },
+ Start = new DateTimeTimeZone
+ {
+ DateTime = "2016-12-02T18:00:00",
+ TimeZone = "Pacific Standard Time"
+ },
+ End = new DateTimeTimeZone
+ {
+ DateTime = "2016-12-02T19:00:00",
+ TimeZone = "Pacific Standard Time"
+ }
+ }
+};
+
+await graphClient.Me.Messages["AAMkpsDRVK"].Attachments
+ .Request()
+ .AddAsync(attachment);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/create-item-attachment-with-post-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/create-item-attachment-with-post-csharp-snippets.md /dev/null
@@ -0,0 +1,49 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var post = new Post
+{
+ Body = new ItemBody
+ {
+ ContentType = BodyType.Text,
+ Content = "I attached an event."
+ },
+ Attachments = new PostAttachmentsCollectionPage()
+ {
+ new ItemAttachment
+ {
+ Name = "Holiday event",
+ Item = new Event
+ {
+ Subject = "Discuss gifts for children",
+ Body = new ItemBody
+ {
+ ContentType = BodyType.Html,
+ Content = "Let's look for funding!"
+ },
+ Start = new DateTimeTimeZone
+ {
+ DateTime = "2019-12-02T18:00:00",
+ TimeZone = "Pacific Standard Time"
+ },
+ End = new DateTimeTimeZone
+ {
+ DateTime = "2019-12-02T19:00:00",
+ TimeZone = "Pacific Standard Time"
+ }
+ }
+ }
+ }
+};
+
+await graphClient.Groups["1848753d-185d-4c08-a4e4-6ee40521d115"].Threads["AAQkADJUdfolA=="]
+ .Reply(post)
+ .Request()
+ .PostAsync();
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/create-tablecolumn-from-table-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/create-tablecolumn-from-table-csharp-snippets.md
@@ -8,7 +8,7 @@ GraphServiceClient graphClient = new GraphServiceClient( authProvider );
var workbookTableColumn = new WorkbookTableColumn {
- Id = 99,
+ Id = "99",
Name = "name-value", Index = 99, Values = "values-value"
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/create-trustframeworkkeyset-from-trustframework1-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/create-trustframeworkkeyset-from-trustframework1-csharp-snippets.md /dev/null
@@ -0,0 +1,18 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var trustFrameworkKeySet = new TrustFrameworkKeySet
+{
+ Id = "keyset1"
+};
+
+await graphClient.TrustFramework.KeySets
+ .Request()
+ .AddAsync(trustFrameworkKeySet);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/event-delta-events-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/event-delta-events-csharp-snippets.md /dev/null
@@ -0,0 +1,19 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var queryOptions = new List<QueryOption>()
+{
+ new QueryOption("startDateTime", "2020-06-12T00:00:00Z")
+};
+
+var delta = await graphClient.Me.Calendar.Events
+ .Delta()
+ .Request( queryOptions )
+ .GetAsync();
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-printjob-withtasks-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-printjob-withtasks-csharp-snippets.md /dev/null
@@ -0,0 +1,14 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var printJob = await graphClient.Print.Printers["c05f3726-0d4b-4aa1-8fe9-2eb981bb26fb"].Jobs["5182"]
+ .Request()
+ .Expand("tasks")
+ .GetAsync();
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/update-room-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/update-room-csharp-snippets.md
@@ -11,8 +11,8 @@ var place = new Room
Nickname = "Conf Room", Building = "1", Label = "100",
- Capacity = "50",
- IsWheelchairAccessible = false
+ Capacity = 50,
+ IsWheelChairAccessible = false
}; await graphClient.Places["cf100@contoso.com"]
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/create-conversation-member-with-all-visiblehistorystartdatetime-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/create-conversation-member-with-all-visiblehistorystartdatetime-java-snippets.md
@@ -8,7 +8,7 @@ IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationPro
AadUserConversationMember conversationMember = new AadUserConversationMember(); conversationMember.additionalDataManager().put("user@odata.bind", new JsonPrimitive("https://graph.microsoft.com/beta/users/8b081ef6-4792-4def-b2c9-c363a1bf41d5"));
-conversationMember.visibleHistoryStartDateTime = CalendarSerializer.deserialize("0001-01-01T00:00:00Z");
+conversationMember.visibleHistoryStartDateTime = "0001-01-01T00:00:00Z";
graphClient.chats("19:cf66807577b149cca1b7af0c32eec122@thread.v2").members() .buildRequest()
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/create-conversation-member-with-specific-visiblehistorystartdatetime-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/create-conversation-member-with-specific-visiblehistorystartdatetime-java-snippets.md
@@ -8,7 +8,7 @@ IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationPro
AadUserConversationMember conversationMember = new AadUserConversationMember(); conversationMember.additionalDataManager().put("user@odata.bind", new JsonPrimitive("https://graph.microsoft.com/beta/users/8b081ef6-4792-4def-b2c9-c363a1bf41d5"));
-conversationMember.visibleHistoryStartDateTime = CalendarSerializer.deserialize("2019-04-18T23:51:43.255Z");
+conversationMember.visibleHistoryStartDateTime = "2019-04-18T23:51:43.255Z";
graphClient.chats("19:cf66807577b149cca1b7af0c32eec122@thread.v2").members() .buildRequest()
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/create-event-recurring-daily-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/create-event-recurring-daily-java-snippets.md /dev/null
@@ -0,0 +1,54 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+LinkedList<Option> requestOptions = new LinkedList<Option>();
+requestOptions.add(new HeaderOption("Prefer", "outlook.timezone=\"Pacific Standard Time\""));
+
+Event event = new Event();
+event.subject = "Let's go for lunch";
+ItemBody body = new ItemBody();
+body.contentType = BodyType.HTML;
+body.content = "Does noon work for you?";
+event.body = body;
+DateTimeTimeZone start = new DateTimeTimeZone();
+start.dateTime = "2020-02-25T12:00:00";
+start.timeZone = "Pacific Standard Time";
+event.start = start;
+DateTimeTimeZone end = new DateTimeTimeZone();
+end.dateTime = "2020-02-25T14:00:00";
+end.timeZone = "Pacific Standard Time";
+event.end = end;
+Location location = new Location();
+location.displayName = "Harry's Bar";
+event.location = location;
+LinkedList<Attendee> attendeesList = new LinkedList<Attendee>();
+Attendee attendees = new Attendee();
+EmailAddress emailAddress = new EmailAddress();
+emailAddress.address = "AlexW@contoso.OnMicrosoft.com";
+emailAddress.name = "Alex Wilbur";
+attendees.emailAddress = emailAddress;
+attendees.type = AttendeeType.REQUIRED;
+attendeesList.add(attendees);
+event.attendees = attendeesList;
+PatternedRecurrence recurrence = new PatternedRecurrence();
+RecurrencePattern pattern = new RecurrencePattern();
+pattern.type = RecurrencePatternType.DAILY;
+pattern.interval = 1;
+recurrence.pattern = pattern;
+RecurrenceRange range = new RecurrenceRange();
+range.type = RecurrenceRangeType.NUMBERED;
+range.startDate = new DateOnly(1900,1,1);
+range.numberOfOccurrences = 2;
+recurrence.range = range;
+event.recurrence = recurrence;
+
+graphClient.me().events()
+ .buildRequest( requestOptions )
+ .post(event);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/create-item-attachment-from-event-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/create-item-attachment-from-event-java-snippets.md /dev/null
@@ -0,0 +1,31 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+ItemAttachment attachment = new ItemAttachment();
+attachment.name = "Holiday event";
+Event item = new Event();
+item.subject = "Discuss gifts for children";
+ItemBody body = new ItemBody();
+body.contentType = BodyType.HTML;
+body.content = "Let's look for funding!";
+item.body = body;
+DateTimeTimeZone start = new DateTimeTimeZone();
+start.dateTime = "2016-12-02T18:00:00";
+start.timeZone = "Pacific Standard Time";
+item.start = start;
+DateTimeTimeZone end = new DateTimeTimeZone();
+end.dateTime = "2016-12-02T19:00:00";
+end.timeZone = "Pacific Standard Time";
+item.end = end;
+attachment.item = item;
+
+graphClient.me().events("{AAMkAGI1AAAt9AHjAAA=}").attachments()
+ .buildRequest()
+ .post(attachment);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/create-item-attachment-from-message-beta-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/create-item-attachment-from-message-beta-java-snippets.md /dev/null
@@ -0,0 +1,31 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+ItemAttachment attachment = new ItemAttachment();
+attachment.name = "Holiday event";
+Event item = new Event();
+item.subject = "Discuss gifts for children";
+ItemBody body = new ItemBody();
+body.contentType = BodyType.HTML;
+body.content = "Let's look for funding!";
+item.body = body;
+DateTimeTimeZone start = new DateTimeTimeZone();
+start.dateTime = "2016-12-02T18:00:00";
+start.timeZone = "Pacific Standard Time";
+item.start = start;
+DateTimeTimeZone end = new DateTimeTimeZone();
+end.dateTime = "2016-12-02T19:00:00";
+end.timeZone = "Pacific Standard Time";
+item.end = end;
+attachment.item = item;
+
+graphClient.me().messages("AAMkpsDRVK").attachments()
+ .buildRequest()
+ .post(attachment);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/create-item-attachment-with-post-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/create-item-attachment-with-post-java-snippets.md /dev/null
@@ -0,0 +1,43 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+Post post = new Post();
+ItemBody body = new ItemBody();
+body.contentType = BodyType.TEXT;
+body.content = "I attached an event.";
+post.body = body;
+LinkedList<Attachment> attachmentsList = new LinkedList<Attachment>();
+ItemAttachment attachments = new ItemAttachment();
+attachments.name = "Holiday event";
+Event item = new Event();
+item.subject = "Discuss gifts for children";
+ItemBody body1 = new ItemBody();
+body1.contentType = BodyType.HTML;
+body1.content = "Let's look for funding!";
+item.body = body1;
+DateTimeTimeZone start = new DateTimeTimeZone();
+start.dateTime = "2019-12-02T18:00:00";
+start.timeZone = "Pacific Standard Time";
+item.start = start;
+DateTimeTimeZone end = new DateTimeTimeZone();
+end.dateTime = "2019-12-02T19:00:00";
+end.timeZone = "Pacific Standard Time";
+item.end = end;
+attachments.item = item;
+attachmentsList.add(attachments);
+AttachmentCollectionResponse attachmentCollectionResponse = new AttachmentCollectionResponse();
+attachmentCollectionResponse.value = attachmentsList;
+AttachmentCollectionPage attachmentCollectionPage = new AttachmentCollectionPage(attachmentCollectionResponse, null);
+post.attachments = attachmentCollectionPage;
+
+graphClient.groups("1848753d-185d-4c08-a4e4-6ee40521d115").threads("AAQkADJUdfolA==")
+ .reply(post)
+ .buildRequest()
+ .post();
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/create-tablecolumn-from-table-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/create-tablecolumn-from-table-java-snippets.md
@@ -7,7 +7,7 @@ description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient(); WorkbookTableColumn workbookTableColumn = new WorkbookTableColumn();
-workbookTableColumn.id = 99;
+workbookTableColumn.id = "99";
workbookTableColumn.name = "name-value"; workbookTableColumn.index = 99; workbookTableColumn.values = JsonParser.parseString("\"values-value\"");
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/create-trustframeworkkeyset-from-trustframework1-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/create-trustframeworkkeyset-from-trustframework1-java-snippets.md /dev/null
@@ -0,0 +1,16 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+TrustFrameworkKeySet trustFrameworkKeySet = new TrustFrameworkKeySet();
+trustFrameworkKeySet.id = "keyset1";
+
+graphClient.trustFramework().keySets()
+ .buildRequest()
+ .post(trustFrameworkKeySet);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/event-delta-events-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/event-delta-events-java-snippets.md /dev/null
@@ -0,0 +1,17 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+LinkedList<Option> requestOptions = new LinkedList<Option>();
+requestOptions.add(new QueryOption("startDateTime", "2020-06-12T00:00:00Z"));
+
+IEventDeltaCollectionPage delta = graphClient.me().calendar().events()
+ .delta()
+ .buildRequest( requestOptions )
+ .get();
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-printjob-withtasks-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-printjob-withtasks-java-snippets.md /dev/null
@@ -0,0 +1,14 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+PrintJob printJob = graphClient.print().printers("c05f3726-0d4b-4aa1-8fe9-2eb981bb26fb").jobs("5182")
+ .buildRequest()
+ .expand("tasks")
+ .get();
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/update-room-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/update-room-java-snippets.md
@@ -10,8 +10,8 @@ Room place = new Room();
place.nickname = "Conf Room"; place.building = "1"; place.label = "100";
-place.capacity = "50";
-place.isWheelchairAccessible = false;
+place.capacity = 50;
+place.isWheelChairAccessible = false;
graphClient.places("cf100@contoso.com") .buildRequest()
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/create-event-recurring-daily-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/create-event-recurring-daily-javascript-snippets.md /dev/null
@@ -0,0 +1,56 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```javascript
+
+const options = {
+ authProvider,
+};
+
+const client = Client.init(options);
+
+const event = {
+ subject: "Let's go for lunch",
+ body: {
+ contentType: "HTML",
+ content: "Does noon work for you?"
+ },
+ start: {
+ dateTime: "2020-02-25T12:00:00",
+ timeZone: "Pacific Standard Time"
+ },
+ end: {
+ dateTime: "2020-02-25T14:00:00",
+ timeZone: "Pacific Standard Time"
+ },
+ location:{
+ displayName:"Harry's Bar"
+ },
+ attendees: [
+ {
+ emailAddress: {
+ address:"AlexW@contoso.OnMicrosoft.com",
+ name: "Alex Wilbur"
+ },
+ type: "required"
+ }
+ ],
+ recurrence: {
+ pattern: {
+ type: "daily",
+ interval: 1
+ },
+ range: {
+ type: "numbered",
+ startDate: "2020-02-25",
+ numberOfOccurrences: 2
+ }
+ }
+};
+
+let res = await client.api('/me/events')
+ .version('beta')
+ .post(event);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/create-item-attachment-from-event-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/create-item-attachment-from-event-javascript-snippets.md /dev/null
@@ -0,0 +1,38 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```javascript
+
+const options = {
+ authProvider,
+};
+
+const client = Client.init(options);
+
+const attachment = {
+ @odata.type: "#microsoft.graph.itemAttachment",
+ name: "Holiday event",
+ item: {
+ @odata.type: "microsoft.graph.event",
+ subject: "Discuss gifts for children",
+ body: {
+ contentType: "HTML",
+ content: "Let's look for funding!"
+ },
+ start: {
+ dateTime: "2016-12-02T18:00:00",
+ timeZone: "Pacific Standard Time"
+ },
+ end: {
+ dateTime: "2016-12-02T19:00:00",
+ timeZone: "Pacific Standard Time"
+ }
+ }
+};
+
+let res = await client.api('/me/events/{AAMkAGI1AAAt9AHjAAA=}/attachments')
+ .version('beta')
+ .post(attachment);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/create-item-attachment-from-message-beta-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/create-item-attachment-from-message-beta-javascript-snippets.md /dev/null
@@ -0,0 +1,38 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```javascript
+
+const options = {
+ authProvider,
+};
+
+const client = Client.init(options);
+
+const attachment = {
+ @odata.type: "#microsoft.graph.itemAttachment",
+ name: "Holiday event",
+ item: {
+ @odata.type: "microsoft.graph.event",
+ subject: "Discuss gifts for children",
+ body: {
+ contentType: "HTML",
+ content: "Let's look for funding!"
+ },
+ start: {
+ dateTime: "2016-12-02T18:00:00",
+ timeZone: "Pacific Standard Time"
+ },
+ end: {
+ dateTime: "2016-12-02T19:00:00",
+ timeZone: "Pacific Standard Time"
+ }
+ }
+};
+
+let res = await client.api('/me/messages/AAMkpsDRVK/attachments')
+ .version('beta')
+ .post(attachment);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/create-item-attachment-with-post-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/create-item-attachment-with-post-javascript-snippets.md /dev/null
@@ -0,0 +1,46 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```javascript
+
+const options = {
+ authProvider,
+};
+
+const client = Client.init(options);
+
+const reply = {
+ post: {
+ body: {
+ contentType: "text",
+ content: "I attached an event."
+ },
+ attachments: [{
+ @odata.type: "#microsoft.graph.itemAttachment",
+ name: "Holiday event",
+ item: {
+ @odata.type: "microsoft.graph.event",
+ subject: "Discuss gifts for children",
+ body: {
+ contentType: "HTML",
+ content: "Let's look for funding!"
+ },
+ start: {
+ dateTime: "2019-12-02T18:00:00",
+ timeZone: "Pacific Standard Time"
+ },
+ end: {
+ dateTime: "2019-12-02T19:00:00",
+ timeZone: "Pacific Standard Time"
+ }
+ }
+ } ]
+ }
+};
+
+let res = await client.api('/groups/1848753d-185d-4c08-a4e4-6ee40521d115/threads/AAQkADJUdfolA==/reply')
+ .version('beta')
+ .post(reply);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/create-tablecolumn-from-table-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/create-tablecolumn-from-table-javascript-snippets.md
@@ -11,7 +11,7 @@ const options = {
const client = Client.init(options); const workbookTableColumn = {
- id: 99,
+ id: "99",
name: "name-value", index: 99, values: "values-value"
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/create-trustframeworkkeyset-from-trustframework1-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/create-trustframeworkkeyset-from-trustframework1-javascript-snippets.md /dev/null
@@ -0,0 +1,21 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```javascript
+
+const options = {
+ authProvider,
+};
+
+const client = Client.init(options);
+
+const trustFrameworkKeySet = {
+ id: "keyset1"
+};
+
+let res = await client.api('/trustFramework/keySets')
+ .version('beta')
+ .post(trustFrameworkKeySet);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/event-delta-events-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/event-delta-events-javascript-snippets.md /dev/null
@@ -0,0 +1,17 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```javascript
+
+const options = {
+ authProvider,
+};
+
+const client = Client.init(options);
+
+let res = await client.api('/me/calendar/events/delta?startDateTime=2020-06-12T00:00:00Z')
+ .version('beta')
+ .get();
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-printjob-withtasks-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-printjob-withtasks-javascript-snippets.md /dev/null
@@ -0,0 +1,18 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```javascript
+
+const options = {
+ authProvider,
+};
+
+const client = Client.init(options);
+
+let res = await client.api('/print/printers/c05f3726-0d4b-4aa1-8fe9-2eb981bb26fb/jobs/5182')
+ .version('beta')
+ .expand('tasks')
+ .get();
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/update-authzpolicy-guestuserlevel-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/update-authzpolicy-guestuserlevel-javascript-snippets.md /dev/null
@@ -0,0 +1,21 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```javascript
+
+const options = {
+ authProvider,
+};
+
+const client = Client.init(options);
+
+const authorizationPolicy = {
+ guestUserRole:"2af84b1e-32c8-42b7-82bc-daa82404023b"
+};
+
+let res = await client.api('/policies/authorizationPolicy/authorizationPolicy')
+ .version('beta')
+ .update(authorizationPolicy);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/update-room-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/update-room-javascript-snippets.md
@@ -15,8 +15,8 @@ const place = {
nickname: "Conf Room", building: "1", label: "100",
- capacity: "50",
- isWheelchairAccessible: false
+ capacity: 50,
+ isWheelChairAccessible: false
}; let res = await client.api('/places/cf100@contoso.com')
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/create-event-recurring-daily-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/create-event-recurring-daily-objc-snippets.md /dev/null
@@ -0,0 +1,66 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```objc
+
+MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
+
+NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/me/events"]]];
+[urlRequest setHTTPMethod:@"POST"];
+[urlRequest setValue:@"outlook.timezone=\"Pacific Standard Time\"" forHTTPHeaderField:@"Prefer"];
+[urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
+
+MSGraphEvent *event = [[MSGraphEvent alloc] init];
+[event setSubject:@"Let's go for lunch"];
+MSGraphItemBody *body = [[MSGraphItemBody alloc] init];
+[body setContentType: [MSGraphBodyType html]];
+[body setContent:@"Does noon work for you?"];
+[event setBody:body];
+MSGraphDateTimeTimeZone *start = [[MSGraphDateTimeTimeZone alloc] init];
+[start setDateTime: "2020-02-25T12:00:00"];
+[start setTimeZone:@"Pacific Standard Time"];
+[event setStart:start];
+MSGraphDateTimeTimeZone *end = [[MSGraphDateTimeTimeZone alloc] init];
+[end setDateTime: "2020-02-25T14:00:00"];
+[end setTimeZone:@"Pacific Standard Time"];
+[event setEnd:end];
+MSGraphLocation *location = [[MSGraphLocation alloc] init];
+[location setDisplayName:@"Harry's Bar"];
+[event setLocation:location];
+NSMutableArray *attendeesList = [[NSMutableArray alloc] init];
+MSGraphAttendee *attendees = [[MSGraphAttendee alloc] init];
+MSGraphEmailAddress *emailAddress = [[MSGraphEmailAddress alloc] init];
+[emailAddress setAddress:@"AlexW@contoso.OnMicrosoft.com"];
+[emailAddress setName:@"Alex Wilbur"];
+[attendees setEmailAddress:emailAddress];
+[attendees setType: [MSGraphAttendeeType required]];
+[attendeesList addObject: attendees];
+[event setAttendees:attendeesList];
+MSGraphPatternedRecurrence *recurrence = [[MSGraphPatternedRecurrence alloc] init];
+MSGraphRecurrencePattern *pattern = [[MSGraphRecurrencePattern alloc] init];
+[pattern setType: [MSGraphRecurrencePatternType daily]];
+[pattern setInterval: 1];
+[recurrence setPattern:pattern];
+MSGraphRecurrenceRange *range = [[MSGraphRecurrenceRange alloc] init];
+[range setType: [MSGraphRecurrenceRangeType numbered]];
+[range setStartDate:@"2020-02-25"];
+[range setNumberOfOccurrences: 2];
+[recurrence setRange:range];
+[event setRecurrence:recurrence];
+
+NSError *error;
+NSData *eventData = [event getSerializedDataWithError:&error];
+[urlRequest setHTTPBody:eventData];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ //Request Completed
+
+}];
+
+[meDataTask execute];
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/create-item-attachment-from-event-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/create-item-attachment-from-event-objc-snippets.md /dev/null
@@ -0,0 +1,45 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```objc
+
+MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
+
+NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/me/events/{AAMkAGI1AAAt9AHjAAA=}/attachments"]]];
+[urlRequest setHTTPMethod:@"POST"];
+[urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
+
+MSGraphAttachment *attachment = [[MSGraphAttachment alloc] init];
+[attachment setName:@"Holiday event"];
+MSGraphOutlookItem *item = [[MSGraphOutlookItem alloc] init];
+[item setSubject:@"Discuss gifts for children"];
+MSGraphItemBody *body = [[MSGraphItemBody alloc] init];
+[body setContentType: [MSGraphBodyType html]];
+[body setContent:@"Let's look for funding!"];
+[item setBody:body];
+MSGraphDateTimeTimeZone *start = [[MSGraphDateTimeTimeZone alloc] init];
+[start setDateTime: "2016-12-02T18:00:00"];
+[start setTimeZone:@"Pacific Standard Time"];
+[item setStart:start];
+MSGraphDateTimeTimeZone *end = [[MSGraphDateTimeTimeZone alloc] init];
+[end setDateTime: "2016-12-02T19:00:00"];
+[end setTimeZone:@"Pacific Standard Time"];
+[item setEnd:end];
+[attachment setItem:item];
+
+NSError *error;
+NSData *attachmentData = [attachment getSerializedDataWithError:&error];
+[urlRequest setHTTPBody:attachmentData];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ //Request Completed
+
+}];
+
+[meDataTask execute];
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/create-item-attachment-from-message-beta-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/create-item-attachment-from-message-beta-objc-snippets.md /dev/null
@@ -0,0 +1,45 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```objc
+
+MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
+
+NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/me/messages/AAMkpsDRVK/attachments"]]];
+[urlRequest setHTTPMethod:@"POST"];
+[urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
+
+MSGraphAttachment *attachment = [[MSGraphAttachment alloc] init];
+[attachment setName:@"Holiday event"];
+MSGraphOutlookItem *item = [[MSGraphOutlookItem alloc] init];
+[item setSubject:@"Discuss gifts for children"];
+MSGraphItemBody *body = [[MSGraphItemBody alloc] init];
+[body setContentType: [MSGraphBodyType html]];
+[body setContent:@"Let's look for funding!"];
+[item setBody:body];
+MSGraphDateTimeTimeZone *start = [[MSGraphDateTimeTimeZone alloc] init];
+[start setDateTime: "2016-12-02T18:00:00"];
+[start setTimeZone:@"Pacific Standard Time"];
+[item setStart:start];
+MSGraphDateTimeTimeZone *end = [[MSGraphDateTimeTimeZone alloc] init];
+[end setDateTime: "2016-12-02T19:00:00"];
+[end setTimeZone:@"Pacific Standard Time"];
+[item setEnd:end];
+[attachment setItem:item];
+
+NSError *error;
+NSData *attachmentData = [attachment getSerializedDataWithError:&error];
+[urlRequest setHTTPBody:attachmentData];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ //Request Completed
+
+}];
+
+[meDataTask execute];
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/create-item-attachment-with-post-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/create-item-attachment-with-post-objc-snippets.md /dev/null
@@ -0,0 +1,55 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```objc
+
+MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
+
+NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/groups/1848753d-185d-4c08-a4e4-6ee40521d115/threads/AAQkADJUdfolA==/reply"]]];
+[urlRequest setHTTPMethod:@"POST"];
+[urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
+
+NSMutableDictionary *payloadDictionary = [[NSMutableDictionary alloc] init];
+
+MSGraphPost *post = [[MSGraphPost alloc] init];
+MSGraphItemBody *body = [[MSGraphItemBody alloc] init];
+[body setContentType: [MSGraphBodyType text]];
+[body setContent:@"I attached an event."];
+[post setBody:body];
+NSMutableArray *attachmentsList = [[NSMutableArray alloc] init];
+MSGraphAttachment *attachments = [[MSGraphAttachment alloc] init];
+[attachments setName:@"Holiday event"];
+MSGraphOutlookItem *item = [[MSGraphOutlookItem alloc] init];
+[item setSubject:@"Discuss gifts for children"];
+MSGraphItemBody *body = [[MSGraphItemBody alloc] init];
+[body setContentType: [MSGraphBodyType html]];
+[body setContent:@"Let's look for funding!"];
+[item setBody:body];
+MSGraphDateTimeTimeZone *start = [[MSGraphDateTimeTimeZone alloc] init];
+[start setDateTime: "2019-12-02T18:00:00"];
+[start setTimeZone:@"Pacific Standard Time"];
+[item setStart:start];
+MSGraphDateTimeTimeZone *end = [[MSGraphDateTimeTimeZone alloc] init];
+[end setDateTime: "2019-12-02T19:00:00"];
+[end setTimeZone:@"Pacific Standard Time"];
+[item setEnd:end];
+[attachments setItem:item];
+[attachmentsList addObject: attachments];
+[post setAttachments:attachmentsList];
+payloadDictionary[@"post"] = post;
+
+NSData *data = [NSJSONSerialization dataWithJSONObject:payloadDictionary options:kNilOptions error:&error];
+[urlRequest setHTTPBody:data];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ //Request Completed
+
+}];
+
+[meDataTask execute];
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/create-tablecolumn-from-table-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/create-tablecolumn-from-table-objc-snippets.md
@@ -12,7 +12,7 @@ NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URL
[urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"]; MSGraphWorkbookTableColumn *workbookTableColumn = [[MSGraphWorkbookTableColumn alloc] init];
-[workbookTableColumn setId: 99];
+[workbookTableColumn setId:@"99"];
[workbookTableColumn setName:@"name-value"]; [workbookTableColumn setIndex: 99]; [workbookTableColumn setValues:@"values-value"];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/create-trustframeworkkeyset-from-trustframework1-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/create-trustframeworkkeyset-from-trustframework1-objc-snippets.md /dev/null
@@ -0,0 +1,30 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```objc
+
+MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
+
+NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/trustFramework/keySets"]]];
+[urlRequest setHTTPMethod:@"POST"];
+[urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
+
+MSGraphTrustFrameworkKeySet *trustFrameworkKeySet = [[MSGraphTrustFrameworkKeySet alloc] init];
+[trustFrameworkKeySet setId:@"keyset1"];
+
+NSError *error;
+NSData *trustFrameworkKeySetData = [trustFrameworkKeySet getSerializedDataWithError:&error];
+[urlRequest setHTTPBody:trustFrameworkKeySetData];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ //Request Completed
+
+}];
+
+[meDataTask execute];
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-printjob-withtasks-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-printjob-withtasks-objc-snippets.md /dev/null
@@ -0,0 +1,22 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```objc
+
+MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
+
+NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/print/printers/c05f3726-0d4b-4aa1-8fe9-2eb981bb26fb/jobs/5182?$expand=tasks"]]];
+[urlRequest setHTTPMethod:@"GET"];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ MSGraphPrintJob *printJob = [[MSGraphPrintJob alloc] initWithData:data error:&nserror];
+
+}];
+
+[meDataTask execute];
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/update-authzpolicy-guestuserlevel-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/update-authzpolicy-guestuserlevel-objc-snippets.md /dev/null
@@ -0,0 +1,29 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```objc
+
+MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
+
+NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/policies/authorizationPolicy/authorizationPolicy"]]];
+[urlRequest setHTTPMethod:@"PATCH"];
+
+MSGraphAuthorizationPolicy *authorizationPolicy = [[MSGraphAuthorizationPolicy alloc] init];
+[authorizationPolicy setGuestUserRole:@"2af84b1e-32c8-42b7-82bc-daa82404023b"];
+
+NSError *error;
+NSData *authorizationPolicyData = [authorizationPolicy getSerializedDataWithError:&error];
+[urlRequest setHTTPBody:authorizationPolicyData];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ //Request Completed
+
+}];
+
+[meDataTask execute];
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/update-room-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/update-room-objc-snippets.md
@@ -15,8 +15,8 @@ MSGraphPlace *place = [[MSGraphPlace alloc] init];
[place setNickname:@"Conf Room"]; [place setBuilding:@"1"]; [place setLabel:@"100"];
-[place setCapacity:@"50"];
-[place setIsWheelchairAccessible: false];
+[place setCapacity: 50];
+[place setIsWheelChairAccessible: false];
NSError *error; NSData *placeData = [place getSerializedDataWithError:&error];
v1.0 https://docs.microsoft.com/en-us/graph/resources/authenticationmethods-usage-insights-overview https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/authenticationmethods-usage-insights-overview.md
@@ -13,13 +13,34 @@ Namespace: microsoft.graph
[!INCLUDE [beta-disclaimer](../../includes/beta-disclaimer.md)]
-The authentication methods usage reports help you understand how users in your organization use Azure Active Directory (Azure AD) capabilities, such as self-service password rest and multi-factor authentication (MFA).
+The authentication methods usage reports help you understand how users in your organization use Azure Active Directory (Azure AD) features such as Multi-Factor Authentication (MFA), Self-Service Password Reset (SSPR), and Passwordless authentication.
These reports provide information such as: -- Which authentication methods are more successful for your organization. -- What types of errors end users are running into.-- What campaign you need to run to help your end users adopt the use of self-service password rest and MFA.
+- How many users are registered for each authentication method
+- How many users are registered for features such as Multi-Factor Authentication (MFA), Self-Service Password Reset (SSPR), and Passwordless authentication.
+- The failure rates of each authentication method
+
+## Permissions
+The following permissions are required to call this API. To learn more, including how to choose permissions, see [Permissions](/graph/permissions-reference).
+
+|Permission type|Permissions (from least to most privileged)|
+|:|:|
+|Delegated (work or school account)|Reports.Read.All|
+|Delegated (personal Microsoft account)|Not supported.|
+|Application|Not supported.|
+
+In order to access the API, [one of the following roles](/azure/active-directory/users-groups-roles/directory-assign-admin-roles#available-roles) is required:
+
+* Reports reader
+* Security reader
+* Security admin
+* Global reader
+* Global admin
+
+## Licenses
+
+An Azure AD Premium P1 or P2 license is required to access usage and insights. Azure AD Multi-Factor Authentication and self-service password reset (SSPR) licensing information can be found on the [Azure Active Directory pricing site](https://azure.microsoft.com/pricing/details/active-directory/).
## Common requests
@@ -27,14 +48,12 @@ The following table lists some common requests that you can use with this API.
| Operation | Try in Graph Explorer | Description | | | | -- |
-| [getCredentialUserRegistrationcount](/graph/api/resources/credentialuserregistrationcount?view=graph-rest-beta) | [GET /credentialuserregistrationcount](https://developer.microsoft.com/graph/graph-explorer?request=reports/getCredentialUserRegistrationcount()&version=beta) | Get the number of users registered for self-service password reset and MFA. |
-| [getCredentialUsageSummary](/graph/api/resources/credentialusagesummary?view=graph-rest-beta) | [GET /credentialusagesummary](https://developer.microsoft.com/graph/graph-explorer?request=reports/getCredentialUsageSummary&version=beta) | Get the number of users using self-service password reset. |
-| [credentialUserRegistrationDetails](/graph/api/resources/credentialuserregistrationdetails?view=graph-rest-beta) | [GET /credentialuserregistrationdetails](https://developer.microsoft.com/graph/graph-explorer?request=reports/credentialUserRegistrationDetails&version=beta) | Get the user details for self-service password reset and MFA registration activities. |
-| [userCredentialUsageDetails](/graph/api/resources/usercredentialusagedetails?view=graph-rest-beta) | [GET /usercredentialusagedetails](https://developer.microsoft.com/graph/graph-explorer?request=reports/userCredentialUsageDetails&version=beta) | Get user details for all self-service password reset activities. |
-
-## Licenses
-
-Usage reports are available for licensed features that take advantage of self-service password reset and MFA in your tenant.
+| [getCredentialUserRegistrationcount](/graph/api/resources/credentialuserregistrationcount?view=graph-rest-beta&preserve-view=true) | [GET /credentialuserregistrationcount](https://developer.microsoft.com/graph/graph-explorer?request=reports/getCredentialUserRegistrationcount()&version=beta) | Get the number of users registered for self-service password reset and MFA. |
+| [getCredentialUsageSummary](/graph/api/resources/credentialusagesummary?view=graph-rest-beta&preserve-view=true) | [GET /credentialusagesummary](https://developer.microsoft.com/graph/graph-explorer?request=reports/getCredentialUsageSummary&version=beta) | Get the number of users using self-service password reset. |
+| [credentialUserRegistrationDetails](/graph/api/resources/credentialuserregistrationdetails?view=graph-rest-beta&preserve-view=true) | [GET /credentialuserregistrationdetails](https://developer.microsoft.com/graph/graph-explorer?request=reports/credentialUserRegistrationDetails&version=beta) | Get the user details for self-service password reset and MFA registration activities. |
+| [userCredentialUsageDetails](/graph/api/resources/usercredentialusagedetails?view=graph-rest-beta&preserve-view=true) | [GET /usercredentialusagedetails](https://developer.microsoft.com/graph/graph-explorer?request=reports/userCredentialUsageDetails&version=beta) | Get user details for all self-service password reset activities. |
+| [usersRegisteredByFeature](/graph/api/resources/userregistrationfeaturesummary?view=graph-rest-beta&preserve-view=true) | [GET /authenticationMethods/usersRegisteredByFeature](https://developer.microsoft.com/graph/graph-explorer?request=reports/authenticationMethods/usersRegisteredByFeature(includedUserTypes='all',includedUserRoles='all')&version=beta) | Get the number of users capable of multi-factor authentication, self-service password reset and passwordless authentication. |
+| [usersRegisteredByMethod](/graph/api/resources/userregistrationmethodsummary?view=graph-rest-beta&preserve-view=true) | [GET /authenticationMethods/usersRegisteredByMethod](https://developer.microsoft.com/graph/graph-explorer?request=reports/authenticationMethods/usersRegisteredByMethod(includedUserTypes='all',includedUserRoles='all')&version=beta) | Get the number of users registered for each authentication method. |
## Next steps
v1.0 https://docs.microsoft.com/en-us/graph/resources/enums https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/enums.md
@@ -11,6 +11,345 @@
Namespace: microsoft.graph
+### appliedConditionalAccessPolicyResult values
+++
+|Member|
+|:|
+|success|
+|failure|
+|notApplied|
+|notEnabled|
+|unknown|
+|unknownFutureValue|
+|reportOnlySuccess|
+|reportOnlyFailure|
+|reportOnlyNotApplied|
+|reportOnlyInterrupted|
+
+### authenticationMethodFeature values
+++
+|Member|
+|:|
+|ssprRegistered|
+|ssprEnabled|
+|ssprCapable|
+|passwordlessCapable|
+|mfaCapable|
+
+### authMethodsType values
+++
+|Member|
+|:|
+|email|
+|mobileSMS|
+|mobilePhone|
+|officePhone|
+|securityQuestion|
+|appNotification|
+|appNotificationCode|
+|appNotificationAndCode|
+|appPassword|
+|fido|
+|alternateMobilePhone|
+|mobilePhoneAndSMS|
+|unknownFutureValue|
+
+### azureADLicenseType values
+++
+|Member|
+|:|
+|none|
+|free|
+|basic|
+|premiumP1|
+|premiumP2|
+|unknownFutureValue|
+
+### conditionalAccessConditions values
+++
+|Member|
+|:|
+|none|
+|application|
+|users|
+|devicePlatform|
+|location|
+|clientType|
+|signInRisk|
+|userRisk|
+|time|
+|deviceState|
+|client|
+
+### conditionalAccessStatus values
+++
+|Member|
+|:|
+|success|
+|failure|
+|notApplied|
+|unknownFutureValue|
+
+### featureType values
+++
+|Member|
+|:|
+|registration|
+|reset|
+|unknownFutureValue|
+
+### groupType values
+++
+|Member|
+|:|
+|unifiedGroups|
+|azureAD|
+|unknownFutureValue|
+
+### includedUserRoles values
+++
+|Member|
+|:|
+|all|
+|privilegedAdmin|
+|admin|
+|user|
+|unknownFutureValue|
+
+### includedUserTypes values
+++
+|Member|
+|:|
+|all|
+|member|
+|guest|
+|unknownFutureValue|
+
+### initiatorType values
+++
+|Member|
+|:|
+|user|
+|app|
+|system|
+|unknownFutureValue|
+
+### migrationStatus values
+++
+|Member|
+|:|
+|ready|
+|needsReview|
+|additionalStepsRequired|
+|unknownFutureValue|
+
+### networkType values
+++
+|Member|
+|:|
+|intranet|
+|extranet|
+|namedNetwork|
+|trusted|
+|unknownFutureValue|
+
+### operationResult values
+++
+|Member|
+|:|
+|success|
+|failure|
+|timeout|
+|unknownFutureValue|
+
+### provisioningResult values
+++
+|Member|
+|:|
+|success|
+|failure|
+|skipped|
+|unknownFutureValue|
+
+### provisioningStepType values
+++
+|Member|
+|:|
+|import|
+|scoping|
+|matching|
+|processing|
+|referenceResolution|
+|export|
+|unknownFutureValue|
+
+### registrationAuthMethod values
+++
+|Member|
+|:|
+|email|
+|mobilePhone|
+|officePhone|
+|securityQuestion|
+|appNotification|
+|appCode|
+|alternateMobilePhone|
+|fido|
+|appPassword|
+|unknownFutureValue|
+
+### registrationStatusType values
+++
+|Member|
+|:|
+|registered|
+|enabled|
+|capable|
+|mfaRegistered|
+|unknownFutureValue|
+
+### requirementProvider values
+++
+|Member|
+|:|
+|MFA|
+|CA|
+|unknownFutureValue|
+
+### riskDetail values
+++
+|Member|
+|:|
+|none|
+|adminGeneratedTemporaryPassword|
+|userPerformedSecuredPasswordChange|
+|userPerformedSecuredPasswordReset|
+|adminConfirmedSigninSafe|
+|aiConfirmedSigninSafe|
+|userPassedMFADrivenByRiskBasedPolicy|
+|adminDismissedAllRiskForUser|
+|adminConfirmedSigninCompromised|
+|hidden|
+|adminConfirmedUserCompromised|
+|unknownFutureValue|
+
+### riskEventType values
+++
+|Member|
+|:|
+|unlikelyTravel|
+|anonymizedIPAddress|
+|maliciousIPAddress|
+|unfamiliarFeatures|
+|malwareInfectedIPAddress|
+|suspiciousIPAddress|
+|leakedCredentials|
+|investigationsThreatIntelligence|
+|generic|
+|adminConfirmedUserCompromised|
+|mcasImpossibleTravel|
+|mcasSuspiciousInboxManipulationRules|
+|investigationsThreatIntelligenceSigninLinked|
+|maliciousIPAddressValidCredentialsBlockedIP|
+|unknownFutureValue|
+
+### riskLevel values
+++
+|Member|
+|:|
+|low|
+|medium|
+|high|
+|hidden|
+|none|
+|unknownFutureValue|
+
+### riskState values
+++
+|Member|
+|:|
+|none|
+|confirmedSafe|
+|remediated|
+|dismissed|
+|atRisk|
+|confirmedCompromised|
+|unknownFutureValue|
+
+### tokenIssuerType values
+++
+|Member|
+|:|
+|AzureAD|
+|ADFederationServices|
+|UnknownFutureValue|
+
+### usageAuthMethod values
+++
+|Member|
+|:|
+|email|
+|mobileSMS|
+|mobileCall|
+|officePhone|
+|securityQuestion|
+|appNotification|
+|appCode|
+|alternateMobileCall|
+|fido|
+|appPassword|
+|unknownFutureValue|
+ ### authenticationMethodKeyStrength values |Member|
v1.0 https://docs.microsoft.com/en-us/graph/resources/room https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/room.md
@@ -32,7 +32,7 @@ In Exchange Online, each room is associated with a room mailbox. Derived from [p
| audioDeviceName | String | Specifies the name of the audio device in the room. | | bookingType | [bookingType](#bookingtype-values) | Type of room. Possible values are `standard`, and `reserved`. | | building | String | Specifies the building name or building number that the room is in. |
-| capacity | String | Specifies the capacity of the room. |
+| capacity | Int32 | Specifies the capacity of the room. |
| displayName | String | The name associated with the room. | | displayDeviceName | String | Specifies the name of the display device in the room. | | emailAddress | String | Email address of the room. |
@@ -40,7 +40,7 @@ In Exchange Online, each room is associated with a room mailbox. Derived from [p
| floorNumber | Int32 | Specifies the floor number that the room is on. | | geoCoordinates | [outlookGeoCoordinates](outlookgeocoordinates.md) | Specifies the room location in latitude, longitude and optionally, altitude coordinates. | | id | String | Unique identifier for the room. Read-only. |
-| isWheelchairAccessible | Boolean | Specifies whether the room is wheelchair accessible. |
+| isWheelChairAccessible | Boolean | Specifies whether the room is wheelchair accessible. |
| label | String | Specifies a descriptive label for the room, for example, a number or name. | | nickname | String | Specifies a nickname for the room, for example, "conf room". | | phone | String | The phone number of the room. |
@@ -77,7 +77,7 @@ The following is a JSON representation of the resource.
"audioDeviceName": "String", "bookingType": "String", "building": "String",
- "capacity": "String",
+ "capacity": 1024,
"displayName": "String", "displayDeviceName": "String", "emailAddress": "String",
@@ -85,7 +85,7 @@ The following is a JSON representation of the resource.
"floorNumber": 1024, "geoCoordinates": {"@odata.type": "microsoft.graph.outlookGeoCoordinates"}, "id": "String (identifier)",
- "isWheelchairAccessible": true,
+ "isWheelChairAccessible": true,
"label": "String", "nickname": "String", "phone": "String",
v1.0 https://docs.microsoft.com/en-us/graph/resources/serviceprincipal https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/serviceprincipal.md
@@ -102,7 +102,7 @@ This resource supports using [delta query](/graph/delta-query-overview) to track
|notificationEmailAddresses|String collection|Specifies the list of email addresses where Azure AD sends a notification when the active certificate is near the expiration date. This is only for the certificates used to sign the SAML token issued for Azure AD Gallery applications.| |passwordCredentials|[passwordCredential](passwordcredential.md) collection|The collection of password credentials associated with the service principal. Not nullable. | |passwordSingleSignOnSettings|[passwordSingleSignOnSettings](passwordsinglesignonsettings.md)|The collection for settings related to password single sign-on. Use `$select=passwordSingleSignOnSettings` to read the property. Read-only for [applicationTemplates](applicationTemplate.md) except for custom applicationTemplates. |
-|preferredSingleSignOnMode|string|Specifies the single sign-on mode configured for this application. Azure AD uses the preferred single sign-on mode to launch the application from Microsoft 365 or the Azure AD My Apps. The supported values are password, saml, external, and oidc.|
+|preferredSingleSignOnMode|string|Specifies the single sign-on mode configured for this application. Azure AD uses the preferred single sign-on mode to launch the application from Microsoft 365 or the Azure AD My Apps. The supported values are `password`, `saml`, `notSupported`, and `oidc`.|
|preferredTokenSigningKeyEndDateTime|DateTimeOffset|Specifies the expiration date of the keyCredential used for token signing, marked by **preferredTokenSigningKeyThumbprint**.| |preferredTokenSigningKeyThumbprint|String|Reserved for internal use only. Do not write or otherwise rely on this property. May be removed in future versions. | |publishedPermissionScopes|[permissionScope](permissionscope.md) collection|The delegated permissions exposed by the application. For more information see the **oauth2PermissionScopes** property on the [application](application.md) entity's **api** property. Not nullable.|
v1.0 https://docs.microsoft.com/en-us/graph/resources/userregistrationfeaturecount https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/userregistrationfeaturecount.md /dev/null
@@ -0,0 +1,40 @@
+
+ Title: "userRegistrationFeatureCount resource type"
+description: "Number of users registered or capable for Multi-Factor Authentication, Self-Service Password Reset and Passwordless Authentication."
+
+localization_priority: Normal
+ms.prod: "reports"
+doc_type: resourcePageType
++
+# userRegistrationFeatureCount resource type
+
+Namespace: microsoft.graph
+
+[!INCLUDE [beta-disclaimer](../../includes/beta-disclaimer.md)]
+
+Represents the number of users registered or capable for Multi-Factor Authentication, Self-Service Password Reset and Passwordless Authentication.
+
+## Properties
+|Property|Type|Description|
+|:|:|:|
+|feature|authenticationMethodFeature|Number of users registered or capable for Multi-Factor Authentication, Self-Service Password Reset and Passwordless Authentication. Possible values are: `ssprRegistered`, `ssprEnabled`, `ssprCapable`, `passwordlessCapable`, `mfaCapable`.|
+|userCount|Int64|Number of users.|
+
+## Relationships
+None.
+
+## JSON representation
+The following is a JSON representation of the resource.
+<!-- {
+ "blockType": "resource",
+ "@odata.type": "microsoft.graph.userRegistrationFeatureCount"
+}
+-->
+``` json
+{
+ "@odata.type": "#microsoft.graph.userRegistrationFeatureCount",
+ "feature": "String",
+ "userCount": "Integer"
+}
+```
v1.0 https://docs.microsoft.com/en-us/graph/resources/userregistrationfeaturesummary https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/userregistrationfeaturesummary.md /dev/null
@@ -0,0 +1,68 @@
+
+ Title: "userRegistrationFeatureSummary resource type"
+description: "Summary of users capable of Multi-Factor Authentication, Self-Service Password Reset, and Passwordless authentication."
+
+localization_priority: Normal
+ms.prod: "reports"
+doc_type: resourcePageType
++
+# userRegistrationFeatureSummary resource type
+
+Namespace: microsoft.graph
+
+[!INCLUDE [beta-disclaimer](../../includes/beta-disclaimer.md)]
+
+Represents the current state of how many users in your organization are capable of multi-factor authentication, self-service password reset and passwordless authentication.
+
+## Methods
+
+| Method | Return Type | Description |
+|:-|:|:|
+| [usersRegisteredByFeature](../api/authenticationmethodsroot-usersregisteredbyfeature.md) | userRegistrationFeatureSummary | Get the number of users capable of Multi-Factor Authentication, Self-Service Password Reset, and Passwordless authentication. |
+
+## Properties
+|Property|Type|Description|
+|:|:|:|
+|totalUserCount|Int64|Total number of users accounts, excluding those that are blocked|
+|userRegistrationFeatureCounts|[userRegistrationFeatureCount](../resources/userregistrationfeaturecount.md) collection|Number of users registered or capable for Multi-Factor Authentication, Self-Service Password Reset and Passwordless Authentication.|
+|userRoles|includedUserRoles|User role type. Possible values are: `all`, `privilegedAdmin`, `admin`, `user`.|
+|userTypes|includedUserTypes|User type. Possible values are: `all`, `member`, `guest`.|
+
+The value `privilegedAdmin` consists of the following privileged admin roles:
+
+* Global admin
+* Security admin
+* Conditional Access admin
+* Exchange admin
+* SharePoint admin
+* Helpdesk admin
+* Billing admin
+* User admin
+* Authentication admin
+
+The value `admin` includes all Azure AD admin roles.
+
+## Relationships
+None.
+
+## JSON representation
+The following is a JSON representation of the resource.
+<!-- {
+ "blockType": "resource",
+ "@odata.type": "microsoft.graph.userRegistrationFeatureSummary"
+}
+-->
+``` json
+{
+ "@odata.type": "#microsoft.graph.userRegistrationFeatureSummary",
+ "totalUserCount": "Integer",
+ "userTypes": "String",
+ "userRoles": "String",
+ "userRegistrationFeatureCounts": [
+ {
+ "@odata.type": "microsoft.graph.userRegistrationFeatureCount"
+ }
+ ]
+}
+```
v1.0 https://docs.microsoft.com/en-us/graph/resources/userregistrationmethodcount https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/userregistrationmethodcount.md /dev/null
@@ -0,0 +1,40 @@
+
+ Title: "userRegistrationMethodCount resource type"
+description: "Number of users registered for an authentication method."
+
+localization_priority: Normal
+ms.prod: "reports"
+doc_type: resourcePageType
++
+# userRegistrationMethodCount resource type
+
+Namespace: microsoft.graph
+
+[!INCLUDE [beta-disclaimer](../../includes/beta-disclaimer.md)]
+
+Number of users registered for an authentication method.
+
+## Properties
+|Property|Type|Description|
+|:|:|:|
+|authenticationMethod|String|Name of authentication method.|
+|userCount|Int64|Number of users registered.|
+
+## Relationships
+None.
+
+## JSON representation
+The following is a JSON representation of the resource.
+<!-- {
+ "blockType": "resource",
+ "@odata.type": "microsoft.graph.userRegistrationMethodCount"
+}
+-->
+``` json
+{
+ "@odata.type": "#microsoft.graph.userRegistrationMethodCount",
+ "authenticationMethod": "String",
+ "userCount": "Integer"
+}
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/resources/userregistrationmethodsummary https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/userregistrationmethodsummary.md /dev/null
@@ -0,0 +1,68 @@
+
+ Title: "userRegistrationMethodSummary resource type"
+description: "Summary of number of users registered for each authentication method."
+
+localization_priority: Normal
+ms.prod: "reports"
+doc_type: resourcePageType
++
+# userRegistrationMethodSummary resource type
+
+Namespace: microsoft.graph
+
+[!INCLUDE [beta-disclaimer](../../includes/beta-disclaimer.md)]
+
+Summary of number of users registered for each authentication method.
+
+## Methods
+
+| Method | Return Type | Description |
+|:-|:|:|
+| [usersRegisteredByMethod](../api/authenticationmethodsroot-usersregisteredbymethod.md) | userRegistrationMethodSummary | Get the number of users registered for each authentication method. |
+
+## Properties
+|Property|Type|Description|
+|:|:|:|
+|totalUserCount|Int64|Total number of users in the tenant.|
+|userRegistrationMethodCounts|[userRegistrationMethodCount](../resources/userregistrationmethodcount.md) collection|Number of users registered for each authentication method.|
+|userRoles|includedUserRoles|User role type. Possible values are: `all`, `privilegedAdmin`, `admin`, `user`.|
+|userTypes|includedUserTypes|User type. Possible values are: `all`, `member`, `guest`.|
+
+The value `privilegedAdmin` consists of the following privileged admin roles:
+
+* Global admin
+* Security admin
+* Conditional Access admin
+* Exchange admin
+* SharePoint admin
+* Helpdesk admin
+* Billing admin
+* User admin
+* Authentication admin
+
+The value `admin` includes all Azure AD admin roles.
+
+## Relationships
+None.
+
+## JSON representation
+The following is a JSON representation of the resource.
+<!-- {
+ "blockType": "resource",
+ "@odata.type": "microsoft.graph.userRegistrationMethodSummary"
+}
+-->
+``` json
+{
+ "@odata.type": "#microsoft.graph.userRegistrationMethodSummary",
+ "totalUserCount": "Integer",
+ "userTypes": "String",
+ "userRoles": "String",
+ "userRegistrationMethodCounts": [
+ {
+ "@odata.type": "microsoft.graph.userRegistrationMethodCount"
+ }
+ ]
+}
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/api/place-get https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/place-get.md
@@ -130,11 +130,11 @@ Content-type: application/json
"phone": "000-000-0000", "nickname": "Conf Room", "label": "100",
- "capacity": "50",
+ "capacity": 50,
"building": "1", "floorNumber": 1, "isManaged": true,
- "isWheelchairAccessible": false,
+ "isWheelChairAccessible": false,
"bookingType": "standard", "tags": [ "bean bags"
v1.0 https://docs.microsoft.com/en-us/graph/api/place-list https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/place-list.md
@@ -162,11 +162,11 @@ Content-type: application/json
"phone": "000-000-0000", "nickname": "Conf Room", "label": "100",
- "capacity": "50",
+ "capacity": 50,
"building": "1", "floorNumber": 1, "isManaged": true,
- "isWheelchairAccessible": false,
+ "isWheelChairAccessible": false,
"bookingType": "standard", "tags": [ "bean bags"
@@ -193,11 +193,11 @@ Content-type: application/json
"phone": "000-000-0000", "nickname": "Conf Room", "label": "200",
- "capacity": "40",
+ "capacity": 40,
"building": "2", "floorNumber": 2, "isManaged": true,
- "isWheelchairAccessible": false,
+ "isWheelChairAccessible": false,
"bookingType": "standard", "tags": [ "benches",
@@ -373,11 +373,11 @@ Content-type: application/json
"phone": "000-000-0000", "nickname": "Conf Room", "label": "200",
- "capacity": "40",
+ "capacity": 40,
"building": "2", "floorNumber": 2, "isManaged": true,
- "isWheelchairAccessible": false,
+ "isWheelChairAccessible": false,
"bookingType": "standard", "tags": [ "benches",
v1.0 https://docs.microsoft.com/en-us/graph/api/place-update https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/place-update.md
@@ -49,12 +49,12 @@ In the request body, supply the values for relevant fields that should be update
| audioDeviceName | String | Specifies the name of the audio device in the room. | | bookingType | [bookingType](../resources/room.md) | Type of room. Possible values are `Standard` and `Reserved`. | | building | String | Specifies the building name or building number that the room is in. |
-| capacity | String | Specifies the capacity of the room. |
+| capacity | Int32 | Specifies the capacity of the room. |
| displayDeviceName | String | Specifies the name of the display device in the room. | | floorLabel | String | Specifies the floor letter that the room is on. | | floorNumber | Int32 | Specifies the floor number that the room is on. | | geoCoordinates | [outlookGeoCoordinates](../resources/outlookgeocoordinates.md) | Specifies the room or roomlist location in latitude, longitude and optionally, altitude coordinates. |
-| isWheelchairAccessible | Boolean | Specifies whether the room is wheelchair accessible. |
+| isWheelChairAccessible | Boolean | Specifies whether the room is wheelchair accessible. |
| label | String | Specifies a descriptive label for the room, for example, a number or name. | | nickname | String | Specifies a nickname for the room, for example, "conf room". | | phone | String | The phone number of the room or roomlist. |
@@ -90,8 +90,8 @@ Content-length: 285
"nickname": "Conf Room", "building": "1", "label": "100",
- "capacity": "50",
- "isWheelchairAccessible": false
+ "capacity": 50,
+ "isWheelChairAccessible": false
} ``` # [C#](#tab/csharp)
@@ -150,12 +150,12 @@ Content-type: application/json
"phone": "555-555-0100", "nickname": "Conf Room", "label": "100",
- "capacity": "50",
+ "capacity": 50,
"building": "1", "floorLabel": "1P", "floorNumber": 1, "isManaged": true,
- "isWheelchairAccessible": false,
+ "isWheelChairAccessible": false,
"bookingType": "standard", "tags": [ "bean bags"
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/call-answer-service-hosted-media-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/csharp/call-answer-service-hosted-media-csharp-snippets.md /dev/null
@@ -0,0 +1,38 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var callbackUri = "https://bot.contoso.com/api/calls";
+
+var acceptedModalities = new List<Modality>()
+{
+ Modality.Audio
+};
+
+var mediaConfig = new ServiceHostedMediaConfig
+{
+ PreFetchMedia = new List<MediaInfo>()
+ {
+ new MediaInfo
+ {
+ Uri = "https://cdn.contoso.com/beep.wav",
+ ResourceId = "1D6DE2D4-CD51-4309-8DAA-70768651088E"
+ },
+ new MediaInfo
+ {
+ Uri = "https://cdn.contoso.com/cool.wav",
+ ResourceId = "1D6DE2D4-CD51-4309-8DAA-70768651088F"
+ }
+ }
+};
+
+await graphClient.Communications.Calls["57DAB8B1894C409AB240BD8BEAE78896"]
+ .Answer(callbackUri,mediaConfig,acceptedModalities)
+ .Request()
+ .PostAsync();
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/create-tablecolumn-from-table-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/csharp/create-tablecolumn-from-table-csharp-snippets.md
@@ -8,7 +8,7 @@ GraphServiceClient graphClient = new GraphServiceClient( authProvider );
var workbookTableColumn = new WorkbookTableColumn {
- Id = 99,
+ Id = "99",
Name = "name-value", Index = 99, Values = "values-value"
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-mailboxsettings-1-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/csharp/get-mailboxsettings-1-csharp-snippets.md /dev/null
@@ -0,0 +1,16 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var me = await graphClient.Me
+ .Request()
+ .Select("MailboxSettings")
+ .GetAsync();
+
+var mailboxSettings = me.MailboxSettings;
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/update-room-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/csharp/update-room-csharp-snippets.md
@@ -11,8 +11,8 @@ var place = new Room
Nickname = "Conf Room", Building = "1", Label = "100",
- Capacity = "50",
- IsWheelchairAccessible = false
+ Capacity = 50,
+ IsWheelChairAccessible = false
}; await graphClient.Places["cf100@contoso.com"]
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/call-answer-service-hosted-media-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/java/call-answer-service-hosted-media-java-snippets.md /dev/null
@@ -0,0 +1,31 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+String callbackUri = "https://bot.contoso.com/api/calls";
+
+LinkedList<Modality> acceptedModalitiesList = new LinkedList<Modality>();
+acceptedModalitiesList.add(Modality.AUDIO);
+
+ServiceHostedMediaConfig mediaConfig = new ServiceHostedMediaConfig();
+LinkedList<MediaInfo> preFetchMediaList = new LinkedList<MediaInfo>();
+MediaInfo preFetchMedia = new MediaInfo();
+preFetchMedia.uri = "https://cdn.contoso.com/beep.wav";
+preFetchMedia.resourceId = "1D6DE2D4-CD51-4309-8DAA-70768651088E";
+preFetchMediaList.add(preFetchMedia);
+MediaInfo preFetchMedia1 = new MediaInfo();
+preFetchMedia1.uri = "https://cdn.contoso.com/cool.wav";
+preFetchMedia1.resourceId = "1D6DE2D4-CD51-4309-8DAA-70768651088F";
+preFetchMediaList.add(preFetchMedia1);
+mediaConfig.preFetchMedia = preFetchMediaList;
+
+graphClient.communications().calls("57DAB8B1894C409AB240BD8BEAE78896")
+ .answer(callbackUri,mediaConfig,acceptedModalitiesList)
+ .buildRequest()
+ .post();
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/create-tablecolumn-from-table-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/java/create-tablecolumn-from-table-java-snippets.md
@@ -7,7 +7,7 @@ description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient(); WorkbookTableColumn workbookTableColumn = new WorkbookTableColumn();
-workbookTableColumn.id = 99;
+workbookTableColumn.id = "99";
workbookTableColumn.name = "name-value"; workbookTableColumn.index = 99; workbookTableColumn.values = JsonParser.parseString("\"values-value\"");
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-acceptedsenders-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/java/get-acceptedsenders-java-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-IDirectoryObjectCollectionPage acceptedSenders = graphClient.groups("{id}").acceptedSenders()
+IDirectoryObjectCollectionWithReferencesPage acceptedSenders = graphClient.groups("{id}").acceptedSenders()
.buildRequest() .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-mailboxsettings-1-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/java/get-mailboxsettings-1-java-snippets.md /dev/null
@@ -0,0 +1,13 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+MailboxSettings mailboxSettings = graphClient.customRequest("/me/mailboxSettings", MailboxSettings.class)
+ .buildRequest()
+ .get();
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-rejectedsenders-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/java/get-rejectedsenders-java-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-IDirectoryObjectCollectionPage rejectedSenders = graphClient.groups("{id}").rejectedSenders()
+IDirectoryObjectCollectionWithReferencesPage rejectedSenders = graphClient.groups("{id}").rejectedSenders()
.buildRequest() .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/update-room-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/java/update-room-java-snippets.md
@@ -10,8 +10,8 @@ Room place = new Room();
place.nickname = "Conf Room"; place.building = "1"; place.label = "100";
-place.capacity = "50";
-place.isWheelchairAccessible = false;
+place.capacity = 50;
+place.isWheelChairAccessible = false;
graphClient.places("cf100@contoso.com") .buildRequest()
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/call-answer-service-hosted-media-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/call-answer-service-hosted-media-javascript-snippets.md /dev/null
@@ -0,0 +1,34 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```javascript
+
+const options = {
+ authProvider,
+};
+
+const client = Client.init(options);
+
+const answer = {
+ callbackUri: "https://bot.contoso.com/api/calls",
+ acceptedModalities: [ "audio" ],
+ mediaConfig: {
+ @odata.type: "#microsoft.graph.serviceHostedMediaConfig",
+ preFetchMedia: [
+ {
+ uri: "https://cdn.contoso.com/beep.wav",
+ resourceId: "1D6DE2D4-CD51-4309-8DAA-70768651088E"
+ },
+ {
+ uri: "https://cdn.contoso.com/cool.wav",
+ resourceId: "1D6DE2D4-CD51-4309-8DAA-70768651088F"
+ }
+ ]
+ }
+};
+
+let res = await client.api('/communications/calls/57DAB8B1894C409AB240BD8BEAE78896/answer')
+ .post(answer);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/create-item-attachment-with-post-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/create-item-attachment-with-post-javascript-snippets.md /dev/null
@@ -0,0 +1,45 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```javascript
+
+const options = {
+ authProvider,
+};
+
+const client = Client.init(options);
+
+const reply = {
+ post: {
+ body: {
+ contentType: "text",
+ content: "I attached an event."
+ },
+ attachments: [{
+ @odata.type: "#microsoft.graph.itemAttachment",
+ name: "Holiday event",
+ item: {
+ @odata.type: "microsoft.graph.event",
+ subject: "Discuss gifts for children",
+ body: {
+ contentType: "HTML",
+ content: "Let's look for funding!"
+ },
+ start: {
+ dateTime: "2019-12-02T18:00:00",
+ timeZone: "Pacific Standard Time"
+ },
+ end: {
+ dateTime: "2019-12-02T19:00:00",
+ timeZone: "Pacific Standard Time"
+ }
+ }
+ } ]
+ }
+};
+
+let res = await client.api('/groups/1848753d-185d-4c08-a4e4-6ee40521d115/threads/AAQkADJUdfolA==/reply')
+ .post(reply);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/create-tablecolumn-from-table-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/create-tablecolumn-from-table-javascript-snippets.md
@@ -11,7 +11,7 @@ const options = {
const client = Client.init(options); const workbookTableColumn = {
- id: 99,
+ id: "99",
name: "name-value", index: 99, values: "values-value"
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-mailboxsettings-1-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/get-mailboxsettings-1-javascript-snippets.md /dev/null
@@ -0,0 +1,16 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```javascript
+
+const options = {
+ authProvider,
+};
+
+const client = Client.init(options);
+
+let res = await client.api('/me/mailboxSettings')
+ .get();
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/update-room-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/update-room-javascript-snippets.md
@@ -15,8 +15,8 @@ const place = {
nickname: "Conf Room", building: "1", label: "100",
- capacity: "50",
- isWheelchairAccessible: false
+ capacity: 50,
+ isWheelChairAccessible: false
}; let res = await client.api('/places/cf100@contoso.com')
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/call-answer-service-hosted-media-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/objc/call-answer-service-hosted-media-objc-snippets.md /dev/null
@@ -0,0 +1,48 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```objc
+
+MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
+
+NSString *MSGraphBaseURL = @"https://graph.microsoft.com/v1.0/";
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/communications/calls/57DAB8B1894C409AB240BD8BEAE78896/answer"]]];
+[urlRequest setHTTPMethod:@"POST"];
+[urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
+
+NSMutableDictionary *payloadDictionary = [[NSMutableDictionary alloc] init];
+
+NSString *callbackUri = @"https://bot.contoso.com/api/calls";
+payloadDictionary[@"callbackUri"] = callbackUri;
+
+NSMutableArray *acceptedModalitiesList = [[NSMutableArray alloc] init];
+[acceptedModalitiesList addObject: @"audio"];
+payloadDictionary[@"acceptedModalities"] = acceptedModalitiesList;
+
+MSGraphMediaConfig *mediaConfig = [[MSGraphMediaConfig alloc] init];
+NSMutableArray *preFetchMediaList = [[NSMutableArray alloc] init];
+MSGraphMediaInfo *preFetchMedia = [[MSGraphMediaInfo alloc] init];
+[preFetchMedia setUri:@"https://cdn.contoso.com/beep.wav"];
+[preFetchMedia setResourceId:@"1D6DE2D4-CD51-4309-8DAA-70768651088E"];
+[preFetchMediaList addObject: preFetchMedia];
+MSGraphMediaInfo *preFetchMedia = [[MSGraphMediaInfo alloc] init];
+[preFetchMedia setUri:@"https://cdn.contoso.com/cool.wav"];
+[preFetchMedia setResourceId:@"1D6DE2D4-CD51-4309-8DAA-70768651088F"];
+[preFetchMediaList addObject: preFetchMedia];
+[mediaConfig setPreFetchMedia:preFetchMediaList];
+payloadDictionary[@"mediaConfig"] = mediaConfig;
+
+NSData *data = [NSJSONSerialization dataWithJSONObject:payloadDictionary options:kNilOptions error:&error];
+[urlRequest setHTTPBody:data];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ //Request Completed
+
+}];
+
+[meDataTask execute];
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/create-item-attachment-with-post-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/objc/create-item-attachment-with-post-objc-snippets.md /dev/null
@@ -0,0 +1,55 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```objc
+
+MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
+
+NSString *MSGraphBaseURL = @"https://graph.microsoft.com/v1.0/";
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/groups/1848753d-185d-4c08-a4e4-6ee40521d115/threads/AAQkADJUdfolA==/reply"]]];
+[urlRequest setHTTPMethod:@"POST"];
+[urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
+
+NSMutableDictionary *payloadDictionary = [[NSMutableDictionary alloc] init];
+
+MSGraphPost *post = [[MSGraphPost alloc] init];
+MSGraphItemBody *body = [[MSGraphItemBody alloc] init];
+[body setContentType: [MSGraphBodyType text]];
+[body setContent:@"I attached an event."];
+[post setBody:body];
+NSMutableArray *attachmentsList = [[NSMutableArray alloc] init];
+MSGraphAttachment *attachments = [[MSGraphAttachment alloc] init];
+[attachments setName:@"Holiday event"];
+MSGraphOutlookItem *item = [[MSGraphOutlookItem alloc] init];
+[item setSubject:@"Discuss gifts for children"];
+MSGraphItemBody *body = [[MSGraphItemBody alloc] init];
+[body setContentType: [MSGraphBodyType html]];
+[body setContent:@"Let's look for funding!"];
+[item setBody:body];
+MSGraphDateTimeTimeZone *start = [[MSGraphDateTimeTimeZone alloc] init];
+[start setDateTime: "2019-12-02T18:00:00"];
+[start setTimeZone:@"Pacific Standard Time"];
+[item setStart:start];
+MSGraphDateTimeTimeZone *end = [[MSGraphDateTimeTimeZone alloc] init];
+[end setDateTime: "2019-12-02T19:00:00"];
+[end setTimeZone:@"Pacific Standard Time"];
+[item setEnd:end];
+[attachments setItem:item];
+[attachmentsList addObject: attachments];
+[post setAttachments:attachmentsList];
+payloadDictionary[@"post"] = post;
+
+NSData *data = [NSJSONSerialization dataWithJSONObject:payloadDictionary options:kNilOptions error:&error];
+[urlRequest setHTTPBody:data];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ //Request Completed
+
+}];
+
+[meDataTask execute];
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/create-tablecolumn-from-table-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/objc/create-tablecolumn-from-table-objc-snippets.md
@@ -12,7 +12,7 @@ NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URL
[urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"]; MSGraphWorkbookTableColumn *workbookTableColumn = [[MSGraphWorkbookTableColumn alloc] init];
-[workbookTableColumn setId: 99];
+[workbookTableColumn setId:@"99"];
[workbookTableColumn setName:@"name-value"]; [workbookTableColumn setIndex: 99]; [workbookTableColumn setValues:@"values-value"];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-mailboxsettings-1-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/objc/get-mailboxsettings-1-objc-snippets.md /dev/null
@@ -0,0 +1,22 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```objc
+
+MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
+
+NSString *MSGraphBaseURL = @"https://graph.microsoft.com/v1.0/";
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/me/mailboxSettings"]]];
+[urlRequest setHTTPMethod:@"GET"];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ MSGraphMailboxSettings *mailboxSettings = [[MSGraphMailboxSettings alloc] initWithData:data error:&nserror];
+
+}];
+
+[meDataTask execute];
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/update-room-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/objc/update-room-objc-snippets.md
@@ -15,8 +15,8 @@ MSGraphPlace *place = [[MSGraphPlace alloc] init];
[place setNickname:@"Conf Room"]; [place setBuilding:@"1"]; [place setLabel:@"100"];
-[place setCapacity:@"50"];
-[place setIsWheelchairAccessible: false];
+[place setCapacity: 50];
+[place setIsWheelChairAccessible: false];
NSError *error; NSData *placeData = [place getSerializedDataWithError:&error];
v1.0 https://docs.microsoft.com/en-us/graph/resources/room https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/resources/room.md
@@ -30,7 +30,7 @@ In Exchange Online, each room is associated with a room mailbox. Derived from [p
| audioDeviceName | String | Specifies the name of the audio device in the room. | | bookingType | [bookingType](#bookingtype-values) | Type of room. Possible values are `standard`, and `reserved`. | | building | String | Specifies the building name or building number that the room is in. |
-| capacity | String | Specifies the capacity of the room. |
+| capacity | Int32 | Specifies the capacity of the room. |
| displayName | String | The name associated with the room. | | displayDeviceName | String | Specifies the name of the display device in the room. | | emailAddress | String | Email address of the room. |
@@ -38,7 +38,7 @@ In Exchange Online, each room is associated with a room mailbox. Derived from [p
| floorNumber | Int32 | Specifies the floor number that the room is on. | | geoCoordinates | [outlookGeoCoordinates](outlookgeocoordinates.md) | Specifies the room location in latitude, longitude and optionally, altitude coordinates. | | id | String | Unique identifier for the room. Read-only. |
-| isWheelchairAccessible | Boolean | Specifies whether the room is wheelchair accessible. |
+| isWheelChairAccessible | Boolean | Specifies whether the room is wheelchair accessible. |
| label | String | Specifies a descriptive label for the room, for example, a number or name. | | nickname | String | Specifies a nickname for the room, for example, "conf room". | | phone | String | The phone number of the room. |
@@ -75,7 +75,7 @@ The following is a JSON representation of the resource.
"audioDeviceName": "String", "bookingType": "String", "building": "String",
- "capacity": "String",
+ "capacity": 1024,
"displayName": "String", "displayDeviceName": "String", "emailAddress": "String",
@@ -83,7 +83,7 @@ The following is a JSON representation of the resource.
"floorNumber": 1024, "geoCoordinates": {"@odata.type": "microsoft.graph.outlookGeoCoordinates"}, "id": "String (identifier)",
- "isWheelchairAccessible": true,
+ "isWheelChairAccessible": true,
"label": "String", "nickname": "String", "phone": "String",