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-servicefabric] updating preview tag #9122

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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Release History

## 1.0.0-beta.5 (Unreleased)
## 1.0.0-beta.1 (2024-02-01)

- Azure Resource Manager ServiceFabric client library for Java. This package contains Microsoft Azure SDK for ServiceFabric Management SDK. Service Fabric Management Client. Package tag package-2021-06. 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 @@ -32,7 +32,7 @@ Various documentation is available to help you get started
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-servicefabric</artifactId>
<version>1.0.0-beta.4</version>
<version>1.0.0-beta.5</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,7 @@ import com.azure.resourcemanager.servicefabric.models.StoreName;
import com.azure.resourcemanager.servicefabric.models.UpgradeMode;
import com.azure.resourcemanager.servicefabric.models.VmssZonalUpgradeMode;
import java.time.OffsetDateTime;
import java.time.format.DateTimeFormatter;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
Expand Down Expand Up @@ -709,6 +710,7 @@ import com.azure.resourcemanager.servicefabric.models.NodeTypeDescription;
import com.azure.resourcemanager.servicefabric.models.ReliabilityLevel;
import com.azure.resourcemanager.servicefabric.models.UpgradeMode;
import java.time.OffsetDateTime;
import java.time.format.DateTimeFormatter;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
Expand Down
2 changes: 0 additions & 2 deletions sdk/servicefabric/azure-resourcemanager-servicefabric/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,6 @@
<version>4.11.0</version> <!-- {x-version-update;org.mockito:mockito-core;external_dependency} -->
<scope>test</scope>
</dependency>
<!-- bytebuddy dependencies are required for mockito 4.11.0 to work with Java 21. Mockito 4.11.0 is the last release -->
<!-- of Mockito supporting Java 8 as a baseline. -->
<dependency>
<groupId>net.bytebuddy</groupId>
<artifactId>byte-buddy</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ public ServiceFabricManager authenticate(TokenCredential credential, AzureProfil

StringBuilder userAgentBuilder = new StringBuilder();
userAgentBuilder.append("azsdk-java").append("-").append("com.azure.resourcemanager.servicefabric")
.append("/").append("1.0.0-beta.4");
.append("/").append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder.append(" (").append(Configuration.getGlobalConfiguration().get("java.version"))
.append("; ").append(Configuration.getGlobalConfiguration().get("os.name")).append("; ")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,9 @@ public ApplicationResource apply(Context context) {
com.azure.resourcemanager.servicefabric.ServiceFabricManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
this.clusterName = Utils.getValueFromIdByName(innerObject.id(), "clusters");
this.applicationName = Utils.getValueFromIdByName(innerObject.id(), "applications");
this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups");
this.clusterName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "clusters");
this.applicationName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "applications");
}

public ApplicationResource refresh() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,9 @@ public ApplicationTypeResource apply(Context context) {
com.azure.resourcemanager.servicefabric.ServiceFabricManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
this.clusterName = Utils.getValueFromIdByName(innerObject.id(), "clusters");
this.applicationTypeName = Utils.getValueFromIdByName(innerObject.id(), "applicationTypes");
this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups");
this.clusterName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "clusters");
this.applicationTypeName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "applicationTypes");
}

public ApplicationTypeResource refresh() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,10 @@ public ApplicationTypeVersionResource apply(Context context) {
com.azure.resourcemanager.servicefabric.ServiceFabricManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
this.clusterName = Utils.getValueFromIdByName(innerObject.id(), "clusters");
this.applicationTypeName = Utils.getValueFromIdByName(innerObject.id(), "applicationTypes");
this.version = Utils.getValueFromIdByName(innerObject.id(), "versions");
this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups");
this.clusterName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "clusters");
this.applicationTypeName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "applicationTypes");
this.version = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "versions");
}

public ApplicationTypeVersionResource refresh() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,33 +63,35 @@ public PagedIterable<ApplicationTypeVersionResource> list(String resourceGroupNa
String applicationTypeName) {
PagedIterable<ApplicationTypeVersionResourceInner> inner
= this.serviceClient().list(resourceGroupName, clusterName, applicationTypeName);
return Utils.mapPage(inner, inner1 -> new ApplicationTypeVersionResourceImpl(inner1, this.manager()));
return ResourceManagerUtils.mapPage(inner,
inner1 -> new ApplicationTypeVersionResourceImpl(inner1, this.manager()));
}

public PagedIterable<ApplicationTypeVersionResource> list(String resourceGroupName, String clusterName,
String applicationTypeName, Context context) {
PagedIterable<ApplicationTypeVersionResourceInner> inner
= this.serviceClient().list(resourceGroupName, clusterName, applicationTypeName, context);
return Utils.mapPage(inner, inner1 -> new ApplicationTypeVersionResourceImpl(inner1, this.manager()));
return ResourceManagerUtils.mapPage(inner,
inner1 -> new ApplicationTypeVersionResourceImpl(inner1, this.manager()));
}

public ApplicationTypeVersionResource getById(String id) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
}
String clusterName = Utils.getValueFromIdByName(id, "clusters");
String clusterName = ResourceManagerUtils.getValueFromIdByName(id, "clusters");
if (clusterName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'clusters'.", id)));
}
String applicationTypeName = Utils.getValueFromIdByName(id, "applicationTypes");
String applicationTypeName = ResourceManagerUtils.getValueFromIdByName(id, "applicationTypes");
if (applicationTypeName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'applicationTypes'.", id)));
}
String version = Utils.getValueFromIdByName(id, "versions");
String version = ResourceManagerUtils.getValueFromIdByName(id, "versions");
if (version == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'versions'.", id)));
Expand All @@ -99,22 +101,22 @@ public ApplicationTypeVersionResource getById(String id) {
}

public Response<ApplicationTypeVersionResource> getByIdWithResponse(String id, Context context) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
}
String clusterName = Utils.getValueFromIdByName(id, "clusters");
String clusterName = ResourceManagerUtils.getValueFromIdByName(id, "clusters");
if (clusterName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'clusters'.", id)));
}
String applicationTypeName = Utils.getValueFromIdByName(id, "applicationTypes");
String applicationTypeName = ResourceManagerUtils.getValueFromIdByName(id, "applicationTypes");
if (applicationTypeName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'applicationTypes'.", id)));
}
String version = Utils.getValueFromIdByName(id, "versions");
String version = ResourceManagerUtils.getValueFromIdByName(id, "versions");
if (version == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'versions'.", id)));
Expand All @@ -123,22 +125,22 @@ public Response<ApplicationTypeVersionResource> getByIdWithResponse(String id, C
}

public void deleteById(String id) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
}
String clusterName = Utils.getValueFromIdByName(id, "clusters");
String clusterName = ResourceManagerUtils.getValueFromIdByName(id, "clusters");
if (clusterName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'clusters'.", id)));
}
String applicationTypeName = Utils.getValueFromIdByName(id, "applicationTypes");
String applicationTypeName = ResourceManagerUtils.getValueFromIdByName(id, "applicationTypes");
if (applicationTypeName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'applicationTypes'.", id)));
}
String version = Utils.getValueFromIdByName(id, "versions");
String version = ResourceManagerUtils.getValueFromIdByName(id, "versions");
if (version == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'versions'.", id)));
Expand All @@ -147,22 +149,22 @@ public void deleteById(String id) {
}

public void deleteByIdWithResponse(String id, Context context) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
}
String clusterName = Utils.getValueFromIdByName(id, "clusters");
String clusterName = ResourceManagerUtils.getValueFromIdByName(id, "clusters");
if (clusterName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'clusters'.", id)));
}
String applicationTypeName = Utils.getValueFromIdByName(id, "applicationTypes");
String applicationTypeName = ResourceManagerUtils.getValueFromIdByName(id, "applicationTypes");
if (applicationTypeName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'applicationTypes'.", id)));
}
String version = Utils.getValueFromIdByName(id, "versions");
String version = ResourceManagerUtils.getValueFromIdByName(id, "versions");
if (version == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'versions'.", id)));
Expand Down
Loading
Loading