Skip to content

Commit

Permalink
CodeGen from PR 19054 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 77e98157c8cd3ec2d8facb76d17a22a356690ade into a33bd39771914b2f62d2a422af044a32e54a86b1
  • Loading branch information
SDKAuto committed May 19, 2022
1 parent 44e0403 commit e6dccb0
Show file tree
Hide file tree
Showing 153 changed files with 6,779 additions and 2,194 deletions.
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-19)

- 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 @@ -301,7 +313,7 @@ public ContainerAppsApiManager authenticate(TokenCredential credential, AzurePro
}

/**
* Gets the resource collection API of ContainerAppsAuthConfigs.
* Gets the resource collection API of ContainerAppsAuthConfigs. It manages AuthConfig.
*
* @return Resource collection API of ContainerAppsAuthConfigs.
*/
Expand All @@ -314,7 +326,7 @@ public ContainerAppsAuthConfigs containerAppsAuthConfigs() {
}

/**
* Gets the resource collection API of ContainerApps.
* Gets the resource collection API of ContainerApps. It manages ContainerApp.
*
* @return Resource collection API of ContainerApps.
*/
Expand Down Expand Up @@ -352,7 +364,7 @@ public ContainerAppsRevisionReplicas containerAppsRevisionReplicas() {
}

/**
* Gets the resource collection API of DaprComponents.
* Gets the resource collection API of DaprComponents. It manages DaprComponent.
*
* @return Resource collection API of DaprComponents.
*/
Expand All @@ -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 All @@ -376,7 +427,7 @@ public Operations operations() {
}

/**
* Gets the resource collection API of ManagedEnvironments.
* Gets the resource collection API of ManagedEnvironments. It manages ManagedEnvironment.
*
* @return Resource collection API of ManagedEnvironments.
*/
Expand All @@ -388,7 +439,7 @@ public ManagedEnvironments managedEnvironments() {
}

/**
* Gets the resource collection API of Certificates.
* Gets the resource collection API of Certificates. It manages Certificate.
*
* @return Resource collection API of Certificates.
*/
Expand All @@ -412,7 +463,7 @@ public Namespaces namespaces() {
}

/**
* Gets the resource collection API of ManagedEnvironmentsStorages.
* Gets the resource collection API of ManagedEnvironmentsStorages. It manages ManagedEnvironmentStorage.
*
* @return Resource collection API of ManagedEnvironmentsStorages.
*/
Expand All @@ -425,7 +476,7 @@ public ManagedEnvironmentsStorages managedEnvironmentsStorages() {
}

/**
* Gets the resource collection API of ContainerAppsSourceControls.
* Gets the resource collection API of ContainerAppsSourceControls. It manages SourceControl.
*
* @return Resource collection API of ContainerAppsSourceControls.
*/
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);
}
Loading

0 comments on commit e6dccb0

Please sign in to comment.