Skip to content

Commit 17a9709

Browse files
mgmt, ACI upgrade 2023-05 (Azure#34480)
1 parent b09a107 commit 17a9709

File tree

108 files changed

+3516
-1007
lines changed

Some content is hidden

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

108 files changed

+3516
-1007
lines changed

sdk/resourcemanager/api-specs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"dir": "azure-resourcemanager-containerinstance",
5454
"source": "specification/containerinstance/resource-manager/readme.md",
5555
"package": "com.azure.resourcemanager.containerinstance",
56-
"args": "--tag=package-2021-10 --remove-inner=Container,Operation,CachedImages,Capabilities"
56+
"args": "--tag=package-2023-05 --remove-inner=Container,Operation,CachedImages,Capabilities --rename-model=ContainerGroupPropertiesProperties:ContainerGroupProperties,UserAssignedIdentities:ContainerGroupIdentityUserAssignedIdentities"
5757
},
5858
"containerregistry": {
5959
"dir": "azure-resourcemanager-containerregistry",

sdk/resourcemanager/azure-resourcemanager-containerinstance/CHANGELOG.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,16 @@
22

33
## 2.26.0-beta.1 (Unreleased)
44

5-
### Features Added
6-
75
### Breaking Changes
86

9-
### Bugs Fixed
7+
- Renamed `autoGeneratedDomainNameLabelScope` property to `dnsNameLabelReusePolicy` in `IpAddress`.
108

119
### Other Changes
1210

11+
#### Dependency Updates
12+
13+
- Updated `api-version` to `2023-05-01`.
14+
1315
## 2.25.0 (2023-03-24)
1416

1517
### Other Changes

sdk/resourcemanager/azure-resourcemanager-containerinstance/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444

4545
--add-opens com.azure.core/com.azure.core.implementation.util=ALL-UNNAMED
4646
</javaModulesSurefireArgLine>
47+
<revapi.skip>true</revapi.skip>
4748
</properties>
4849

4950
<developers>

sdk/resourcemanager/azure-resourcemanager-containerinstance/src/main/java/com/azure/resourcemanager/containerinstance/fluent/ContainerGroupsClient.java

Lines changed: 185 additions & 85 deletions
Large diffs are not rendered by default.

sdk/resourcemanager/azure-resourcemanager-containerinstance/src/main/java/com/azure/resourcemanager/containerinstance/fluent/ContainerInstanceManagementClient.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,11 @@ public interface ContainerInstanceManagementClient {
7272
* @return the ContainersClient object.
7373
*/
7474
ContainersClient getContainers();
75+
76+
/**
77+
* Gets the SubnetServiceAssociationLinksClient object to access its operations.
78+
*
79+
* @return the SubnetServiceAssociationLinksClient object.
80+
*/
81+
SubnetServiceAssociationLinksClient getSubnetServiceAssociationLinks();
7582
}

sdk/resourcemanager/azure-resourcemanager-containerinstance/src/main/java/com/azure/resourcemanager/containerinstance/fluent/ContainersClient.java

Lines changed: 65 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717
/** An instance of this class provides access to all the operations defined in ContainersClient. */
1818
public 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
}

sdk/resourcemanager/azure-resourcemanager-containerinstance/src/main/java/com/azure/resourcemanager/containerinstance/fluent/LocationsClient.java

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ public interface LocationsClient {
5353
PagedIterable<UsageInner> listUsage(String location, Context context);
5454

5555
/**
56-
* Get the list of cached images on specific OS type for a subscription in a region.
56+
* Get the list of cached images.
57+
*
58+
* <p>Get the list of cached images on specific OS type for a subscription in a region.
5759
*
5860
* @param location The identifier for the physical azure location.
5961
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -66,7 +68,9 @@ public interface LocationsClient {
6668
PagedFlux<CachedImages> listCachedImagesAsync(String location);
6769

6870
/**
69-
* Get the list of cached images on specific OS type for a subscription in a region.
71+
* Get the list of cached images.
72+
*
73+
* <p>Get the list of cached images on specific OS type for a subscription in a region.
7074
*
7175
* @param location The identifier for the physical azure location.
7276
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -79,7 +83,9 @@ public interface LocationsClient {
7983
PagedIterable<CachedImages> listCachedImages(String location);
8084

8185
/**
82-
* Get the list of cached images on specific OS type for a subscription in a region.
86+
* Get the list of cached images.
87+
*
88+
* <p>Get the list of cached images on specific OS type for a subscription in a region.
8389
*
8490
* @param location The identifier for the physical azure location.
8591
* @param context The context to associate with this operation.
@@ -93,7 +99,9 @@ public interface LocationsClient {
9399
PagedIterable<CachedImages> listCachedImages(String location, Context context);
94100

95101
/**
96-
* Get the list of CPU/memory/GPU capabilities of a region.
102+
* Get the list of capabilities of the location.
103+
*
104+
* <p>Get the list of CPU/memory/GPU capabilities of a region.
97105
*
98106
* @param location The identifier for the physical azure location.
99107
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -105,7 +113,9 @@ public interface LocationsClient {
105113
PagedFlux<Capabilities> listCapabilitiesAsync(String location);
106114

107115
/**
108-
* Get the list of CPU/memory/GPU capabilities of a region.
116+
* Get the list of capabilities of the location.
117+
*
118+
* <p>Get the list of CPU/memory/GPU capabilities of a region.
109119
*
110120
* @param location The identifier for the physical azure location.
111121
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -117,7 +127,9 @@ public interface LocationsClient {
117127
PagedIterable<Capabilities> listCapabilities(String location);
118128

119129
/**
120-
* Get the list of CPU/memory/GPU capabilities of a region.
130+
* Get the list of capabilities of the location.
131+
*
132+
* <p>Get the list of CPU/memory/GPU capabilities of a region.
121133
*
122134
* @param location The identifier for the physical azure location.
123135
* @param context The context to associate with this operation.

0 commit comments

Comments
 (0)