Skip to content
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.3 (Unreleased)
## 1.0.0-beta.1 (2022-05-12)

- Azure Resource Manager ContainerAppsApi client library for Java. This package contains Microsoft Azure SDK for ContainerAppsApi Management SDK. Package tag package-2022-05. 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-03. 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-05. 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.2</version>
<version>1.0.0-beta.3</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
295 changes: 249 additions & 46 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-03.</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-05.</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 @@ -27,23 +27,29 @@
import com.azure.resourcemanager.appcontainers.implementation.CertificatesImpl;
import com.azure.resourcemanager.appcontainers.implementation.ContainerAppsApiClientBuilder;
import com.azure.resourcemanager.appcontainers.implementation.ContainerAppsAuthConfigsImpl;
import com.azure.resourcemanager.appcontainers.implementation.ContainerAppsDiagnosticsImpl;
import com.azure.resourcemanager.appcontainers.implementation.ContainerAppsImpl;
import com.azure.resourcemanager.appcontainers.implementation.ContainerAppsRevisionReplicasImpl;
import com.azure.resourcemanager.appcontainers.implementation.ContainerAppsRevisionsImpl;
import com.azure.resourcemanager.appcontainers.implementation.ContainerAppsSourceControlsImpl;
import com.azure.resourcemanager.appcontainers.implementation.DaprComponentsImpl;
import com.azure.resourcemanager.appcontainers.implementation.ManagedEnvironmentDiagnosticsImpl;
import com.azure.resourcemanager.appcontainers.implementation.ManagedEnvironmentsDiagnosticsImpl;
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;
import com.azure.resourcemanager.appcontainers.models.ContainerAppsAuthConfigs;
import com.azure.resourcemanager.appcontainers.models.ContainerAppsDiagnostics;
import com.azure.resourcemanager.appcontainers.models.ContainerAppsRevisionReplicas;
import com.azure.resourcemanager.appcontainers.models.ContainerAppsRevisions;
import com.azure.resourcemanager.appcontainers.models.ContainerAppsSourceControls;
import com.azure.resourcemanager.appcontainers.models.DaprComponents;
import com.azure.resourcemanager.appcontainers.models.ManagedEnvironmentDiagnostics;
import com.azure.resourcemanager.appcontainers.models.ManagedEnvironments;
import com.azure.resourcemanager.appcontainers.models.ManagedEnvironmentsDiagnostics;
import com.azure.resourcemanager.appcontainers.models.ManagedEnvironmentsStorages;
import com.azure.resourcemanager.appcontainers.models.Namespaces;
import com.azure.resourcemanager.appcontainers.models.Operations;
Expand All @@ -66,6 +72,12 @@ public final class ContainerAppsApiManager {

private DaprComponents daprComponents;

private ContainerAppsDiagnostics containerAppsDiagnostics;

private ManagedEnvironmentDiagnostics managedEnvironmentDiagnostics;

private ManagedEnvironmentsDiagnostics managedEnvironmentsDiagnostics;

private Operations operations;

private ManagedEnvironments managedEnvironments;
Expand Down Expand Up @@ -243,7 +255,7 @@ public ContainerAppsApiManager authenticate(TokenCredential credential, AzurePro
.append("-")
.append("com.azure.resourcemanager.appcontainers")
.append("/")
.append("1.0.0-beta.2");
.append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
Expand Down Expand Up @@ -363,6 +375,45 @@ public DaprComponents daprComponents() {
return daprComponents;
}

/**
* Gets the resource collection API of ContainerAppsDiagnostics.
*
* @return Resource collection API of ContainerAppsDiagnostics.
*/
public ContainerAppsDiagnostics containerAppsDiagnostics() {
if (this.containerAppsDiagnostics == null) {
this.containerAppsDiagnostics =
new ContainerAppsDiagnosticsImpl(clientObject.getContainerAppsDiagnostics(), this);
}
return containerAppsDiagnostics;
}

/**
* Gets the resource collection API of ManagedEnvironmentDiagnostics.
*
* @return Resource collection API of ManagedEnvironmentDiagnostics.
*/
public ManagedEnvironmentDiagnostics managedEnvironmentDiagnostics() {
if (this.managedEnvironmentDiagnostics == null) {
this.managedEnvironmentDiagnostics =
new ManagedEnvironmentDiagnosticsImpl(clientObject.getManagedEnvironmentDiagnostics(), this);
}
return managedEnvironmentDiagnostics;
}

/**
* Gets the resource collection API of ManagedEnvironmentsDiagnostics.
*
* @return Resource collection API of ManagedEnvironmentsDiagnostics.
*/
public ManagedEnvironmentsDiagnostics managedEnvironmentsDiagnostics() {
if (this.managedEnvironmentsDiagnostics == null) {
this.managedEnvironmentsDiagnostics =
new ManagedEnvironmentsDiagnosticsImpl(clientObject.getManagedEnvironmentsDiagnostics(), this);
}
return managedEnvironmentsDiagnostics;
}

/**
* Gets the resource collection API of Operations.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,21 @@ public interface CertificatesClient {
* Get the Certificates in a given managed environment.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param managedEnvironmentName Name of the Managed Environment.
* @param environmentName Name of the Managed Environment.
* @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 Certificates in a given managed environment as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<CertificateInner> list(String resourceGroupName, String managedEnvironmentName);
PagedIterable<CertificateInner> list(String resourceGroupName, String environmentName);

/**
* Get the Certificates in a given managed environment.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param managedEnvironmentName Name of the Managed Environment.
* @param environmentName Name of the Managed Environment.
* @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
Expand All @@ -41,29 +41,29 @@ public interface CertificatesClient {
* @return the Certificates in a given managed environment as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<CertificateInner> list(String resourceGroupName, String managedEnvironmentName, Context context);
PagedIterable<CertificateInner> list(String resourceGroupName, String environmentName, Context context);

/**
* Get the specified Certificate.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param managedEnvironmentName Name of the Managed Environment.
* @param name Name of the Certificate.
* @param environmentName Name of the Managed Environment.
* @param certificateName Name of the Certificate.
* @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 specified Certificate.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
CertificateInner get(String resourceGroupName, String managedEnvironmentName, String name);
CertificateInner get(String resourceGroupName, String environmentName, String certificateName);

/**
* Get the specified Certificate.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param managedEnvironmentName Name of the Managed Environment.
* @param name Name of the Certificate.
* @param environmentName Name of the Managed Environment.
* @param certificateName Name of the Certificate.
* @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
Expand All @@ -73,29 +73,29 @@ public interface CertificatesClient {
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<CertificateInner> getWithResponse(
String resourceGroupName, String managedEnvironmentName, String name, Context context);
String resourceGroupName, String environmentName, String certificateName, Context context);

/**
* Create or Update a Certificate.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param managedEnvironmentName Name of the Managed Environment.
* @param name Name of the Certificate.
* @param environmentName Name of the Managed Environment.
* @param certificateName Name of the Certificate.
* @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 certificate used for Custom Domain bindings of Container Apps in a Managed Environment.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
CertificateInner createOrUpdate(String resourceGroupName, String managedEnvironmentName, String name);
CertificateInner createOrUpdate(String resourceGroupName, String environmentName, String certificateName);

/**
* Create or Update a Certificate.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param managedEnvironmentName Name of the Managed Environment.
* @param name Name of the Certificate.
* @param environmentName Name of the Managed Environment.
* @param certificateName Name of the Certificate.
* @param certificateEnvelope Certificate to be created or updated.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
Expand All @@ -108,31 +108,31 @@ Response<CertificateInner> getWithResponse(
@ServiceMethod(returns = ReturnType.SINGLE)
Response<CertificateInner> createOrUpdateWithResponse(
String resourceGroupName,
String managedEnvironmentName,
String name,
String environmentName,
String certificateName,
CertificateInner certificateEnvelope,
Context context);

/**
* Deletes the specified Certificate.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param managedEnvironmentName Name of the Managed Environment.
* @param name Name of the Certificate.
* @param environmentName Name of the Managed Environment.
* @param certificateName Name of the Certificate.
* @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.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String managedEnvironmentName, String name);
void delete(String resourceGroupName, String environmentName, String certificateName);

/**
* Deletes the specified Certificate.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param managedEnvironmentName Name of the Managed Environment.
* @param name Name of the Certificate.
* @param environmentName Name of the Managed Environment.
* @param certificateName Name of the Certificate.
* @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
Expand All @@ -142,14 +142,14 @@ Response<CertificateInner> createOrUpdateWithResponse(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<Void> deleteWithResponse(
String resourceGroupName, String managedEnvironmentName, String name, Context context);
String resourceGroupName, String environmentName, String certificateName, Context context);

/**
* Patches a certificate. Currently only patching of tags is supported.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param managedEnvironmentName Name of the Managed Environment.
* @param name Name of the Certificate.
* @param environmentName Name of the Managed Environment.
* @param certificateName Name of the Certificate.
* @param certificateEnvelope Properties of a certificate that need to be updated.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
Expand All @@ -159,14 +159,14 @@ Response<Void> deleteWithResponse(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
CertificateInner update(
String resourceGroupName, String managedEnvironmentName, String name, CertificatePatch certificateEnvelope);
String resourceGroupName, String environmentName, String certificateName, CertificatePatch certificateEnvelope);

/**
* Patches a certificate. Currently only patching of tags is supported.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param managedEnvironmentName Name of the Managed Environment.
* @param name Name of the Certificate.
* @param environmentName Name of the Managed Environment.
* @param certificateName Name of the Certificate.
* @param certificateEnvelope Properties of a certificate that need to be updated.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
Expand All @@ -179,8 +179,8 @@ CertificateInner update(
@ServiceMethod(returns = ReturnType.SINGLE)
Response<CertificateInner> updateWithResponse(
String resourceGroupName,
String managedEnvironmentName,
String name,
String environmentName,
String certificateName,
CertificatePatch certificateEnvelope,
Context context);
}
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,27 @@ public interface ContainerAppsApiClient {
*/
DaprComponentsClient getDaprComponents();

/**
* Gets the ContainerAppsDiagnosticsClient object to access its operations.
*
* @return the ContainerAppsDiagnosticsClient object.
*/
ContainerAppsDiagnosticsClient getContainerAppsDiagnostics();

/**
* Gets the ManagedEnvironmentDiagnosticsClient object to access its operations.
*
* @return the ManagedEnvironmentDiagnosticsClient object.
*/
ManagedEnvironmentDiagnosticsClient getManagedEnvironmentDiagnostics();

/**
* Gets the ManagedEnvironmentsDiagnosticsClient object to access its operations.
*
* @return the ManagedEnvironmentsDiagnosticsClient object.
*/
ManagedEnvironmentsDiagnosticsClient getManagedEnvironmentsDiagnostics();

/**
* Gets the OperationsClient object to access its operations.
*
Expand Down
Loading