Skip to content

Commit

Permalink
mgmt, update containerinstance (Azure#24647)
Browse files Browse the repository at this point in the history
  • Loading branch information
weidongxu-microsoft authored Oct 19, 2021
1 parent a6ca70e commit 7f92fc0
Show file tree
Hide file tree
Showing 35 changed files with 1,809 additions and 840,104 deletions.
2 changes: 1 addition & 1 deletion sdk/resourcemanager/api-specs.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
"dir": "azure-resourcemanager-containerinstance",
"source": "specification/containerinstance/resource-manager/readme.md",
"package": "com.azure.resourcemanager.containerinstance",
"args": "--payload-flattening-threshold=1 --tag=package-2021-03 --remove-inner=Container,Operation,CachedImages,Capabilities"
"args": "--payload-flattening-threshold=1 --tag=package-2021-09 --remove-inner=Container,Operation,CachedImages,Capabilities"
},
"containerregistry": {
"dir": "azure-resourcemanager-containerregistry",
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@

## 2.9.0-beta.1 (Unreleased)

### Features Added

### Breaking Changes

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

### Other Changes

#### Dependency Updates

- Updated `api-version` to `2021-09-01`.

## 2.8.0 (2021-09-15)

### Dependency Updates
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,12 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.7.32</version> <!-- {x-version-update;org.slf4j:slf4j-simple;external_dependency} -->
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
Expand Down Expand Up @@ -159,6 +165,8 @@
<artifactId>revapi-maven-plugin</artifactId>
<version>0.11.2</version> <!-- {x-version-update;org.revapi:revapi-maven-plugin;external_dependency} -->
<configuration>
<skip>true</skip>

<analysisConfiguration>
<revapi.ignore>
<item>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet;
import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing;
import java.nio.ByteBuffer;
import java.util.List;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

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

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

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

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

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

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

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

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

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

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

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

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

/**
Expand Down Expand Up @@ -681,4 +682,68 @@ SyncPoller<PollResult<Void>, Void> beginRestart(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void start(String resourceGroupName, String containerGroupName, Context context);

/**
* Gets all the network dependencies for this container group to allow complete control of network setting and
* configuration. For container groups, this will always be an empty list.
*
* @param resourceGroupName The name of the resource group.
* @param containerGroupName The name of the container group.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return all the network dependencies for this container group to allow complete control of network setting and
* configuration.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono<Response<List<String>>> getOutboundNetworkDependenciesEndpointsWithResponseAsync(
String resourceGroupName, String containerGroupName);

/**
* Gets all the network dependencies for this container group to allow complete control of network setting and
* configuration. For container groups, this will always be an empty list.
*
* @param resourceGroupName The name of the resource group.
* @param containerGroupName The name of the container group.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return all the network dependencies for this container group to allow complete control of network setting and
* configuration.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono<List<String>> getOutboundNetworkDependenciesEndpointsAsync(
String resourceGroupName, String containerGroupName);

/**
* Gets all the network dependencies for this container group to allow complete control of network setting and
* configuration. For container groups, this will always be an empty list.
*
* @param resourceGroupName The name of the resource group.
* @param containerGroupName The name of the container group.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return all the network dependencies for this container group to allow complete control of network setting and
* configuration.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
List<String> getOutboundNetworkDependenciesEndpoints(String resourceGroupName, String containerGroupName);

/**
* Gets all the network dependencies for this container group to allow complete control of network setting and
* configuration. For container groups, this will always be an empty list.
*
* @param resourceGroupName The name of the resource group.
* @param containerGroupName The name of the container group.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return all the network dependencies for this container group to allow complete control of network setting and
* configuration.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<List<String>> getOutboundNetworkDependenciesEndpointsWithResponse(
String resourceGroupName, String containerGroupName, Context context);
}
Loading

0 comments on commit 7f92fc0

Please sign in to comment.