Skip to content

Commit be5b9dd

Browse files
authored
Merge pull request #446 from microsoftgraph/bugfix/missing-put-methods
- adds missing put methods
2 parents d3f9294 + 1867830 commit be5b9dd

File tree

788 files changed

+14972
-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.

788 files changed

+14972
-0
lines changed

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

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,27 @@ public CallRecord post(final CallRecord newCallRecord) throws ClientException {
115115
return send(HttpMethod.POST, newCallRecord);
116116
}
117117

118+
/**
119+
* Creates a CallRecord with a new object
120+
*
121+
* @param newCallRecord the object to create/update
122+
* @param callback the callback to be called after success or failure
123+
*/
124+
public void put(final CallRecord newCallRecord, final ICallback<CallRecord> callback) {
125+
send(HttpMethod.PUT, callback, newCallRecord);
126+
}
127+
128+
/**
129+
* Creates a CallRecord with a new object
130+
*
131+
* @param newCallRecord the object to create/update
132+
* @return the created CallRecord
133+
* @throws ClientException this exception occurs if the request was unable to complete for any reason
134+
*/
135+
public CallRecord put(final CallRecord newCallRecord) throws ClientException {
136+
return send(HttpMethod.PUT, newCallRecord);
137+
}
138+
118139
/**
119140
* Sets the select clause for the request
120141
*

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

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,23 @@ public interface ICallRecordRequest extends IHttpRequest {
7979
*/
8080
CallRecord post(final CallRecord newCallRecord) throws ClientException;
8181

82+
/**
83+
* Posts a CallRecord with a new object
84+
*
85+
* @param newCallRecord the object to create/update
86+
* @param callback the callback to be called after success or failure
87+
*/
88+
void put(final CallRecord newCallRecord, final ICallback<CallRecord> callback);
89+
90+
/**
91+
* Posts a CallRecord with a new object
92+
*
93+
* @param newCallRecord the object to create/update
94+
* @return the created CallRecord
95+
* @throws ClientException this exception occurs if the request was unable to complete for any reason
96+
*/
97+
CallRecord put(final CallRecord newCallRecord) throws ClientException;
98+
8299
/**
83100
* Sets the select clause for the request
84101
*

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

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,23 @@ public interface ISegmentRequest extends IHttpRequest {
7979
*/
8080
Segment post(final Segment newSegment) throws ClientException;
8181

82+
/**
83+
* Posts a Segment with a new object
84+
*
85+
* @param newSegment the object to create/update
86+
* @param callback the callback to be called after success or failure
87+
*/
88+
void put(final Segment newSegment, final ICallback<Segment> callback);
89+
90+
/**
91+
* Posts a Segment with a new object
92+
*
93+
* @param newSegment the object to create/update
94+
* @return the created Segment
95+
* @throws ClientException this exception occurs if the request was unable to complete for any reason
96+
*/
97+
Segment put(final Segment newSegment) throws ClientException;
98+
8299
/**
83100
* Sets the select clause for the request
84101
*

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

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,23 @@ public interface ISessionRequest extends IHttpRequest {
7979
*/
8080
Session post(final Session newSession) throws ClientException;
8181

82+
/**
83+
* Posts a Session with a new object
84+
*
85+
* @param newSession the object to create/update
86+
* @param callback the callback to be called after success or failure
87+
*/
88+
void put(final Session newSession, final ICallback<Session> callback);
89+
90+
/**
91+
* Posts a Session with a new object
92+
*
93+
* @param newSession the object to create/update
94+
* @return the created Session
95+
* @throws ClientException this exception occurs if the request was unable to complete for any reason
96+
*/
97+
Session put(final Session newSession) throws ClientException;
98+
8299
/**
83100
* Sets the select clause for the request
84101
*

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

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,27 @@ public Segment post(final Segment newSegment) throws ClientException {
111111
return send(HttpMethod.POST, newSegment);
112112
}
113113

114+
/**
115+
* Creates a Segment with a new object
116+
*
117+
* @param newSegment the object to create/update
118+
* @param callback the callback to be called after success or failure
119+
*/
120+
public void put(final Segment newSegment, final ICallback<Segment> callback) {
121+
send(HttpMethod.PUT, callback, newSegment);
122+
}
123+
124+
/**
125+
* Creates a Segment with a new object
126+
*
127+
* @param newSegment the object to create/update
128+
* @return the created Segment
129+
* @throws ClientException this exception occurs if the request was unable to complete for any reason
130+
*/
131+
public Segment put(final Segment newSegment) throws ClientException {
132+
return send(HttpMethod.PUT, newSegment);
133+
}
134+
114135
/**
115136
* Sets the select clause for the request
116137
*

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

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,27 @@ public Session post(final Session newSession) throws ClientException {
115115
return send(HttpMethod.POST, newSession);
116116
}
117117

118+
/**
119+
* Creates a Session with a new object
120+
*
121+
* @param newSession the object to create/update
122+
* @param callback the callback to be called after success or failure
123+
*/
124+
public void put(final Session newSession, final ICallback<Session> callback) {
125+
send(HttpMethod.PUT, callback, newSession);
126+
}
127+
128+
/**
129+
* Creates a Session with a new object
130+
*
131+
* @param newSession the object to create/update
132+
* @return the created Session
133+
* @throws ClientException this exception occurs if the request was unable to complete for any reason
134+
*/
135+
public Session put(final Session newSession) throws ClientException {
136+
return send(HttpMethod.PUT, newSession);
137+
}
138+
118139
/**
119140
* Sets the select clause for the request
120141
*

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

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,27 @@ public AadUserConversationMember post(final AadUserConversationMember newAadUser
113113
return send(HttpMethod.POST, newAadUserConversationMember);
114114
}
115115

116+
/**
117+
* Creates a AadUserConversationMember with a new object
118+
*
119+
* @param newAadUserConversationMember the object to create/update
120+
* @param callback the callback to be called after success or failure
121+
*/
122+
public void put(final AadUserConversationMember newAadUserConversationMember, final ICallback<AadUserConversationMember> callback) {
123+
send(HttpMethod.PUT, callback, newAadUserConversationMember);
124+
}
125+
126+
/**
127+
* Creates a AadUserConversationMember with a new object
128+
*
129+
* @param newAadUserConversationMember the object to create/update
130+
* @return the created AadUserConversationMember
131+
* @throws ClientException this exception occurs if the request was unable to complete for any reason
132+
*/
133+
public AadUserConversationMember put(final AadUserConversationMember newAadUserConversationMember) throws ClientException {
134+
return send(HttpMethod.PUT, newAadUserConversationMember);
135+
}
136+
116137
/**
117138
* Sets the select clause for the request
118139
*

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

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,27 @@ public ActivityBasedTimeoutPolicy post(final ActivityBasedTimeoutPolicy newActiv
111111
return send(HttpMethod.POST, newActivityBasedTimeoutPolicy);
112112
}
113113

114+
/**
115+
* Creates a ActivityBasedTimeoutPolicy with a new object
116+
*
117+
* @param newActivityBasedTimeoutPolicy the object to create/update
118+
* @param callback the callback to be called after success or failure
119+
*/
120+
public void put(final ActivityBasedTimeoutPolicy newActivityBasedTimeoutPolicy, final ICallback<ActivityBasedTimeoutPolicy> callback) {
121+
send(HttpMethod.PUT, callback, newActivityBasedTimeoutPolicy);
122+
}
123+
124+
/**
125+
* Creates a ActivityBasedTimeoutPolicy with a new object
126+
*
127+
* @param newActivityBasedTimeoutPolicy the object to create/update
128+
* @return the created ActivityBasedTimeoutPolicy
129+
* @throws ClientException this exception occurs if the request was unable to complete for any reason
130+
*/
131+
public ActivityBasedTimeoutPolicy put(final ActivityBasedTimeoutPolicy newActivityBasedTimeoutPolicy) throws ClientException {
132+
return send(HttpMethod.PUT, newActivityBasedTimeoutPolicy);
133+
}
134+
114135
/**
115136
* Sets the select clause for the request
116137
*

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

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,27 @@ public ActivityHistoryItem post(final ActivityHistoryItem newActivityHistoryItem
113113
return send(HttpMethod.POST, newActivityHistoryItem);
114114
}
115115

116+
/**
117+
* Creates a ActivityHistoryItem with a new object
118+
*
119+
* @param newActivityHistoryItem the object to create/update
120+
* @param callback the callback to be called after success or failure
121+
*/
122+
public void put(final ActivityHistoryItem newActivityHistoryItem, final ICallback<ActivityHistoryItem> callback) {
123+
send(HttpMethod.PUT, callback, newActivityHistoryItem);
124+
}
125+
126+
/**
127+
* Creates a ActivityHistoryItem with a new object
128+
*
129+
* @param newActivityHistoryItem the object to create/update
130+
* @return the created ActivityHistoryItem
131+
* @throws ClientException this exception occurs if the request was unable to complete for any reason
132+
*/
133+
public ActivityHistoryItem put(final ActivityHistoryItem newActivityHistoryItem) throws ClientException {
134+
return send(HttpMethod.PUT, newActivityHistoryItem);
135+
}
136+
116137
/**
117138
* Sets the select clause for the request
118139
*

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

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,27 @@ public AdministrativeUnit post(final AdministrativeUnit newAdministrativeUnit) t
111111
return send(HttpMethod.POST, newAdministrativeUnit);
112112
}
113113

114+
/**
115+
* Creates a AdministrativeUnit with a new object
116+
*
117+
* @param newAdministrativeUnit the object to create/update
118+
* @param callback the callback to be called after success or failure
119+
*/
120+
public void put(final AdministrativeUnit newAdministrativeUnit, final ICallback<AdministrativeUnit> callback) {
121+
send(HttpMethod.PUT, callback, newAdministrativeUnit);
122+
}
123+
124+
/**
125+
* Creates a AdministrativeUnit with a new object
126+
*
127+
* @param newAdministrativeUnit the object to create/update
128+
* @return the created AdministrativeUnit
129+
* @throws ClientException this exception occurs if the request was unable to complete for any reason
130+
*/
131+
public AdministrativeUnit put(final AdministrativeUnit newAdministrativeUnit) throws ClientException {
132+
return send(HttpMethod.PUT, newAdministrativeUnit);
133+
}
134+
114135
/**
115136
* Sets the select clause for the request
116137
*

0 commit comments

Comments
 (0)