Skip to content

Commit

Permalink
CodeGen from PR 24360 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge f4c7c5f1ed997586f8c65bea0f133e49b71ab272 into 46e158c5b731411e4e70631b8d1ec9d6d8228d7b
  • Loading branch information
SDKAuto committed Jun 8, 2023
1 parent c032654 commit e388e55
Show file tree
Hide file tree
Showing 298 changed files with 3,278 additions and 8,074 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Release History

## 1.0.0-beta.6 (Unreleased)
## 1.0.0-beta.1 (2023-06-08)

- Azure Resource Manager ContainerAppsApi client library for Java. This package contains Microsoft Azure SDK for ContainerAppsApi Management SDK. Package tag package-preview-2023-04. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

### Features Added

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Azure Resource Manager ContainerAppsApi client library for Java.

This package contains Microsoft Azure SDK for ContainerAppsApi Management SDK. Package tag package-preview-2022-11. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
This package contains Microsoft Azure SDK for ContainerAppsApi Management SDK. Package tag package-preview-2023-04. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

## We'd love to hear your feedback

Expand Down Expand Up @@ -32,7 +32,7 @@ Various documentation is available to help you get started
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-appcontainers</artifactId>
<version>1.0.0-beta.5</version>
<version>1.0.0-beta.6</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
395 changes: 270 additions & 125 deletions sdk/appcontainers/azure-resourcemanager-appcontainers/SAMPLE.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<packaging>jar</packaging>

<name>Microsoft Azure SDK for ContainerAppsApi Management</name>
<description>This package contains Microsoft Azure SDK for ContainerAppsApi Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Package tag package-preview-2022-11.</description>
<description>This package contains Microsoft Azure SDK for ContainerAppsApi Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Package tag package-preview-2023-04.</description>
<url>https://github.com/Azure/azure-sdk-for-java</url>

<licenses>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
import com.azure.resourcemanager.appcontainers.implementation.ManagedEnvironmentsStoragesImpl;
import com.azure.resourcemanager.appcontainers.implementation.NamespacesImpl;
import com.azure.resourcemanager.appcontainers.implementation.OperationsImpl;
import com.azure.resourcemanager.appcontainers.implementation.ResourceProvidersImpl;
import com.azure.resourcemanager.appcontainers.models.AvailableWorkloadProfiles;
import com.azure.resourcemanager.appcontainers.models.BillingMeters;
import com.azure.resourcemanager.appcontainers.models.Certificates;
Expand All @@ -71,6 +72,7 @@
import com.azure.resourcemanager.appcontainers.models.ManagedEnvironmentsStorages;
import com.azure.resourcemanager.appcontainers.models.Namespaces;
import com.azure.resourcemanager.appcontainers.models.Operations;
import com.azure.resourcemanager.appcontainers.models.ResourceProviders;
import java.time.Duration;
import java.time.temporal.ChronoUnit;
import java.util.ArrayList;
Expand All @@ -96,10 +98,6 @@ public final class ContainerAppsApiManager {

private ContainerApps containerApps;

private Jobs jobs;

private JobsExecutions jobsExecutions;

private ContainerAppsRevisions containerAppsRevisions;

private ContainerAppsRevisionReplicas containerAppsRevisionReplicas;
Expand All @@ -112,6 +110,12 @@ public final class ContainerAppsApiManager {

private Operations operations;

private Jobs jobs;

private JobsExecutions jobsExecutions;

private ResourceProviders resourceProviders;

private ManagedEnvironments managedEnvironments;

private Certificates certificates;
Expand Down Expand Up @@ -291,7 +295,7 @@ public ContainerAppsApiManager authenticate(TokenCredential credential, AzurePro
.append("-")
.append("com.azure.resourcemanager.appcontainers")
.append("/")
.append("1.0.0-beta.5");
.append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
Expand Down Expand Up @@ -450,30 +454,6 @@ public ContainerApps containerApps() {
return containerApps;
}

/**
* Gets the resource collection API of Jobs. It manages Job.
*
* @return Resource collection API of Jobs.
*/
public Jobs jobs() {
if (this.jobs == null) {
this.jobs = new JobsImpl(clientObject.getJobs(), this);
}
return jobs;
}

/**
* Gets the resource collection API of JobsExecutions.
*
* @return Resource collection API of JobsExecutions.
*/
public JobsExecutions jobsExecutions() {
if (this.jobsExecutions == null) {
this.jobsExecutions = new JobsExecutionsImpl(clientObject.getJobsExecutions(), this);
}
return jobsExecutions;
}

/**
* Gets the resource collection API of ContainerAppsRevisions.
*
Expand Down Expand Up @@ -551,6 +531,42 @@ public Operations operations() {
return operations;
}

/**
* Gets the resource collection API of Jobs. It manages Job.
*
* @return Resource collection API of Jobs.
*/
public Jobs jobs() {
if (this.jobs == null) {
this.jobs = new JobsImpl(clientObject.getJobs(), this);
}
return jobs;
}

/**
* Gets the resource collection API of JobsExecutions.
*
* @return Resource collection API of JobsExecutions.
*/
public JobsExecutions jobsExecutions() {
if (this.jobsExecutions == null) {
this.jobsExecutions = new JobsExecutionsImpl(clientObject.getJobsExecutions(), this);
}
return jobsExecutions;
}

/**
* Gets the resource collection API of ResourceProviders.
*
* @return Resource collection API of ResourceProviders.
*/
public ResourceProviders resourceProviders() {
if (this.resourceProviders == null) {
this.resourceProviders = new ResourceProvidersImpl(clientObject.getResourceProviders(), this);
}
return resourceProviders;
}

/**
* Gets the resource collection API of ManagedEnvironments. It manages ManagedEnvironment.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,20 +100,6 @@ public interface ContainerAppsApiClient {
*/
ContainerAppsClient getContainerApps();

/**
* Gets the JobsClient object to access its operations.
*
* @return the JobsClient object.
*/
JobsClient getJobs();

/**
* Gets the JobsExecutionsClient object to access its operations.
*
* @return the JobsExecutionsClient object.
*/
JobsExecutionsClient getJobsExecutions();

/**
* Gets the ContainerAppsRevisionsClient object to access its operations.
*
Expand Down Expand Up @@ -156,6 +142,27 @@ public interface ContainerAppsApiClient {
*/
OperationsClient getOperations();

/**
* Gets the JobsClient object to access its operations.
*
* @return the JobsClient object.
*/
JobsClient getJobs();

/**
* Gets the JobsExecutionsClient object to access its operations.
*
* @return the JobsExecutionsClient object.
*/
JobsExecutionsClient getJobsExecutions();

/**
* Gets the ResourceProvidersClient object to access its operations.
*
* @return the ResourceProvidersClient object.
*/
ResourceProvidersClient getResourceProviders();

/**
* Gets the ManagedEnvironmentsClient object to access its operations.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -392,4 +392,124 @@ Response<ContainerAppAuthTokenInner> getAuthTokenWithResponse(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ContainerAppAuthTokenInner getAuthToken(String resourceGroupName, String containerAppName);

/**
* Start a container app.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param containerAppName Name of the Container App.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
* is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of container App.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<ContainerAppInner>, ContainerAppInner> beginStart(
String resourceGroupName, String containerAppName);

/**
* Start a container app.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param containerAppName Name of the Container App.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
* is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of container App.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<ContainerAppInner>, ContainerAppInner> beginStart(
String resourceGroupName, String containerAppName, Context context);

/**
* Start a container app.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param containerAppName Name of the Container App.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
* is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return container App.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ContainerAppInner start(String resourceGroupName, String containerAppName);

/**
* Start a container app.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param containerAppName Name of the Container App.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
* is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return container App.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ContainerAppInner start(String resourceGroupName, String containerAppName, Context context);

/**
* Stop a container app.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param containerAppName Name of the Container App.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
* is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of container App.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<ContainerAppInner>, ContainerAppInner> beginStop(
String resourceGroupName, String containerAppName);

/**
* Stop a container app.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param containerAppName Name of the Container App.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
* is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of container App.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<ContainerAppInner>, ContainerAppInner> beginStop(
String resourceGroupName, String containerAppName, Context context);

/**
* Stop a container app.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param containerAppName Name of the Container App.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
* is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return container App.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ContainerAppInner stop(String resourceGroupName, String containerAppName);

/**
* Stop a container app.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param containerAppName Name of the Container App.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
* is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return container App.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ContainerAppInner stop(String resourceGroupName, String containerAppName, Context context);
}
Loading

0 comments on commit e388e55

Please sign in to comment.