Skip to content
This repository was archived by the owner on Sep 4, 2020. It is now read-only.

Commit 57e67c6

Browse files
author
Caitlin Bales (MSFT)
authored
Merge pull request #59 from microsoftgraph/bugfix
Update models for r1 metadata
2 parents 0446b08 + 01055fa commit 57e67c6

13 files changed

+25
-94
lines changed

graphsdk/src/androidTest/java/com/microsoft/graph/functional/OutlookTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public void testGetFindMeetingTimes() {
6363
tenantUser = users.getCurrentPage().get(1);
6464
}
6565

66-
List<AttendeeBase> attendees = new ArrayList<>();
66+
ArrayList<AttendeeBase> attendees = new ArrayList<AttendeeBase>();
6767
AttendeeBase attendeeBase = new AttendeeBase();
6868
EmailAddress email = new EmailAddress();
6969
email.address = tenantUser.mail;

graphsdk/src/main/java/com/microsoft/graph/extensions/DriveItemCreateLinkRequestBuilder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public class DriveItemCreateLinkRequestBuilder extends BaseDriveItemCreateLinkRe
2929
* @param client The service client
3030
* @param requestOptions The options for this request
3131
*/
32-
public DriveItemCreateLinkRequestBuilder(final String requestUrl, final IBaseClient client, final java.util.List<Option> requestOptions, final String scope, final String type) {
33-
super(requestUrl, client, requestOptions, scope, type);
32+
public DriveItemCreateLinkRequestBuilder(final String requestUrl, final IBaseClient client, final java.util.List<Option> requestOptions, final String type, final String scope) {
33+
super(requestUrl, client, requestOptions, type, scope);
3434
}
3535
}

graphsdk/src/main/java/com/microsoft/graph/generated/BaseDriveItemCreateLinkBody.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,20 @@
2626
public class BaseDriveItemCreateLinkBody {
2727

2828
/**
29-
* The scope.
29+
* The type.
3030
*
3131
*/
32-
@SerializedName("scope")
32+
@SerializedName("type")
3333
@Expose
34-
public String scope;
34+
public String type;
3535

3636
/**
37-
* The type.
37+
* The scope.
3838
*
3939
*/
40-
@SerializedName("type")
40+
@SerializedName("scope")
4141
@Expose
42-
public String type;
42+
public String scope;
4343

4444

4545
/**

graphsdk/src/main/java/com/microsoft/graph/generated/BaseDriveItemCreateLinkRequestBuilder.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ public class BaseDriveItemCreateLinkRequestBuilder extends BaseActionRequestBuil
2828
* @param client The service client
2929
* @param requestOptions The options for this request
3030
*/
31-
public BaseDriveItemCreateLinkRequestBuilder(final String requestUrl, final IBaseClient client, final java.util.List<Option> requestOptions, final String scope, final String type) {
31+
public BaseDriveItemCreateLinkRequestBuilder(final String requestUrl, final IBaseClient client, final java.util.List<Option> requestOptions, final String type, final String scope) {
3232
super(requestUrl, client, requestOptions);
33-
mBodyParams.put("scope", scope);
3433
mBodyParams.put("type", type);
34+
mBodyParams.put("scope", scope);
3535
}
3636

3737
/**
@@ -56,14 +56,14 @@ public IDriveItemCreateLinkRequest buildRequest(final java.util.List<Option> req
5656
requestOptions
5757
);
5858

59-
if (hasParameter("scope")) {
60-
request.mBody.scope = getParameter("scope");
61-
}
62-
6359
if (hasParameter("type")) {
6460
request.mBody.type = getParameter("type");
6561
}
6662

63+
if (hasParameter("scope")) {
64+
request.mBody.scope = getParameter("scope");
65+
}
66+
6767
return request;
6868
}
6969
}

graphsdk/src/main/java/com/microsoft/graph/generated/BaseDriveItemRequestBuilder.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,15 +84,15 @@ public IDriveItemCopyRequestBuilder getCopy(final String name, final ItemReferen
8484
return new DriveItemCopyRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.copy"), getClient(), null, name, parentReference);
8585
}
8686

87-
public IDriveItemCreateLinkRequestBuilder getCreateLink(final String scope, final String type) {
88-
return new DriveItemCreateLinkRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.createLink"), getClient(), null, scope, type);
87+
public IDriveItemCreateLinkRequestBuilder getCreateLink(final String type, final String scope) {
88+
return new DriveItemCreateLinkRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.createLink"), getClient(), null, type, scope);
8989
}
9090

9191
public IDriveItemCreateUploadSessionRequestBuilder getCreateUploadSession(final DriveItemUploadableProperties item) {
9292
return new DriveItemCreateUploadSessionRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.createUploadSession"), getClient(), null, item);
9393
}
9494

95-
public IDriveItemInviteCollectionRequestBuilder getInvite(final String message, final java.util.List<DriveRecipient> recipients, final Boolean requireSignIn, final java.util.List<String> roles, final Boolean sendInvitation) {
95+
public IDriveItemInviteCollectionRequestBuilder getInvite(final Boolean requireSignIn, final java.util.List<String> roles, final Boolean sendInvitation, final String message, final java.util.List<DriveRecipient> recipients) {
9696
return new DriveItemInviteCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.invite"), getClient(), null, message, recipients, requireSignIn, roles, sendInvitation);
9797
}
9898

graphsdk/src/main/java/com/microsoft/graph/generated/BaseOnenotePageRequestBuilder.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,8 @@ public INotebookRequestBuilder getParentNotebook() {
6262
return new NotebookRequestBuilder(getRequestUrlWithAdditionalSegment("parentNotebook"), getClient(), null);
6363
}
6464

65-
public IOnenotePageStreamRequestBuilder getMsgraph_Content() {
66-
return new OnenotePageStreamRequestBuilder(getRequestUrlWithAdditionalSegment("content"), getClient(), null);
67-
}
68-
6965
public IOnenotePageStreamRequestBuilder getContent() {
70-
return new OnenotePageStreamRequestBuilder(getRequestUrlWithAdditionalSegment("$value"), getClient(), null);
66+
return new OnenotePageStreamRequestBuilder(getRequestUrlWithAdditionalSegment("content"), getClient(), null);
7167
}
7268

7369
public IOnenotePageOnenotePatchContentRequestBuilder getOnenotePatchContent(final java.util.List<OnenotePatchContentCommand> commands) {

graphsdk/src/main/java/com/microsoft/graph/generated/BaseOnenotePageStreamRequestBuilder.java

Lines changed: 2 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
public class BaseOnenotePageStreamRequestBuilder extends BaseRequestBuilder implements IBaseOnenotePageStreamRequestBuilder {
2424

2525
/**
26-
* The request builder for the OnenotePage
26+
* The request builder for the OnenotePageStream
2727
*
2828
* @param requestUrl The request url
2929
* @param client The service client
@@ -41,41 +41,10 @@ public IOnenotePageStreamRequest buildRequest() {
4141
}
4242

4343
/**
44-
* Creates the request with specific options instead of the existing options
44+
* Creates the request with specific requestOptions instead of the existing requestOptions
4545
*/
4646
public IOnenotePageStreamRequest buildRequest(final java.util.List<Option> requestOptions) {
4747
return new OnenotePageStreamRequest(getRequestUrl(), getClient(), requestOptions);
4848
}
4949

50-
/**
51-
* Gets the request builder for OnenoteSection.
52-
*/
53-
public IOnenoteSectionRequestBuilder getParentSection() {
54-
return new OnenoteSectionRequestBuilder(getRequestUrlWithAdditionalSegment("parentSection"), getClient(), null);
55-
}
56-
57-
/**
58-
* Gets the request builder for Notebook.
59-
*/
60-
public INotebookRequestBuilder getParentNotebook() {
61-
return new NotebookRequestBuilder(getRequestUrlWithAdditionalSegment("parentNotebook"), getClient(), null);
62-
}
63-
64-
public IOnenotePageStreamRequestBuilder getContent() {
65-
return new OnenotePageStreamRequestBuilder(getRequestUrlWithAdditionalSegment("content"), getClient(), null);
66-
}
67-
68-
69-
70-
public IOnenotePageOnenotePatchContentRequestBuilder getOnenotePatchContent(final java.util.List<OnenotePatchContentCommand> commands) {
71-
return new OnenotePageOnenotePatchContentRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.onenotePatchContent"), getClient(), null, commands);
72-
}
73-
74-
public IOnenotePageCopyToSectionRequestBuilder getCopyToSection(final String id, final String groupId) {
75-
return new OnenotePageCopyToSectionRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.copyToSection"), getClient(), null, id, groupId);
76-
}
77-
78-
public IOnenotePagePreviewRequestBuilder getPreview() {
79-
return new OnenotePagePreviewRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.preview"), getClient(), null);
80-
}
8150
}

graphsdk/src/main/java/com/microsoft/graph/generated/BaseOnenoteResourceStreamRequestBuilder.java

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
public class BaseOnenoteResourceStreamRequestBuilder extends BaseRequestBuilder implements IBaseOnenoteResourceStreamRequestBuilder {
2424

2525
/**
26-
* The request builder for the OnenoteResource
26+
* The request builder for the OnenoteResourceStream
2727
*
2828
* @param requestUrl The request url
2929
* @param client The service client
@@ -41,15 +41,10 @@ public IOnenoteResourceStreamRequest buildRequest() {
4141
}
4242

4343
/**
44-
* Creates the request with specific options instead of the existing options
44+
* Creates the request with specific requestOptions instead of the existing requestOptions
4545
*/
4646
public IOnenoteResourceStreamRequest buildRequest(final java.util.List<Option> requestOptions) {
4747
return new OnenoteResourceStreamRequest(getRequestUrl(), getClient(), requestOptions);
4848
}
4949

50-
public IOnenoteResourceStreamRequestBuilder getContent() {
51-
return new OnenoteResourceStreamRequestBuilder(getRequestUrlWithAdditionalSegment("content"), getClient(), null);
52-
}
53-
54-
5550
}

graphsdk/src/main/java/com/microsoft/graph/generated/IBaseDriveItemRequestBuilder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ public interface IBaseDriveItemRequestBuilder extends IRequestBuilder {
5050

5151
IDriveItemStreamRequestBuilder getContent();
5252
IDriveItemCopyRequestBuilder getCopy(final String name, final ItemReference parentReference);
53-
IDriveItemCreateLinkRequestBuilder getCreateLink(final String scope, final String type);
53+
IDriveItemCreateLinkRequestBuilder getCreateLink(final String type, final String scope);
5454
IDriveItemCreateUploadSessionRequestBuilder getCreateUploadSession(final DriveItemUploadableProperties item);
5555

56-
IDriveItemInviteCollectionRequestBuilder getInvite(final String message, final java.util.List<DriveRecipient> recipients, final Boolean requireSignIn, final java.util.List<String> roles, final Boolean sendInvitation);
56+
IDriveItemInviteCollectionRequestBuilder getInvite(final Boolean requireSignIn, final java.util.List<String> roles, final Boolean sendInvitation, final String message, final java.util.List<DriveRecipient> recipients);
5757

5858
IDriveItemDeltaCollectionRequestBuilder getDelta(final String token);
5959

graphsdk/src/main/java/com/microsoft/graph/generated/IBaseOnenotePageRequestBuilder.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ public interface IBaseOnenotePageRequestBuilder extends IRequestBuilder {
4141
*/
4242
INotebookRequestBuilder getParentNotebook();
4343

44-
IOnenotePageStreamRequestBuilder getMsgraph_Content();
45-
4644
IOnenotePageStreamRequestBuilder getContent();
4745
IOnenotePageOnenotePatchContentRequestBuilder getOnenotePatchContent(final java.util.List<OnenotePatchContentCommand> commands);
4846
IOnenotePageCopyToSectionRequestBuilder getCopyToSection(final String id, final String groupId);

0 commit comments

Comments
 (0)