Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ReleasePR azure-resourcemanager-appcontainers] Release app microsoft.app 2023 08 01 preview #28566

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Release History

## 1.0.0-beta.2 (Unreleased)
## 1.0.0-beta.1 (2022-04-28)

- Azure Resource Manager ContainerAppsApi client library for Java. This package contains Microsoft Azure SDK for ContainerAppsApi Management SDK. Package tag package-2022-03. 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-2022-01-01-preview. 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-2022-03. 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.1</version>
<version>1.0.0-beta.2</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
293 changes: 237 additions & 56 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 @@ -13,7 +13,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-2022-01-01-preview.</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-2022-03.</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 @@ -34,6 +34,7 @@
import com.azure.resourcemanager.appcontainers.implementation.DaprComponentsImpl;
import com.azure.resourcemanager.appcontainers.implementation.ManagedEnvironmentsImpl;
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.models.Certificates;
import com.azure.resourcemanager.appcontainers.models.ContainerApps;
Expand All @@ -44,6 +45,7 @@
import com.azure.resourcemanager.appcontainers.models.DaprComponents;
import com.azure.resourcemanager.appcontainers.models.ManagedEnvironments;
import com.azure.resourcemanager.appcontainers.models.ManagedEnvironmentsStorages;
import com.azure.resourcemanager.appcontainers.models.Namespaces;
import com.azure.resourcemanager.appcontainers.models.Operations;
import java.time.Duration;
import java.time.temporal.ChronoUnit;
Expand All @@ -54,26 +56,28 @@

/** Entry point to ContainerAppsApiManager. */
public final class ContainerAppsApiManager {
private ContainerAppsAuthConfigs containerAppsAuthConfigs;

private ContainerApps containerApps;

private ContainerAppsRevisions containerAppsRevisions;

private ContainerAppsRevisionReplicas containerAppsRevisionReplicas;

private ManagedEnvironments managedEnvironments;

private Certificates certificates;
private DaprComponents daprComponents;

private Operations operations;

private ContainerAppsSourceControls containerAppsSourceControls;
private ManagedEnvironments managedEnvironments;

private DaprComponents daprComponents;
private Certificates certificates;

private ContainerAppsAuthConfigs containerAppsAuthConfigs;
private Namespaces namespaces;

private ManagedEnvironmentsStorages managedEnvironmentsStorages;

private ContainerAppsSourceControls containerAppsSourceControls;

private final ContainerAppsApiClient clientObject;

private ContainerAppsApiManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
Expand Down Expand Up @@ -296,6 +300,19 @@ public ContainerAppsApiManager authenticate(TokenCredential credential, AzurePro
}
}

/**
* Gets the resource collection API of ContainerAppsAuthConfigs.
*
* @return Resource collection API of ContainerAppsAuthConfigs.
*/
public ContainerAppsAuthConfigs containerAppsAuthConfigs() {
if (this.containerAppsAuthConfigs == null) {
this.containerAppsAuthConfigs =
new ContainerAppsAuthConfigsImpl(clientObject.getContainerAppsAuthConfigs(), this);
}
return containerAppsAuthConfigs;
}

/**
* Gets the resource collection API of ContainerApps.
*
Expand Down Expand Up @@ -335,27 +352,15 @@ public ContainerAppsRevisionReplicas containerAppsRevisionReplicas() {
}

/**
* Gets the resource collection API of ManagedEnvironments.
*
* @return Resource collection API of ManagedEnvironments.
*/
public ManagedEnvironments managedEnvironments() {
if (this.managedEnvironments == null) {
this.managedEnvironments = new ManagedEnvironmentsImpl(clientObject.getManagedEnvironments(), this);
}
return managedEnvironments;
}

/**
* Gets the resource collection API of Certificates.
* Gets the resource collection API of DaprComponents.
*
* @return Resource collection API of Certificates.
* @return Resource collection API of DaprComponents.
*/
public Certificates certificates() {
if (this.certificates == null) {
this.certificates = new CertificatesImpl(clientObject.getCertificates(), this);
public DaprComponents daprComponents() {
if (this.daprComponents == null) {
this.daprComponents = new DaprComponentsImpl(clientObject.getDaprComponents(), this);
}
return certificates;
return daprComponents;
}

/**
Expand All @@ -371,41 +376,39 @@ public Operations operations() {
}

/**
* Gets the resource collection API of ContainerAppsSourceControls.
* Gets the resource collection API of ManagedEnvironments.
*
* @return Resource collection API of ContainerAppsSourceControls.
* @return Resource collection API of ManagedEnvironments.
*/
public ContainerAppsSourceControls containerAppsSourceControls() {
if (this.containerAppsSourceControls == null) {
this.containerAppsSourceControls =
new ContainerAppsSourceControlsImpl(clientObject.getContainerAppsSourceControls(), this);
public ManagedEnvironments managedEnvironments() {
if (this.managedEnvironments == null) {
this.managedEnvironments = new ManagedEnvironmentsImpl(clientObject.getManagedEnvironments(), this);
}
return containerAppsSourceControls;
return managedEnvironments;
}

/**
* Gets the resource collection API of DaprComponents.
* Gets the resource collection API of Certificates.
*
* @return Resource collection API of DaprComponents.
* @return Resource collection API of Certificates.
*/
public DaprComponents daprComponents() {
if (this.daprComponents == null) {
this.daprComponents = new DaprComponentsImpl(clientObject.getDaprComponents(), this);
public Certificates certificates() {
if (this.certificates == null) {
this.certificates = new CertificatesImpl(clientObject.getCertificates(), this);
}
return daprComponents;
return certificates;
}

/**
* Gets the resource collection API of ContainerAppsAuthConfigs.
* Gets the resource collection API of Namespaces.
*
* @return Resource collection API of ContainerAppsAuthConfigs.
* @return Resource collection API of Namespaces.
*/
public ContainerAppsAuthConfigs containerAppsAuthConfigs() {
if (this.containerAppsAuthConfigs == null) {
this.containerAppsAuthConfigs =
new ContainerAppsAuthConfigsImpl(clientObject.getContainerAppsAuthConfigs(), this);
public Namespaces namespaces() {
if (this.namespaces == null) {
this.namespaces = new NamespacesImpl(clientObject.getNamespaces(), this);
}
return containerAppsAuthConfigs;
return namespaces;
}

/**
Expand All @@ -421,6 +424,19 @@ public ManagedEnvironmentsStorages managedEnvironmentsStorages() {
return managedEnvironmentsStorages;
}

/**
* Gets the resource collection API of ContainerAppsSourceControls.
*
* @return Resource collection API of ContainerAppsSourceControls.
*/
public ContainerAppsSourceControls containerAppsSourceControls() {
if (this.containerAppsSourceControls == null) {
this.containerAppsSourceControls =
new ContainerAppsSourceControlsImpl(clientObject.getContainerAppsSourceControls(), this);
}
return containerAppsSourceControls;
}

/**
* @return Wrapped service client ContainerAppsApiClient providing direct access to the underlying auto-generated
* API implementation, based on Azure REST API.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@ public interface ContainerAppsApiClient {
*/
Duration getDefaultPollInterval();

/**
* Gets the ContainerAppsAuthConfigsClient object to access its operations.
*
* @return the ContainerAppsAuthConfigsClient object.
*/
ContainerAppsAuthConfigsClient getContainerAppsAuthConfigs();

/**
* Gets the ContainerAppsClient object to access its operations.
*
Expand All @@ -66,18 +73,11 @@ public interface ContainerAppsApiClient {
ContainerAppsRevisionReplicasClient getContainerAppsRevisionReplicas();

/**
* Gets the ManagedEnvironmentsClient object to access its operations.
*
* @return the ManagedEnvironmentsClient object.
*/
ManagedEnvironmentsClient getManagedEnvironments();

/**
* Gets the CertificatesClient object to access its operations.
* Gets the DaprComponentsClient object to access its operations.
*
* @return the CertificatesClient object.
* @return the DaprComponentsClient object.
*/
CertificatesClient getCertificates();
DaprComponentsClient getDaprComponents();

/**
* Gets the OperationsClient object to access its operations.
Expand All @@ -87,30 +87,37 @@ public interface ContainerAppsApiClient {
OperationsClient getOperations();

/**
* Gets the ContainerAppsSourceControlsClient object to access its operations.
* Gets the ManagedEnvironmentsClient object to access its operations.
*
* @return the ContainerAppsSourceControlsClient object.
* @return the ManagedEnvironmentsClient object.
*/
ContainerAppsSourceControlsClient getContainerAppsSourceControls();
ManagedEnvironmentsClient getManagedEnvironments();

/**
* Gets the DaprComponentsClient object to access its operations.
* Gets the CertificatesClient object to access its operations.
*
* @return the DaprComponentsClient object.
* @return the CertificatesClient object.
*/
DaprComponentsClient getDaprComponents();
CertificatesClient getCertificates();

/**
* Gets the ContainerAppsAuthConfigsClient object to access its operations.
* Gets the NamespacesClient object to access its operations.
*
* @return the ContainerAppsAuthConfigsClient object.
* @return the NamespacesClient object.
*/
ContainerAppsAuthConfigsClient getContainerAppsAuthConfigs();
NamespacesClient getNamespaces();

/**
* Gets the ManagedEnvironmentsStoragesClient object to access its operations.
*
* @return the ManagedEnvironmentsStoragesClient object.
*/
ManagedEnvironmentsStoragesClient getManagedEnvironmentsStorages();

/**
* Gets the ContainerAppsSourceControlsClient object to access its operations.
*
* @return the ContainerAppsSourceControlsClient object.
*/
ContainerAppsSourceControlsClient getContainerAppsSourceControls();
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
import com.azure.resourcemanager.appcontainers.fluent.models.ContainerAppInner;
import com.azure.resourcemanager.appcontainers.fluent.models.CustomHostnameAnalysisResultInner;
import com.azure.resourcemanager.appcontainers.fluent.models.SecretsCollectionInner;
import com.azure.resourcemanager.appcontainers.models.ContainerAppPatch;

/** An instance of this class provides access to all the operations defined in ContainerAppsClient. */
public interface ContainerAppsClient {
Expand Down Expand Up @@ -218,36 +217,66 @@ ContainerAppInner createOrUpdate(
void delete(String resourceGroupName, String name, Context context);

/**
* Patches a Container App. Currently only patching of tags is supported.
* Patches a Container App using JSON Merge Patch.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param name Name of the Container App.
* @param containerAppEnvelope Properties of a container app that need to be updated.
* @param containerAppEnvelope Properties of a Container App that need to be updated.
* @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 long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<Void>, Void> beginUpdate(
String resourceGroupName, String name, ContainerAppInner containerAppEnvelope);

/**
* Patches a Container App using JSON Merge Patch.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param name Name of the Container App.
* @param containerAppEnvelope Properties of a Container App that need to be updated.
* @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 long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<Void>, Void> beginUpdate(
String resourceGroupName, String name, ContainerAppInner containerAppEnvelope, Context context);

/**
* Patches a Container App using JSON Merge Patch.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param name Name of the Container App.
* @param containerAppEnvelope Properties of a Container App that need to be updated.
* @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 update(String resourceGroupName, String name, ContainerAppPatch containerAppEnvelope);
void update(String resourceGroupName, String name, ContainerAppInner containerAppEnvelope);

/**
* Patches a Container App. Currently only patching of tags is supported.
* Patches a Container App using JSON Merge Patch.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param name Name of the Container App.
* @param containerAppEnvelope Properties of a container app that need to be updated.
* @param containerAppEnvelope Properties of a Container App that need to be updated.
* @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 along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<ContainerAppInner> updateWithResponse(
String resourceGroupName, String name, ContainerAppPatch containerAppEnvelope, Context context);
void update(String resourceGroupName, String name, ContainerAppInner containerAppEnvelope, Context context);

/**
* Analyzes a custom hostname for a Container App.
Expand Down
Loading