Skip to content

Commit 7f92fc0

Browse files
mgmt, update containerinstance (Azure#24647)
1 parent a6ca70e commit 7f92fc0

File tree

35 files changed

+1809
-840104
lines changed

35 files changed

+1809
-840104
lines changed

sdk/resourcemanager/api-specs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
"dir": "azure-resourcemanager-containerinstance",
9090
"source": "specification/containerinstance/resource-manager/readme.md",
9191
"package": "com.azure.resourcemanager.containerinstance",
92-
"args": "--payload-flattening-threshold=1 --tag=package-2021-03 --remove-inner=Container,Operation,CachedImages,Capabilities"
92+
"args": "--payload-flattening-threshold=1 --tag=package-2021-09 --remove-inner=Container,Operation,CachedImages,Capabilities"
9393
},
9494
"containerregistry": {
9595
"dir": "azure-resourcemanager-containerregistry",

sdk/resourcemanager/azure-resourcemanager-compute/src/test/resources/session-records/ComputeSkuTests.foo.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

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.9.0-beta.1 (Unreleased)
44

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

9-
### Bugs Fixed
7+
- `NetworkProfile` configuration in `ContainerGroup` is removed due to security concern from service. Please create `ContainerGroup` via `Subnet`.
108

119
### Other Changes
1210

11+
#### Dependency Updates
12+
13+
- Updated `api-version` to `2021-09-01`.
14+
1315
## 2.8.0 (2021-09-15)
1416

1517
### Dependency Updates

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,12 @@
8888
</exclusion>
8989
</exclusions>
9090
</dependency>
91+
<dependency>
92+
<groupId>org.slf4j</groupId>
93+
<artifactId>slf4j-simple</artifactId>
94+
<version>1.7.32</version> <!-- {x-version-update;org.slf4j:slf4j-simple;external_dependency} -->
95+
<scope>test</scope>
96+
</dependency>
9197
<dependency>
9298
<groupId>org.junit.jupiter</groupId>
9399
<artifactId>junit-jupiter-engine</artifactId>
@@ -159,6 +165,8 @@
159165
<artifactId>revapi-maven-plugin</artifactId>
160166
<version>0.11.2</version> <!-- {x-version-update;org.revapi:revapi-maven-plugin;external_dependency} -->
161167
<configuration>
168+
<skip>true</skip>
169+
162170
<analysisConfiguration>
163171
<revapi.ignore>
164172
<item>

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

Lines changed: 77 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet;
2020
import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing;
2121
import java.nio.ByteBuffer;
22+
import java.util.List;
2223
import reactor.core.publisher.Flux;
2324
import reactor.core.publisher.Mono;
2425

@@ -197,7 +198,7 @@ Mono<Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(
197198
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
198199
* @return a container group.
199200
*/
200-
@ServiceMethod(returns = ReturnType.SINGLE)
201+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
201202
PollerFlux<PollResult<ContainerGroupInner>, ContainerGroupInner> beginCreateOrUpdateAsync(
202203
String resourceGroupName, String containerGroupName, ContainerGroupInner containerGroup);
203204

@@ -212,7 +213,7 @@ PollerFlux<PollResult<ContainerGroupInner>, ContainerGroupInner> beginCreateOrUp
212213
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
213214
* @return a container group.
214215
*/
215-
@ServiceMethod(returns = ReturnType.SINGLE)
216+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
216217
SyncPoller<PollResult<ContainerGroupInner>, ContainerGroupInner> beginCreateOrUpdate(
217218
String resourceGroupName, String containerGroupName, ContainerGroupInner containerGroup);
218219

@@ -228,7 +229,7 @@ SyncPoller<PollResult<ContainerGroupInner>, ContainerGroupInner> beginCreateOrUp
228229
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
229230
* @return a container group.
230231
*/
231-
@ServiceMethod(returns = ReturnType.SINGLE)
232+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
232233
SyncPoller<PollResult<ContainerGroupInner>, ContainerGroupInner> beginCreateOrUpdate(
233234
String resourceGroupName, String containerGroupName, ContainerGroupInner containerGroup, Context context);
234235

@@ -362,7 +363,7 @@ Response<ContainerGroupInner> updateWithResponse(
362363
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
363364
* @return a container group.
364365
*/
365-
@ServiceMethod(returns = ReturnType.SINGLE)
366+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
366367
PollerFlux<PollResult<ContainerGroupInner>, ContainerGroupInner> beginDeleteAsync(
367368
String resourceGroupName, String containerGroupName);
368369

@@ -377,7 +378,7 @@ PollerFlux<PollResult<ContainerGroupInner>, ContainerGroupInner> beginDeleteAsyn
377378
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
378379
* @return a container group.
379380
*/
380-
@ServiceMethod(returns = ReturnType.SINGLE)
381+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
381382
SyncPoller<PollResult<ContainerGroupInner>, ContainerGroupInner> beginDelete(
382383
String resourceGroupName, String containerGroupName);
383384

@@ -393,7 +394,7 @@ SyncPoller<PollResult<ContainerGroupInner>, ContainerGroupInner> beginDelete(
393394
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
394395
* @return a container group.
395396
*/
396-
@ServiceMethod(returns = ReturnType.SINGLE)
397+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
397398
SyncPoller<PollResult<ContainerGroupInner>, ContainerGroupInner> beginDelete(
398399
String resourceGroupName, String containerGroupName, Context context);
399400

@@ -465,7 +466,7 @@ SyncPoller<PollResult<ContainerGroupInner>, ContainerGroupInner> beginDelete(
465466
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
466467
* @return the completion.
467468
*/
468-
@ServiceMethod(returns = ReturnType.SINGLE)
469+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
469470
PollerFlux<PollResult<Void>, Void> beginRestartAsync(String resourceGroupName, String containerGroupName);
470471

471472
/**
@@ -479,7 +480,7 @@ SyncPoller<PollResult<ContainerGroupInner>, ContainerGroupInner> beginDelete(
479480
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
480481
* @return the completion.
481482
*/
482-
@ServiceMethod(returns = ReturnType.SINGLE)
483+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
483484
SyncPoller<PollResult<Void>, Void> beginRestart(String resourceGroupName, String containerGroupName);
484485

485486
/**
@@ -494,7 +495,7 @@ SyncPoller<PollResult<ContainerGroupInner>, ContainerGroupInner> beginDelete(
494495
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
495496
* @return the completion.
496497
*/
497-
@ServiceMethod(returns = ReturnType.SINGLE)
498+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
498499
SyncPoller<PollResult<Void>, Void> beginRestart(
499500
String resourceGroupName, String containerGroupName, Context context);
500501

@@ -614,7 +615,7 @@ SyncPoller<PollResult<Void>, Void> beginRestart(
614615
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
615616
* @return the completion.
616617
*/
617-
@ServiceMethod(returns = ReturnType.SINGLE)
618+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
618619
PollerFlux<PollResult<Void>, Void> beginStartAsync(String resourceGroupName, String containerGroupName);
619620

620621
/**
@@ -627,7 +628,7 @@ SyncPoller<PollResult<Void>, Void> beginRestart(
627628
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
628629
* @return the completion.
629630
*/
630-
@ServiceMethod(returns = ReturnType.SINGLE)
631+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
631632
SyncPoller<PollResult<Void>, Void> beginStart(String resourceGroupName, String containerGroupName);
632633

633634
/**
@@ -641,7 +642,7 @@ SyncPoller<PollResult<Void>, Void> beginRestart(
641642
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
642643
* @return the completion.
643644
*/
644-
@ServiceMethod(returns = ReturnType.SINGLE)
645+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
645646
SyncPoller<PollResult<Void>, Void> beginStart(String resourceGroupName, String containerGroupName, Context context);
646647

647648
/**
@@ -681,4 +682,68 @@ SyncPoller<PollResult<Void>, Void> beginRestart(
681682
*/
682683
@ServiceMethod(returns = ReturnType.SINGLE)
683684
void start(String resourceGroupName, String containerGroupName, Context context);
685+
686+
/**
687+
* Gets all the network dependencies for this container group to allow complete control of network setting and
688+
* configuration. For container groups, this will always be an empty list.
689+
*
690+
* @param resourceGroupName The name of the resource group.
691+
* @param containerGroupName The name of the container group.
692+
* @throws IllegalArgumentException thrown if parameters fail the validation.
693+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
694+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
695+
* @return all the network dependencies for this container group to allow complete control of network setting and
696+
* configuration.
697+
*/
698+
@ServiceMethod(returns = ReturnType.SINGLE)
699+
Mono<Response<List<String>>> getOutboundNetworkDependenciesEndpointsWithResponseAsync(
700+
String resourceGroupName, String containerGroupName);
701+
702+
/**
703+
* Gets all the network dependencies for this container group to allow complete control of network setting and
704+
* configuration. For container groups, this will always be an empty list.
705+
*
706+
* @param resourceGroupName The name of the resource group.
707+
* @param containerGroupName The name of the container group.
708+
* @throws IllegalArgumentException thrown if parameters fail the validation.
709+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
710+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
711+
* @return all the network dependencies for this container group to allow complete control of network setting and
712+
* configuration.
713+
*/
714+
@ServiceMethod(returns = ReturnType.SINGLE)
715+
Mono<List<String>> getOutboundNetworkDependenciesEndpointsAsync(
716+
String resourceGroupName, String containerGroupName);
717+
718+
/**
719+
* Gets all the network dependencies for this container group to allow complete control of network setting and
720+
* configuration. For container groups, this will always be an empty list.
721+
*
722+
* @param resourceGroupName The name of the resource group.
723+
* @param containerGroupName The name of the container group.
724+
* @throws IllegalArgumentException thrown if parameters fail the validation.
725+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
726+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
727+
* @return all the network dependencies for this container group to allow complete control of network setting and
728+
* configuration.
729+
*/
730+
@ServiceMethod(returns = ReturnType.SINGLE)
731+
List<String> getOutboundNetworkDependenciesEndpoints(String resourceGroupName, String containerGroupName);
732+
733+
/**
734+
* Gets all the network dependencies for this container group to allow complete control of network setting and
735+
* configuration. For container groups, this will always be an empty list.
736+
*
737+
* @param resourceGroupName The name of the resource group.
738+
* @param containerGroupName The name of the container group.
739+
* @param context The context to associate with this operation.
740+
* @throws IllegalArgumentException thrown if parameters fail the validation.
741+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
742+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
743+
* @return all the network dependencies for this container group to allow complete control of network setting and
744+
* configuration.
745+
*/
746+
@ServiceMethod(returns = ReturnType.SINGLE)
747+
Response<List<String>> getOutboundNetworkDependenciesEndpointsWithResponse(
748+
String resourceGroupName, String containerGroupName, Context context);
684749
}

0 commit comments

Comments
 (0)