Skip to content

Commit

Permalink
[Automation] Generate Fluent Lite from Swagger logic#package-2019-05 (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
azure-sdk authored Dec 24, 2024
1 parent 850f2ba commit a8143f3
Show file tree
Hide file tree
Showing 13 changed files with 19 additions and 21 deletions.
2 changes: 1 addition & 1 deletion eng/versioning/version_client.txt
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ com.azure.resourcemanager:azure-resourcemanager-devtestlabs;1.1.0;1.2.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-hanaonazure;1.0.0-beta.3;1.0.0-beta.4
com.azure.resourcemanager:azure-resourcemanager-healthcareapis;1.2.0;1.3.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-hybridcompute;1.0.0;1.1.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-logic;1.0.0-beta.3;1.0.0-beta.4
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-beta.3;1.0.0
Expand Down
10 changes: 4 additions & 6 deletions sdk/logic/azure-resourcemanager-logic/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
# Release History

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

### Features Added

### Breaking Changes

### Bugs Fixed
- Azure Resource Manager Logic client library for Java. This package contains Microsoft Azure SDK for Logic Management SDK. REST API for Azure Logic Apps. Package tag package-2019-05. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

### Other Changes

- Release for Azure Resource Manager Logic client library for Java.

## 1.0.0-beta.3 (2024-10-17)

- Azure Resource Manager Logic client library for Java. This package contains Microsoft Azure SDK for Logic Management SDK. REST API for Azure Logic Apps. Package tag package-2019-05. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
Expand Down
2 changes: 1 addition & 1 deletion sdk/logic/azure-resourcemanager-logic/README.md
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-logic</artifactId>
<version>1.0.0-beta.3</version>
<version>1.0.0</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
4 changes: 2 additions & 2 deletions sdk/logic/azure-resourcemanager-logic/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

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

<name>Microsoft Azure SDK for Logic 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 @@ -309,7 +309,7 @@ public LogicManager authenticate(TokenCredential credential, AzureProfile profil
.append("-")
.append("com.azure.resourcemanager.logic")
.append("/")
.append("1.0.0-beta.3");
.append("1.0.0");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder.append(" (")
.append(Configuration.getGlobalConfiguration().get("java.version"))
Expand Down Expand Up @@ -342,7 +342,7 @@ public LogicManager authenticate(TokenCredential credential, AzureProfile profil
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 @@ -16,7 +16,7 @@ public final class ManagedServiceIdentityTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
ManagedServiceIdentity model = BinaryData.fromString(
"{\"type\":\"UserAssigned\",\"tenantId\":\"d7fd8df4-f597-4643-a6b2-2e0dc5243720\",\"principalId\":\"6b6bb67d-ab82-4f43-b572-150683d6625d\",\"userAssignedIdentities\":{\"pjzu\":{\"principalId\":\"luthn\",\"clientId\":\"rnxipei\"}}}")
"{\"type\":\"UserAssigned\",\"tenantId\":\"a02e84d7-8f75-456a-aa6d-84a1e261f8b6\",\"principalId\":\"f736a4d0-3b3a-4565-beaf-449dde352f49\",\"userAssignedIdentities\":{\"pjzu\":{\"principalId\":\"luthn\",\"clientId\":\"rnxipei\"}}}")
.toObject(ManagedServiceIdentity.class);
Assertions.assertEquals(ManagedServiceIdentityType.USER_ASSIGNED, model.type());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public final class WorkflowInnerTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
WorkflowInner model = BinaryData.fromString(
"{\"properties\":{\"provisioningState\":\"Created\",\"createdTime\":\"2021-10-17T08:51:50Z\",\"changedTime\":\"2021-06-04T23:46:10Z\",\"state\":\"Completed\",\"version\":\"thwxmnteiwaopvkm\",\"accessEndpoint\":\"c\",\"endpointsConfiguration\":{\"workflow\":{\"outgoingIpAddresses\":[{\"address\":\"fufsrpymzi\"},{\"address\":\"sezcxtb\"},{\"address\":\"gfycc\"}],\"accessEndpointIpAddresses\":[{\"address\":\"mdwzjeiachboo\"},{\"address\":\"lnrosfqp\"}]},\"connector\":{\"outgoingIpAddresses\":[{\"address\":\"zvypyqrimzinp\"},{\"address\":\"wjdk\"}],\"accessEndpointIpAddresses\":[{\"address\":\"od\"},{\"address\":\"hc\"},{\"address\":\"nohjt\"},{\"address\":\"whdsoifiyip\"}]}},\"accessControl\":{\"triggers\":{\"allowedCallerIpAddresses\":[{\"addressRange\":\"gr\"},{\"addressRange\":\"znorcj\"},{\"addressRange\":\"snb\"}],\"openAuthenticationPolicies\":{\"policies\":{\"bnmo\":{},\"pcyshu\":{},\"zafb\":{}}}},\"contents\":{\"allowedCallerIpAddresses\":[{\"addressRange\":\"btoqcjmkljavbqid\"},{\"addressRange\":\"ajzyul\"},{\"addressRange\":\"u\"}],\"openAuthenticationPolicies\":{\"policies\":{\"lkhbz\":{},\"fepgzgq\":{},\"xzlocxscp\":{},\"ierhhbcsglummaj\":{}}}},\"actions\":{\"allowedCallerIpAddresses\":[{\"addressRange\":\"xobnbdxkqpxok\"},{\"addressRange\":\"ionpimexg\"},{\"addressRange\":\"xgcp\"},{\"addressRange\":\"gmaajrm\"}],\"openAuthenticationPolicies\":{\"policies\":{\"zrlovmclwhijcoej\":{},\"tbzaqsqsycbkbfk\":{},\"ukdkexxppofmxa\":{},\"c\":{}}}},\"workflowManagement\":{\"allowedCallerIpAddresses\":[{\"addressRange\":\"dtocj\"},{\"addressRange\":\"hvpmoue\"}],\"openAuthenticationPolicies\":{\"policies\":{\"xibqeojnx\":{},\"bzv\":{}}}}},\"sku\":{\"name\":\"Free\",\"plan\":{\"id\":\"ndei\",\"name\":\"twnpzaoqvuhrhcf\",\"type\":\"yd\"}},\"integrationAccount\":{\"id\":\"mjthjqkwp\",\"name\":\"icxm\",\"type\":\"iwqvhkh\"},\"integrationServiceEnvironment\":{\"id\":\"igdtopbob\",\"name\":\"ghmewuam\",\"type\":\"hrzayvvtpgvdf\"},\"definition\":\"dataotkftutqxlngx\",\"parameters\":{\"vqdra\":{\"type\":\"Object\",\"value\":\"datanxkrx\",\"metadata\":\"datami\",\"description\":\"thz\"},\"ynhz\":{\"type\":\"String\",\"value\":\"databig\",\"metadata\":\"dataoqfbowskanyk\",\"description\":\"lcuiywgqywgndr\"},\"qjqabcypmivkwl\":{\"type\":\"SecureObject\",\"value\":\"datarcgyn\",\"metadata\":\"datacpecfvmmcoofs\",\"description\":\"zevgb\"},\"bqqwxrj\":{\"type\":\"SecureString\",\"value\":\"datac\",\"metadata\":\"datanfnbacfionlebxe\",\"description\":\"gtzxdpn\"}}},\"identity\":{\"type\":\"SystemAssigned\",\"tenantId\":\"b28fdb23-42e0-4b9c-8d20-ca3b3c5dce55\",\"principalId\":\"ab01850c-1234-4cdc-bd0c-dc09ff6c2c64\",\"userAssignedIdentities\":{\"ooch\":{\"principalId\":\"ubisnjampmng\",\"clientId\":\"scxaq\"},\"ase\":{\"principalId\":\"onq\",\"clientId\":\"kvlrxnj\"},\"azjpqyegualhbxxh\":{\"principalId\":\"heoflokeyyienjbd\",\"clientId\":\"tgrhpdjpjumas\"}}},\"location\":\"jj\",\"tags\":{\"mcy\":\"dudgwdslfhot\"},\"id\":\"pwlbjnpg\",\"name\":\"cftadeh\",\"type\":\"nltyfsoppusuesnz\"}")
"{\"properties\":{\"provisioningState\":\"Created\",\"createdTime\":\"2021-10-17T08:51:50Z\",\"changedTime\":\"2021-06-04T23:46:10Z\",\"state\":\"Completed\",\"version\":\"thwxmnteiwaopvkm\",\"accessEndpoint\":\"c\",\"endpointsConfiguration\":{\"workflow\":{\"outgoingIpAddresses\":[{\"address\":\"fufsrpymzi\"},{\"address\":\"sezcxtb\"},{\"address\":\"gfycc\"}],\"accessEndpointIpAddresses\":[{\"address\":\"mdwzjeiachboo\"},{\"address\":\"lnrosfqp\"}]},\"connector\":{\"outgoingIpAddresses\":[{\"address\":\"zvypyqrimzinp\"},{\"address\":\"wjdk\"}],\"accessEndpointIpAddresses\":[{\"address\":\"od\"},{\"address\":\"hc\"},{\"address\":\"nohjt\"},{\"address\":\"whdsoifiyip\"}]}},\"accessControl\":{\"triggers\":{\"allowedCallerIpAddresses\":[{\"addressRange\":\"gr\"},{\"addressRange\":\"znorcj\"},{\"addressRange\":\"snb\"}],\"openAuthenticationPolicies\":{\"policies\":{\"bnmo\":{},\"pcyshu\":{},\"zafb\":{}}}},\"contents\":{\"allowedCallerIpAddresses\":[{\"addressRange\":\"btoqcjmkljavbqid\"},{\"addressRange\":\"ajzyul\"},{\"addressRange\":\"u\"}],\"openAuthenticationPolicies\":{\"policies\":{\"lkhbz\":{},\"fepgzgq\":{},\"xzlocxscp\":{},\"ierhhbcsglummaj\":{}}}},\"actions\":{\"allowedCallerIpAddresses\":[{\"addressRange\":\"xobnbdxkqpxok\"},{\"addressRange\":\"ionpimexg\"},{\"addressRange\":\"xgcp\"},{\"addressRange\":\"gmaajrm\"}],\"openAuthenticationPolicies\":{\"policies\":{\"zrlovmclwhijcoej\":{},\"tbzaqsqsycbkbfk\":{},\"ukdkexxppofmxa\":{},\"c\":{}}}},\"workflowManagement\":{\"allowedCallerIpAddresses\":[{\"addressRange\":\"dtocj\"},{\"addressRange\":\"hvpmoue\"}],\"openAuthenticationPolicies\":{\"policies\":{\"xibqeojnx\":{},\"bzv\":{}}}}},\"sku\":{\"name\":\"Free\",\"plan\":{\"id\":\"ndei\",\"name\":\"twnpzaoqvuhrhcf\",\"type\":\"yd\"}},\"integrationAccount\":{\"id\":\"mjthjqkwp\",\"name\":\"icxm\",\"type\":\"iwqvhkh\"},\"integrationServiceEnvironment\":{\"id\":\"igdtopbob\",\"name\":\"ghmewuam\",\"type\":\"hrzayvvtpgvdf\"},\"definition\":\"dataotkftutqxlngx\",\"parameters\":{\"vqdra\":{\"type\":\"Object\",\"value\":\"datanxkrx\",\"metadata\":\"datami\",\"description\":\"thz\"},\"ynhz\":{\"type\":\"String\",\"value\":\"databig\",\"metadata\":\"dataoqfbowskanyk\",\"description\":\"lcuiywgqywgndr\"},\"qjqabcypmivkwl\":{\"type\":\"SecureObject\",\"value\":\"datarcgyn\",\"metadata\":\"datacpecfvmmcoofs\",\"description\":\"zevgb\"},\"bqqwxrj\":{\"type\":\"SecureString\",\"value\":\"datac\",\"metadata\":\"datanfnbacfionlebxe\",\"description\":\"gtzxdpn\"}}},\"identity\":{\"type\":\"SystemAssigned\",\"tenantId\":\"a8e6fa65-4976-43aa-84b9-9484b7101ef8\",\"principalId\":\"857a33d8-90e8-4cfa-8642-f27de79fbf5b\",\"userAssignedIdentities\":{\"ooch\":{\"principalId\":\"ubisnjampmng\",\"clientId\":\"scxaq\"},\"ase\":{\"principalId\":\"onq\",\"clientId\":\"kvlrxnj\"},\"azjpqyegualhbxxh\":{\"principalId\":\"heoflokeyyienjbd\",\"clientId\":\"tgrhpdjpjumas\"}}},\"location\":\"jj\",\"tags\":{\"mcy\":\"dudgwdslfhot\"},\"id\":\"pwlbjnpg\",\"name\":\"cftadeh\",\"type\":\"nltyfsoppusuesnz\"}")
.toObject(WorkflowInner.class);
Assertions.assertEquals("jj", model.location());
Assertions.assertEquals("dudgwdslfhot", model.tags().get("mcy"));
Expand Down
Loading

0 comments on commit a8143f3

Please sign in to comment.