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

Commit da69cf5

Browse files
author
Caitlin Bales (MSFT)
committed
Switch back scope and type parameters
There was a discrepancy in two versions of our metadata that switched parameter order for scope and type. A similar fix is being added for BaseDriveItemRequestBuilder, which was overlooked at the last commit.
1 parent 51b1e1c commit da69cf5

File tree

5 files changed

+20
-20
lines changed

5 files changed

+20
-20
lines changed

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: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,16 +84,16 @@ 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) {
96-
return new DriveItemInviteCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.invite"), getClient(), null, message, recipients, requireSignIn, roles, 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) {
96+
return new DriveItemInviteCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.invite"), getClient(), null, requireSignIn, roles, sendInvitation, message, recipients);
9797
}
9898

9999
public IDriveItemDeltaCollectionRequestBuilder getDelta(final String token) {

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

0 commit comments

Comments
 (0)