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

[AutoPR azure-resourcemanager-appcontainers] Add AppState and LatestReadyRevisionName (#21034) #2351

Closed
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Release History

## 1.0.0-beta.4 (Unreleased)
## 1.0.0-beta.1 (2022-10-12)

- 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).

### 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-preview-2022-11. 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.3</version>
<version>1.0.0-beta.4</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
1,450 changes: 1,294 additions & 156 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-preview-2022-11.</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 @@ -24,26 +24,44 @@
import com.azure.core.util.Configuration;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.appcontainers.fluent.ContainerAppsApiClient;
import com.azure.resourcemanager.appcontainers.implementation.AvailableWorkloadProfilesImpl;
import com.azure.resourcemanager.appcontainers.implementation.BillingMetersImpl;
import com.azure.resourcemanager.appcontainers.implementation.CertificatesImpl;
import com.azure.resourcemanager.appcontainers.implementation.ConnectedEnvironmentsCertificatesImpl;
import com.azure.resourcemanager.appcontainers.implementation.ConnectedEnvironmentsDaprComponentsImpl;
import com.azure.resourcemanager.appcontainers.implementation.ConnectedEnvironmentsImpl;
import com.azure.resourcemanager.appcontainers.implementation.ConnectedEnvironmentsStoragesImpl;
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.AvailableWorkloadProfiles;
import com.azure.resourcemanager.appcontainers.models.BillingMeters;
import com.azure.resourcemanager.appcontainers.models.Certificates;
import com.azure.resourcemanager.appcontainers.models.ConnectedEnvironments;
import com.azure.resourcemanager.appcontainers.models.ConnectedEnvironmentsCertificates;
import com.azure.resourcemanager.appcontainers.models.ConnectedEnvironmentsDaprComponents;
import com.azure.resourcemanager.appcontainers.models.ConnectedEnvironmentsStorages;
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 @@ -58,13 +76,29 @@
public final class ContainerAppsApiManager {
private ContainerAppsAuthConfigs containerAppsAuthConfigs;

private AvailableWorkloadProfiles availableWorkloadProfiles;

private BillingMeters billingMeters;

private ConnectedEnvironments connectedEnvironments;

private ConnectedEnvironmentsCertificates connectedEnvironmentsCertificates;

private ConnectedEnvironmentsDaprComponents connectedEnvironmentsDaprComponents;

private ConnectedEnvironmentsStorages connectedEnvironmentsStorages;

private ContainerApps containerApps;

private ContainerAppsRevisions containerAppsRevisions;

private ContainerAppsRevisionReplicas containerAppsRevisionReplicas;

private DaprComponents daprComponents;
private ContainerAppsDiagnostics containerAppsDiagnostics;

private ManagedEnvironmentDiagnostics managedEnvironmentDiagnostics;

private ManagedEnvironmentsDiagnostics managedEnvironmentsDiagnostics;

private Operations operations;

Expand All @@ -74,6 +108,8 @@ public final class ContainerAppsApiManager {

private Namespaces namespaces;

private DaprComponents daprComponents;

private ManagedEnvironmentsStorages managedEnvironmentsStorages;

private ContainerAppsSourceControls containerAppsSourceControls;
Expand Down Expand Up @@ -243,7 +279,7 @@ public ContainerAppsApiManager authenticate(TokenCredential credential, AzurePro
.append("-")
.append("com.azure.resourcemanager.appcontainers")
.append("/")
.append("1.0.0-beta.3");
.append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
Expand Down Expand Up @@ -313,6 +349,83 @@ public ContainerAppsAuthConfigs containerAppsAuthConfigs() {
return containerAppsAuthConfigs;
}

/**
* Gets the resource collection API of AvailableWorkloadProfiles.
*
* @return Resource collection API of AvailableWorkloadProfiles.
*/
public AvailableWorkloadProfiles availableWorkloadProfiles() {
if (this.availableWorkloadProfiles == null) {
this.availableWorkloadProfiles =
new AvailableWorkloadProfilesImpl(clientObject.getAvailableWorkloadProfiles(), this);
}
return availableWorkloadProfiles;
}

/**
* Gets the resource collection API of BillingMeters.
*
* @return Resource collection API of BillingMeters.
*/
public BillingMeters billingMeters() {
if (this.billingMeters == null) {
this.billingMeters = new BillingMetersImpl(clientObject.getBillingMeters(), this);
}
return billingMeters;
}

/**
* Gets the resource collection API of ConnectedEnvironments. It manages ConnectedEnvironment.
*
* @return Resource collection API of ConnectedEnvironments.
*/
public ConnectedEnvironments connectedEnvironments() {
if (this.connectedEnvironments == null) {
this.connectedEnvironments = new ConnectedEnvironmentsImpl(clientObject.getConnectedEnvironments(), this);
}
return connectedEnvironments;
}

/**
* Gets the resource collection API of ConnectedEnvironmentsCertificates. It manages Certificate.
*
* @return Resource collection API of ConnectedEnvironmentsCertificates.
*/
public ConnectedEnvironmentsCertificates connectedEnvironmentsCertificates() {
if (this.connectedEnvironmentsCertificates == null) {
this.connectedEnvironmentsCertificates =
new ConnectedEnvironmentsCertificatesImpl(clientObject.getConnectedEnvironmentsCertificates(), this);
}
return connectedEnvironmentsCertificates;
}

/**
* Gets the resource collection API of ConnectedEnvironmentsDaprComponents. It manages DaprComponent.
*
* @return Resource collection API of ConnectedEnvironmentsDaprComponents.
*/
public ConnectedEnvironmentsDaprComponents connectedEnvironmentsDaprComponents() {
if (this.connectedEnvironmentsDaprComponents == null) {
this.connectedEnvironmentsDaprComponents =
new ConnectedEnvironmentsDaprComponentsImpl(
clientObject.getConnectedEnvironmentsDaprComponents(), this);
}
return connectedEnvironmentsDaprComponents;
}

/**
* Gets the resource collection API of ConnectedEnvironmentsStorages. It manages ConnectedEnvironmentStorage.
*
* @return Resource collection API of ConnectedEnvironmentsStorages.
*/
public ConnectedEnvironmentsStorages connectedEnvironmentsStorages() {
if (this.connectedEnvironmentsStorages == null) {
this.connectedEnvironmentsStorages =
new ConnectedEnvironmentsStoragesImpl(clientObject.getConnectedEnvironmentsStorages(), this);
}
return connectedEnvironmentsStorages;
}

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

/**
* Gets the resource collection API of DaprComponents. It manages DaprComponent.
* Gets the resource collection API of ContainerAppsDiagnostics.
*
* @return Resource collection API of DaprComponents.
* @return Resource collection API of ContainerAppsDiagnostics.
*/
public DaprComponents daprComponents() {
if (this.daprComponents == null) {
this.daprComponents = new DaprComponentsImpl(clientObject.getDaprComponents(), this);
public ContainerAppsDiagnostics containerAppsDiagnostics() {
if (this.containerAppsDiagnostics == null) {
this.containerAppsDiagnostics =
new ContainerAppsDiagnosticsImpl(clientObject.getContainerAppsDiagnostics(), this);
}
return daprComponents;
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;
}

/**
Expand Down Expand Up @@ -388,7 +528,7 @@ public ManagedEnvironments managedEnvironments() {
}

/**
* Gets the resource collection API of Certificates. It manages Certificate.
* Gets the resource collection API of Certificates.
*
* @return Resource collection API of Certificates.
*/
Expand All @@ -411,6 +551,18 @@ public Namespaces namespaces() {
return namespaces;
}

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

/**
* Gets the resource collection API of ManagedEnvironmentsStorages. It manages ManagedEnvironmentStorage.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.appcontainers.fluent;

import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.util.Context;
import com.azure.resourcemanager.appcontainers.fluent.models.AvailableWorkloadProfileInner;

/** An instance of this class provides access to all the operations defined in AvailableWorkloadProfilesClient. */
public interface AvailableWorkloadProfilesClient {
/**
* Get available workload profiles by location.
*
* <p>Get all available workload profiles for a location.
*
* @param location The name of Azure region.
* @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 available workload profiles for a location as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<AvailableWorkloadProfileInner> get(String location);

/**
* Get available workload profiles by location.
*
* <p>Get all available workload profiles for a location.
*
* @param location The name of Azure region.
* @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 available workload profiles for a location as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<AvailableWorkloadProfileInner> get(String location, Context context);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.appcontainers.fluent;

import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.appcontainers.fluent.models.BillingMeterCollectionInner;

/** An instance of this class provides access to all the operations defined in BillingMetersClient. */
public interface BillingMetersClient {
/**
* Get billing meters by location.
*
* <p>Get all billingMeters for a location.
*
* @param location The name of Azure region.
* @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 all billingMeters for a location along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<BillingMeterCollectionInner> getWithResponse(String location, Context context);

/**
* Get billing meters by location.
*
* <p>Get all billingMeters for a location.
*
* @param location The name of Azure region.
* @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 all billingMeters for a location.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
BillingMeterCollectionInner get(String location);
}
Loading