Skip to content

Commit 340e961

Browse files
author
SDKAuto
committed
CodeGen from PR 24861 in Azure/azure-rest-api-specs
Merge 16a3acc23e4ca0ddb300fd6e3a4142d0df60810e into 9b608455354b830777c66ad5116f45880b0e6e71
1 parent f3b9aca commit 340e961

File tree

106 files changed

+253
-5299
lines changed

Some content is hidden

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

106 files changed

+253
-5299
lines changed

sdk/resourcehealth/azure-resourcemanager-resourcehealth/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.1.0-beta.2 (Unreleased)
3+
## 1.0.0-beta.1 (2023-08-16)
4+
5+
- Azure Resource Manager ResourceHealth client library for Java. This package contains Microsoft Azure SDK for ResourceHealth Management SDK. The Resource Health Client. Package tag package-preview-2023-07. 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/resourcehealth/azure-resourcemanager-resourcehealth/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 ResourceHealth client library for Java.
44

5-
This package contains Microsoft Azure SDK for ResourceHealth Management SDK. The Resource Health Client. Package tag package-2022-10. 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 ResourceHealth Management SDK. The Resource Health Client. Package tag package-preview-2023-07. 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-resourcehealth</artifactId>
35-
<version>1.1.0-beta.1</version>
35+
<version>1.1.0-beta.2</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%2Fresourcehealth%2Fazure-resourcemanager-resourcehealth%2FREADME.png)

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

Lines changed: 22 additions & 103 deletions
Large diffs are not rendered by default.

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

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

2020
<name>Microsoft Azure SDK for ResourceHealth Management</name>
21-
<description>This package contains Microsoft Azure SDK for ResourceHealth Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. The Resource Health Client. Package tag package-2022-10.</description>
21+
<description>This package contains Microsoft Azure SDK for ResourceHealth Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. The Resource Health Client. Package tag package-preview-2023-07.</description>
2222
<url>https://github.com/Azure/azure-sdk-for-java</url>
2323

2424
<licenses>
@@ -45,10 +45,6 @@
4545
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
4646
<jacoco.min.linecoverage>0</jacoco.min.linecoverage>
4747
<jacoco.min.branchcoverage>0</jacoco.min.branchcoverage>
48-
<jacoco.skip>true</jacoco.skip>
49-
<javaModulesSurefireArgLine>
50-
--add-opens com.azure.core/com.azure.core.implementation.util=ALL-UNNAMED
51-
</javaModulesSurefireArgLine>
5248
</properties>
5349
<dependencies>
5450
<dependency>

sdk/resourcehealth/azure-resourcemanager-resourcehealth/src/main/java/com/azure/resourcemanager/resourcehealth/ResourceHealthManager.java

Lines changed: 1 addition & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@
2525
import com.azure.core.util.logging.ClientLogger;
2626
import com.azure.resourcemanager.resourcehealth.fluent.MicrosoftResourceHealth;
2727
import com.azure.resourcemanager.resourcehealth.implementation.AvailabilityStatusesImpl;
28-
import com.azure.resourcemanager.resourcehealth.implementation.ChildAvailabilityStatusesImpl;
29-
import com.azure.resourcemanager.resourcehealth.implementation.ChildResourcesImpl;
3028
import com.azure.resourcemanager.resourcehealth.implementation.EmergingIssuesImpl;
3129
import com.azure.resourcemanager.resourcehealth.implementation.EventOperationsImpl;
3230
import com.azure.resourcemanager.resourcehealth.implementation.EventsOperationsImpl;
@@ -36,8 +34,6 @@
3634
import com.azure.resourcemanager.resourcehealth.implementation.OperationsImpl;
3735
import com.azure.resourcemanager.resourcehealth.implementation.SecurityAdvisoryImpactedResourcesImpl;
3836
import com.azure.resourcemanager.resourcehealth.models.AvailabilityStatuses;
39-
import com.azure.resourcemanager.resourcehealth.models.ChildAvailabilityStatuses;
40-
import com.azure.resourcemanager.resourcehealth.models.ChildResources;
4137
import com.azure.resourcemanager.resourcehealth.models.EmergingIssues;
4238
import com.azure.resourcemanager.resourcehealth.models.EventOperations;
4339
import com.azure.resourcemanager.resourcehealth.models.EventsOperations;
@@ -68,10 +64,6 @@ public final class ResourceHealthManager {
6864

6965
private EventOperations eventOperations;
7066

71-
private ChildAvailabilityStatuses childAvailabilityStatuses;
72-
73-
private ChildResources childResources;
74-
7567
private EmergingIssues emergingIssues;
7668

7769
private final MicrosoftResourceHealth clientObject;
@@ -239,7 +231,7 @@ public ResourceHealthManager authenticate(TokenCredential credential, AzureProfi
239231
.append("-")
240232
.append("com.azure.resourcemanager.resourcehealth")
241233
.append("/")
242-
.append("1.1.0-beta.1");
234+
.append("1.0.0-beta.1");
243235
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
244236
userAgentBuilder
245237
.append(" (")
@@ -381,31 +373,6 @@ public EventOperations eventOperations() {
381373
return eventOperations;
382374
}
383375

384-
/**
385-
* Gets the resource collection API of ChildAvailabilityStatuses.
386-
*
387-
* @return Resource collection API of ChildAvailabilityStatuses.
388-
*/
389-
public ChildAvailabilityStatuses childAvailabilityStatuses() {
390-
if (this.childAvailabilityStatuses == null) {
391-
this.childAvailabilityStatuses =
392-
new ChildAvailabilityStatusesImpl(clientObject.getChildAvailabilityStatuses(), this);
393-
}
394-
return childAvailabilityStatuses;
395-
}
396-
397-
/**
398-
* Gets the resource collection API of ChildResources.
399-
*
400-
* @return Resource collection API of ChildResources.
401-
*/
402-
public ChildResources childResources() {
403-
if (this.childResources == null) {
404-
this.childResources = new ChildResourcesImpl(clientObject.getChildResources(), this);
405-
}
406-
return childResources;
407-
}
408-
409376
/**
410377
* Gets the resource collection API of EmergingIssues.
411378
*

sdk/resourcehealth/azure-resourcemanager-resourcehealth/src/main/java/com/azure/resourcemanager/resourcehealth/fluent/AvailabilityStatusesClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public interface AvailabilityStatusesClient {
4141
/**
4242
* Lists the current availability status for all the resources in the resource group.
4343
*
44-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
44+
* @param resourceGroupName The name of the resource group.
4545
* @throws IllegalArgumentException thrown if parameters fail the validation.
4646
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
4747
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -53,7 +53,7 @@ public interface AvailabilityStatusesClient {
5353
/**
5454
* Lists the current availability status for all the resources in the resource group.
5555
*
56-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
56+
* @param resourceGroupName The name of the resource group.
5757
* @param filter The filter to apply on the operation. For more information please see
5858
* https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN.
5959
* @param expand Setting $expand=recommendedactions in url query expands the recommendedactions in the response.

sdk/resourcehealth/azure-resourcemanager-resourcehealth/src/main/java/com/azure/resourcemanager/resourcehealth/fluent/ChildAvailabilityStatusesClient.java

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

sdk/resourcehealth/azure-resourcemanager-resourcehealth/src/main/java/com/azure/resourcemanager/resourcehealth/fluent/ChildResourcesClient.java

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

sdk/resourcehealth/azure-resourcemanager-resourcehealth/src/main/java/com/azure/resourcemanager/resourcehealth/fluent/MicrosoftResourceHealth.java

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -93,20 +93,6 @@ public interface MicrosoftResourceHealth {
9393
*/
9494
EventOperationsClient getEventOperations();
9595

96-
/**
97-
* Gets the ChildAvailabilityStatusesClient object to access its operations.
98-
*
99-
* @return the ChildAvailabilityStatusesClient object.
100-
*/
101-
ChildAvailabilityStatusesClient getChildAvailabilityStatuses();
102-
103-
/**
104-
* Gets the ChildResourcesClient object to access its operations.
105-
*
106-
* @return the ChildResourcesClient object.
107-
*/
108-
ChildResourcesClient getChildResources();
109-
11096
/**
11197
* Gets the EmergingIssuesClient object to access its operations.
11298
*

sdk/resourcehealth/azure-resourcemanager-resourcehealth/src/main/java/com/azure/resourcemanager/resourcehealth/fluent/models/EventImpactedResourceInner.java

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
import com.azure.core.annotation.Fluent;
88
import com.azure.core.management.ProxyResource;
9-
import com.azure.core.management.SystemData;
109
import com.azure.resourcemanager.resourcehealth.models.KeyValueItem;
1110
import com.fasterxml.jackson.annotation.JsonProperty;
1211
import java.util.List;
@@ -20,12 +19,6 @@ public final class EventImpactedResourceInner extends ProxyResource {
2019
@JsonProperty(value = "properties")
2120
private EventImpactedResourceProperties innerProperties;
2221

23-
/*
24-
* Azure Resource Manager metadata containing createdBy and modifiedBy information.
25-
*/
26-
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
27-
private SystemData systemData;
28-
2922
/** Creates an instance of EventImpactedResourceInner class. */
3023
public EventImpactedResourceInner() {
3124
}
@@ -39,15 +32,6 @@ private EventImpactedResourceProperties innerProperties() {
3932
return this.innerProperties;
4033
}
4134

42-
/**
43-
* Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
44-
*
45-
* @return the systemData value.
46-
*/
47-
public SystemData systemData() {
48-
return this.systemData;
49-
}
50-
5135
/**
5236
* Get the targetResourceType property: Resource type within Microsoft cloud.
5337
*

0 commit comments

Comments
 (0)