Skip to content

Commit 61e17b2

Browse files
committed
- updates unit tests
1 parent fdce57a commit 61e17b2

40 files changed

+760
-0
lines changed

test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/CallRequest.java

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

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

test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/CloudCommunicationsRequest.java

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,27 @@ public CloudCommunications post(final CloudCommunications newCloudCommunications
119119
return send(HttpMethod.POST, newCloudCommunications);
120120
}
121121

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

test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/EndpointRequest.java

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

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

test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/EntityType2Request.java

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

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

test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/EntityType3Request.java

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

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

test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/ICallRequest.java

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

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

test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/ICloudCommunicationsRequest.java

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

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

test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/IEndpointRequest.java

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

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

test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/IEntityType2Request.java

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

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

test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/IEntityType3Request.java

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

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

0 commit comments

Comments
 (0)