Skip to content

Commit 97baf73

Browse files
mgmt, Migrate containerinstance (#48595)
1 parent 08dc26a commit 97baf73

168 files changed

Lines changed: 14866 additions & 1545 deletions

File tree

Some content is hidden

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

eng/lintingconfigs/revapi/track2/revapi.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1273,6 +1273,30 @@
12731273
},
12741274
"justification": "Header model setters removed in TypeSpec migration.",
12751275
"code": "java.method.removed"
1276+
},
1277+
{
1278+
"code": "java.method.visibilityReduced",
1279+
"old" : {
1280+
"matcher": "regex",
1281+
"match": "method void com\\.azure\\.resourcemanager\\.containerinstance\\.models\\..*\\:\\:\\<init\\>\\(\\)"
1282+
},
1283+
"justification": "Output-only immutable models' constructors are now private."
1284+
},
1285+
{
1286+
"code": "java.method.removed",
1287+
"old" : {
1288+
"matcher": "regex",
1289+
"match": "method .* com\\.azure\\.resourcemanager\\.containerinstance\\.models\\..*\\:\\:with.*\\(.*\\).*"
1290+
},
1291+
"justification": "Output-only immutable models' setters are removed."
1292+
},
1293+
{
1294+
"code": "java.class.removed",
1295+
"old" : {
1296+
"matcher": "regex",
1297+
"match": "class com\\.azure\\.resourcemanager\\.containerinstance\\.models\\.(CachedImagesListResult|CapabilitiesListResult|ContainerGroupListResult|OperationListResult|UsageListResult)"
1298+
},
1299+
"justification": "Pageable models moved to implementation package. Unlikely used by user."
12761300
}
12771301
]
12781302
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ For documentation on how to use this package, please see [Azure Management Libra
1818
<dependency>
1919
<groupId>com.azure.resourcemanager</groupId>
2020
<artifactId>azure-resourcemanager-containerinstance</artifactId>
21-
<version>2.53.8</version>
21+
<version>2.54.0-beta.1</version>
2222
</dependency>
2323
```
2424
[//]: # ({x-version-update-end})

sdk/containerinstance/azure-resourcemanager-containerinstance/src/main/java/com/azure/resourcemanager/containerinstance/fluent/CGProfilesClient.java

Lines changed: 445 additions & 0 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
// Code generated by Microsoft (R) TypeSpec Code Generator.
4+
5+
package com.azure.resourcemanager.containerinstance.fluent;
6+
7+
import com.azure.core.annotation.ReturnType;
8+
import com.azure.core.annotation.ServiceMethod;
9+
import com.azure.core.http.rest.PagedFlux;
10+
import com.azure.core.http.rest.PagedIterable;
11+
import com.azure.core.util.Context;
12+
import com.azure.resourcemanager.containerinstance.fluent.models.ContainerGroupProfileInner;
13+
import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing;
14+
15+
/**
16+
* An instance of this class provides access to all the operations defined in CGProfilesOperationsClient.
17+
*/
18+
public interface CGProfilesOperationsClient extends InnerSupportsListing<ContainerGroupProfileInner> {
19+
/**
20+
* List container group profiles in a subscription.
21+
*
22+
* Gets a list of all container group profiles under a subscription.
23+
*
24+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
25+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
26+
* @return the response of a ContainerGroupProfile list operation as paginated response with {@link PagedFlux}.
27+
*/
28+
@ServiceMethod(returns = ReturnType.COLLECTION)
29+
PagedFlux<ContainerGroupProfileInner> listAsync();
30+
31+
/**
32+
* List container group profiles in a subscription.
33+
*
34+
* Gets a list of all container group profiles under a subscription.
35+
*
36+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
37+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
38+
* @return the response of a ContainerGroupProfile list operation as paginated response with {@link PagedIterable}.
39+
*/
40+
@ServiceMethod(returns = ReturnType.COLLECTION)
41+
PagedIterable<ContainerGroupProfileInner> list();
42+
43+
/**
44+
* List container group profiles in a subscription.
45+
*
46+
* Gets a list of all container group profiles under a subscription.
47+
*
48+
* @param context The context to associate with this operation.
49+
* @throws IllegalArgumentException thrown if parameters fail the validation.
50+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
51+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
52+
* @return the response of a ContainerGroupProfile list operation as paginated response with {@link PagedIterable}.
53+
*/
54+
@ServiceMethod(returns = ReturnType.COLLECTION)
55+
PagedIterable<ContainerGroupProfileInner> list(Context context);
56+
57+
/**
58+
* List container group profiles in a resource group.
59+
*
60+
* Gets a list of all container group profiles under a resource group.
61+
*
62+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
63+
* @throws IllegalArgumentException thrown if parameters fail the validation.
64+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
65+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
66+
* @return the response of a ContainerGroupProfile list operation as paginated response with {@link PagedFlux}.
67+
*/
68+
@ServiceMethod(returns = ReturnType.COLLECTION)
69+
PagedFlux<ContainerGroupProfileInner> listByResourceGroupAsync(String resourceGroupName);
70+
71+
/**
72+
* List container group profiles in a resource group.
73+
*
74+
* Gets a list of all container group profiles under a resource group.
75+
*
76+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
77+
* @throws IllegalArgumentException thrown if parameters fail the validation.
78+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
79+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
80+
* @return the response of a ContainerGroupProfile list operation as paginated response with {@link PagedIterable}.
81+
*/
82+
@ServiceMethod(returns = ReturnType.COLLECTION)
83+
PagedIterable<ContainerGroupProfileInner> listByResourceGroup(String resourceGroupName);
84+
85+
/**
86+
* List container group profiles in a resource group.
87+
*
88+
* Gets a list of all container group profiles under a resource group.
89+
*
90+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
91+
* @param context The context to associate with this operation.
92+
* @throws IllegalArgumentException thrown if parameters fail the validation.
93+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
94+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
95+
* @return the response of a ContainerGroupProfile list operation as paginated response with {@link PagedIterable}.
96+
*/
97+
@ServiceMethod(returns = ReturnType.COLLECTION)
98+
PagedIterable<ContainerGroupProfileInner> listByResourceGroup(String resourceGroupName, Context context);
99+
}

0 commit comments

Comments
 (0)