Skip to content

Commit c3d4d23

Browse files
authored
Merge pull request #443 from microsoftgraph/bugfix/collection-missing-skip-skiptoken
- adds missing skip and skip tokens methods on collection requests
2 parents c36110d + b4ee91b commit c3d4d23

File tree

412 files changed

+7622
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

412 files changed

+7622
-0
lines changed

src/main/java/com/microsoft/graph/callrecords/requests/extensions/CallRecordCollectionRequest.java

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,27 @@ public ICallRecordCollectionRequest top(final int value) {
106106
return (CallRecordCollectionRequest)this;
107107
}
108108

109+
/**
110+
* Sets the skip value for the request
111+
*
112+
* @param value of the number of items to skip
113+
* @return the updated request
114+
*/
115+
public ICallRecordCollectionRequest skip(final int value) {
116+
addQueryOption(new com.microsoft.graph.options.QueryOption("$skip", value + ""));
117+
return (CallRecordCollectionRequest)this;
118+
}
119+
120+
121+
/**
122+
* Add Skip token for pagination
123+
* @param skipToken - Token for pagination
124+
* @return the updated request
125+
*/
126+
public ICallRecordCollectionRequest skipToken(final String skipToken) {
127+
addQueryOption(new QueryOption("$skiptoken", skipToken));
128+
return (ICallRecordCollectionRequest)this;
129+
}
109130
public ICallRecordCollectionPage buildFromResponse(final CallRecordCollectionResponse response) {
110131
final ICallRecordCollectionRequestBuilder builder;
111132
if (response.nextLink != null) {

src/main/java/com/microsoft/graph/callrecords/requests/extensions/ICallRecordCollectionRequest.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,20 @@ public interface ICallRecordCollectionRequest {
5353
*/
5454
ICallRecordCollectionRequest top(final int value);
5555

56+
/**
57+
* Sets the skip value for the request
58+
*
59+
* @param value of the number of items to skip
60+
* @return the updated request
61+
*/
62+
ICallRecordCollectionRequest skip(final int value);
63+
64+
/**
65+
* Sets the skip token value for the request
66+
*
67+
* @param skipToken value for pagination
68+
*
69+
* @return the updated request
70+
*/
71+
ICallRecordCollectionRequest skipToken(String skipToken);
5672
}

src/main/java/com/microsoft/graph/callrecords/requests/extensions/ISegmentCollectionRequest.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,20 @@ public interface ISegmentCollectionRequest {
5353
*/
5454
ISegmentCollectionRequest top(final int value);
5555

56+
/**
57+
* Sets the skip value for the request
58+
*
59+
* @param value of the number of items to skip
60+
* @return the updated request
61+
*/
62+
ISegmentCollectionRequest skip(final int value);
63+
64+
/**
65+
* Sets the skip token value for the request
66+
*
67+
* @param skipToken value for pagination
68+
*
69+
* @return the updated request
70+
*/
71+
ISegmentCollectionRequest skipToken(String skipToken);
5672
}

src/main/java/com/microsoft/graph/callrecords/requests/extensions/ISessionCollectionRequest.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,20 @@ public interface ISessionCollectionRequest {
5353
*/
5454
ISessionCollectionRequest top(final int value);
5555

56+
/**
57+
* Sets the skip value for the request
58+
*
59+
* @param value of the number of items to skip
60+
* @return the updated request
61+
*/
62+
ISessionCollectionRequest skip(final int value);
63+
64+
/**
65+
* Sets the skip token value for the request
66+
*
67+
* @param skipToken value for pagination
68+
*
69+
* @return the updated request
70+
*/
71+
ISessionCollectionRequest skipToken(String skipToken);
5672
}

src/main/java/com/microsoft/graph/callrecords/requests/extensions/SegmentCollectionRequest.java

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,27 @@ public ISegmentCollectionRequest top(final int value) {
106106
return (SegmentCollectionRequest)this;
107107
}
108108

109+
/**
110+
* Sets the skip value for the request
111+
*
112+
* @param value of the number of items to skip
113+
* @return the updated request
114+
*/
115+
public ISegmentCollectionRequest skip(final int value) {
116+
addQueryOption(new com.microsoft.graph.options.QueryOption("$skip", value + ""));
117+
return (SegmentCollectionRequest)this;
118+
}
119+
120+
121+
/**
122+
* Add Skip token for pagination
123+
* @param skipToken - Token for pagination
124+
* @return the updated request
125+
*/
126+
public ISegmentCollectionRequest skipToken(final String skipToken) {
127+
addQueryOption(new QueryOption("$skiptoken", skipToken));
128+
return (ISegmentCollectionRequest)this;
129+
}
109130
public ISegmentCollectionPage buildFromResponse(final SegmentCollectionResponse response) {
110131
final ISegmentCollectionRequestBuilder builder;
111132
if (response.nextLink != null) {

src/main/java/com/microsoft/graph/callrecords/requests/extensions/SessionCollectionRequest.java

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,27 @@ public ISessionCollectionRequest top(final int value) {
106106
return (SessionCollectionRequest)this;
107107
}
108108

109+
/**
110+
* Sets the skip value for the request
111+
*
112+
* @param value of the number of items to skip
113+
* @return the updated request
114+
*/
115+
public ISessionCollectionRequest skip(final int value) {
116+
addQueryOption(new com.microsoft.graph.options.QueryOption("$skip", value + ""));
117+
return (SessionCollectionRequest)this;
118+
}
119+
120+
121+
/**
122+
* Add Skip token for pagination
123+
* @param skipToken - Token for pagination
124+
* @return the updated request
125+
*/
126+
public ISessionCollectionRequest skipToken(final String skipToken) {
127+
addQueryOption(new QueryOption("$skiptoken", skipToken));
128+
return (ISessionCollectionRequest)this;
129+
}
109130
public ISessionCollectionPage buildFromResponse(final SessionCollectionResponse response) {
110131
final ISessionCollectionRequestBuilder builder;
111132
if (response.nextLink != null) {

src/main/java/com/microsoft/graph/requests/extensions/ActivityBasedTimeoutPolicyCollectionRequest.java

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,27 @@ public IActivityBasedTimeoutPolicyCollectionRequest top(final int value) {
106106
return (ActivityBasedTimeoutPolicyCollectionRequest)this;
107107
}
108108

109+
/**
110+
* Sets the skip value for the request
111+
*
112+
* @param value of the number of items to skip
113+
* @return the updated request
114+
*/
115+
public IActivityBasedTimeoutPolicyCollectionRequest skip(final int value) {
116+
addQueryOption(new com.microsoft.graph.options.QueryOption("$skip", value + ""));
117+
return (ActivityBasedTimeoutPolicyCollectionRequest)this;
118+
}
119+
120+
121+
/**
122+
* Add Skip token for pagination
123+
* @param skipToken - Token for pagination
124+
* @return the updated request
125+
*/
126+
public IActivityBasedTimeoutPolicyCollectionRequest skipToken(final String skipToken) {
127+
addQueryOption(new QueryOption("$skiptoken", skipToken));
128+
return (IActivityBasedTimeoutPolicyCollectionRequest)this;
129+
}
109130
public IActivityBasedTimeoutPolicyCollectionPage buildFromResponse(final ActivityBasedTimeoutPolicyCollectionResponse response) {
110131
final IActivityBasedTimeoutPolicyCollectionRequestBuilder builder;
111132
if (response.nextLink != null) {

src/main/java/com/microsoft/graph/requests/extensions/ActivityHistoryItemCollectionRequest.java

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,27 @@ public IActivityHistoryItemCollectionRequest top(final int value) {
106106
return (ActivityHistoryItemCollectionRequest)this;
107107
}
108108

109+
/**
110+
* Sets the skip value for the request
111+
*
112+
* @param value of the number of items to skip
113+
* @return the updated request
114+
*/
115+
public IActivityHistoryItemCollectionRequest skip(final int value) {
116+
addQueryOption(new com.microsoft.graph.options.QueryOption("$skip", value + ""));
117+
return (ActivityHistoryItemCollectionRequest)this;
118+
}
119+
120+
121+
/**
122+
* Add Skip token for pagination
123+
* @param skipToken - Token for pagination
124+
* @return the updated request
125+
*/
126+
public IActivityHistoryItemCollectionRequest skipToken(final String skipToken) {
127+
addQueryOption(new QueryOption("$skiptoken", skipToken));
128+
return (IActivityHistoryItemCollectionRequest)this;
129+
}
109130
public IActivityHistoryItemCollectionPage buildFromResponse(final ActivityHistoryItemCollectionResponse response) {
110131
final IActivityHistoryItemCollectionRequestBuilder builder;
111132
if (response.nextLink != null) {

src/main/java/com/microsoft/graph/requests/extensions/AlertCollectionRequest.java

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,27 @@ public IAlertCollectionRequest top(final int value) {
106106
return (AlertCollectionRequest)this;
107107
}
108108

109+
/**
110+
* Sets the skip value for the request
111+
*
112+
* @param value of the number of items to skip
113+
* @return the updated request
114+
*/
115+
public IAlertCollectionRequest skip(final int value) {
116+
addQueryOption(new com.microsoft.graph.options.QueryOption("$skip", value + ""));
117+
return (AlertCollectionRequest)this;
118+
}
119+
120+
121+
/**
122+
* Add Skip token for pagination
123+
* @param skipToken - Token for pagination
124+
* @return the updated request
125+
*/
126+
public IAlertCollectionRequest skipToken(final String skipToken) {
127+
addQueryOption(new QueryOption("$skiptoken", skipToken));
128+
return (IAlertCollectionRequest)this;
129+
}
109130
public IAlertCollectionPage buildFromResponse(final AlertCollectionResponse response) {
110131
final IAlertCollectionRequestBuilder builder;
111132
if (response.nextLink != null) {

src/main/java/com/microsoft/graph/requests/extensions/AndroidManagedAppProtectionCollectionRequest.java

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,27 @@ public IAndroidManagedAppProtectionCollectionRequest top(final int value) {
106106
return (AndroidManagedAppProtectionCollectionRequest)this;
107107
}
108108

109+
/**
110+
* Sets the skip value for the request
111+
*
112+
* @param value of the number of items to skip
113+
* @return the updated request
114+
*/
115+
public IAndroidManagedAppProtectionCollectionRequest skip(final int value) {
116+
addQueryOption(new com.microsoft.graph.options.QueryOption("$skip", value + ""));
117+
return (AndroidManagedAppProtectionCollectionRequest)this;
118+
}
119+
120+
121+
/**
122+
* Add Skip token for pagination
123+
* @param skipToken - Token for pagination
124+
* @return the updated request
125+
*/
126+
public IAndroidManagedAppProtectionCollectionRequest skipToken(final String skipToken) {
127+
addQueryOption(new QueryOption("$skiptoken", skipToken));
128+
return (IAndroidManagedAppProtectionCollectionRequest)this;
129+
}
109130
public IAndroidManagedAppProtectionCollectionPage buildFromResponse(final AndroidManagedAppProtectionCollectionResponse response) {
110131
final IAndroidManagedAppProtectionCollectionRequestBuilder builder;
111132
if (response.nextLink != null) {

0 commit comments

Comments
 (0)