Skip to content

Commit

Permalink
[Automation] Generate Fluent Lite from Swagger automation#package-202…
Browse files Browse the repository at this point in the history
…2-02-22 (#43556)

* [Automation] External Change

* [Automation] Generate Fluent Lite from Swagger automation#package-2022-02-22

* Update CHANGELOG for Azure SDK release

---------

Co-authored-by: Weidong Xu <[email protected]>
  • Loading branch information
azure-sdk and weidongxu-microsoft authored Dec 23, 2024
1 parent bc0c8b5 commit 6659fae
Show file tree
Hide file tree
Showing 28 changed files with 42 additions and 44 deletions.
2 changes: 1 addition & 1 deletion eng/versioning/version_client.txt
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ com.azure.resourcemanager:azure-resourcemanager-databricks;1.0.0;1.1.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-databoxedge;1.0.0;1.1.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-frontdoor;1.1.0;1.2.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-mixedreality;1.0.0;1.1.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-automation;1.0.0-beta.3;1.0.0-beta.4
com.azure.resourcemanager:azure-resourcemanager-automation;1.0.0-beta.3;1.0.0
com.azure.resourcemanager:azure-resourcemanager-resourcemover;1.2.0;1.3.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-datafactory;1.0.0;1.1.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-advisor;1.0.0-beta.3;1.0.0-beta.4
Expand Down
10 changes: 4 additions & 6 deletions sdk/automation/azure-resourcemanager-automation/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-23)

### Features Added

### Breaking Changes

### Bugs Fixed
- Azure Resource Manager Automation client library for Java. This package contains Microsoft Azure SDK for Automation Management SDK. Automation Client. Package tag package-2022-02-22. 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 Automation client library for Java.

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

- Azure Resource Manager Automation client library for Java. This package contains Microsoft Azure SDK for Automation Management SDK. Automation Client. Package tag package-2022-02-22. 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/automation/azure-resourcemanager-automation/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-automation</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/automation/azure-resourcemanager-automation/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-automation</artifactId>
<version>1.0.0-beta.4</version> <!-- {x-version-update;com.azure.resourcemanager:azure-resourcemanager-automation;current} -->
<version>1.0.0</version> <!-- {x-version-update;com.azure.resourcemanager:azure-resourcemanager-automation;current} -->
<packaging>jar</packaging>

<name>Microsoft Azure SDK for Automation 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 @@ -385,7 +385,7 @@ public AutomationManager authenticate(TokenCredential credential, AzureProfile p
.append("-")
.append("com.azure.resourcemanager.automation")
.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 @@ -418,7 +418,7 @@ public AutomationManager authenticate(TokenCredential credential, AzureProfile p
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 @@ -17,7 +17,7 @@ public final class DscCompilationJobInnerTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
DscCompilationJobInner model = BinaryData.fromString(
"{\"properties\":{\"configuration\":{\"name\":\"bxzpuzycisp\"},\"startedBy\":\"zahmgkbrpyydhibn\",\"jobId\":\"6de5e5c6-0850-4d2f-a892-d8f312aea077\",\"creationTime\":\"2021-10-07T14:08:56Z\",\"provisioningState\":\"Failed\",\"runOn\":\"a\",\"status\":\"Failed\",\"statusDetails\":\"tqagnbuynh\",\"startTime\":\"2021-03-22T07:27:17Z\",\"endTime\":\"2021-07-11T17:28:04Z\",\"exception\":\"bfs\",\"lastModifiedTime\":\"2021-09-16T13:37:10Z\",\"lastStatusModifiedTime\":\"2021-05-02T05:08:07Z\",\"parameters\":{\"tdbhrbnla\":\"cvpnazzmhjrunmpx\",\"yskpbhen\":\"kx\",\"lqidyby\":\"tkcxywnytnrsy\",\"haaxdbabphl\":\"czfc\"}},\"id\":\"rqlfktsthsucocmn\",\"name\":\"yazttbtwwrqpue\",\"type\":\"ckzywbiexzfeyue\"}")
"{\"properties\":{\"configuration\":{\"name\":\"bxzpuzycisp\"},\"startedBy\":\"zahmgkbrpyydhibn\",\"jobId\":\"7806040c-6dc4-4678-873e-9cf01e9f4768\",\"creationTime\":\"2021-10-07T14:08:56Z\",\"provisioningState\":\"Failed\",\"runOn\":\"a\",\"status\":\"Failed\",\"statusDetails\":\"tqagnbuynh\",\"startTime\":\"2021-03-22T07:27:17Z\",\"endTime\":\"2021-07-11T17:28:04Z\",\"exception\":\"bfs\",\"lastModifiedTime\":\"2021-09-16T13:37:10Z\",\"lastStatusModifiedTime\":\"2021-05-02T05:08:07Z\",\"parameters\":{\"tdbhrbnla\":\"cvpnazzmhjrunmpx\",\"yskpbhen\":\"kx\",\"lqidyby\":\"tkcxywnytnrsy\",\"haaxdbabphl\":\"czfc\"}},\"id\":\"rqlfktsthsucocmn\",\"name\":\"yazttbtwwrqpue\",\"type\":\"ckzywbiexzfeyue\"}")
.toObject(DscCompilationJobInner.class);
Assertions.assertEquals("bxzpuzycisp", model.configuration().name());
Assertions.assertEquals(JobProvisioningState.FAILED, model.provisioningState());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public final class DscCompilationJobListResultTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
DscCompilationJobListResult model = BinaryData.fromString(
"{\"value\":[{\"properties\":{\"configuration\":{\"name\":\"kde\"},\"startedBy\":\"pvlopwiyighxpkd\",\"jobId\":\"adae0675-e1cf-4957-a346-8664d02fd9c9\",\"creationTime\":\"2021-11-18T13:59:23Z\",\"provisioningState\":\"Suspended\",\"runOn\":\"bbaumnyquped\",\"status\":\"Activating\",\"statusDetails\":\"a\",\"startTime\":\"2021-01-27T09:46:32Z\",\"endTime\":\"2021-09-17T17:08:43Z\",\"exception\":\"txp\",\"lastModifiedTime\":\"2021-09-04T06:17:20Z\",\"lastStatusModifiedTime\":\"2021-05-21T15:45:47Z\",\"parameters\":{\"tldwkyzxuutk\":\"vpesapskrdqmhjjd\",\"togt\":\"cwscwsvlx\",\"vce\":\"rupqsxvnmicy\",\"ovnotyfjfcnjbkcn\":\"vei\"}},\"id\":\"dhbt\",\"name\":\"kphywpnvjto\",\"type\":\"nermcl\"},{\"properties\":{\"configuration\":{\"name\":\"hoxus\"},\"startedBy\":\"pabgyeps\",\"jobId\":\"fffe1a7e-5c17-4097-8478-c0e392d0e869\",\"creationTime\":\"2021-01-26T13:24:27Z\",\"provisioningState\":\"Processing\",\"runOn\":\"gxywpmue\",\"status\":\"Stopped\",\"statusDetails\":\"wfqkquj\",\"startTime\":\"2021-07-14T16:34:27Z\",\"endTime\":\"2021-08-09T22:38:08Z\",\"exception\":\"nobglaocq\",\"lastModifiedTime\":\"2021-12-07T11:44:31Z\",\"lastStatusModifiedTime\":\"2020-12-28T11:59Z\",\"parameters\":{\"wfudwpzntxhdzhl\":\"udxytlmoyrx\",\"hckfrlhrx\":\"qj\",\"ca\":\"bkyvp\"}},\"id\":\"uzbpzkafku\",\"name\":\"b\",\"type\":\"rnwb\"},{\"properties\":{\"configuration\":{\"name\":\"seyvj\"},\"startedBy\":\"rts\",\"jobId\":\"a17450b0-2079-4cb3-af69-c696dd1d418c\",\"creationTime\":\"2021-07-14T16:11:44Z\",\"provisioningState\":\"Succeeded\",\"runOn\":\"emaofmxagkvt\",\"status\":\"Failed\",\"statusDetails\":\"qkrhahvljua\",\"startTime\":\"2021-06-16T01:16:38Z\",\"endTime\":\"2021-02-11T00:39:32Z\",\"exception\":\"dhmdua\",\"lastModifiedTime\":\"2021-08-21T05:00:38Z\",\"lastStatusModifiedTime\":\"2021-12-01T16:06:51Z\",\"parameters\":{\"crgvxpvgom\":\"fadmws\",\"isgwbnbbeldawkz\":\"lf\"}},\"id\":\"ali\",\"name\":\"urqhaka\",\"type\":\"hashsfwxosow\"},{\"properties\":{\"configuration\":{\"name\":\"gicjooxdjeb\"},\"startedBy\":\"ucww\",\"jobId\":\"64c8c84b-0192-48d4-9f2f-1ef3c2b29bb6\",\"creationTime\":\"2021-06-22T01:04:48Z\",\"provisioningState\":\"Succeeded\",\"runOn\":\"euecivyhzceuoj\",\"status\":\"Suspending\",\"statusDetails\":\"jueiotwmcdytd\",\"startTime\":\"2021-03-20T09:56:32Z\",\"endTime\":\"2021-08-03T01:57:35Z\",\"exception\":\"rjaw\",\"lastModifiedTime\":\"2021-05-13T06:47:58Z\",\"lastStatusModifiedTime\":\"2021-10-18T22:59:22Z\",\"parameters\":{\"fbkp\":\"isk\"}},\"id\":\"cg\",\"name\":\"lwn\",\"type\":\"nhjdauw\"}],\"nextLink\":\"ylwz\"}")
"{\"value\":[{\"properties\":{\"configuration\":{\"name\":\"kde\"},\"startedBy\":\"pvlopwiyighxpkd\",\"jobId\":\"39b00081-4767-4ce9-ab40-e001775504b5\",\"creationTime\":\"2021-11-18T13:59:23Z\",\"provisioningState\":\"Suspended\",\"runOn\":\"bbaumnyquped\",\"status\":\"Activating\",\"statusDetails\":\"a\",\"startTime\":\"2021-01-27T09:46:32Z\",\"endTime\":\"2021-09-17T17:08:43Z\",\"exception\":\"txp\",\"lastModifiedTime\":\"2021-09-04T06:17:20Z\",\"lastStatusModifiedTime\":\"2021-05-21T15:45:47Z\",\"parameters\":{\"tldwkyzxuutk\":\"vpesapskrdqmhjjd\",\"togt\":\"cwscwsvlx\",\"vce\":\"rupqsxvnmicy\",\"ovnotyfjfcnjbkcn\":\"vei\"}},\"id\":\"dhbt\",\"name\":\"kphywpnvjto\",\"type\":\"nermcl\"},{\"properties\":{\"configuration\":{\"name\":\"hoxus\"},\"startedBy\":\"pabgyeps\",\"jobId\":\"7bb7b6d9-aab1-4cbf-8528-6b54d27a83a6\",\"creationTime\":\"2021-01-26T13:24:27Z\",\"provisioningState\":\"Processing\",\"runOn\":\"gxywpmue\",\"status\":\"Stopped\",\"statusDetails\":\"wfqkquj\",\"startTime\":\"2021-07-14T16:34:27Z\",\"endTime\":\"2021-08-09T22:38:08Z\",\"exception\":\"nobglaocq\",\"lastModifiedTime\":\"2021-12-07T11:44:31Z\",\"lastStatusModifiedTime\":\"2020-12-28T11:59Z\",\"parameters\":{\"wfudwpzntxhdzhl\":\"udxytlmoyrx\",\"hckfrlhrx\":\"qj\",\"ca\":\"bkyvp\"}},\"id\":\"uzbpzkafku\",\"name\":\"b\",\"type\":\"rnwb\"},{\"properties\":{\"configuration\":{\"name\":\"seyvj\"},\"startedBy\":\"rts\",\"jobId\":\"7c506edc-8043-4a23-b076-ec5dee1cc817\",\"creationTime\":\"2021-07-14T16:11:44Z\",\"provisioningState\":\"Succeeded\",\"runOn\":\"emaofmxagkvt\",\"status\":\"Failed\",\"statusDetails\":\"qkrhahvljua\",\"startTime\":\"2021-06-16T01:16:38Z\",\"endTime\":\"2021-02-11T00:39:32Z\",\"exception\":\"dhmdua\",\"lastModifiedTime\":\"2021-08-21T05:00:38Z\",\"lastStatusModifiedTime\":\"2021-12-01T16:06:51Z\",\"parameters\":{\"crgvxpvgom\":\"fadmws\",\"isgwbnbbeldawkz\":\"lf\"}},\"id\":\"ali\",\"name\":\"urqhaka\",\"type\":\"hashsfwxosow\"},{\"properties\":{\"configuration\":{\"name\":\"gicjooxdjeb\"},\"startedBy\":\"ucww\",\"jobId\":\"f3d9067f-2d7e-4ad1-ae68-6c1050cef017\",\"creationTime\":\"2021-06-22T01:04:48Z\",\"provisioningState\":\"Succeeded\",\"runOn\":\"euecivyhzceuoj\",\"status\":\"Suspending\",\"statusDetails\":\"jueiotwmcdytd\",\"startTime\":\"2021-03-20T09:56:32Z\",\"endTime\":\"2021-08-03T01:57:35Z\",\"exception\":\"rjaw\",\"lastModifiedTime\":\"2021-05-13T06:47:58Z\",\"lastStatusModifiedTime\":\"2021-10-18T22:59:22Z\",\"parameters\":{\"fbkp\":\"isk\"}},\"id\":\"cg\",\"name\":\"lwn\",\"type\":\"nhjdauw\"}],\"nextLink\":\"ylwz\"}")
.toObject(DscCompilationJobListResult.class);
Assertions.assertEquals("kde", model.value().get(0).configuration().name());
Assertions.assertEquals(JobProvisioningState.SUSPENDED, model.value().get(0).provisioningState());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public final class DscCompilationJobPropertiesTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
DscCompilationJobProperties model = BinaryData.fromString(
"{\"configuration\":{\"name\":\"bxu\"},\"startedBy\":\"bhqwalmuzyoxa\",\"jobId\":\"517c542a-3c6d-4f6f-b97e-1b75c227092b\",\"creationTime\":\"2021-04-14T09:10:53Z\",\"provisioningState\":\"Succeeded\",\"runOn\":\"ncuxrhdwb\",\"status\":\"Disconnected\",\"statusDetails\":\"niwdjsw\",\"startTime\":\"2021-09-04T13:55:51Z\",\"endTime\":\"2021-08-07T21:53:51Z\",\"exception\":\"gnxytxhpzxbz\",\"lastModifiedTime\":\"2021-01-14T15:07:39Z\",\"lastStatusModifiedTime\":\"2021-03-26T15:31:42Z\",\"parameters\":{\"wtctyqi\":\"cuh\",\"bhvgy\":\"lbbovplw\",\"svmkfssxquk\":\"gu\",\"mg\":\"fpl\"}}")
"{\"configuration\":{\"name\":\"bxu\"},\"startedBy\":\"bhqwalmuzyoxa\",\"jobId\":\"7c240544-7b71-4ba8-a98b-f0cb61483931\",\"creationTime\":\"2021-04-14T09:10:53Z\",\"provisioningState\":\"Succeeded\",\"runOn\":\"ncuxrhdwb\",\"status\":\"Disconnected\",\"statusDetails\":\"niwdjsw\",\"startTime\":\"2021-09-04T13:55:51Z\",\"endTime\":\"2021-08-07T21:53:51Z\",\"exception\":\"gnxytxhpzxbz\",\"lastModifiedTime\":\"2021-01-14T15:07:39Z\",\"lastStatusModifiedTime\":\"2021-03-26T15:31:42Z\",\"parameters\":{\"wtctyqi\":\"cuh\",\"bhvgy\":\"lbbovplw\",\"svmkfssxquk\":\"gu\",\"mg\":\"fpl\"}}")
.toObject(DscCompilationJobProperties.class);
Assertions.assertEquals("bxu", model.configuration().name());
Assertions.assertEquals(JobProvisioningState.SUCCEEDED, model.provisioningState());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public void testListByJobWithResponse() throws Exception {
new AzureProfile("", "", AzureEnvironment.AZURE));

JobStreamListResult response = manager.dscCompilationJobStreams()
.listByJobWithResponse("rmmttjxop", "gerhsmvg", UUID.fromString("3f5e5033-bf97-42e3-bdf9-168f80443b95"),
.listByJobWithResponse("rmmttjxop", "gerhsmvg", UUID.fromString("acae4649-88a3-4418-b426-7a94548e7dc6"),
com.azure.core.util.Context.NONE)
.getValue();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public void testGetStreamWithResponse() throws Exception {

JobStream response = manager.dscCompilationJobs()
.getStreamWithResponse("dveksbuhoduch", "lscrdpibfdyjduss",
UUID.fromString("8dc54ea5-549d-49fa-a301-d42605c4a3a6"), "yszekbhwlka",
UUID.fromString("a4e3d6d0-4057-4660-be1a-bd1df6e08386"), "yszekbhwlka",
com.azure.core.util.Context.NONE)
.getValue();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public final class DscCompilationJobsGetWithResponseMockTests {
@Test
public void testGetWithResponse() throws Exception {
String responseStr
= "{\"properties\":{\"configuration\":{\"name\":\"hvfdqqj\"},\"startedBy\":\"rhwzdanojisg\",\"jobId\":\"f504e581-e521-4ace-9eb2-a93ec0905803\",\"creationTime\":\"2021-09-13T20:00:32Z\",\"provisioningState\":\"Suspended\",\"runOn\":\"tuz\",\"status\":\"Suspending\",\"statusDetails\":\"ibpvbkaehxsmzyg\",\"startTime\":\"2021-06-14T07:19:19Z\",\"endTime\":\"2021-10-06T00:03:02Z\",\"exception\":\"seivmakxhysow\",\"lastModifiedTime\":\"2021-06-07T14:14:17Z\",\"lastStatusModifiedTime\":\"2021-10-25T11:03:27Z\",\"parameters\":{\"tfjmskdchmaiub\":\"ect\",\"vgmfalkzazmgok\":\"vlzw\",\"zrthqet\":\"dgjqafkmkro\",\"iezeagm\":\"pqrtvaoznqni\"}},\"id\":\"eituugedhfpjs\",\"name\":\"lzmb\",\"type\":\"syjdeolctae\"}";
= "{\"properties\":{\"configuration\":{\"name\":\"hvfdqqj\"},\"startedBy\":\"rhwzdanojisg\",\"jobId\":\"6ef0c5fd-d57b-4be1-b5b2-cc56a804512b\",\"creationTime\":\"2021-09-13T20:00:32Z\",\"provisioningState\":\"Suspended\",\"runOn\":\"tuz\",\"status\":\"Suspending\",\"statusDetails\":\"ibpvbkaehxsmzyg\",\"startTime\":\"2021-06-14T07:19:19Z\",\"endTime\":\"2021-10-06T00:03:02Z\",\"exception\":\"seivmakxhysow\",\"lastModifiedTime\":\"2021-06-07T14:14:17Z\",\"lastStatusModifiedTime\":\"2021-10-25T11:03:27Z\",\"parameters\":{\"tfjmskdchmaiub\":\"ect\",\"vgmfalkzazmgok\":\"vlzw\",\"zrthqet\":\"dgjqafkmkro\",\"iezeagm\":\"pqrtvaoznqni\"}},\"id\":\"eituugedhfpjs\",\"name\":\"lzmb\",\"type\":\"syjdeolctae\"}";

HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public final class DscCompilationJobsListByAutomationAccountMockTests {
@Test
public void testListByAutomationAccount() throws Exception {
String responseStr
= "{\"value\":[{\"properties\":{\"configuration\":{\"name\":\"xlzsxezppk\"},\"startedBy\":\"aaeskyfjlpze\",\"jobId\":\"95fd5f9c-f5da-492d-bc0b-a7469eb9b629\",\"creationTime\":\"2021-01-19T02:40:36Z\",\"provisioningState\":\"Processing\",\"runOn\":\"ixlajmllpquevham\",\"status\":\"Activating\",\"statusDetails\":\"w\",\"startTime\":\"2021-05-25T01:33:51Z\",\"endTime\":\"2021-05-02T00:38:04Z\",\"exception\":\"xpk\",\"lastModifiedTime\":\"2021-05-12T21:36Z\",\"lastStatusModifiedTime\":\"2021-03-09T09:38:44Z\",\"parameters\":{\"vf\":\"qovchiqbp\",\"gmsfepxyi\":\"dusztekxby\"}},\"id\":\"pqadagrhrdicxdwy\",\"name\":\"fowxwyovcxjsgbi\",\"type\":\"cu\"}]}";
= "{\"value\":[{\"properties\":{\"configuration\":{\"name\":\"xlzsxezppk\"},\"startedBy\":\"aaeskyfjlpze\",\"jobId\":\"788049c1-25bd-47da-8718-a87604f50ef0\",\"creationTime\":\"2021-01-19T02:40:36Z\",\"provisioningState\":\"Processing\",\"runOn\":\"ixlajmllpquevham\",\"status\":\"Activating\",\"statusDetails\":\"w\",\"startTime\":\"2021-05-25T01:33:51Z\",\"endTime\":\"2021-05-02T00:38:04Z\",\"exception\":\"xpk\",\"lastModifiedTime\":\"2021-05-12T21:36Z\",\"lastStatusModifiedTime\":\"2021-03-09T09:38:44Z\",\"parameters\":{\"vf\":\"qovchiqbp\",\"gmsfepxyi\":\"dusztekxby\"}},\"id\":\"pqadagrhrdicxdwy\",\"name\":\"fowxwyovcxjsgbi\",\"type\":\"cu\"}]}";

HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public final class JobCollectionItemInnerTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
JobCollectionItemInner model = BinaryData.fromString(
"{\"properties\":{\"runbook\":{\"name\":\"zznvfbyc\"},\"jobId\":\"59a4b387-5bd2-4608-a12d-8ba3033269fa\",\"creationTime\":\"2021-10-14T17:32:27Z\",\"status\":\"Suspending\",\"startTime\":\"2021-01-11T06:52:26Z\",\"endTime\":\"2021-06-03T06:24:37Z\",\"lastModifiedTime\":\"2021-10-30T00:47:44Z\",\"provisioningState\":\"mxqhndvnoamldse\",\"runOn\":\"ohdjhhflzok\"},\"id\":\"coxpelnjeta\",\"name\":\"ltsxoatf\",\"type\":\"g\"}")
"{\"properties\":{\"runbook\":{\"name\":\"zznvfbyc\"},\"jobId\":\"239d6350-06c2-4284-b228-ef0ce6ffe9c6\",\"creationTime\":\"2021-10-14T17:32:27Z\",\"status\":\"Suspending\",\"startTime\":\"2021-01-11T06:52:26Z\",\"endTime\":\"2021-06-03T06:24:37Z\",\"lastModifiedTime\":\"2021-10-30T00:47:44Z\",\"provisioningState\":\"mxqhndvnoamldse\",\"runOn\":\"ohdjhhflzok\"},\"id\":\"coxpelnjeta\",\"name\":\"ltsxoatf\",\"type\":\"g\"}")
.toObject(JobCollectionItemInner.class);
Assertions.assertEquals("ohdjhhflzok", model.runOn());
}
Expand Down
Loading

0 comments on commit 6659fae

Please sign in to comment.