Skip to content

Commit 39874b5

Browse files
author
SDKAuto
committed
CodeGen from PR 25219 in Azure/azure-rest-api-specs
Merge 0a6d8fa2d06e786f86d8e138f0f3413fe522ec99 into 2735b620aeb695c106fecd9bf28d719aa0b75b43
1 parent ebcc4ec commit 39874b5

File tree

325 files changed

+3511
-8386
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

325 files changed

+3511
-8386
lines changed

sdk/appcontainers/azure-resourcemanager-appcontainers/CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Release History
22

3-
## 1.0.0-beta.6 (Unreleased)
3+
## 1.0.0-beta.1 (2023-08-09)
4+
5+
- Azure Resource Manager ContainerAppsApi client library for Java. This package contains Microsoft Azure SDK for ContainerAppsApi Management SDK. Package tag package-2023-05. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
46

57
### Features Added
68

sdk/appcontainers/azure-resourcemanager-appcontainers/README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Azure Resource Manager ContainerAppsApi client library for Java.
44

5-
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).
5+
This package contains Microsoft Azure SDK for ContainerAppsApi Management SDK. Package tag package-2023-05. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
66

77
## We'd love to hear your feedback
88

@@ -32,7 +32,7 @@ Various documentation is available to help you get started
3232
<dependency>
3333
<groupId>com.azure.resourcemanager</groupId>
3434
<artifactId>azure-resourcemanager-appcontainers</artifactId>
35-
<version>1.0.0-beta.5</version>
35+
<version>1.0.0-beta.6</version>
3636
</dependency>
3737
```
3838
[//]: # ({x-version-update-end})
@@ -103,3 +103,5 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
103103
[cg]: https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md
104104
[coc]: https://opensource.microsoft.com/codeofconduct/
105105
[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/
106+
107+
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-java%2Fsdk%2Fappcontainers%2Fazure-resourcemanager-appcontainers%2FREADME.png)

sdk/appcontainers/azure-resourcemanager-appcontainers/SAMPLE.md

Lines changed: 270 additions & 125 deletions
Large diffs are not rendered by default.

sdk/appcontainers/azure-resourcemanager-appcontainers/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<packaging>jar</packaging>
1919

2020
<name>Microsoft Azure SDK for ContainerAppsApi Management</name>
21-
<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>
21+
<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-2023-05.</description>
2222
<url>https://github.com/Azure/azure-sdk-for-java</url>
2323

2424
<licenses>

sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/ContainerAppsApiManager.java

Lines changed: 45 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
import com.azure.resourcemanager.appcontainers.implementation.ManagedEnvironmentsStoragesImpl;
4949
import com.azure.resourcemanager.appcontainers.implementation.NamespacesImpl;
5050
import com.azure.resourcemanager.appcontainers.implementation.OperationsImpl;
51+
import com.azure.resourcemanager.appcontainers.implementation.ResourceProvidersImpl;
5152
import com.azure.resourcemanager.appcontainers.models.AvailableWorkloadProfiles;
5253
import com.azure.resourcemanager.appcontainers.models.BillingMeters;
5354
import com.azure.resourcemanager.appcontainers.models.Certificates;
@@ -71,6 +72,7 @@
7172
import com.azure.resourcemanager.appcontainers.models.ManagedEnvironmentsStorages;
7273
import com.azure.resourcemanager.appcontainers.models.Namespaces;
7374
import com.azure.resourcemanager.appcontainers.models.Operations;
75+
import com.azure.resourcemanager.appcontainers.models.ResourceProviders;
7476
import java.time.Duration;
7577
import java.time.temporal.ChronoUnit;
7678
import java.util.ArrayList;
@@ -96,10 +98,6 @@ public final class ContainerAppsApiManager {
9698

9799
private ContainerApps containerApps;
98100

99-
private Jobs jobs;
100-
101-
private JobsExecutions jobsExecutions;
102-
103101
private ContainerAppsRevisions containerAppsRevisions;
104102

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

113111
private Operations operations;
114112

113+
private Jobs jobs;
114+
115+
private JobsExecutions jobsExecutions;
116+
117+
private ResourceProviders resourceProviders;
118+
115119
private ManagedEnvironments managedEnvironments;
116120

117121
private Certificates certificates;
@@ -291,7 +295,7 @@ public ContainerAppsApiManager authenticate(TokenCredential credential, AzurePro
291295
.append("-")
292296
.append("com.azure.resourcemanager.appcontainers")
293297
.append("/")
294-
.append("1.0.0-beta.5");
298+
.append("1.0.0-beta.1");
295299
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
296300
userAgentBuilder
297301
.append(" (")
@@ -450,30 +454,6 @@ public ContainerApps containerApps() {
450454
return containerApps;
451455
}
452456

453-
/**
454-
* Gets the resource collection API of Jobs. It manages Job.
455-
*
456-
* @return Resource collection API of Jobs.
457-
*/
458-
public Jobs jobs() {
459-
if (this.jobs == null) {
460-
this.jobs = new JobsImpl(clientObject.getJobs(), this);
461-
}
462-
return jobs;
463-
}
464-
465-
/**
466-
* Gets the resource collection API of JobsExecutions.
467-
*
468-
* @return Resource collection API of JobsExecutions.
469-
*/
470-
public JobsExecutions jobsExecutions() {
471-
if (this.jobsExecutions == null) {
472-
this.jobsExecutions = new JobsExecutionsImpl(clientObject.getJobsExecutions(), this);
473-
}
474-
return jobsExecutions;
475-
}
476-
477457
/**
478458
* Gets the resource collection API of ContainerAppsRevisions.
479459
*
@@ -551,6 +531,42 @@ public Operations operations() {
551531
return operations;
552532
}
553533

534+
/**
535+
* Gets the resource collection API of Jobs. It manages Job.
536+
*
537+
* @return Resource collection API of Jobs.
538+
*/
539+
public Jobs jobs() {
540+
if (this.jobs == null) {
541+
this.jobs = new JobsImpl(clientObject.getJobs(), this);
542+
}
543+
return jobs;
544+
}
545+
546+
/**
547+
* Gets the resource collection API of JobsExecutions.
548+
*
549+
* @return Resource collection API of JobsExecutions.
550+
*/
551+
public JobsExecutions jobsExecutions() {
552+
if (this.jobsExecutions == null) {
553+
this.jobsExecutions = new JobsExecutionsImpl(clientObject.getJobsExecutions(), this);
554+
}
555+
return jobsExecutions;
556+
}
557+
558+
/**
559+
* Gets the resource collection API of ResourceProviders.
560+
*
561+
* @return Resource collection API of ResourceProviders.
562+
*/
563+
public ResourceProviders resourceProviders() {
564+
if (this.resourceProviders == null) {
565+
this.resourceProviders = new ResourceProvidersImpl(clientObject.getResourceProviders(), this);
566+
}
567+
return resourceProviders;
568+
}
569+
554570
/**
555571
* Gets the resource collection API of ManagedEnvironments. It manages ManagedEnvironment.
556572
*

sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsApiClient.java

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -100,20 +100,6 @@ public interface ContainerAppsApiClient {
100100
*/
101101
ContainerAppsClient getContainerApps();
102102

103-
/**
104-
* Gets the JobsClient object to access its operations.
105-
*
106-
* @return the JobsClient object.
107-
*/
108-
JobsClient getJobs();
109-
110-
/**
111-
* Gets the JobsExecutionsClient object to access its operations.
112-
*
113-
* @return the JobsExecutionsClient object.
114-
*/
115-
JobsExecutionsClient getJobsExecutions();
116-
117103
/**
118104
* Gets the ContainerAppsRevisionsClient object to access its operations.
119105
*
@@ -156,6 +142,27 @@ public interface ContainerAppsApiClient {
156142
*/
157143
OperationsClient getOperations();
158144

145+
/**
146+
* Gets the JobsClient object to access its operations.
147+
*
148+
* @return the JobsClient object.
149+
*/
150+
JobsClient getJobs();
151+
152+
/**
153+
* Gets the JobsExecutionsClient object to access its operations.
154+
*
155+
* @return the JobsExecutionsClient object.
156+
*/
157+
JobsExecutionsClient getJobsExecutions();
158+
159+
/**
160+
* Gets the ResourceProvidersClient object to access its operations.
161+
*
162+
* @return the ResourceProvidersClient object.
163+
*/
164+
ResourceProvidersClient getResourceProviders();
165+
159166
/**
160167
* Gets the ManagedEnvironmentsClient object to access its operations.
161168
*

sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsClient.java

Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,4 +392,124 @@ Response<ContainerAppAuthTokenInner> getAuthTokenWithResponse(
392392
*/
393393
@ServiceMethod(returns = ReturnType.SINGLE)
394394
ContainerAppAuthTokenInner getAuthToken(String resourceGroupName, String containerAppName);
395+
396+
/**
397+
* Start a container app.
398+
*
399+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
400+
* @param containerAppName Name of the Container App.
401+
* @throws IllegalArgumentException thrown if parameters fail the validation.
402+
* @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
403+
* is rejected by server.
404+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
405+
* @return the {@link SyncPoller} for polling of container App.
406+
*/
407+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
408+
SyncPoller<PollResult<ContainerAppInner>, ContainerAppInner> beginStart(
409+
String resourceGroupName, String containerAppName);
410+
411+
/**
412+
* Start a container app.
413+
*
414+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
415+
* @param containerAppName Name of the Container App.
416+
* @param context The context to associate with this operation.
417+
* @throws IllegalArgumentException thrown if parameters fail the validation.
418+
* @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
419+
* is rejected by server.
420+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
421+
* @return the {@link SyncPoller} for polling of container App.
422+
*/
423+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
424+
SyncPoller<PollResult<ContainerAppInner>, ContainerAppInner> beginStart(
425+
String resourceGroupName, String containerAppName, Context context);
426+
427+
/**
428+
* Start a container app.
429+
*
430+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
431+
* @param containerAppName Name of the Container App.
432+
* @throws IllegalArgumentException thrown if parameters fail the validation.
433+
* @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
434+
* is rejected by server.
435+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
436+
* @return container App.
437+
*/
438+
@ServiceMethod(returns = ReturnType.SINGLE)
439+
ContainerAppInner start(String resourceGroupName, String containerAppName);
440+
441+
/**
442+
* Start a container app.
443+
*
444+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
445+
* @param containerAppName Name of the Container App.
446+
* @param context The context to associate with this operation.
447+
* @throws IllegalArgumentException thrown if parameters fail the validation.
448+
* @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
449+
* is rejected by server.
450+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
451+
* @return container App.
452+
*/
453+
@ServiceMethod(returns = ReturnType.SINGLE)
454+
ContainerAppInner start(String resourceGroupName, String containerAppName, Context context);
455+
456+
/**
457+
* Stop a container app.
458+
*
459+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
460+
* @param containerAppName Name of the Container App.
461+
* @throws IllegalArgumentException thrown if parameters fail the validation.
462+
* @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
463+
* is rejected by server.
464+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
465+
* @return the {@link SyncPoller} for polling of container App.
466+
*/
467+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
468+
SyncPoller<PollResult<ContainerAppInner>, ContainerAppInner> beginStop(
469+
String resourceGroupName, String containerAppName);
470+
471+
/**
472+
* Stop a container app.
473+
*
474+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
475+
* @param containerAppName Name of the Container App.
476+
* @param context The context to associate with this operation.
477+
* @throws IllegalArgumentException thrown if parameters fail the validation.
478+
* @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
479+
* is rejected by server.
480+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
481+
* @return the {@link SyncPoller} for polling of container App.
482+
*/
483+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
484+
SyncPoller<PollResult<ContainerAppInner>, ContainerAppInner> beginStop(
485+
String resourceGroupName, String containerAppName, Context context);
486+
487+
/**
488+
* Stop a container app.
489+
*
490+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
491+
* @param containerAppName Name of the Container App.
492+
* @throws IllegalArgumentException thrown if parameters fail the validation.
493+
* @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
494+
* is rejected by server.
495+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
496+
* @return container App.
497+
*/
498+
@ServiceMethod(returns = ReturnType.SINGLE)
499+
ContainerAppInner stop(String resourceGroupName, String containerAppName);
500+
501+
/**
502+
* Stop a container app.
503+
*
504+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
505+
* @param containerAppName Name of the Container App.
506+
* @param context The context to associate with this operation.
507+
* @throws IllegalArgumentException thrown if parameters fail the validation.
508+
* @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
509+
* is rejected by server.
510+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
511+
* @return container App.
512+
*/
513+
@ServiceMethod(returns = ReturnType.SINGLE)
514+
ContainerAppInner stop(String resourceGroupName, String containerAppName, Context context);
395515
}

0 commit comments

Comments
 (0)