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

[Automation] Generate Fluent Lite from Swagger servicefabric#package-2021-06 #43578

Merged
Merged
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
2 changes: 1 addition & 1 deletion eng/versioning/version_client.txt
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ com.azure.resourcemanager:azure-resourcemanager-logic;1.0.0-beta.3;1.0.0
com.azure.resourcemanager:azure-resourcemanager-maintenance;1.0.0;1.1.0-beta.3
com.azure.resourcemanager:azure-resourcemanager-machinelearningservices;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-mariadb;1.0.0;1.1.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-servicefabric;1.0.0-beta.5;1.0.0-beta.6
com.azure.resourcemanager:azure-resourcemanager-servicefabric;1.0.0-beta.5;1.0.0
com.azure.resourcemanager:azure-resourcemanager-peering;1.0.0-beta.3;1.0.0-beta.4
com.azure.resourcemanager:azure-resourcemanager-policyinsights;1.0.0-beta.4;1.0.0-beta.5
com.azure.resourcemanager:azure-resourcemanager-support;1.1.0;1.2.0-beta.1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
# Release History

## 1.0.0-beta.6 (Unreleased)
## 1.0.0 (2024-12-24)

### Features Added
- 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).

### Breaking Changes

### Bugs Fixed
#### `models.StatefulServiceProperties` was modified

* `provisioningState()` was removed

#### `models.StatelessServiceProperties` was modified

### Other Changes
* `provisioningState()` was removed

## 1.0.0-beta.5 (2024-10-28)

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.5</version>
<version>1.0.0</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-servicefabric</artifactId>
<version>1.0.0-beta.6</version> <!-- {x-version-update;com.azure.resourcemanager:azure-resourcemanager-servicefabric;current} -->
<version>1.0.0</version> <!-- {x-version-update;com.azure.resourcemanager:azure-resourcemanager-servicefabric;current} -->
<packaging>jar</packaging>

<name>Microsoft Azure SDK for ServiceFabric Management</name>
Expand Down Expand Up @@ -45,7 +45,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jacoco.min.linecoverage>0</jacoco.min.linecoverage>
<jacoco.min.branchcoverage>0</jacoco.min.branchcoverage>
<revapi.skip>true</revapi.skip>
<spotless.skip>false</spotless.skip>
</properties>
<dependencies>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import com.azure.core.http.HttpPipelinePosition;
import com.azure.core.http.policy.AddDatePolicy;
import com.azure.core.http.policy.AddHeadersFromContextPolicy;
import com.azure.core.http.policy.BearerTokenAuthenticationPolicy;
import com.azure.core.http.policy.HttpLogOptions;
import com.azure.core.http.policy.HttpLoggingPolicy;
import com.azure.core.http.policy.HttpPipelinePolicy;
Expand All @@ -19,7 +20,6 @@
import com.azure.core.http.policy.RetryOptions;
import com.azure.core.http.policy.RetryPolicy;
import com.azure.core.http.policy.UserAgentPolicy;
import com.azure.core.management.http.policy.ArmChallengeAuthenticationPolicy;
import com.azure.core.management.profile.AzureProfile;
import com.azure.core.util.Configuration;
import com.azure.core.util.logging.ClientLogger;
Expand Down Expand Up @@ -229,7 +229,7 @@ public ServiceFabricManager authenticate(TokenCredential credential, AzureProfil
.append("-")
.append("com.azure.resourcemanager.servicefabric")
.append("/")
.append("1.0.0-beta.5");
.append("1.0.0");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder.append(" (")
.append(Configuration.getGlobalConfiguration().get("java.version"))
Expand Down Expand Up @@ -262,7 +262,7 @@ public ServiceFabricManager authenticate(TokenCredential credential, AzureProfil
HttpPolicyProviders.addBeforeRetryPolicies(policies);
policies.add(retryPolicy);
policies.add(new AddDatePolicy());
policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
policies.add(new BearerTokenAuthenticationPolicy(credential, scopes.toArray(new String[0])));
policies.addAll(this.policies.stream()
.filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
.collect(Collectors.toList()));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,6 @@ public final class StatefulServiceProperties extends ServiceResourceProperties {
*/
private OffsetDateTime standByReplicaKeepDuration;

/*
* The current deployment or provisioning state, which only appears in the response
*/
private String provisioningState;

/**
* Creates an instance of StatefulServiceProperties class.
*/
Expand Down Expand Up @@ -207,17 +202,6 @@ public StatefulServiceProperties withStandByReplicaKeepDuration(OffsetDateTime s
return this;
}

/**
* Get the provisioningState property: The current deployment or provisioning state, which only appears in the
* response.
*
* @return the provisioningState value.
*/
@Override
public String provisioningState() {
return this.provisioningState;
}

/**
* {@inheritDoc}
*/
Expand Down Expand Up @@ -392,7 +376,7 @@ public static StatefulServiceProperties fromJson(JsonReader jsonReader) throws I
} else if ("defaultMoveCost".equals(fieldName)) {
deserializedStatefulServiceProperties.withDefaultMoveCost(MoveCost.fromString(reader.getString()));
} else if ("provisioningState".equals(fieldName)) {
deserializedStatefulServiceProperties.provisioningState = reader.getString();
deserializedStatefulServiceProperties.withProvisioningState(reader.getString());
} else if ("serviceTypeName".equals(fieldName)) {
deserializedStatefulServiceProperties.withServiceTypeName(reader.getString());
} else if ("partitionDescription".equals(fieldName)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,6 @@ public final class StatelessServiceProperties extends ServiceResourceProperties
*/
private String instanceCloseDelayDuration;

/*
* The current deployment or provisioning state, which only appears in the response
*/
private String provisioningState;

/**
* Creates an instance of StatelessServiceProperties class.
*/
Expand Down Expand Up @@ -105,17 +100,6 @@ public StatelessServiceProperties withInstanceCloseDelayDuration(String instance
return this;
}

/**
* Get the provisioningState property: The current deployment or provisioning state, which only appears in the
* response.
*
* @return the provisioningState value.
*/
@Override
public String provisioningState() {
return this.provisioningState;
}

/**
* {@inheritDoc}
*/
Expand Down Expand Up @@ -277,7 +261,7 @@ public static StatelessServiceProperties fromJson(JsonReader jsonReader) throws
} else if ("defaultMoveCost".equals(fieldName)) {
deserializedStatelessServiceProperties.withDefaultMoveCost(MoveCost.fromString(reader.getString()));
} else if ("provisioningState".equals(fieldName)) {
deserializedStatelessServiceProperties.provisioningState = reader.getString();
deserializedStatelessServiceProperties.withProvisioningState(reader.getString());
} else if ("serviceTypeName".equals(fieldName)) {
deserializedStatelessServiceProperties.withServiceTypeName(reader.getString());
} else if ("partitionDescription".equals(fieldName)) {
Expand Down
Loading