1717/** An instance of this class provides access to all the operations defined in ContainersClient. */
1818public interface ContainersClient {
1919 /**
20- * Get the logs for a specified container instance in a specified resource group and container group.
20+ * Get the logs for a specified container instance.
21+ *
22+ * <p>Get the logs for a specified container instance in a specified resource group and container group.
2123 *
2224 * @param resourceGroupName The name of the resource group.
2325 * @param containerGroupName The name of the container group.
@@ -37,27 +39,9 @@ Mono<Response<LogsInner>> listLogsWithResponseAsync(
3739 String resourceGroupName , String containerGroupName , String containerName , Integer tail , Boolean timestamps );
3840
3941 /**
40- * Get the logs for a specified container instance in a specified resource group and container group .
42+ * Get the logs for a specified container instance.
4143 *
42- * @param resourceGroupName The name of the resource group.
43- * @param containerGroupName The name of the container group.
44- * @param containerName The name of the container instance.
45- * @param tail The number of lines to show from the tail of the container instance log. If not provided, all
46- * available logs are shown up to 4mb.
47- * @param timestamps If true, adds a timestamp at the beginning of every line of log output. If not provided,
48- * defaults to false.
49- * @throws IllegalArgumentException thrown if parameters fail the validation.
50- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
51- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
52- * @return the logs for a specified container instance in a specified resource group and container group on
53- * successful completion of {@link Mono}.
54- */
55- @ ServiceMethod (returns = ReturnType .SINGLE )
56- Mono <LogsInner > listLogsAsync (
57- String resourceGroupName , String containerGroupName , String containerName , Integer tail , Boolean timestamps );
58-
59- /**
60- * Get the logs for a specified container instance in a specified resource group and container group.
44+ * <p>Get the logs for a specified container instance in a specified resource group and container group.
6145 *
6246 * @param resourceGroupName The name of the resource group.
6347 * @param containerGroupName The name of the container group.
@@ -72,21 +56,9 @@ Mono<LogsInner> listLogsAsync(
7256 Mono <LogsInner > listLogsAsync (String resourceGroupName , String containerGroupName , String containerName );
7357
7458 /**
75- * Get the logs for a specified container instance in a specified resource group and container group .
59+ * Get the logs for a specified container instance.
7660 *
77- * @param resourceGroupName The name of the resource group.
78- * @param containerGroupName The name of the container group.
79- * @param containerName The name of the container instance.
80- * @throws IllegalArgumentException thrown if parameters fail the validation.
81- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
82- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
83- * @return the logs for a specified container instance in a specified resource group and container group.
84- */
85- @ ServiceMethod (returns = ReturnType .SINGLE )
86- LogsInner listLogs (String resourceGroupName , String containerGroupName , String containerName );
87-
88- /**
89- * Get the logs for a specified container instance in a specified resource group and container group.
61+ * <p>Get the logs for a specified container instance in a specified resource group and container group.
9062 *
9163 * @param resourceGroupName The name of the resource group.
9264 * @param containerGroupName The name of the container group.
@@ -112,7 +84,25 @@ Response<LogsInner> listLogsWithResponse(
11284 Context context );
11385
11486 /**
115- * Executes a command for a specific container instance in a specified resource group and container group.
87+ * Get the logs for a specified container instance.
88+ *
89+ * <p>Get the logs for a specified container instance in a specified resource group and container group.
90+ *
91+ * @param resourceGroupName The name of the resource group.
92+ * @param containerGroupName The name of the container group.
93+ * @param containerName The name of the container instance.
94+ * @throws IllegalArgumentException thrown if parameters fail the validation.
95+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
96+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
97+ * @return the logs for a specified container instance in a specified resource group and container group.
98+ */
99+ @ ServiceMethod (returns = ReturnType .SINGLE )
100+ LogsInner listLogs (String resourceGroupName , String containerGroupName , String containerName );
101+
102+ /**
103+ * Executes a command in a specific container instance.
104+ *
105+ * <p>Executes a command for a specific container instance in a specified resource group and container group.
116106 *
117107 * @param resourceGroupName The name of the resource group.
118108 * @param containerGroupName The name of the container group.
@@ -132,7 +122,9 @@ Mono<Response<ContainerExecResponseInner>> executeCommandWithResponseAsync(
132122 ContainerExecRequest containerExecRequest );
133123
134124 /**
135- * Executes a command for a specific container instance in a specified resource group and container group.
125+ * Executes a command in a specific container instance.
126+ *
127+ * <p>Executes a command for a specific container instance in a specified resource group and container group.
136128 *
137129 * @param resourceGroupName The name of the resource group.
138130 * @param containerGroupName The name of the container group.
@@ -151,47 +143,54 @@ Mono<ContainerExecResponseInner> executeCommandAsync(
151143 ContainerExecRequest containerExecRequest );
152144
153145 /**
154- * Executes a command for a specific container instance in a specified resource group and container group.
146+ * Executes a command in a specific container instance.
147+ *
148+ * <p>Executes a command for a specific container instance in a specified resource group and container group.
155149 *
156150 * @param resourceGroupName The name of the resource group.
157151 * @param containerGroupName The name of the container group.
158152 * @param containerName The name of the container instance.
159153 * @param containerExecRequest The request for the exec command.
154+ * @param context The context to associate with this operation.
160155 * @throws IllegalArgumentException thrown if parameters fail the validation.
161156 * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
162157 * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
163- * @return the information for the container exec command.
158+ * @return the information for the container exec command along with {@link Response} .
164159 */
165160 @ ServiceMethod (returns = ReturnType .SINGLE )
166- ContainerExecResponseInner executeCommand (
161+ Response < ContainerExecResponseInner > executeCommandWithResponse (
167162 String resourceGroupName ,
168163 String containerGroupName ,
169164 String containerName ,
170- ContainerExecRequest containerExecRequest );
165+ ContainerExecRequest containerExecRequest ,
166+ Context context );
171167
172168 /**
173- * Executes a command for a specific container instance in a specified resource group and container group.
169+ * Executes a command in a specific container instance.
170+ *
171+ * <p>Executes a command for a specific container instance in a specified resource group and container group.
174172 *
175173 * @param resourceGroupName The name of the resource group.
176174 * @param containerGroupName The name of the container group.
177175 * @param containerName The name of the container instance.
178176 * @param containerExecRequest The request for the exec command.
179- * @param context The context to associate with this operation.
180177 * @throws IllegalArgumentException thrown if parameters fail the validation.
181178 * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
182179 * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
183- * @return the information for the container exec command along with {@link Response} .
180+ * @return the information for the container exec command.
184181 */
185182 @ ServiceMethod (returns = ReturnType .SINGLE )
186- Response < ContainerExecResponseInner > executeCommandWithResponse (
183+ ContainerExecResponseInner executeCommand (
187184 String resourceGroupName ,
188185 String containerGroupName ,
189186 String containerName ,
190- ContainerExecRequest containerExecRequest ,
191- Context context );
187+ ContainerExecRequest containerExecRequest );
192188
193189 /**
194- * Attach to the output stream of a specific container instance in a specified resource group and container group.
190+ * Attach to the output of a specific container instance.
191+ *
192+ * <p>Attach to the output stream of a specific container instance in a specified resource group and container
193+ * group.
195194 *
196195 * @param resourceGroupName The name of the resource group.
197196 * @param containerGroupName The name of the container group.
@@ -207,7 +206,10 @@ Mono<Response<ContainerAttachResponseInner>> attachWithResponseAsync(
207206 String resourceGroupName , String containerGroupName , String containerName );
208207
209208 /**
210- * Attach to the output stream of a specific container instance in a specified resource group and container group.
209+ * Attach to the output of a specific container instance.
210+ *
211+ * <p>Attach to the output stream of a specific container instance in a specified resource group and container
212+ * group.
211213 *
212214 * @param resourceGroupName The name of the resource group.
213215 * @param containerGroupName The name of the container group.
@@ -222,32 +224,38 @@ Mono<ContainerAttachResponseInner> attachAsync(
222224 String resourceGroupName , String containerGroupName , String containerName );
223225
224226 /**
225- * Attach to the output stream of a specific container instance in a specified resource group and container group.
227+ * Attach to the output of a specific container instance.
228+ *
229+ * <p>Attach to the output stream of a specific container instance in a specified resource group and container
230+ * group.
226231 *
227232 * @param resourceGroupName The name of the resource group.
228233 * @param containerGroupName The name of the container group.
229234 * @param containerName The name of the container instance.
235+ * @param context The context to associate with this operation.
230236 * @throws IllegalArgumentException thrown if parameters fail the validation.
231237 * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
232238 * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
233- * @return the information for the output stream from container attach.
239+ * @return the information for the output stream from container attach along with {@link Response} .
234240 */
235241 @ ServiceMethod (returns = ReturnType .SINGLE )
236- ContainerAttachResponseInner attach (String resourceGroupName , String containerGroupName , String containerName );
242+ Response <ContainerAttachResponseInner > attachWithResponse (
243+ String resourceGroupName , String containerGroupName , String containerName , Context context );
237244
238245 /**
239- * Attach to the output stream of a specific container instance in a specified resource group and container group.
246+ * Attach to the output of a specific container instance.
247+ *
248+ * <p>Attach to the output stream of a specific container instance in a specified resource group and container
249+ * group.
240250 *
241251 * @param resourceGroupName The name of the resource group.
242252 * @param containerGroupName The name of the container group.
243253 * @param containerName The name of the container instance.
244- * @param context The context to associate with this operation.
245254 * @throws IllegalArgumentException thrown if parameters fail the validation.
246255 * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
247256 * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
248- * @return the information for the output stream from container attach along with {@link Response} .
257+ * @return the information for the output stream from container attach.
249258 */
250259 @ ServiceMethod (returns = ReturnType .SINGLE )
251- Response <ContainerAttachResponseInner > attachWithResponse (
252- String resourceGroupName , String containerGroupName , String containerName , Context context );
260+ ContainerAttachResponseInner attach (String resourceGroupName , String containerGroupName , String containerName );
253261}
0 commit comments