Skip to content

Commit 6181bd1

Browse files
author
SDKAuto
committed
CodeGen from PR 14656 in Azure/azure-rest-api-specs
Merge 1620e2766ecb1b58bec091aa5fa6ecbbd52a58e7 into 6a4ecaba56b6bc6bda4986730f1ff191d6420640
1 parent 81e47a4 commit 6181bd1

File tree

92 files changed

+1428
-8315
lines changed

Some content is hidden

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

92 files changed

+1428
-8315
lines changed

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

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

3-
## 1.0.0-beta.2 (Unreleased)
3+
## 1.0.0-beta.1 (2021-06-08)
44

5+
- Azure Resource Manager Peering client library for Java. This package contains Microsoft Azure SDK for Peering Management SDK. Peering Client. Package tag package-2019-08-01-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
56

67
## 1.0.0-beta.1 (2021-04-19)
78

sdk/peering/azure-resourcemanager-peering/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 Peering client library for Java.
44

5-
This package contains Microsoft Azure SDK for Peering Management SDK. Peering Client. Package tag package-2021-01-01. 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 Peering Management SDK. Peering Client. Package tag package-2019-08-01-preview. 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-peering</artifactId>
35-
<version>1.0.0-beta.1</version>
35+
<version>1.0.0-beta.2</version>
3636
</dependency>
3737
```
3838
[//]: # ({x-version-update-end})
@@ -74,6 +74,8 @@ See [API design][design] for general introduction on design and key concepts on
7474

7575
## Examples
7676

77+
78+
7779
## Troubleshooting
7880

7981
## Next steps
Lines changed: 80 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,86 @@
11
<project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
2-
<modelVersion>4.0.0</modelVersion>
3-
<parent>
4-
<groupId>com.azure</groupId>
5-
<artifactId>azure-client-sdk-parent</artifactId>
6-
<version>1.7.0</version> <!-- {x-version-update;com.azure:azure-client-sdk-parent;current} -->
7-
<relativePath>../../parents/azure-client-sdk-parent</relativePath>
8-
</parent>
2+
<modelVersion>4.0.0</modelVersion>
3+
<parent>
4+
<groupId>com.azure</groupId>
5+
<artifactId>azure-client-sdk-parent</artifactId>
6+
<version>1.7.0</version> <!-- {x-version-update;com.azure:azure-client-sdk-parent;current} -->
7+
<relativePath>../../parents/azure-client-sdk-parent</relativePath>
8+
</parent>
99

10-
<groupId>com.azure.resourcemanager</groupId>
11-
<artifactId>azure-resourcemanager-peering</artifactId>
12-
<version>1.0.0-beta.2</version> <!-- {x-version-update;com.azure.resourcemanager:azure-resourcemanager-peering;current} -->
13-
<packaging>jar</packaging>
10+
<groupId>com.azure.resourcemanager</groupId>
11+
<artifactId>azure-resourcemanager-peering</artifactId>
12+
<version>1.0.0-beta.2</version> <!-- {x-version-update;com.azure.resourcemanager:azure-resourcemanager-peering;current} -->
13+
<packaging>jar</packaging>
1414

15-
<name>Microsoft Azure SDK for Peering Management</name>
16-
<description>This package contains Microsoft Azure SDK for Peering Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Peering Client. Package tag package-2021-01-01.</description>
17-
<url>https://github.com/Azure/azure-sdk-for-java</url>
15+
<name>Microsoft Azure SDK for Peering Management</name>
16+
<description>This package contains Microsoft Azure SDK for Peering Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Peering Client. Package tag package-2019-08-01-preview.</description>
17+
<url>https://github.com/Azure/azure-sdk-for-java</url>
1818

19-
<licenses>
20-
<license>
21-
<name>The MIT License (MIT)</name>
22-
<url>http://opensource.org/licenses/MIT</url>
23-
<distribution>repo</distribution>
24-
</license>
25-
</licenses>
19+
<licenses>
20+
<license>
21+
<name>The MIT License (MIT)</name>
22+
<url>http://opensource.org/licenses/MIT</url>
23+
<distribution>repo</distribution>
24+
</license>
25+
</licenses>
2626

27-
<scm>
28-
<url>https://github.com/Azure/azure-sdk-for-java</url>
29-
<connection>scm:git:[email protected]:Azure/azure-sdk-for-java.git</connection>
30-
<developerConnection>scm:git:[email protected]:Azure/azure-sdk-for-java.git</developerConnection>
31-
<tag>HEAD</tag>
32-
</scm>
33-
<developers>
34-
<developer>
35-
<id>microsoft</id>
36-
<name>Microsoft</name>
37-
</developer>
38-
</developers>
39-
<properties>
40-
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
41-
<legal><![CDATA[[INFO] Any downloads listed may be third party software. Microsoft grants you no rights for third party software.]]></legal>
42-
</properties>
43-
<dependencies>
44-
<dependency>
45-
<groupId>com.azure</groupId>
46-
<artifactId>azure-core</artifactId>
47-
<version>1.16.0</version> <!-- {x-version-update;com.azure:azure-core;dependency} -->
48-
</dependency>
49-
<dependency>
50-
<groupId>com.azure</groupId>
51-
<artifactId>azure-core-management</artifactId>
52-
<version>1.2.2</version> <!-- {x-version-update;com.azure:azure-core-management;dependency} -->
53-
</dependency>
54-
</dependencies>
55-
<build>
56-
<plugins>
57-
<plugin>
58-
<groupId>org.jacoco</groupId>
59-
<artifactId>jacoco-maven-plugin</artifactId>
60-
<version>0.8.5</version> <!-- {x-version-update;org.jacoco:jacoco-maven-plugin;external_dependency} -->
61-
<configuration>
62-
<skip>true</skip>
63-
</configuration>
64-
</plugin>
65-
</plugins>
66-
</build>
27+
<scm>
28+
<url>https://github.com/Azure/azure-sdk-for-java</url>
29+
<connection>scm:git:[email protected]:Azure/azure-sdk-for-java.git</connection>
30+
<developerConnection>scm:git:[email protected]:Azure/azure-sdk-for-java.git</developerConnection>
31+
<tag>HEAD</tag>
32+
</scm>
33+
<developers>
34+
<developer>
35+
<id>microsoft</id>
36+
<name>Microsoft</name>
37+
</developer>
38+
</developers>
39+
<properties>
40+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
41+
<legal><![CDATA[[INFO] Any downloads listed may be third party software. Microsoft grants you no rights for third party software.]]></legal>
42+
</properties>
43+
<dependencies>
44+
<dependency>
45+
<groupId>com.azure</groupId>
46+
<artifactId>azure-core</artifactId>
47+
<version>1.16.0</version> <!-- {x-version-update;com.azure:azure-core;dependency} -->
48+
</dependency>
49+
<dependency>
50+
<groupId>com.azure</groupId>
51+
<artifactId>azure-core-management</artifactId>
52+
<version>1.2.2</version> <!-- {x-version-update;com.azure:azure-core-management;dependency} -->
53+
</dependency>
54+
</dependencies>
55+
<build>
56+
<plugins>
57+
<plugin>
58+
<groupId>org.jacoco</groupId>
59+
<artifactId>jacoco-maven-plugin</artifactId>
60+
<version>0.8.5</version> <!-- {x-version-update;org.jacoco:jacoco-maven-plugin;external_dependency} -->
61+
<configuration>
62+
<skip>true</skip>
63+
</configuration>
64+
</plugin>
65+
<plugin>
66+
<groupId>org.revapi</groupId>
67+
<artifactId>revapi-maven-plugin</artifactId>
68+
<version>0.11.2</version> <!-- {x-version-update;org.revapi:revapi-maven-plugin;external_dependency} -->
69+
<configuration>
70+
<analysisConfiguration>
71+
<revapi.ignore>
72+
<item>
73+
<code>java.method.addedToInterface</code>
74+
</item>
75+
<item>
76+
<regex>true</regex>
77+
<code>.*</code>
78+
<package>com\.azure\.resourcemanager(\.[^.]+)+\.fluent(\.[^.]+)*</package>
79+
</item>
80+
</revapi.ignore>
81+
</analysisConfiguration>
82+
</configuration>
83+
</plugin>
84+
</plugins>
85+
</build>
6786
</project>

sdk/peering/azure-resourcemanager-peering/src/main/java/com/azure/resourcemanager/peering/PeeringManager.java

Lines changed: 13 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -21,36 +21,28 @@
2121
import com.azure.core.util.Configuration;
2222
import com.azure.core.util.logging.ClientLogger;
2323
import com.azure.resourcemanager.peering.fluent.PeeringManagementClient;
24-
import com.azure.resourcemanager.peering.implementation.CdnPeeringPrefixesImpl;
2524
import com.azure.resourcemanager.peering.implementation.LegacyPeeringsImpl;
2625
import com.azure.resourcemanager.peering.implementation.OperationsImpl;
2726
import com.azure.resourcemanager.peering.implementation.PeerAsnsImpl;
2827
import com.azure.resourcemanager.peering.implementation.PeeringLocationsImpl;
2928
import com.azure.resourcemanager.peering.implementation.PeeringManagementClientBuilder;
30-
import com.azure.resourcemanager.peering.implementation.PeeringServiceCountriesImpl;
3129
import com.azure.resourcemanager.peering.implementation.PeeringServiceLocationsImpl;
30+
import com.azure.resourcemanager.peering.implementation.PeeringServicePrefixesImpl;
3231
import com.azure.resourcemanager.peering.implementation.PeeringServiceProvidersImpl;
3332
import com.azure.resourcemanager.peering.implementation.PeeringServicesImpl;
3433
import com.azure.resourcemanager.peering.implementation.PeeringsImpl;
3534
import com.azure.resourcemanager.peering.implementation.PrefixesImpl;
36-
import com.azure.resourcemanager.peering.implementation.ReceivedRoutesImpl;
37-
import com.azure.resourcemanager.peering.implementation.RegisteredAsnsImpl;
38-
import com.azure.resourcemanager.peering.implementation.RegisteredPrefixesImpl;
3935
import com.azure.resourcemanager.peering.implementation.ResourceProvidersImpl;
40-
import com.azure.resourcemanager.peering.models.CdnPeeringPrefixes;
4136
import com.azure.resourcemanager.peering.models.LegacyPeerings;
4237
import com.azure.resourcemanager.peering.models.Operations;
4338
import com.azure.resourcemanager.peering.models.PeerAsns;
4439
import com.azure.resourcemanager.peering.models.PeeringLocations;
45-
import com.azure.resourcemanager.peering.models.PeeringServiceCountries;
4640
import com.azure.resourcemanager.peering.models.PeeringServiceLocations;
41+
import com.azure.resourcemanager.peering.models.PeeringServicePrefixes;
4742
import com.azure.resourcemanager.peering.models.PeeringServiceProviders;
4843
import com.azure.resourcemanager.peering.models.PeeringServices;
4944
import com.azure.resourcemanager.peering.models.Peerings;
5045
import com.azure.resourcemanager.peering.models.Prefixes;
51-
import com.azure.resourcemanager.peering.models.ReceivedRoutes;
52-
import com.azure.resourcemanager.peering.models.RegisteredAsns;
53-
import com.azure.resourcemanager.peering.models.RegisteredPrefixes;
5446
import com.azure.resourcemanager.peering.models.ResourceProviders;
5547
import java.time.Duration;
5648
import java.time.temporal.ChronoUnit;
@@ -60,8 +52,6 @@
6052

6153
/** Entry point to PeeringManager. Peering Client. */
6254
public final class PeeringManager {
63-
private CdnPeeringPrefixes cdnPeeringPrefixes;
64-
6555
private ResourceProviders resourceProviders;
6656

6757
private LegacyPeerings legacyPeerings;
@@ -72,18 +62,12 @@ public final class PeeringManager {
7262

7363
private PeeringLocations peeringLocations;
7464

75-
private RegisteredAsns registeredAsns;
76-
77-
private RegisteredPrefixes registeredPrefixes;
78-
7965
private Peerings peerings;
8066

81-
private ReceivedRoutes receivedRoutes;
82-
83-
private PeeringServiceCountries peeringServiceCountries;
84-
8567
private PeeringServiceLocations peeringServiceLocations;
8668

69+
private PeeringServicePrefixes peeringServicePrefixes;
70+
8771
private Prefixes prefixes;
8872

8973
private PeeringServiceProviders peeringServiceProviders;
@@ -253,14 +237,6 @@ public PeeringManager authenticate(TokenCredential credential, AzureProfile prof
253237
}
254238
}
255239

256-
/** @return Resource collection API of CdnPeeringPrefixes. */
257-
public CdnPeeringPrefixes cdnPeeringPrefixes() {
258-
if (this.cdnPeeringPrefixes == null) {
259-
this.cdnPeeringPrefixes = new CdnPeeringPrefixesImpl(clientObject.getCdnPeeringPrefixes(), this);
260-
}
261-
return cdnPeeringPrefixes;
262-
}
263-
264240
/** @return Resource collection API of ResourceProviders. */
265241
public ResourceProviders resourceProviders() {
266242
if (this.resourceProviders == null) {
@@ -301,22 +277,6 @@ public PeeringLocations peeringLocations() {
301277
return peeringLocations;
302278
}
303279

304-
/** @return Resource collection API of RegisteredAsns. */
305-
public RegisteredAsns registeredAsns() {
306-
if (this.registeredAsns == null) {
307-
this.registeredAsns = new RegisteredAsnsImpl(clientObject.getRegisteredAsns(), this);
308-
}
309-
return registeredAsns;
310-
}
311-
312-
/** @return Resource collection API of RegisteredPrefixes. */
313-
public RegisteredPrefixes registeredPrefixes() {
314-
if (this.registeredPrefixes == null) {
315-
this.registeredPrefixes = new RegisteredPrefixesImpl(clientObject.getRegisteredPrefixes(), this);
316-
}
317-
return registeredPrefixes;
318-
}
319-
320280
/** @return Resource collection API of Peerings. */
321281
public Peerings peerings() {
322282
if (this.peerings == null) {
@@ -325,23 +285,6 @@ public Peerings peerings() {
325285
return peerings;
326286
}
327287

328-
/** @return Resource collection API of ReceivedRoutes. */
329-
public ReceivedRoutes receivedRoutes() {
330-
if (this.receivedRoutes == null) {
331-
this.receivedRoutes = new ReceivedRoutesImpl(clientObject.getReceivedRoutes(), this);
332-
}
333-
return receivedRoutes;
334-
}
335-
336-
/** @return Resource collection API of PeeringServiceCountries. */
337-
public PeeringServiceCountries peeringServiceCountries() {
338-
if (this.peeringServiceCountries == null) {
339-
this.peeringServiceCountries =
340-
new PeeringServiceCountriesImpl(clientObject.getPeeringServiceCountries(), this);
341-
}
342-
return peeringServiceCountries;
343-
}
344-
345288
/** @return Resource collection API of PeeringServiceLocations. */
346289
public PeeringServiceLocations peeringServiceLocations() {
347290
if (this.peeringServiceLocations == null) {
@@ -351,6 +294,15 @@ public PeeringServiceLocations peeringServiceLocations() {
351294
return peeringServiceLocations;
352295
}
353296

297+
/** @return Resource collection API of PeeringServicePrefixes. */
298+
public PeeringServicePrefixes peeringServicePrefixes() {
299+
if (this.peeringServicePrefixes == null) {
300+
this.peeringServicePrefixes =
301+
new PeeringServicePrefixesImpl(clientObject.getPeeringServicePrefixes(), this);
302+
}
303+
return peeringServicePrefixes;
304+
}
305+
354306
/** @return Resource collection API of Prefixes. */
355307
public Prefixes prefixes() {
356308
if (this.prefixes == null) {

sdk/peering/azure-resourcemanager-peering/src/main/java/com/azure/resourcemanager/peering/fluent/CdnPeeringPrefixesClient.java

Lines changed: 0 additions & 39 deletions
This file was deleted.

sdk/peering/azure-resourcemanager-peering/src/main/java/com/azure/resourcemanager/peering/fluent/LegacyPeeringsClient.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,12 @@ public interface LegacyPeeringsClient {
3131
*
3232
* @param peeringLocation The location of the peering.
3333
* @param kind The kind of the peering.
34-
* @param asn The ASN number associated with a legacy peering.
3534
* @param context The context to associate with this operation.
3635
* @throws IllegalArgumentException thrown if parameters fail the validation.
3736
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
3837
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
3938
* @return the paginated list of peerings.
4039
*/
4140
@ServiceMethod(returns = ReturnType.COLLECTION)
42-
PagedIterable<PeeringInner> list(String peeringLocation, LegacyPeeringsKind kind, Integer asn, Context context);
41+
PagedIterable<PeeringInner> list(String peeringLocation, LegacyPeeringsKind kind, Context context);
4342
}

0 commit comments

Comments
 (0)