@@ -40,11 +40,10 @@ internal ClientsClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipelin
4040 _pipeline = pipeline ;
4141 }
4242
43- /// <summary> Creates a new client. </summary>
44- /// <param name="body"> The <see cref="Client "/> to use. </param>
43+ /// <summary> Create a new client. </summary>
44+ /// <param name="body"> The <see cref="NewClientRequestBody "/> to use. </param>
4545 /// <param name="cancellationToken"> The cancellation token to use. </param>
46- /// <remarks> Creates a client. </remarks>
47- public virtual async Task < Response < ClientWithSecret > > CreateAsync ( Client body = null , CancellationToken cancellationToken = default )
46+ public virtual async Task < Response < ClientWithSecret > > CreateAsync ( NewClientRequestBody body = null , CancellationToken cancellationToken = default )
4847 {
4948 using var scope = _clientDiagnostics . CreateScope ( "ClientsClient.Create" ) ;
5049 scope . Start ( ) ;
@@ -59,11 +58,10 @@ public virtual async Task<Response<ClientWithSecret>> CreateAsync(Client body =
5958 }
6059 }
6160
62- /// <summary> Creates a new client. </summary>
63- /// <param name="body"> The <see cref="Client "/> to use. </param>
61+ /// <summary> Create a new client. </summary>
62+ /// <param name="body"> The <see cref="NewClientRequestBody "/> to use. </param>
6463 /// <param name="cancellationToken"> The cancellation token to use. </param>
65- /// <remarks> Creates a client. </remarks>
66- public virtual Response < ClientWithSecret > Create ( Client body = null , CancellationToken cancellationToken = default )
64+ public virtual Response < ClientWithSecret > Create ( NewClientRequestBody body = null , CancellationToken cancellationToken = default )
6765 {
6866 using var scope = _clientDiagnostics . CreateScope ( "ClientsClient.Create" ) ;
6967 scope . Start ( ) ;
@@ -78,7 +76,7 @@ public virtual Response<ClientWithSecret> Create(Client body = null, Cancellatio
7876 }
7977 }
8078
81- /// <summary> Deletes a client. </summary>
79+ /// <summary> Delete a client. </summary>
8280 /// <param name="id"> The <see cref="string"/> to use. </param>
8381 /// <param name="cancellationToken"> The cancellation token to use. </param>
8482 public virtual async Task < Response > DeleteAsync ( string id , CancellationToken cancellationToken = default )
@@ -96,7 +94,7 @@ public virtual async Task<Response> DeleteAsync(string id, CancellationToken can
9694 }
9795 }
9896
99- /// <summary> Deletes a client. </summary>
97+ /// <summary> Delete a client. </summary>
10098 /// <param name="id"> The <see cref="string"/> to use. </param>
10199 /// <param name="cancellationToken"> The cancellation token to use. </param>
102100 public virtual Response Delete ( string id , CancellationToken cancellationToken = default )
@@ -150,11 +148,11 @@ public virtual Response<Client> Get(string id, CancellationToken cancellationTok
150148 }
151149 }
152150
153- /// <summary> Updates a client. </summary>
151+ /// <summary> Update a client. </summary>
154152 /// <param name="id"> The <see cref="string"/> to use. </param>
155- /// <param name="body"> The <see cref="Client "/> to use. </param>
153+ /// <param name="body"> The <see cref="UpdateClientRequestBody "/> to use. </param>
156154 /// <param name="cancellationToken"> The cancellation token to use. </param>
157- public virtual async Task < Response < Client > > UpdateAsync ( string id , Client body , CancellationToken cancellationToken = default )
155+ public virtual async Task < Response < Client > > UpdateAsync ( string id , UpdateClientRequestBody body , CancellationToken cancellationToken = default )
158156 {
159157 using var scope = _clientDiagnostics . CreateScope ( "ClientsClient.Update" ) ;
160158 scope . Start ( ) ;
@@ -169,11 +167,11 @@ public virtual async Task<Response<Client>> UpdateAsync(string id, Client body,
169167 }
170168 }
171169
172- /// <summary> Updates a client. </summary>
170+ /// <summary> Update a client. </summary>
173171 /// <param name="id"> The <see cref="string"/> to use. </param>
174- /// <param name="body"> The <see cref="Client "/> to use. </param>
172+ /// <param name="body"> The <see cref="UpdateClientRequestBody "/> to use. </param>
175173 /// <param name="cancellationToken"> The cancellation token to use. </param>
176- public virtual Response < Client > Update ( string id , Client body , CancellationToken cancellationToken = default )
174+ public virtual Response < Client > Update ( string id , UpdateClientRequestBody body , CancellationToken cancellationToken = default )
177175 {
178176 using var scope = _clientDiagnostics . CreateScope ( "ClientsClient.Update" ) ;
179177 scope . Start ( ) ;
@@ -188,7 +186,7 @@ public virtual Response<Client> Update(string id, Client body, CancellationToken
188186 }
189187 }
190188
191- /// <summary> Updates a client key. </summary>
189+ /// <summary> Create or replace the client key. </summary>
192190 /// <param name="id"> The <see cref="string"/> to use. </param>
193191 /// <param name="body"> The <see cref="NewClientKeyRequestBody"/> to use. </param>
194192 /// <param name="cancellationToken"> The cancellation token to use. </param>
@@ -207,7 +205,7 @@ public virtual async Task<Response<ClientWithSecret>> NewKeyAsync(string id, New
207205 }
208206 }
209207
210- /// <summary> Updates a client key. </summary>
208+ /// <summary> Create or replace the client key. </summary>
211209 /// <param name="id"> The <see cref="string"/> to use. </param>
212210 /// <param name="body"> The <see cref="NewClientKeyRequestBody"/> to use. </param>
213211 /// <param name="cancellationToken"> The cancellation token to use. </param>
@@ -226,22 +224,20 @@ public virtual Response<ClientWithSecret> NewKey(string id, NewClientKeyRequestB
226224 }
227225 }
228226
229- /// <summary> Lists clients. </summary>
227+ /// <summary> List all clients. </summary>
230228 /// <param name="cancellationToken"> The cancellation token to use. </param>
231229 public virtual AsyncPageable < Client > ListAsync ( CancellationToken cancellationToken = default )
232230 {
233231 HttpMessage FirstPageRequest ( int ? pageSizeHint ) => RestClient . CreateListRequest ( ) ;
234- HttpMessage NextPageRequest ( int ? pageSizeHint , string nextLink ) => RestClient . CreateListNextPageRequest ( nextLink ) ;
235- return GeneratorPageableHelpers . CreateAsyncPageable ( FirstPageRequest , NextPageRequest , Client . DeserializeClient , _clientDiagnostics , _pipeline , "ClientsClient.List" , "value" , "nextLink" , cancellationToken ) ;
232+ return GeneratorPageableHelpers . CreateAsyncPageable ( FirstPageRequest , null , Client . DeserializeClient , _clientDiagnostics , _pipeline , "ClientsClient.List" , "value" , null , cancellationToken ) ;
236233 }
237234
238- /// <summary> Lists clients. </summary>
235+ /// <summary> List all clients. </summary>
239236 /// <param name="cancellationToken"> The cancellation token to use. </param>
240237 public virtual Pageable < Client > List ( CancellationToken cancellationToken = default )
241238 {
242239 HttpMessage FirstPageRequest ( int ? pageSizeHint ) => RestClient . CreateListRequest ( ) ;
243- HttpMessage NextPageRequest ( int ? pageSizeHint , string nextLink ) => RestClient . CreateListNextPageRequest ( nextLink ) ;
244- return GeneratorPageableHelpers . CreatePageable ( FirstPageRequest , NextPageRequest , Client . DeserializeClient , _clientDiagnostics , _pipeline , "ClientsClient.List" , "value" , "nextLink" , cancellationToken ) ;
240+ return GeneratorPageableHelpers . CreatePageable ( FirstPageRequest , null , Client . DeserializeClient , _clientDiagnostics , _pipeline , "ClientsClient.List" , "value" , null , cancellationToken ) ;
245241 }
246242 }
247243}
0 commit comments