Updates from: 02/04/2021 04:10:48
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
@@ -78,6 +78,8 @@ If successful, this function returns a `200 OK` response code and a [userRegistr
## Examples ### Request+
+# [HTTP](#tab/http)
<!-- { "blockType": "request", "name": "authenticationmethodsroot_usersregisteredbyfeature"
@@ -86,6 +88,24 @@ If successful, this function returns a `200 OK` response code and a [userRegistr
``` http GET https://graph.microsoft.com/beta/reports/authenticationMethods/usersRegisteredByFeature(includedUserTypes='all',includedUserRoles='all') ```
+# [C#](#tab/csharp)
+
+# [JavaScript](#tab/javascript)
+
+# [Objective-C](#tab/objc)
+
+# [Java](#tab/java)
+++ ### Response
@@ -126,4 +146,4 @@ Content-Type: application/json
} ] }
-```
+```
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
@@ -78,6 +78,8 @@ If successful, this function returns a `200 OK` response code and a [userRegistr
## Examples ### Request+
+# [HTTP](#tab/http)
<!-- { "blockType": "request", "name": "authenticationmethodsroot_usersregisteredbymethod"
@@ -86,6 +88,24 @@ If successful, this function returns a `200 OK` response code and a [userRegistr
``` http GET https://graph.microsoft.com/beta/reports/authenticationMethods/usersRegisteredByMethod(includedUserTypes='all',includedUserRoles='all') ```
+# [C#](#tab/csharp)
+
+# [JavaScript](#tab/javascript)
+
+# [Objective-C](#tab/objc)
+
+# [Java](#tab/java)
+++ ### Response
v1.0 https://docs.microsoft.com/en-us/graph/api/channel-post-message https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/channel-post-message.md
@@ -15,8 +15,6 @@ Namespace: microsoft.graph
Create a new [chatMessage](../resources/chatmessage.md) in the specified [channel](../resources/channel.md).
-> **Note**: We don't recommend that you use this API for data migration. It does not have the throughput necessary for a typical migration.
- > **Note**: It is a violation of the [terms of use](/legal/microsoft-apis/terms-of-use) to use Microsoft Teams as a log file. Only send messages that people will read. ## Permissions
@@ -29,6 +27,8 @@ One of the following permissions is required to call this API. To learn more, in
| Delegated (personal Microsoft account) | Not supported. | | Application | Teamwork.Migrate.All |
+> **Note**: Application permissions are *only* supported for [migration](/microsoftteams/platform/graph-api/import-messages/import-external-messages-to-teams).
+ <!-- markdownlint-disable MD024 --> <!-- markdownlint-disable MD001 --> <!-- markdownlint-disable MD022 -->
v1.0 https://docs.microsoft.com/en-us/graph/api/channel-post-messagereply https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/channel-post-messagereply.md
@@ -15,8 +15,6 @@ Namespace: microsoft.graph
Create a new reply to a [chatMessage](../resources/chatmessage.md) in a specified [channel](../resources/channel.md).
-> **Note**: We don't recommend that you use this API for data migration. It does not have the throughput necessary for a typical migration.
- > **Note**: It is a violation of the [terms of use](/legal/microsoft-apis/terms-of-use) to use Microsoft Teams as a log file. Only send messages that people will read. <!-- markdownlint-disable MD024 --> <!-- markdownlint-disable MD022 -->
@@ -26,11 +24,13 @@ Create a new reply to a [chatMessage](../resources/chatmessage.md) in a specifie
## 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) | ChannelMessage.Send, Group.ReadWrite.All |
-|Delegated (personal Microsoft account) | Not supported. |
-|Application | Teamwork.Migrate.All |
+| Permission type | Permissions (from least to most privileged) |
+|:|:--|
+| Delegated (work or school account) | ChannelMessage.Send, Group.ReadWrite.All |
+| Delegated (personal Microsoft account) | Not supported. |
+| Application | Teamwork.Migrate.All |
+
+> **Note**: Application permissions are *only* supported for [migration](/microsoftteams/platform/graph-api/import-messages/import-external-messages-to-teams).
## HTTP request <!-- { "blockType": "ignored" } -->
v1.0 https://docs.microsoft.com/en-us/graph/api/cloudpconpremisesconnection-updateaddomainpassword https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/cloudpconpremisesconnection-updateaddomainpassword.md
@@ -59,6 +59,8 @@ If successful, this action returns a `204 No Content` response code.
## Examples ### Request+
+# [HTTP](#tab/http)
<!-- { "blockType": "request", "name": "cloudpconpremisesconnection_updateaddomainpassword"
@@ -74,6 +76,16 @@ Content-length: 36
"adDomainPassword": "AdDomainPassword value" } ```
+# [JavaScript](#tab/javascript)
+
+# [Objective-C](#tab/objc)
+++ ### Response
v1.0 https://docs.microsoft.com/en-us/graph/api/educationassignmentsettings-get https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/educationassignmentsettings-get.md
@@ -51,6 +51,8 @@ If successful, this method returns a `200 OK` response code and an [educationAss
## Examples ### Request+
+# [HTTP](#tab/http)
<!-- { "blockType": "request", "name": "get_educationassignmentsettings"
@@ -59,6 +61,24 @@ If successful, this method returns a `200 OK` response code and an [educationAss
``` http GET https://graph.microsoft.com/beta/education/classes/{id}/assignmentSettings ```
+# [C#](#tab/csharp)
+
+# [JavaScript](#tab/javascript)
+
+# [Objective-C](#tab/objc)
+
+# [Java](#tab/java)
+++ ### Response **Note:** The response object shown here might be shortened for readability.
v1.0 https://docs.microsoft.com/en-us/graph/api/educationassignmentsettings-update https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/educationassignmentsettings-update.md
@@ -57,6 +57,8 @@ If successful, this method returns a `200 OK` response code and an updated [educ
## Examples ### Request+
+# [HTTP](#tab/http)
<!-- { "blockType": "request", "name": "update_educationassignmentsettings"
@@ -71,6 +73,24 @@ Content-length: 114
"submissionAnimationDisabled": true } ```
+# [C#](#tab/csharp)
+
+# [JavaScript](#tab/javascript)
+
+# [Objective-C](#tab/objc)
+
+# [Java](#tab/java)
+++ ### Response
v1.0 https://docs.microsoft.com/en-us/graph/api/team-post https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/team-post.md
@@ -25,6 +25,8 @@ One of the following permissions is required to call this API. To learn more, in
| Delegated (personal Microsoft account) | Not supported. | | Application | Team.Create, Teamwork.Migrate.All, Group.ReadWrite.All, Directory.ReadWrite.All |
+> **Note**: The Teamwork.Migrate.All permission is *only* supported for [migration](/microsoftteams/platform/graph-api/import-messages/import-external-messages-to-teams).
+ ## HTTP request <!-- { "blockType": "ignored" } -->
@@ -587,6 +589,8 @@ Content-Length: 0
The following example shows how to create a team for imported messages.
+>**Note:** Teams created in migration mode only support the `standard` template.
+ ```http POST https://graph.microsoft.com/beta/teams Content-Type: application/json
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/authenticationmethodsroot-usersregisteredbyfeature-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/authenticationmethodsroot-usersregisteredbyfeature-csharp-snippets.md
@@ -0,0 +1,14 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var userRegistrationFeatureSummary = await graphClient.Reports.AuthenticationMethods
+ .UsersRegisteredByFeature(.all,.all)
+ .Request()
+ .GetAsync();
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/authenticationmethodsroot-usersregisteredbymethod-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/authenticationmethodsroot-usersregisteredbymethod-csharp-snippets.md
@@ -0,0 +1,14 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var userRegistrationMethodSummary = await graphClient.Reports.AuthenticationMethods
+ .UsersRegisteredByMethod(.all,.all)
+ .Request()
+ .GetAsync();
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/create-custodian-from--csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/create-custodian-from--csharp-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var custodian = new Custodian
+var custodian = new Microsoft.Graph.Ediscovery.Custodian
{ Email = "AdeleV@contoso.com", ApplyHoldToSources = true
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
@@ -1,64 +0,0 @@
-
-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);
-
-```
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
@@ -1,37 +0,0 @@
-
-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);
-
-```
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
@@ -1,37 +0,0 @@
-
-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);
-
-```
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
@@ -1,49 +0,0 @@
-
-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();
-
-```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/create-plannerplan-from-planner-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/create-plannerplan-from-planner-csharp-snippets.md
@@ -8,7 +8,10 @@ GraphServiceClient graphClient = new GraphServiceClient( authProvider );
var plannerPlan = new PlannerPlan {
- Owner = "ebf3b108-5234-4e22-b93d-656d7dae5874",
+ Container = new PlannerPlanContainer
+ {
+ Url = "https://graph.microsoft.com/beta/groups/ebf3b108-5234-4e22-b93d-656d7dae5874"
+ },
Title = "title-value" };
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/create-sitesource-from--csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/create-sitesource-from--csharp-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var siteSource = new SiteSource
+var siteSource = new Microsoft.Graph.Ediscovery.SiteSource
{ AdditionalData = new Dictionary<string, object>() {
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/create-unifiedgroupsource-from--csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/create-unifiedgroupsource-from--csharp-snippets.md
@@ -6,9 +6,9 @@ description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var unifiedGroupSource = new UnifiedGroupSource
+var unifiedGroupSource = new Microsoft.Graph.Ediscovery.UnifiedGroupSource
{
- IncludedSources = SourceType.Mailbox | SourceType.Site,
+ IncludedSources = Microsoft.Graph.Ediscovery.SourceType.Mailbox | Microsoft.Graph.Ediscovery.SourceType.Site,
AdditionalData = new Dictionary<string, object>() { {"group@odata.bind", "/groups/000044f9-47c8-4a87-bccf-291fbf006a54"}
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/create-usersource-from--csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/create-usersource-from--csharp-snippets.md
@@ -6,10 +6,10 @@ description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var userSource = new UserSource
+var userSource = new Microsoft.Graph.Ediscovery.UserSource
{ Email = "megan@contoso.com",
- IncludedSources = SourceType.Mailbox | SourceType.Site
+ IncludedSources = Microsoft.Graph.Ediscovery.SourceType.Mailbox | Microsoft.Graph.Ediscovery.SourceType.Site
}; await graphClient.Compliance.Ediscovery.Cases["4c8f8f70-7785-4bd4-b296-c98376a2c5e1"].Custodians["2192ca408ea2410eba3bec8ae873be6b"].UserSources
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
@@ -1,19 +0,0 @@
-
-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();
-
-```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-educationassignmentsettings-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-educationassignmentsettings-csharp-snippets.md
@@ -0,0 +1,13 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var educationAssignmentSettings = await graphClient.Education.Classes["{id}"].AssignmentSettings
+ .Request()
+ .GetAsync();
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/list-installed-apps-in-chat-expand-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/list-installed-apps-in-chat-expand-csharp-snippets.md
@@ -0,0 +1,14 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var installedApps = await graphClient.Chats["19:d65713bc498c4a428c71ef9353e6ce20@thread.v2"].InstalledApps
+ .Request()
+ .Expand("teamsAppDefinition($expand=bot)")
+ .GetAsync();
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/list-installed-teams-apps-expand-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/list-installed-teams-apps-expand-csharp-snippets.md
@@ -0,0 +1,14 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var installedApps = await graphClient.Teams["6903fa93-605b-43ef-920e-77c4729f8258"].InstalledApps
+ .Request()
+ .Expand("teamsAppDefinition($expand=bot)")
+ .GetAsync();
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/post-ediscoverycase-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/post-ediscoverycase-csharp-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var @case = new Case
+var @case = new Microsoft.Graph.Ediscovery.Case
{ DisplayName = "My Case 1" };
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/post-reviewset-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/post-reviewset-csharp-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var reviewSet = new ReviewSet
+var reviewSet = new Microsoft.Graph.Ediscovery.ReviewSet
{ DisplayName = "My Reviewset 3" };
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/post-reviewsetquery-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/post-reviewsetquery-csharp-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var reviewSetQuery = new ReviewSetQuery
+var reviewSetQuery = new Microsoft.Graph.Ediscovery.ReviewSetQuery
{ DisplayName = "My Query 1", Query = "(subject:\"Quarterly Financials\")"
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/update-connector-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/update-connector-csharp-snippets.md
@@ -14,8 +14,8 @@ var printConnector = new PrintConnector
AppVersion = "0.19.7338.23496", Location = new PrinterLocation {
- Latitude = 1.1f,
- Longitude = 2.2f,
+ Latitude = 1.1,
+ Longitude = 2.2,
AltitudeInMeters = 3 } };
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/update-custodian-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/update-custodian-csharp-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var custodian = new Custodian
+var custodian = new Microsoft.Graph.Ediscovery.Custodian
{ ApplyHoldToSources = false };
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/update-ediscoverycase-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/update-ediscoverycase-csharp-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var @case = new Case
+var @case = new Microsoft.Graph.Ediscovery.Case
{ DisplayName = "My Case 1 - Renamed", Description = "Updated description",
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/update-educationassignmentsettings-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/update-educationassignmentsettings-csharp-snippets.md
@@ -0,0 +1,18 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var educationAssignmentSettings = new EducationAssignmentSettings
+{
+ SubmissionAnimationDisabled = true
+};
+
+await graphClient.Education.Classes["{id}"].AssignmentSettings
+ .Request()
+ .UpdateAsync(educationAssignmentSettings);
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/update-printer-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/update-printer-csharp-snippets.md
@@ -11,8 +11,8 @@ var printer = new Printer
Name = "PrinterName", Location = new PrinterLocation {
- Latitude = 1.1f,
- Longitude = 2.2f,
+ Latitude = 1.1,
+ Longitude = 2.2,
AltitudeInMeters = 3 } };
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/user-list-teamsapps-details-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/user-list-teamsapps-details-csharp-snippets.md
@@ -0,0 +1,14 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var installedApps = await graphClient.Users["{id}"].Teamwork.InstalledApps
+ .Request()
+ .Expand("teamsAppDefinition($expand=bot)")
+ .GetAsync();
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/authenticationmethodsroot-usersregisteredbyfeature-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/authenticationmethodsroot-usersregisteredbyfeature-java-snippets.md
@@ -0,0 +1,14 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+UserRegistrationFeatureSummary userRegistrationFeatureSummary = graphClient.reports().authenticationMethods()
+ .usersRegisteredByFeature('all','all')
+ .buildRequest()
+ .get();
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/authenticationmethodsroot-usersregisteredbymethod-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/authenticationmethodsroot-usersregisteredbymethod-java-snippets.md
@@ -0,0 +1,14 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+UserRegistrationMethodSummary userRegistrationMethodSummary = graphClient.reports().authenticationMethods()
+ .usersRegisteredByMethod('all','all')
+ .buildRequest()
+ .get();
+
+```
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 = "0001-01-01T00:00:00Z";
+conversationMember.visibleHistoryStartDateTime = CalendarSerializer.deserialize("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 = "2019-04-18T23:51:43.255Z";
+conversationMember.visibleHistoryStartDateTime = CalendarSerializer.deserialize("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
@@ -1,54 +0,0 @@
-
-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);
-
-```
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
@@ -1,31 +0,0 @@
-
-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);
-
-```
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
@@ -1,31 +0,0 @@
-
-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);
-
-```
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
@@ -1,43 +0,0 @@
-
-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();
-
-```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/create-plannerplan-from-planner-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/create-plannerplan-from-planner-java-snippets.md
@@ -7,7 +7,9 @@ description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient(); PlannerPlan plannerPlan = new PlannerPlan();
-plannerPlan.owner = "ebf3b108-5234-4e22-b93d-656d7dae5874";
+PlannerPlanContainer container = new PlannerPlanContainer();
+container.url = "https://graph.microsoft.com/beta/groups/ebf3b108-5234-4e22-b93d-656d7dae5874";
+plannerPlan.container = container;
plannerPlan.title = "title-value"; graphClient.planner().plans()
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
@@ -1,17 +0,0 @@
-
-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();
-
-```
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/beta/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-educationassignmentsettings-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-educationassignmentsettings-java-snippets.md
@@ -0,0 +1,13 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+EducationAssignmentSettings educationAssignmentSettings = graphClient.education().classes("{id}").assignmentSettings()
+ .buildRequest()
+ .get();
+
+```
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/beta/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/list-installed-apps-in-chat-expand-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/list-installed-apps-in-chat-expand-java-snippets.md
@@ -0,0 +1,14 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+ITeamsAppInstallationCollectionPage installedApps = graphClient.chats("19:d65713bc498c4a428c71ef9353e6ce20@thread.v2").installedApps()
+ .buildRequest()
+ .expand("teamsAppDefinition($expand=bot)")
+ .get();
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/list-installed-teams-apps-expand-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/list-installed-teams-apps-expand-java-snippets.md
@@ -0,0 +1,14 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+ITeamsAppInstallationCollectionPage installedApps = graphClient.teams("6903fa93-605b-43ef-920e-77c4729f8258").installedApps()
+ .buildRequest()
+ .expand("teamsAppDefinition($expand=bot)")
+ .get();
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/list-usageright-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/list-usageright-java-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-Content usageRights = graphClient.users("{userId}").usageRights()
+IUsageRightCollectionPage usageRights = graphClient.users("{userId}").usageRights()
.buildRequest() .filter("state in ('active', 'suspended') and serviceIdentifier in ('ABCD')") .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/update-connector-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/update-connector-java-snippets.md
@@ -12,8 +12,8 @@ printConnector.fullyQualifiedDomainName = "CONNECTOR-MACHINE";
printConnector.operatingSystem = "Microsoft Windows 10 Enterprise Insider Preview | 10.0.19555"; printConnector.appVersion = "0.19.7338.23496"; PrinterLocation location = new PrinterLocation();
-location.latitude = 1.1;
-location.longitude = 2.2;
+location.latitude = 1.1d;
+location.longitude = 2.2d;
location.altitudeInMeters = 3; printConnector.location = location;
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/update-educationassignmentsettings-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/update-educationassignmentsettings-java-snippets.md
@@ -0,0 +1,16 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+EducationAssignmentSettings educationAssignmentSettings = new EducationAssignmentSettings();
+educationAssignmentSettings.submissionAnimationDisabled = true;
+
+graphClient.education().classes("{id}").assignmentSettings()
+ .buildRequest()
+ .patch(educationAssignmentSettings);
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/update-printer-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/update-printer-java-snippets.md
@@ -9,8 +9,8 @@ IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationPro
Printer printer = new Printer(); printer.name = "PrinterName"; PrinterLocation location = new PrinterLocation();
-location.latitude = 1.1;
-location.longitude = 2.2;
+location.latitude = 1.1d;
+location.longitude = 2.2d;
location.altitudeInMeters = 3; printer.location = location;
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/user-list-teamsapps-details-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/user-list-teamsapps-details-java-snippets.md
@@ -0,0 +1,14 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+IUserScopeTeamsAppInstallationCollectionPage installedApps = graphClient.users("{id}").teamwork().installedApps()
+ .buildRequest()
+ .expand("teamsAppDefinition($expand=bot)")
+ .get();
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/authenticationmethodsroot-usersregisteredbyfeature-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/authenticationmethodsroot-usersregisteredbyfeature-javascript-snippets.md
@@ -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('/reports/authenticationMethods/usersRegisteredByFeature(includedUserTypes='all',includedUserRoles='all')')
+ .version('beta')
+ .get();
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/authenticationmethodsroot-usersregisteredbymethod-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/authenticationmethodsroot-usersregisteredbymethod-javascript-snippets.md
@@ -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('/reports/authenticationMethods/usersRegisteredByMethod(includedUserTypes='all',includedUserRoles='all')')
+ .version('beta')
+ .get();
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/cloudpconpremisesconnection-updateaddomainpassword-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/cloudpconpremisesconnection-updateaddomainpassword-javascript-snippets.md
@@ -0,0 +1,21 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```javascript
+
+const options = {
+ authProvider,
+};
+
+const client = Client.init(options);
+
+const updateAdDomainPassword = {
+ adDomainPassword: "AdDomainPassword value"
+};
+
+let res = await client.api('/deviceManagement/virtualEndpoint/onPremisesConnections/{Id}/UpdateAdDomainPassword')
+ .version('beta')
+ .update(updateAdDomainPassword);
+
+```
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
@@ -1,56 +0,0 @@
-
-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);
-
-```
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
@@ -1,38 +0,0 @@
-
-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);
-
-```
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
@@ -1,38 +0,0 @@
-
-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);
-
-```
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
@@ -1,46 +0,0 @@
-
-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);
-
-```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-educationassignmentsettings-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-educationassignmentsettings-javascript-snippets.md
@@ -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('/education/classes/{id}/assignmentSettings')
+ .version('beta')
+ .get();
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/list-installed-apps-in-chat-expand-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/list-installed-apps-in-chat-expand-javascript-snippets.md
@@ -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('/chats/19:d65713bc498c4a428c71ef9353e6ce20@thread.v2/installedApps')
+ .version('beta')
+ .expand('teamsAppDefinition($expand=bot)')
+ .get();
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/list-installed-teams-apps-expand-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/list-installed-teams-apps-expand-javascript-snippets.md
@@ -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('/teams/6903fa93-605b-43ef-920e-77c4729f8258/installedApps')
+ .version('beta')
+ .expand('teamsAppDefinition($expand=bot)')
+ .get();
+
+```
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
@@ -1,21 +0,0 @@
-
-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);
-
-```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/update-educationassignmentsettings-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/update-educationassignmentsettings-javascript-snippets.md
@@ -0,0 +1,21 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```javascript
+
+const options = {
+ authProvider,
+};
+
+const client = Client.init(options);
+
+const educationAssignmentSettings = {
+ submissionAnimationDisabled: true
+};
+
+let res = await client.api('/education/classes/{id}/assignmentSettings')
+ .version('beta')
+ .update(educationAssignmentSettings);
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/user-list-teamsapps-details-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/user-list-teamsapps-details-javascript-snippets.md
@@ -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('/users/{id}/teamwork/installedApps')
+ .version('beta')
+ .expand('teamsAppDefinition($expand=bot)')
+ .get();
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/authenticationmethodsroot-usersregisteredbyfeature-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/authenticationmethodsroot-usersregisteredbyfeature-objc-snippets.md
@@ -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:@"/reports/authenticationMethods/usersRegisteredByFeature(includedUserTypes='all',includedUserRoles='all')"]]];
+[urlRequest setHTTPMethod:@"GET"];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ MSGraphUserRegistrationFeatureSummary *userRegistrationFeatureSummary = [[MSGraphUserRegistrationFeatureSummary alloc] initWithData:data error:&nserror];
+
+}];
+
+[meDataTask execute];
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/authenticationmethodsroot-usersregisteredbymethod-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/authenticationmethodsroot-usersregisteredbymethod-objc-snippets.md
@@ -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:@"/reports/authenticationMethods/usersRegisteredByMethod(includedUserTypes='all',includedUserRoles='all')"]]];
+[urlRequest setHTTPMethod:@"GET"];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ MSGraphUserRegistrationMethodSummary *userRegistrationMethodSummary = [[MSGraphUserRegistrationMethodSummary alloc] initWithData:data error:&nserror];
+
+}];
+
+[meDataTask execute];
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/cloudpconpremisesconnection-updateaddomainpassword-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/cloudpconpremisesconnection-updateaddomainpassword-objc-snippets.md
@@ -0,0 +1,31 @@
+
+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:@"/deviceManagement/virtualEndpoint/onPremisesConnections/{Id}/UpdateAdDomainPassword"]]];
+[urlRequest setHTTPMethod:@"PATCH"];
+[urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
+
+NSMutableDictionary *payloadDictionary = [[NSMutableDictionary alloc] init];
+
+NSString *adDomainPassword = @"AdDomainPassword value";
+payloadDictionary[@"adDomainPassword"] = adDomainPassword;
+
+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];
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/create-custodian-from--objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/create-custodian-from--objc-snippets.md
@@ -11,7 +11,7 @@ NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URL
[urlRequest setHTTPMethod:@"POST"]; [urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
-MSGraphCustodian *custodian = [[MSGraphCustodian alloc] init];
+MSGraphEdiscoveryCustodian *custodian = [[MSGraphEdiscoveryCustodian alloc] init];
[custodian setEmail:@"AdeleV@contoso.com"]; [custodian setApplyHoldToSources:@"true"];
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
@@ -1,66 +0,0 @@
-
-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];
-
-```
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
@@ -1,45 +0,0 @@
-
-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];
-
-```
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
@@ -1,45 +0,0 @@
-
-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];
-
-```
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
@@ -1,55 +0,0 @@
-
-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];
-
-```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/create-plannerplan-from-planner-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/create-plannerplan-from-planner-objc-snippets.md
@@ -12,7 +12,9 @@ NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URL
[urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"]; MSGraphPlannerPlan *plannerPlan = [[MSGraphPlannerPlan alloc] init];
-[plannerPlan setOwner:@"ebf3b108-5234-4e22-b93d-656d7dae5874"];
+MSGraphPlannerPlanContainer *container = [[MSGraphPlannerPlanContainer alloc] init];
+[container setUrl:@"https://graph.microsoft.com/beta/groups/ebf3b108-5234-4e22-b93d-656d7dae5874"];
+[plannerPlan setContainer:container];
[plannerPlan setTitle:@"title-value"]; NSError *error;
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/create-sitesource-from--objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/create-sitesource-from--objc-snippets.md
@@ -11,7 +11,7 @@ NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URL
[urlRequest setHTTPMethod:@"POST"]; [urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
-MSGraphSiteSource *siteSource = [[MSGraphSiteSource alloc] init];
+MSGraphEdiscoverySiteSource *siteSource = [[MSGraphEdiscoverySiteSource alloc] init];
NSError *error; NSData *siteSourceData = [siteSource getSerializedDataWithError:&error];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/create-unifiedgroupsource-from--objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/create-unifiedgroupsource-from--objc-snippets.md
@@ -11,8 +11,8 @@ NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URL
[urlRequest setHTTPMethod:@"POST"]; [urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
-MSGraphUnifiedGroupSource *unifiedGroupSource = [[MSGraphUnifiedGroupSource alloc] init];
-[unifiedGroupSource setIncludedSources: [MSGraphSourceType mailbox]];
+MSGraphEdiscoveryUnifiedGroupSource *unifiedGroupSource = [[MSGraphEdiscoveryUnifiedGroupSource alloc] init];
+[unifiedGroupSource setIncludedSources: [MSGraphEdiscoverySourceType mailbox]];
NSError *error; NSData *unifiedGroupSourceData = [unifiedGroupSource getSerializedDataWithError:&error];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/create-usersource-from--objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/create-usersource-from--objc-snippets.md
@@ -11,9 +11,9 @@ NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URL
[urlRequest setHTTPMethod:@"POST"]; [urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
-MSGraphUserSource *userSource = [[MSGraphUserSource alloc] init];
+MSGraphEdiscoveryUserSource *userSource = [[MSGraphEdiscoveryUserSource alloc] init];
[userSource setEmail:@"megan@contoso.com"];
-[userSource setIncludedSources: [MSGraphSourceType mailbox]];
+[userSource setIncludedSources: [MSGraphEdiscoverySourceType mailbox]];
NSError *error; NSData *userSourceData = [userSource getSerializedDataWithError:&error];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-educationassignmentsettings-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-educationassignmentsettings-objc-snippets.md
@@ -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:@"/education/classes/{id}/assignmentSettings"]]];
+[urlRequest setHTTPMethod:@"GET"];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ MSGraphEducationAssignmentSettings *educationAssignmentSettings = [[MSGraphEducationAssignmentSettings alloc] initWithData:data error:&nserror];
+
+}];
+
+[meDataTask execute];
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/list-installed-apps-in-chat-expand-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/list-installed-apps-in-chat-expand-objc-snippets.md
@@ -0,0 +1,24 @@
+
+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:@"/chats/19:d65713bc498c4a428c71ef9353e6ce20@thread.v2/installedApps?$expand=teamsAppDefinition($expand=bot)"]]];
+[urlRequest setHTTPMethod:@"GET"];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ NSError *jsonError = nil;
+ MSCollection *collection = [[MSCollection alloc] initWithData:data error:&jsonError];
+ MSGraphTeamsAppInstallation *teamsAppInstallation = [[MSGraphTeamsAppInstallation alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
+
+}];
+
+[meDataTask execute];
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/list-installed-teams-apps-expand-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/list-installed-teams-apps-expand-objc-snippets.md
@@ -0,0 +1,24 @@
+
+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:@"/teams/6903fa93-605b-43ef-920e-77c4729f8258/installedApps?$expand=teamsAppDefinition($expand=bot)"]]];
+[urlRequest setHTTPMethod:@"GET"];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ NSError *jsonError = nil;
+ MSCollection *collection = [[MSCollection alloc] initWithData:data error:&jsonError];
+ MSGraphTeamsAppInstallation *teamsAppInstallation = [[MSGraphTeamsAppInstallation alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
+
+}];
+
+[meDataTask execute];
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/list-usageright-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/list-usageright-objc-snippets.md
@@ -13,7 +13,9 @@ NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URL
MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
- MSGraphUsageRights *usageRights = [[MSGraphUsageRights alloc] initWithData:data error:&nserror];
+ NSError *jsonError = nil;
+ MSCollection *collection = [[MSCollection alloc] initWithData:data error:&jsonError];
+ MSGraphUsageRight *usageRight = [[MSGraphUsageRight alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
}];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/post-ediscoverycase-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/post-ediscoverycase-objc-snippets.md
@@ -11,7 +11,7 @@ NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URL
[urlRequest setHTTPMethod:@"POST"]; [urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
-MSGraphCase *case = [[MSGraphCase alloc] init];
+MSGraphEdiscoveryCase *case = [[MSGraphEdiscoveryCase alloc] init];
[case setDisplayName:@"My Case 1"]; NSError *error;
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/post-reviewset-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/post-reviewset-objc-snippets.md
@@ -11,7 +11,7 @@ NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URL
[urlRequest setHTTPMethod:@"POST"]; [urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
-MSGraphReviewSet *reviewSet = [[MSGraphReviewSet alloc] init];
+MSGraphEdiscoveryReviewSet *reviewSet = [[MSGraphEdiscoveryReviewSet alloc] init];
[reviewSet setDisplayName:@"My Reviewset 3"]; NSError *error;
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/post-reviewsetquery-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/post-reviewsetquery-objc-snippets.md
@@ -11,7 +11,7 @@ NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URL
[urlRequest setHTTPMethod:@"POST"]; [urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
-MSGraphReviewSetQuery *reviewSetQuery = [[MSGraphReviewSetQuery alloc] init];
+MSGraphEdiscoveryReviewSetQuery *reviewSetQuery = [[MSGraphEdiscoveryReviewSetQuery alloc] init];
[reviewSetQuery setDisplayName:@"My Query 1"]; [reviewSetQuery setQuery:@"(subject:\"Quarterly Financials\")"];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/update-custodian-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/update-custodian-objc-snippets.md
@@ -11,7 +11,7 @@ NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URL
[urlRequest setHTTPMethod:@"PATCH"]; [urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
-MSGraphCustodian *custodian = [[MSGraphCustodian alloc] init];
+MSGraphEdiscoveryCustodian *custodian = [[MSGraphEdiscoveryCustodian alloc] init];
[custodian setApplyHoldToSources:@"false"]; NSError *error;
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/update-ediscoverycase-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/update-ediscoverycase-objc-snippets.md
@@ -11,7 +11,7 @@ NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URL
[urlRequest setHTTPMethod:@"PATCH"]; [urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
-MSGraphCase *case = [[MSGraphCase alloc] init];
+MSGraphEdiscoveryCase *case = [[MSGraphEdiscoveryCase alloc] init];
[case setDisplayName:@"My Case 1 - Renamed"]; [case setDescription:@"Updated description"]; [case setExternalId:@"Updated externalId"];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/update-educationassignmentsettings-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/update-educationassignmentsettings-objc-snippets.md
@@ -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:@"/education/classes/{id}/assignmentSettings"]]];
+[urlRequest setHTTPMethod:@"PATCH"];
+[urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
+
+MSGraphEducationAssignmentSettings *educationAssignmentSettings = [[MSGraphEducationAssignmentSettings alloc] init];
+[educationAssignmentSettings setSubmissionAnimationDisabled: true];
+
+NSError *error;
+NSData *educationAssignmentSettingsData = [educationAssignmentSettings getSerializedDataWithError:&error];
+[urlRequest setHTTPBody:educationAssignmentSettingsData];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ //Request Completed
+
+}];
+
+[meDataTask execute];
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/user-list-teamsapps-details-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/user-list-teamsapps-details-objc-snippets.md
@@ -0,0 +1,24 @@
+
+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:@"/users/{id}/teamwork/installedApps?$expand=teamsAppDefinition($expand=bot)"]]];
+[urlRequest setHTTPMethod:@"GET"];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ NSError *jsonError = nil;
+ MSCollection *collection = [[MSCollection alloc] initWithData:data error:&jsonError];
+ MSGraphUserScopeTeamsAppInstallation *userScopeTeamsAppInstallation = [[MSGraphUserScopeTeamsAppInstallation alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
+
+}];
+
+[meDataTask execute];
+
+```
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
@@ -1,38 +0,0 @@
-
-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();
-
-```
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
@@ -1,31 +0,0 @@
-
-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();
-
-```
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
@@ -1,34 +0,0 @@
-
-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);
-
-```
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
@@ -1,45 +0,0 @@
-
-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);
-
-```
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
@@ -1,48 +0,0 @@
-
-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];
-
-```
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
@@ -1,55 +0,0 @@
-
-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];
-
-```